@fluid-topics/ft-search-bar 2.1.24 → 2.2.0

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 bu=Object.defineProperty;var J=(t,e)=>{for(var r in e)bu(t,r,{get:e[r],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,i=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(S,x){if(S=S.toLowerCase(),this._getDefinition(S)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${S}" has already been used with this registry`);if(this._definitionsByClass.get(x)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let w=x.prototype.attributeChangedCallback,$=new Set(x.observedAttributes||[]);g(x,$,w);let ee={elementClass:x,connectedCallback:x.prototype.connectedCallback,disconnectedCallback:x.prototype.disconnectedCallback,adoptedCallback:x.prototype.adoptedCallback,attributeChangedCallback:w,formAssociated:x.formAssociated,formAssociatedCallback:x.prototype.formAssociatedCallback,formDisabledCallback:x.prototype.formDisabledCallback,formResetCallback:x.prototype.formResetCallback,formStateRestoreCallback:x.prototype.formStateRestoreCallback,observedAttributes:$};this._definitionsByTag.set(S,ee),this._definitionsByClass.set(x,ee);let j=r.call(i,S);j||(j=f(S),e.call(i,S,j)),this===window.customElements&&(s.set(x,ee),ee.standInClass=j);let G=this._awaitingUpgrade.get(S);if(G){this._awaitingUpgrade.delete(S);for(let F of G)a.delete(F),b(F,ee,!0)}let P=this._whenDefinedPromises.get(S);return P!==void 0&&(P.resolve(x),this._whenDefinedPromises.delete(S)),x}upgrade(){E.push(this),i.upgrade.apply(i,arguments),E.pop()}get(S){return this._definitionsByTag.get(S)?.elementClass}_getDefinition(S){return this._definitionsByTag.get(S)}whenDefined(S){let x=this._getDefinition(S);if(x!==void 0)return Promise.resolve(x.elementClass);let w=this._whenDefinedPromises.get(S);return w===void 0&&(w={},w.promise=new Promise($=>w.resolve=$),this._whenDefinedPromises.set(S,w)),w.promise}_upgradeWhenDefined(S,x,w){let $=this._awaitingUpgrade.get(x);$||this._awaitingUpgrade.set(x,$=new Set),w?$.add(S):$.delete(S)}};let d;window.HTMLElement=function(){let x=d;if(x)return d=void 0,x;let w=s.get(this.constructor);if(!w)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return x=Reflect.construct(t,[],w.standInClass),Object.setPrototypeOf(x,this.constructor.prototype),n.set(x,w),x},window.HTMLElement.prototype=t.prototype;let u=S=>S===document||S instanceof ShadowRoot,h=S=>{let x=S.getRootNode();if(!u(x)){let w=E[E.length-1];if(w instanceof CustomElementRegistry)return w;x=w.getRootNode(),u(x)||(x=l.get(x)?.getRootNode()||document)}return x.customElements},f=S=>class{static get formAssociated(){return!0}constructor(){let w=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(w,HTMLElement.prototype);let $=h(w)||window.customElements,ee=$._getDefinition(S);return ee?b(w,ee):a.set(w,$),w}connectedCallback(){let w=n.get(this);w?w.connectedCallback&&w.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!0)}disconnectedCallback(){let w=n.get(this);w?w.disconnectedCallback&&w.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let w=n.get(this);w&&w.formAssociated&&w?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let w=n.get(this);w?.formAssociated&&w?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let w=n.get(this);w?.formAssociated&&w?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let w=n.get(this);w?.formAssociated&&w?.formStateRestoreCallback?.apply(this,arguments)}},g=(S,x,w)=>{if(x.size===0||w===void 0)return;let $=S.prototype.setAttribute;$&&(S.prototype.setAttribute=function(G,P){let F=G.toLowerCase();if(x.has(F)){let Q=this.getAttribute(F);$.call(this,F,P),w.call(this,F,Q,P)}else $.call(this,F,P)});let ee=S.prototype.removeAttribute;ee&&(S.prototype.removeAttribute=function(G){let P=G.toLowerCase();if(x.has(P)){let F=this.getAttribute(P);ee.call(this,P),w.call(this,P,F,null)}else ee.call(this,P)});let j=S.prototype.toggleAttribute;j&&(S.prototype.toggleAttribute=function(G,P){let F=G.toLowerCase();if(x.has(F)){let Q=this.getAttribute(F);j.call(this,F,P);let Ie=this.getAttribute(F);w.call(this,F,Q,Ie)}else j.call(this,F,P)})},y=S=>{let x=Object.getPrototypeOf(S);if(x!==window.HTMLElement)return x===t?Object.setPrototypeOf(S,window.HTMLElement):y(x)},b=(S,x,w=!1)=>{Object.setPrototypeOf(S,x.elementClass.prototype),n.set(S,x),d=S;try{new x.elementClass}catch{y(x.elementClass),new x.elementClass}x.attributeChangedCallback&&x.observedAttributes.forEach($=>{S.hasAttribute($)&&x.attributeChangedCallback.call(S,$,null,S.getAttribute($))}),w&&x.connectedCallback&&S.isConnected&&x.connectedCallback.call(S)},C=Element.prototype.attachShadow;Element.prototype.attachShadow=function(S){let x=C.apply(this,arguments);return S.customElements&&(x.customElements=S.customElements),x};let E=[document],L=(S,x,w=void 0)=>{let $=(w?Object.getPrototypeOf(w):S.prototype)[x];S.prototype[x]=function(){E.push(this);let ee=$.apply(w||this,arguments);return ee!==void 0&&l.set(ee,this),E.pop(),ee}};L(ShadowRoot,"createElement",document),L(ShadowRoot,"importNode",document),L(Element,"insertAdjacentHTML");let N=(S,x)=>{let w=Object.getOwnPropertyDescriptor(S.prototype,x);Object.defineProperty(S.prototype,x,{...w,set($){E.push(this),w.set.call(this,$),E.pop()}})};if(N(Element,"innerHTML"),N(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let S=new WeakMap,x=HTMLElement.prototype.attachInternals,w=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...G){let P=x.call(this,...G);return S.set(P,this),P},w.forEach(G=>{let P=window.ElementInternals.prototype,F=P[G];P[G]=function(...Q){let Ie=S.get(this);if(n.get(Ie).formAssociated===!0)return F?.call(this,...Q);throw new DOMException(`Failed to execute ${F} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class $ extends Array{constructor(P){super(...P),this._elements=P}get value(){return this._elements.find(P=>P.checked===!0)?.value||""}}class ee{constructor(P){let F=new Map;P.forEach((Q,Ie)=>{let Ji=Q.getAttribute("name"),Hs=F.get(Ji)||[];this[+Ie]=Q,Hs.push(Q),F.set(Ji,Hs)}),this.length=P.length,F.forEach((Q,Ie)=>{Q&&(Q.length===1?this[Ie]=Q[0]:this[Ie]=new $(Q))})}namedItem(P){return this[P]}}let j=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let G=j.get.call(this,[]),P=[];for(let F of G){let Q=n.get(F);(!Q||Q.formAssociated===!0)&&P.push(F)}return new ee(P)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,i,n)=>{var a;if(i!==null)try{e.bind(window.customElements)(r,i,n)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(r,class extends i{},n):console.info(r,i,n,s)}}}var un={};J(un,{CSSResult:()=>Tr,LitElement:()=>Qe,ReactiveElement:()=>Je,_$LE:()=>ol,_$LH:()=>cn,adoptStyles:()=>mo,css:()=>A,defaultConverter:()=>_r,getCompatibleStyle:()=>ni,html:()=>v,isServer:()=>Mm,mathml:()=>ln,noChange:()=>Se,notEqual:()=>yo,nothing:()=>_,render:()=>dn,supportsAdoptingStyleSheets:()=>ho,svg:()=>sn,unsafeCSS:()=>Xt});var ii=globalThis,ho=ii.ShadowRoot&&(ii.ShadyCSS===void 0||ii.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Qi=Symbol(),Vs=new WeakMap,Tr=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Qi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(ho&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=Vs.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Vs.set(r,e))}return e}toString(){return this.cssText}},Xt=t=>new Tr(typeof t=="string"?t:t+"",void 0,Qi),A=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,a)=>i+(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)+t[a+1],t[0]);return new Tr(r,t,Qi)},mo=(t,e)=>{if(ho)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=ii.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},ni=ho?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return Xt(r)})(t):t;var{is:vu,defineProperty:xu,getOwnPropertyDescriptor:Su,getOwnPropertyNames:Cu,getOwnPropertySymbols:Ou,getPrototypeOf:Eu}=Object,ai=globalThis,Ws=ai.trustedTypes,wu=Ws?Ws.emptyScript:"",Au=ai.reactiveElementPolyfillSupport,go=(t,e)=>t,_r={toAttribute(t,e){switch(e){case Boolean:t=t?wu:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},yo=(t,e)=>!vu(t,e),js={attribute:!0,type:String,converter:_r,reflect:!1,useDefault:!1,hasChanged:yo};Symbol.metadata??=Symbol("metadata"),ai.litPropertyMetadata??=new WeakMap;var Je=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,r=js){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&xu(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:a}=Su(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??js}static _$Ei(){if(this.hasOwnProperty(go("elementProperties")))return;let e=Eu(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(go("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(go("properties"))){let r=this.properties,i=[...Cu(r),...Ou(r)];for(let n of i)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(ni(n))}else e!==void 0&&r.push(ni(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i: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,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return mo(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,r,i){this._$AK(e,i)}_$ET(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:_r).toAttribute(r,i.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:_r;this._$Em=n;let l=s.fromAttribute(r,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,r,i,n=!1,a){if(e!==void 0){let s=this.constructor;if(n===!1&&(a=this[e]),i??=s.getPropertyOptions(e),!((i.hasChanged??yo)(a,r)||i.useDefault&&i.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,i))))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:i,reflect:n,wrapped:a},s){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??r??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}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 i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i){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,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.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(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};Je.elementStyles=[],Je.shadowRootOptions={mode:"open"},Je[go("elementProperties")]=new Map,Je[go("finalized")]=new Map,Au?.({ReactiveElement:Je}),(ai.reactiveElementVersions??=[]).push("2.1.2");var tn=globalThis,Gs=t=>t,si=tn.trustedTypes,Ks=si?si.createPolicy("lit-html",{createHTML:t=>t}):void 0,rn="$lit$",Rt=`lit$${Math.random().toFixed(9).slice(2)}$`,on="?"+Rt,Ru=`<${on}>`,er=document,vo=()=>er.createComment(""),xo=t=>t===null||typeof t!="object"&&typeof t!="function",nn=Array.isArray,Qs=t=>nn(t)||typeof t?.[Symbol.iterator]=="function",en=`[
2
- \f\r]`,bo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qs=/-->/g,Zs=/>/g,Jt=RegExp(`>|${en}(?:([^\\s"'>=/]+)(${en}*=${en}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ys=/'/g,Xs=/"/g,el=/^(?:script|style|textarea|title)$/i,an=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),v=an(1),sn=an(2),ln=an(3),Se=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),Js=new WeakMap,Qt=er.createTreeWalker(er,129);function tl(t,e){if(!nn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ks!==void 0?Ks.createHTML(e):e}var rl=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=bo;for(let l=0;l<r;l++){let d=t[l],u,h,f=-1,g=0;for(;g<d.length&&(s.lastIndex=g,h=s.exec(d),h!==null);)g=s.lastIndex,s===bo?h[1]==="!--"?s=qs:h[1]!==void 0?s=Zs:h[2]!==void 0?(el.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=Jt):h[3]!==void 0&&(s=Jt):s===Jt?h[0]===">"?(s=n??bo,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,u=h[1],s=h[3]===void 0?Jt:h[3]==='"'?Xs:Ys):s===Xs||s===Ys?s=Jt:s===qs||s===Zs?s=bo:(s=Jt,n=void 0);let y=s===Jt&&t[l+1].startsWith("/>")?" ":"";a+=s===bo?d+Ru:f>=0?(i.push(u),d.slice(0,f)+rn+d.slice(f)+Rt+y):d+Rt+(f===-2?l:y)}return[tl(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},So=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[u,h]=rl(e,r);if(this.el=t.createElement(u,i),Qt.currentNode=this.el.content,r===2||r===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=Qt.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(rn)){let g=h[s++],y=n.getAttribute(f).split(Rt),b=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:b[2],strings:y,ctor:b[1]==="."?ci:b[1]==="?"?di:b[1]==="@"?pi:rr}),n.removeAttribute(f)}else f.startsWith(Rt)&&(d.push({type:6,index:a}),n.removeAttribute(f));if(el.test(n.tagName)){let f=n.textContent.split(Rt),g=f.length-1;if(g>0){n.textContent=si?si.emptyScript:"";for(let y=0;y<g;y++)n.append(f[y],vo()),Qt.nextNode(),d.push({type:2,index:++a});n.append(f[g],vo())}}}else if(n.nodeType===8)if(n.data===on)d.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(Rt,f+1))!==-1;)d.push({type:7,index:a}),f+=Rt.length-1}a++}}static createElement(e,r){let i=er.createElement("template");return i.innerHTML=e,i}};function tr(t,e,r=t,i){if(e===Se)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=xo(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=tr(t,n._$AS(t,e.values),n,i)),e}var li=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??er).importNode(r,!0);Qt.currentNode=n;let a=Qt.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let u;d.type===2?u=new Ir(a,a.nextSibling,this,e):d.type===1?u=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(u=new ui(a,this,e)),this._$AV.push(u),d=i[++l]}s!==d?.index&&(a=Qt.nextNode(),s++)}return Qt.currentNode=er,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Ir=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=tr(this,e,r),xo(e)?e===_||e==null||e===""?(this._$AH!==_&&this._$AR(),this._$AH=_):e!==this._$AH&&e!==Se&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Qs(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!==_&&xo(this._$AH)?this._$AA.nextSibling.data=e:this.T(er.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=So.createElement(tl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new li(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=Js.get(e.strings);return r===void 0&&Js.set(e.strings,r=new So(e)),r}k(e){nn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.O(vo()),this.O(vo()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=Gs(e).nextSibling;Gs(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},rr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=_,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=tr(this,e,r,0),s=!xo(e)||e!==this._$AH&&e!==Se,s&&(this._$AH=e);else{let l=e,d,u;for(e=a[0],d=0;d<a.length-1;d++)u=tr(this,l[i+d],r,d),u===Se&&(u=this._$AH[d]),s||=!xo(u)||u!==this._$AH[d],u===_?e=_:e!==_&&(e+=(u??"")+a[d+1]),this._$AH[d]=u}s&&!n&&this.j(e)}j(e){e===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ci=class extends rr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_?void 0:e}},di=class extends rr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==_)}},pi=class extends rr{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=tr(this,e,r,0)??_)===Se)return;let i=this._$AH,n=e===_&&i!==_||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==_&&(i===_||n);n&&this.element.removeEventListener(this.name,this,i),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)}},ui=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){tr(this,e)}},cn={M:rn,P:Rt,A:on,C:1,L:rl,R:li,D:Qs,V:tr,I:Ir,H:rr,N:di,U:pi,B:ci,F:ui},Lu=tn.litHtmlPolyfillSupport;Lu?.(So,Ir),(tn.litHtmlVersions??=[]).push("3.3.3");var dn=(t,e,r)=>{let i=r?.renderBefore??e,n=i._$litPart$;if(n===void 0){let a=r?.renderBefore??null;i._$litPart$=n=new Ir(e.insertBefore(vo(),a),a,void 0,r??{})}return n._$AI(t),n};var pn=globalThis,Qe=class extends Je{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 r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=dn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Se}};Qe._$litElement$=!0,Qe.finalized=!0,pn.litElementHydrateSupport?.({LitElement:Qe});var ku=pn.litElementPolyfillSupport;ku?.({LitElement:Qe});var ol={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(pn.litElementVersions??=[]).push("4.2.2");var Mm=!1;var gn={};J(gn,{customElement:()=>Tu,eventOptions:()=>Iu,property:()=>m,query:()=>M,queryAll:()=>fn,queryAssignedElements:()=>hn,queryAssignedNodes:()=>mn,queryAsync:()=>Nu,standardProperty:()=>il,state:()=>T});var Tu=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var _u={attribute:!0,type:String,converter:_r,reflect:!1,hasChanged:yo},il=(t=_u,e,r)=>{let{kind:i,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),i==="setter"&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),i==="accessor"){let{name:s}=r;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,t,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,t,l),l}}}if(i==="setter"){let{name:s}=r;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,t,!0,l)}}throw Error("Unsupported decorator location: "+i)};function m(t){return(e,r)=>typeof r=="object"?il(t,e,r):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(t,e,r)}function T(t){return m({...t,state:!0,attribute:!1})}function Iu(t){return(e,r)=>{let i=typeof e=="function"?e:e[r];Object.assign(i,t)}}var nt=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function M(t,e){return(r,i,n)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof i=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(u){this[d]=u}}})();return nt(r,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return nt(r,i,{get(){return a(this)}})}}var Pu;function fn(t){return(e,r)=>nt(e,r,{get(){return(this.renderRoot??(Pu??=document.createDocumentFragment())).querySelectorAll(t)}})}function Nu(t){return(e,r)=>nt(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function hn(t){return(e,r)=>{let{slot:i,selector:n}=t??{},a="slot"+(i?`[name=${i}]`:":not([name])");return nt(e,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(t)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function mn(t){return(e,r)=>{let{slot:i}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return nt(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var yn={};J(yn,{repeat:()=>me});var mt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},He=t=>(...e)=>({_$litDirective$:t,values:e}),et=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:Du}=cn,nl=t=>t;var sl=t=>t.strings===void 0,al=()=>document.createComment(""),Pr=(t,e,r)=>{let i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=i.insertBefore(al(),n),s=i.insertBefore(al(),n);r=new Du(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==t;if(l){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==s._$AU&&r._$AP(d)}if(a!==n||l){let d=r._$AA;for(;d!==a;){let u=nl(d).nextSibling;nl(i).insertBefore(d,n),d=u}}}return r},Dt=(t,e,r=t)=>(t._$AI(e,r),t),$u={},ll=(t,e=$u)=>t._$AH=e,cl=t=>t._$AH,fi=t=>{t._$AR(),t._$AA.remove()};var dl=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},me=He(class extends et{constructor(t){if(super(t),t.type!==mt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],a=[],s=0;for(let l of t)n[s]=i?i(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,i]){let n=cl(t),{values:a,keys:s}=this.dt(e,r,i);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],u,h,f=0,g=n.length-1,y=0,b=a.length-1;for(;f<=g&&y<=b;)if(n[f]===null)f++;else if(n[g]===null)g--;else if(l[f]===s[y])d[y]=Dt(n[f],a[y]),f++,y++;else if(l[g]===s[b])d[b]=Dt(n[g],a[b]),g--,b--;else if(l[f]===s[b])d[b]=Dt(n[f],a[b]),Pr(t,d[b+1],n[f]),f++,b--;else if(l[g]===s[y])d[y]=Dt(n[g],a[y]),Pr(t,n[f],n[g]),g--,y++;else if(u===void 0&&(u=dl(s,y,b),h=dl(l,f,g)),u.has(l[f]))if(u.has(l[g])){let C=h.get(s[y]),E=C!==void 0?n[C]:null;if(E===null){let L=Pr(t,n[f]);Dt(L,a[y]),d[y]=L}else d[y]=Dt(E,a[y]),Pr(t,n[f],E),n[C]=null;y++}else fi(n[g]),g--;else fi(n[f]),f++;for(;y<=b;){let C=Pr(t,d[b+1]);Dt(C,a[y]),d[y++]=C}for(;f<=g;){let C=n[f++];C!==null&&fi(C)}return this.ut=s,ll(t,d),Se}});var bn={};J(bn,{classMap:()=>ae});var ae=He(class extends et{constructor(t){if(super(t),t.type!==mt.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}let r=t.element.classList;for(let i of this.st)i in e||(r.remove(i),this.st.delete(i));for(let i in e){let n=!!e[i];n===this.st.has(i)||this.nt?.has(i)||(n?(r.add(i),this.st.add(i)):(r.remove(i),this.st.delete(i)))}return Se}});var vn={};J(vn,{styleMap:()=>Fu});var pl="important",Mu=" !"+pl,Fu=He(class extends et{constructor(t){if(super(t),t.type!==mt.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{let i=t[r];return i==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ft.add(i);let a=typeof n=="string"&&n.endsWith(Mu);i.includes("-")||a?r.setProperty(i,a?n.slice(0,-11):n,a?pl:""):r[i]=n}}return Se}});var Sn={};J(Sn,{UnsafeHTMLDirective:()=>Nr,unsafeHTML:()=>xn});var Nr=class extends et{constructor(e){if(super(e),this.it=_,e.type!==mt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===_||e==null)return this._t=void 0,this.it=e;if(e===Se)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 r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Nr.directiveName="unsafeHTML",Nr.resultType=1;var xn=He(Nr);var In={};J(In,{CacheRegistry:()=>gt,ClearCacheEvent:()=>Ao});var On={};J(On,{CancelablePromise:()=>hi,CanceledPromiseError:()=>or,cancelable:()=>Cn});var or=class extends Error{constructor(e,r,i){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=i}},hi=class extends Promise{constructor(e){super((r,i)=>e(n=>{this.isCanceled?i(new or("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?i(new or("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Cn=t=>new hi((e,r)=>t.then(e).catch(r));var _n={};J(_n,{FtNotificationEvent:()=>wo,PostResizeEvent:()=>Tn,PreResizeEvent:()=>kn,WithEventBus:()=>Lt,withEventBus:()=>bi});var Ln={};J(Ln,{applyMixinOnce:()=>Ee,customElements:()=>K,dateReviver:()=>Hu,deepCopy:()=>at,deepEqual:()=>ge,delay:()=>mi,eventPathContainsMatchingElement:()=>wn,everyDeep:()=>zu,flatDeep:()=>Ve,forEachDeep:()=>fl,getComposedPathTo:()=>Rn,hasChanged:()=>st,ignoreComposingEvents:()=>Eo,last:()=>An,minmax:()=>ir,parseDate:()=>ml,randomId:()=>Wu,someDeep:()=>hl,unslotText:()=>yi,waitFor:()=>gi,waitUntil:()=>Oo});var En={};J(En,{customElement:()=>Co,dateProperty:()=>Uu,isNumber:()=>ul,jsonProperty:()=>ce,numberProperty:()=>$t,optionalNumberProperty:()=>Bu});var Co=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function ce(t,e){return m({type:Object,converter:{fromAttribute:r=>{if(r==null)return at(t);try{return JSON.parse(r)}catch{return at(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:st,...e??{}})}function Bu(t){return $t(t)}function $t(t){return m({type:Object,converter:{fromAttribute:e=>{var r,i;if(e==null)return;let n=(r=t?.min)!==null&&r!==void 0?r:-1/0,a=(i=t?.max)!==null&&i!==void 0?i:1/0;return ul(e)?ir(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function ul(t){return!isNaN(parseFloat(t))}function Uu(t){return m({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let r=new Date(Date.parse(e));if(!isNaN(r.valueOf()))return r},toAttribute:e=>e?.toISOString()},useDefault:!0,...t??{}})}var mi=t=>new Promise(e=>setTimeout(e,t));async function Oo(t,e=10,r=2e4){await gi(async()=>await t()||void 0,e,r)}async function gi(t,e=10,r=2e4){let i=await t(),n=performance.now(),a=n;for(;i==null&&(!r||a-n<r);)await mi(e),i=await t(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Ve(t,e){return t.flatMap(r=>[r,...Ve(e(r),e)])}function fl(t,e,r){let i=(n,a)=>{var s;for(let l=0;l<n.length;l++){let d=n[l];if(!(((s=r(d,l,n,a))!==null&&s!==void 0?s:!0)&&i(e(d),[...a,d])))return!1}return!0};i(t,[])}function hl(t,e,r){let i=!1;return fl(t,e,(n,a,s,l)=>(i=!!r(n,a,s,l),!i)),i}function zu(t,e,r){return!hl(t,e,(i,n,a,s)=>!r(i,n,a,s))}function Hu(...t){return(e,r)=>t.includes(e)?ml(r):r}function ml(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,i,n)=>r+i+":"+n),new Date(t)}function Vu(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!ge(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!ge(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(l=>s[l]!=null),a=n(t);if(r=a.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[i]))return!1;for(i=r;i--!==0;){let s=a[i];if(!ge(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ge(t,e){try{return Vu(t,e)}catch{return!1}}function st(t,e){return!ge(t,e)}function wn(t,e,r=window.document.body){if(e.length>0){let i=t.composedPath();for(let n of i){if(n===r)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function ir(t,e,r){return Math.min(Math.max(t,e),r)}function An(t){return t[t.length-1]}function yi(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>yi(e)).join(""):t?.textContent||""}function Rn(t){let e=[],r=i=>{i.stopPropagation(),e=i.composedPath()};return t.addEventListener("get-composed-path",r),t.dispatchEvent(new Event("get-composed-path",{composed:!0})),t.removeEventListener("get-composed-path",r),e}function at(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Wu(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function Ee(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}function Eo(){return function(t,e,r){let i=r.value;r.value=function(n,...a){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return i.apply(this,[n].concat(a))}}}function K(t){for(let[e,r]of Object.entries(t))Co(e)(r)}var wo=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},kn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Tn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},bi=Ee(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Lt=class extends bi(Object){};var Ao=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},gt=class extends Lt{constructor(){super(...arguments),this.content={}}register(e,r,i=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:r,final:i,status:s}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let i=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return r&&i.length>0&&this.dispatchEvent(new Ao(i)),i}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new Ao([e])),e}forceClear(e){var r;let i=this.content[e];i&&(this.clearClearTimeout(e),(r=i.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:i.loader,final:i.final,status:"REGISTERED"})}clearClearTimeout(e){var r,i,n;((r=this.content[e])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((i=this.content[e])===null||i===void 0?void 0:i.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,r,i=!1){this.forceClear(e);let n=async()=>r,a="RESOLVED";this.content[e]={loader:n,final:i,status:a,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,i){if(!this.isRegistered(e)){if(!r)throw new Error("Unknown cache key "+e);this.register(e,r)}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 r=r??n.loader,n.status="LOADING",n.promise=Cn(r()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,i!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),i)),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 r;return(r=this.content[e])===null||r===void 0?void 0:r.value}has(e){var r,i;return((r=this.content[e])===null||r===void 0?void 0:r.status)!==void 0&&((i=this.content[e])===null||i===void 0?void 0:i.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var r;return((r=this.content[e])===null||r===void 0?void 0:r.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var Mn={};J(Mn,{ClusteringHelper:()=>$n,formatHierarchicalValues:()=>Dn});var Nn={};J(Nn,{accessBreadcrumb:()=>Ku,accessResult:()=>Pn,accessResultId:()=>ju,accessResultUrl:()=>Gu});function Pn(t){var e,r,i,n;return(n=(i=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&i!==void 0?i:t?.htmlPackage)!==null&&n!==void 0?n:t?.htmlPackagePage}function ju(t){var e,r,i,n,a,s,l,d,u;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&r!==void 0?r:(i=t?.topic)===null||i===void 0?void 0:i.tocId)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.documentId)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.packageId)!==null&&d!==void 0?d:(u=t?.htmlPackagePage)===null||u===void 0?void 0:u.contentId}function Gu(t){var e,r,i,n,a,s,l,d,u;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.readerUrl)!==null&&r!==void 0?r:(i=t?.topic)===null||i===void 0?void 0:i.readerUrl)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.viewerUrl)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.viewerUrl)!==null&&d!==void 0?d:(u=t?.htmlPackagePage)===null||u===void 0?void 0:u.viewerUrl}function Ku(t){return t?.topic?[t.topic.mapTitle,...t.topic.breadcrumb]:t?.map?[t.map.title]:t?.document?[t.document.title]:t?.htmlPackage?[t.htmlPackage.title]:t?.htmlPackagePage?[t.htmlPackagePage.packageTitle,t.htmlPackagePage.title]:[]}function Dn(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var $n=class t{constructor(e,r,i,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=i,this.metadataDescriptors=n}static findResultWithMetadataValue(e,r,i){return e?.find(n=>{var a;return((a=this.extractResultMetadata({result:n}).find(s=>s.key==r))===null||a===void 0?void 0:a.value)==i})}static extractResultMetadata(e){var r,i;let n=(i=(r=Pn(e.result))===null||r===void 0?void 0:r.metadata)!==null&&i!==void 0?i:[];return e.key==null?t.flattenMetadata(n,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(n.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,i){if(Array.isArray(e))return e.map(a=>t.flattenMetadata(a,r,i)).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(Dn(l)),s.push(Dn(l,r))}),{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=>i?i(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,r,i="No value",n,a){var s,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),u=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(f=>t.extractResultMetadata({result:f,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(f=>f??{key:e,label:u,value:void 0,displayValue:i}).filter(f=>f.value!=d?.value).filter((f,g,y)=>y.findIndex(b=>b.value===f.value)===g).map(f=>({result:this.findBestResultForMetadataValue(e,f.value),metadata:f})).sort((f,g)=>this.compareMetadata(f.metadata.value,g.metadata.value,e,r))}compareMetadata(e,r,i,n){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let i=this.allResults.filter(d=>{var u;return((u=t.extractResultMetadata({result:d,key:e}))===null||u===void 0?void 0:u.value)==r}),a=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of i){let u=this.countMatchingMetadata(d,a);if(u>l&&(l=u,s=d,u===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(i=>r.some(n=>n.key===i.key&&n.value===i.value)).length}};var Fn={};J(Fn,{Debouncer:()=>re});var re=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)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}};var Hn={};J(Hn,{designSystemVariables:()=>O});var zn={};J(zn,{DesignSystemFamily:()=>Ro,DesignSystemSize:()=>Lo,FtCssVariableFactory:()=>o,badge:()=>lf,banner:()=>sf,button:()=>Yu,card:()=>Xu,chart:()=>Ef,checkbox:()=>Qu,chip:()=>of,chipChoice:()=>rf,chipGroup:()=>nf,collapsible:()=>Cf,combobox:()=>xf,dateRangePicker:()=>Tf,drawer:()=>mf,floatingMenu:()=>vf,foundation:()=>c,link:()=>af,modal:()=>ff,notice:()=>Af,notification:()=>Lf,pageDesigner:()=>wf,pageFooter:()=>pf,pageHeader:()=>df,pageLayout:()=>uf,popover:()=>Sf,radio:()=>ef,reorderableList:()=>hf,resolveFamilyClass:()=>Bn,resolveSizeClass:()=>Un,semantic:()=>p,setVariable:()=>R,switch_:()=>Of,table:()=>tf,tabs:()=>gf,textArea:()=>bf,textInput:()=>yf,titleBreadcrumb:()=>cf,toggle:()=>Rf,tooltip:()=>kf,treeList:()=>Ju,typographies:()=>qu,typographyBody1Medium:()=>Sl,typographyBody1Regular:()=>xl,typographyBody1Semibold:()=>Cl,typographyBody2Medium:()=>El,typographyBody2MediumUnderline:()=>wl,typographyBody2Regular:()=>Ol,typographyBody2Semibold:()=>Al,typographyCaption1Medium:()=>Rl,typographyCaption1Semibold:()=>Ll,typographyCaption2Bold:()=>_l,typographyCaption2Medium:()=>kl,typographyCaption2Semibold:()=>Tl,typographyDisplay:()=>gl,typographyTitle1:()=>yl,typographyTitle2:()=>bl,typographyTitle3:()=>vl,typographyVariants:()=>Zu});var Mt=t=>typeof t=="string"?Xt(t):t,o=class{static create(e,r,i,n){let a=l=>Mt(l??n),s=A`var(${Mt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>R(s,l??a(n)),s.get=l=>A`var(${Mt(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=l=>i.get(l??n),s=A`var(${Mt(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>R(s,l??a(n)),s.get=l=>A`var(${Mt(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.defaultCssValue(a),n=A`var(${Mt(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>A`var(${Mt(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function R(t,e){return Mt(`${t.name}: ${e}`)}var c={colorWhite:o.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:o.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:o.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:o.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:o.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:o.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:o.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:o.create("--ftds-opacity-0","","NUMBER","0"),opacity4:o.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:o.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:o.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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)")},gl={fontFamily:o.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-display-text-case","","UNKNOWN","none")},yl={fontFamily:o.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},bl={fontFamily:o.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},vl={fontFamily:o.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},xl={fontFamily:o.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Sl={fontFamily:o.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Cl={fontFamily:o.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Ol={fontFamily:o.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},El={fontFamily:o.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},wl={fontFamily:o.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Al={fontFamily:o.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Rl={fontFamily:o.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Ll={fontFamily:o.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},kl={fontFamily:o.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Tl={fontFamily:o.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},_l={fontFamily:o.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},qu={display:gl,"title-1":yl,"title-2":bl,"title-3":vl,"body-1-regular":xl,"body-1-medium":Sl,"body-1-semibold":Cl,"body-2-regular":Ol,"body-2-medium":El,"body-2-medium-underline":wl,"body-2-semibold":Al,"caption-1-medium":Rl,"caption-1-semibold":Ll,"caption-2-medium":kl,"caption-2-semibold":Tl,"caption-2-bold":_l},Zu=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var p={backgroundActionPrimary:o.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
- Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:o.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:o.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var Yu={largeHeight:o.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ftds-button-primary-brand-background-color","",p.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",p.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",p.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",p.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-button-focus-focus-ring-color","",p.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",p.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",p.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",p.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ftds-button-tertiary-info-color","",p.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",p.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",p.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ftds-button-tertiary-success-color","",p.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",p.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",p.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ftds-button-tertiary-warning-color","",p.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",p.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",p.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ftds-button-tertiary-error-color","",p.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",p.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",p.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ftds-button-tertiary-neutral-icon-color","",p.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",p.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",p.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ftds-button-secondary-brand-color","",p.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",p.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",p.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ftds-button-secondary-brand-border-color","",p.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ftds-button-secondary-neutral-color","",p.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",p.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",p.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",p.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ftds-button-secondary-info-border-color","",p.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",p.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",p.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",p.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ftds-button-secondary-success-border-color","",p.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",p.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",p.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",p.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ftds-button-secondary-warning-border-color","",p.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",p.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",p.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",p.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ftds-button-secondary-error-border-color","",p.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",p.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",p.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",p.contentErrorPrimary)};var Xu={borderRadius:o.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:o.extend("--ftds-card-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:o.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:o.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:o.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:o.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:o.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:o.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:o.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:o.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:o.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:o.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:o.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:o.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:o.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:o.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:o.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:o.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:o.extend("--ftds-card-non-selectable-state-layer-color","",p.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:o.extend("--ftds-card-non-selectable-default-background-color","",p.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:o.extend("--ftds-card-non-selectable-default-border-color","",p.borderGlobalSecondary),nonSelectableHoverBorderColor:o.extend("--ftds-card-non-selectable-hover-border-color","",p.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:o.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:o.extend("--ftds-card-non-selectable-focus-border-color","",p.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:o.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:o.extend("--ftds-card-internal-border-color","",p.borderGlobalSecondary),selectableUnselectedBorderWidth:o.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:o.extend("--ftds-card-selectable-unselected-state-layer-color","",p.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:o.extend("--ftds-card-selectable-unselected-default-background-color","",p.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:o.extend("--ftds-card-selectable-unselected-default-border-color","",p.borderGlobalSecondary),selectableUnselectedHoverBorderColor:o.extend("--ftds-card-selectable-unselected-hover-border-color","",p.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:o.extend("--ftds-card-selectable-unselected-focus-border-color","",p.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:o.extend("--ftds-card-selectable-selected-border-color","",p.borderActionPrimary),selectableSelectedBorderWidth:o.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:o.extend("--ftds-card-selectable-selected-state-layer-color","",p.contentActionPrimary),selectableSelectedBackgroundColor:o.extend("--ftds-card-selectable-selected-background-color","",p.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:o.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:o.create("--ftds-card-internal-border-width","","SIZE","1px")};var Ju={loadMoreIconSize:o.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:o.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-unselected-default-border-color","",p.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",p.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",p.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:o.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:o.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:o.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-node-unselected-default-border-color","",p.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",p.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",p.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",p.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",p.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",p.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",p.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",p.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",p.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",p.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:o.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ftds-tree-list-header-section-color","",p.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",p.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",p.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",p.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:o.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:o.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:o.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:o.extend("--ftds-tree-list-empty-state-title-label-color","",p.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",p.contentGlobalSecondary)};var Qu={iconSize:o.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:o.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing1),color:o.extend("--ftds-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",p.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-checkbox-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:o.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:o.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:o.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:o.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:o.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:o.extend("--ftds-checkbox-error-unchecked-border-color","",p.borderErrorPrimary),errorStateLayerColor:o.extend("--ftds-checkbox-error-state-layer-color","",p.contentErrorPrimary),errorHelperTextColor:o.extend("--ftds-checkbox-error-helper-text-color","",p.borderErrorPrimary),errorCheckedBackgroundColor:o.extend("--ftds-checkbox-error-checked-background-color","",p.contentErrorPrimary),helperTextColor:o.extend("--ftds-checkbox-helper-text-color","",p.contentGlobalSubtle),groupVerticalGap:o.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var ef={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",p.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",p.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ftds-radio-unselected-state-layer-color","",p.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",p.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-radio-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var tf={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",p.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",p.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",p.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",p.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",p.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",p.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ftds-table-data-row-selectable-selected-color","",p.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ftds-table-data-row-clickable-focus-border-color","",p.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var rf={neutralOffHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",p.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ftds-chip-choice-neutral-off-background-color","",p.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",p.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",p.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",p.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",p.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ftds-chip-choice-neutral-on-background-color","",p.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",p.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",p.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",p.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",p.contentGlobalPrimary),largeMinHeight:o.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var of={largeMinHeight:o.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ftds-chip-neutral-background-color","",p.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",p.borderGlobalSecondary),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",p.borderErrorSubtle)};var nf={horizontalGap:o.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:o.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:o.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:o.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:o.extend("--ftds-chip-group-count-chip-default-content-color","",p.contentActionPrimary),countChipHoverBackgroundColor:o.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:o.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:o.extend("--ftds-chip-group-count-chip-hover-content-color","",p.contentActionPrimary),countChipFocusedBackgroundColor:o.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:o.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:o.extend("--ftds-chip-group-count-chip-focused-content-color","",p.contentActionPrimary)};var af={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",p.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",p.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",p.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",p.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",p.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",p.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",p.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",p.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",p.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",p.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",p.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",p.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",p.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",p.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",p.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:o.extend("--ftds-link-horizontal-gap","",c.spacing1)};var sf={iconSize:o.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ftds-banner-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",p.borderInfoSubtle)};var lf={horizontalPadding:o.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ftds-badge-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",p.contentActionPrimary)};var cf={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",p.contentGlobalSubtle)};var df={parentHorizontalPadding:o.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ftds-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",p.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",p.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ftds-page-header-bottom-border-color","",p.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var pf={horizontalPadding:o.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ftds-page-footer-top-border-color","",p.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var uf={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var ff={smallContainerTargetWidth:o.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:o.extend("--ftds-modal-header-icon-size","",c.iconSize3),headerBackgroundColor:o.extend("--ftds-modal-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",p.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",p.contentGlobalPrimary),headerVerticalPadding:o.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:o.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ftds-modal-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ftds-modal-body-vertical-gap","",c.spacing6),borderRadius:o.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var hf={grabberIconSize:o.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize3),verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ftds-reorderable-list-reorderable-item-title-color","",p.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",p.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ftds-reorderable-list-reorderable-item-background-color","",p.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",p.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",p.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",p.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ftds-reorderable-list-border-color","",p.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",p.backgroundGlobalOnSurfaceDark)};var mf={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ftds-drawer-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",p.contentGlobalSecondary),headerHeight:o.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ftds-drawer-buttons-bar-background-color","",p.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",p.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",p.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var gf={offBorderBottomWidth:o.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-tabs-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",p.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",p.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ftds-tabs-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",p.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",p.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-tabs-focus-focus-ring-color","",p.borderActionFocusRing),mainIconIconSize:o.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:o.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var yf={largeFieldHorizontalPadding:o.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-input-content-value-color","",p.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",p.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-input-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",p.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-text-input-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var bf={backgroundColor:o.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-area-content-value-color","",p.contentGlobalPrimary),labelColor:o.extend("--ftds-text-area-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-area-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-area-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-area-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-area-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-area-error-helper-icon-color","",p.contentErrorIconOnly),focusFocusRingColor:o.extend("--ftds-text-area-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-area-border-radius","",c.borderRadiusS)};var vf={height:o.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:o.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:o.extend("--ftds-floating-menu-off-icon-color","",p.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",p.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",p.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:o.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ftds-floating-menu-background-color","",p.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",p.contentActionPrimary),multiselectCheckedColor:o.extend("--ftds-floating-menu-multiselect-checked-color","",p.contentGlobalPrimary),multiselectCheckedIconColor:o.extend("--ftds-floating-menu-multiselect-checked-icon-color","",p.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",p.contentActionPrimary),multiselectIndeterminatedColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-color","",p.contentGlobalPrimary),multiselectIndeterminatedIconColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",p.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",p.contentGlobalPrimary),multiselectUncheckedColor:o.extend("--ftds-floating-menu-multiselect-unchecked-color","",p.contentGlobalPrimary),multiselectUncheckedIconColor:o.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",p.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",p.contentActionPrimary),selectAllCheckedColor:o.extend("--ftds-floating-menu-select-all-checked-color","",p.contentGlobalPrimary),selectAllCheckedIconColor:o.extend("--ftds-floating-menu-select-all-checked-icon-color","",p.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",p.contentGlobalPrimary),selectAllIndeterminatedColor:o.extend("--ftds-floating-menu-select-all-indeterminated-color","",p.contentGlobalPrimary),selectAllIndeterminatedIconColor:o.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",p.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",p.contentGlobalPrimary),selectAllUncheckedColor:o.extend("--ftds-floating-menu-select-all-unchecked-color","",p.contentGlobalPrimary),selectAllUncheckedIconColor:o.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",p.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:o.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",p.contentGlobalPrimary),defaultUncheckedColor:o.extend("--ftds-floating-menu-default-unchecked-color","",p.contentGlobalPrimary),defaultUncheckedIconColor:o.extend("--ftds-floating-menu-default-unchecked-icon-color","",p.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:o.extend("--ftds-floating-menu-default-checked-state-layer-color","",p.contentActionPrimary),defaultCheckedColor:o.extend("--ftds-floating-menu-default-checked-color","",p.contentActionPrimary),defaultCheckedIconColor:o.extend("--ftds-floating-menu-default-checked-icon-color","",p.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var xf={menuVerticalGap:o.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:o.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:o.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:o.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:o.extend("--ftds-combobox-menu-new-value-label-color","",p.contentGlobalSubtle),menuNewValueBorderColor:o.extend("--ftds-combobox-menu-new-value-border-color","",p.borderGlobalPrimary),menuNewValueBorderWidth:o.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:o.extend("--ftds-combobox-menu-new-value-error-background-color","",p.backgroundErrorSubtle),menuNewValueErrorBorderColor:o.extend("--ftds-combobox-menu-new-value-error-border-color","",p.borderErrorPrimary),menuNewValueErrorStateLayerColor:o.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",p.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:o.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:o.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:o.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:o.extend("--ftds-combobox-menu-message-label-color","",p.contentGlobalSubtle),valuesChipBackgroundColor:o.extend("--ftds-combobox-values-chip-background-color","",p.backgroundGlobalOnSurface),valuesChipBorderColor:o.extend("--ftds-combobox-values-chip-border-color","",p.borderInputPrimary)};var Sf={backgroundColor:o.extend("--ftds-popover-background-color","",p.backgroundGlobalOnSurface),titleColor:o.extend("--ftds-popover-title-color","",p.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",p.contentGlobalSecondary),gap:o.extend("--ftds-popover-gap","",c.spacing2),borderRadius:o.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:o.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:o.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:o.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:o.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:o.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:o.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:o.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var Cf={hoverStateLayerOpacity:o.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ftds-collapsible-focus-focus-ring-color","",p.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ftds-collapsible-color","",p.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",p.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",p.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",p.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var Of={groupHorizontalPadding:o.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ftds-switch-group-background-color","",p.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",p.borderGlobalSubtle),groupBorderRadius:o.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-switch-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ftds-switch-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",p.contentActionPrimary),iconHorizontalPadding:o.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-switch-focus-focus-ring-color","",p.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var Ef={color1Light:o.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:o.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:o.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:o.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ftds-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var wf={color1IconColor:o.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Af={borderWidth:o.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ftds-notice-gap","",c.spacing2),iconSize:o.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ftds-notice-info-background-color","",p.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",p.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",p.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",p.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",p.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",p.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",p.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",p.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",p.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",p.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",p.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",p.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ftds-notice-dense-border-width","","SIZE","0")};var Rf={offHoverStateLayerOpacity:o.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ftds-toggle-off-background-color","",p.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ftds-toggle-on-background-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",p.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",p.contentActionPrimary),color:o.extend("--ftds-toggle-color","",p.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",p.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",c.spacing3)};var Lf={iconSize:o.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ftds-notification-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",p.borderErrorSubtle),borderRadius:o.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ftds-notification-trailing-gap","",c.spacing8)};var kf={horizontalPadding:o.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ftds-tooltip-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",p.contentGlobalPrimary),backgroundOpacity:o.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ftds-tooltip-gap","",c.spacing05)};var Tf={menuHorizontalPadding:o.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var Ro;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Ro||(Ro={}));var Lo;(function(t){t.large="large",t.medium="medium",t.small="small"})(Lo||(Lo={}));function Bn(t){return`ftds--family-${t}`}function Un(t){return`ftds--size-${t}`}var O={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:o.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:o.create("--ft-color-warning","","COLOR","#B74706"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:o.create("--ft-color-success","","COLOR","#187856"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Vn={};J(Vn,{DynamicImporter:()=>vi,dynamicImporter:()=>_f});var vi=class{async import(e){if(e)return import(e)}},_f=new vi;var oa={};J(oa,{computeOffsetAutoPosition:()=>ra,computeOffsetPosition:()=>ta});var Pl=["top","right","bottom","left"],Il=["start","end"],jn=Pl.reduce((t,e)=>t.concat(e,e+"-"+Il[0],e+"-"+Il[1]),[]),nr=Math.min,yt=Math.max,ko=Math.round;var bt=t=>({x:t,y:t}),If={left:"right",right:"left",bottom:"top",top:"bottom"};function Nl(t,e,r){return yt(t,nr(e,r))}function Dr(t,e){return typeof t=="function"?t(e):t}function ar(t){return t.split("-")[0]}function vt(t){return t.split("-")[1]}function Gn(t){return t==="x"?"y":"x"}function Kn(t){return t==="y"?"height":"width"}function $r(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function qn(t){return Gn($r(t))}function Dl(t,e,r){r===void 0&&(r=!1);let i=vt(t),n=qn(t),a=Kn(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Wn(s)),[s,Wn(s)]}function $l(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Wn(t){let e=ar(t);return If[e]+t.slice(e.length)}function Pf(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function Ml(t){return typeof t!="number"?Pf(t):{top:t,right:t,bottom:t,left:t}}function sr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function Fl(t,e,r){let{reference:i,floating:n}=t,a=$r(e),s=qn(e),l=Kn(s),d=ar(e),u=a==="y",h=i.x+i.width/2-n.width/2,f=i.y+i.height/2-n.height/2,g=i[l]/2-n[l]/2,y;switch(d){case"top":y={x:h,y:i.y-n.height};break;case"bottom":y={x:h,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:f};break;case"left":y={x:i.x-n.width,y:f};break;default:y={x:i.x,y:i.y}}let b=vt(e);return b&&(y[s]+=g*(b==="end"?1:-1)*(r&&u?-1:1)),y}async function Bl(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=t,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:g=!1,padding:y=0}=Dr(e,t),b=Ml(y),E=l[g?f==="floating"?"reference":"floating":f],L=sr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(E)))==null||r?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:h,strategy:d})),N=f==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),x=await(a.isElement==null?void 0:a.isElement(S))&&await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1},w=sr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:S,strategy:d}):N);return{top:(L.top-w.top+b.top)/x.y,bottom:(w.bottom-L.bottom+b.bottom)/x.y,left:(L.left-w.left+b.left)/x.x,right:(w.right-L.right+b.right)/x.x}}var Nf=50,Ul=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:Bl},d=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:h,y:f}=Fl(u,i,d),g=i,y=0,b={};for(let C=0;C<a.length;C++){let E=a[C];if(!E)continue;let{name:L,fn:N}=E,{x:S,y:x,data:w,reset:$}=await N({x:h,y:f,initialPlacement:i,placement:g,strategy:n,middlewareData:b,rects:u,platform:l,elements:{reference:t,floating:e}});h=S??h,f=x??f,b[L]={...b[L],...w},$&&y<Nf&&(y++,typeof $=="object"&&($.placement&&(g=$.placement),$.rects&&(u=$.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):$.rects),{x:h,y:f}=Fl(u,g,d)),C=-1)}return{x:h,y:f,placement:g,strategy:n,middlewareData:b}};function Df(t,e,r){return(t?[...r.filter(n=>vt(n)===t),...r.filter(n=>vt(n)!==t)]:r.filter(n=>ar(n)===n)).filter(n=>t?vt(n)===t||(e?$l(n)!==n:!1):!0)}var zl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:u}=e,{crossAxis:h=!1,alignment:f,allowedPlacements:g=jn,autoAlignment:y=!0,...b}=Dr(t,e),C=f!==void 0||g===jn?Df(f||null,y,g):g,E=((r=s.autoPlacement)==null?void 0:r.index)||0,L=C[E];if(L==null)return{};if(l!==L)return{reset:{placement:C[0]}};let N=await d.detectOverflow(e,b),S=Dl(L,a,await(d.isRTL==null?void 0:d.isRTL(u.floating))),x=[N[ar(L)],N[S[0]],N[S[1]]],w=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:L,overflows:x}],$=C[E+1];if($)return{data:{index:E+1,overflows:w},reset:{placement:$}};let ee=w.map(P=>{let F=vt(P.placement);return[P.placement,F&&h?P.overflows.slice(0,2).reduce((Q,Ie)=>Q+Ie,0):P.overflows[0],P.overflows]}).sort((P,F)=>P[1]-F[1]),G=((n=ee.filter(P=>P[2].slice(0,vt(P[0])?2:3).every(F=>F<=0))[0])==null?void 0:n[0])||ee[0][0];return G!==l?{data:{index:E+1,overflows:w},reset:{placement:G}}:{}}}};var $f=new Set(["left","top"]);async function Mf(t,e){let{placement:r,platform:i,elements:n}=t,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=ar(r),l=vt(r),d=$r(r)==="y",u=$f.has(s)?-1:1,h=a&&d?-1:1,f=Dr(e,t),{mainAxis:g,crossAxis:y,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof b=="number"&&(y=l==="end"?b*-1:b),d?{x:y*h,y:g*u}:{x:g*u,y:y*h}}var Hl=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,i;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await Mf(e,t);return s===((r=l.offset)==null?void 0:r.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},Vl=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:N=>{let{x:S,y:x}=N;return{x:S,y:x}}},...u}=Dr(t,e),h={x:r,y:i},f=await a.detectOverflow(e,u),g=$r(n),y=Gn(g),b=h[y],C=h[g],E=(N,S)=>Nl(S+f[N==="y"?"top":"left"],S,S-f[N==="y"?"bottom":"right"]);s&&(b=E(y,b)),l&&(C=E(g,C));let L=d.fn({...e,[y]:b,[g]:C});return{...L,data:{x:L.x-r,y:L.y-i,enabled:{[y]:s,[g]:l}}}}}};var Wl=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:i,platform:n,elements:a}=e,{apply:s=()=>{},...l}=Dr(t,e),d=await n.detectOverflow(e,l),u=ar(r),h=vt(r),f=$r(r)==="y",{width:g,height:y}=i.floating,b,C;u==="top"||u==="bottom"?(b=u,C=h===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(C=u,b=h==="end"?"top":"bottom");let E=y-d.top-d.bottom,L=g-d.left-d.right,N=nr(y-d[b],E),S=nr(g-d[C],L),x=e.middlewareData.shift,w=!x,$=N,ee=S;x!=null&&x.enabled.x&&(ee=L),x!=null&&x.enabled.y&&($=E),w&&!h&&(f?ee=g-2*yt(d.left,d.right):$=y-2*yt(d.top,d.bottom)),await s({...e,availableWidth:ee,availableHeight:$});let j=await n.getDimensions(a.floating);return g!==j.width||y!==j.height?{reset:{rects:!0}}:{}}}};function Si(){return typeof window<"u"}function cr(t){return Gl(t)?(t.nodeName||"").toLowerCase():"#document"}function Be(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function kt(t){var e;return(e=(Gl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Gl(t){return Si()?t instanceof Node||t instanceof Be(t).Node:!1}function lt(t){return Si()?t instanceof Element||t instanceof Be(t).Element:!1}function Tt(t){return Si()?t instanceof HTMLElement||t instanceof Be(t).HTMLElement:!1}function jl(t){return!Si()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Be(t).ShadowRoot}function To(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=ct(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function Kl(t){return/^(table|td|th)$/.test(cr(t))}function _o(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Ff=/transform|translate|scale|rotate|perspective|filter/,Bf=/paint|layout|strict|content/,lr=t=>!!t&&t!=="none",Zn;function Mr(t){let e=lt(t)?ct(t):t;return lr(e.transform)||lr(e.translate)||lr(e.scale)||lr(e.rotate)||lr(e.perspective)||!Ci()&&(lr(e.backdropFilter)||lr(e.filter))||Ff.test(e.willChange||"")||Bf.test(e.contain||"")}function ql(t){let e=Ft(t);for(;Tt(e)&&!Fr(e);){if(Mr(e))return e;if(_o(e))return null;e=Ft(e)}return null}function Ci(){return Zn==null&&(Zn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Zn}function Fr(t){return/^(html|body|#document)$/.test(cr(t))}function ct(t){return Be(t).getComputedStyle(t)}function Io(t){return lt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ft(t){if(cr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||jl(t)&&t.host||kt(t);return jl(e)?e.host:e}function Zl(t){let e=Ft(t);return Fr(e)?(t.ownerDocument||t).body:Tt(e)&&To(e)?e:Zl(e)}function xi(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=Zl(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Be(n);if(a){let l=Oi(s);return e.concat(s,s.visualViewport||[],To(n)?n:[],l&&r?xi(l):[])}else return e.concat(n,xi(n,[],r))}function Oi(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Jl(t){let e=ct(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=Tt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,l=ko(r)!==a||ko(i)!==s;return l&&(r=a,i=s),{width:r,height:i,$:l}}function Ql(t){return lt(t)?t:t.contextElement}function Br(t){let e=Ql(t);if(!Tt(e))return bt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=Jl(e),s=(a?ko(r.width):r.width)/i,l=(a?ko(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Uf=bt(0);function ec(t){let e=Be(t);return!Ci()||!e.visualViewport?Uf:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function zf(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Be(t)}function Po(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=Ql(t),s=bt(1);e&&(i?lt(i)&&(s=Br(i)):s=Br(t));let l=zf(a,r,i)?ec(a):bt(0),d=(n.left+l.x)/s.x,u=(n.top+l.y)/s.y,h=n.width/s.x,f=n.height/s.y;if(a&&i){let g=Be(a),y=lt(i)?Be(i):i,b=g,C=Oi(b);for(;C&&y!==b;){let E=Br(C),L=C.getBoundingClientRect(),N=ct(C),S=L.left+(C.clientLeft+parseFloat(N.paddingLeft))*E.x,x=L.top+(C.clientTop+parseFloat(N.paddingTop))*E.y;d*=E.x,u*=E.y,h*=E.x,f*=E.y,d+=S,u+=x,b=Be(C),C=Oi(b)}}return sr({width:h,height:f,x:d,y:u})}function Ei(t,e){let r=Io(t).scrollLeft;return e?e.left+r:Po(kt(t)).left+r}function tc(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Ei(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function Hf(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,a=n==="fixed",s=kt(i),l=e?_o(e.floating):!1;if(i===s||l&&a)return r;let d={scrollLeft:0,scrollTop:0},u=bt(1),h=bt(0),f=Tt(i);if((f||!a)&&((cr(i)!=="body"||To(s))&&(d=Io(i)),f)){let y=Po(i);u=Br(i),h.x=y.x+i.clientLeft,h.y=y.y+i.clientTop}let g=s&&!f&&!a?tc(s,d):bt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-d.scrollLeft*u.x+h.x+g.x,y:r.y*u.y-d.scrollTop*u.y+h.y+g.y}}function Vf(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Wf(t){let e=Io(t),r=t.ownerDocument.body,i=yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+Ei(t),s=-e.scrollTop;return ct(r).direction==="rtl"&&(a+=yt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}var jf=25;function Gf(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Be(t),a=kt(t),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,u=0,h=0;if(s){let g=!Ci()||e==="fixed";i?g||(u=-s.offsetLeft,h=-s.offsetTop):(l=s.width,d=s.height,g&&(u=s.offsetLeft,h=s.offsetTop))}if(Ei(a)<=0){let g=a.ownerDocument,y=g.body,b=getComputedStyle(y),C=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(a.clientWidth-y.clientWidth-C),L=getComputedStyle(a).scrollbarGutter==="stable both-edges"?E/2:E;L<=jf&&(l-=L)}return{width:l,height:d,x:u,y:h}}function Kf(t,e){let r=Po(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=Br(t),s=t.clientWidth*a.x,l=t.clientHeight*a.y,d=n*a.x,u=i*a.y;return{width:s,height:l,x:d,y:u}}function Yl(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Gf(t,r,e);else if(e==="document")i=Wf(kt(t));else if(lt(e))i=Kf(e,r);else{let n=ec(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return sr(i)}function qf(t,e){let r=e.get(t);if(r)return r;let i=xi(t,[],!1).filter(l=>lt(l)&&cr(l)!=="body"),n=null,a=ct(t).position==="fixed",s=a?Ft(t):t;for(;lt(s)&&!Fr(s);){let l=ct(s),d=Mr(s),u=n?n.position:a?"fixed":"";!d&&(u==="fixed"||u==="absolute"&&l.position==="static")?i=i.filter(f=>f!==s):n=l,s=Ft(s)}return e.set(t,i),i}function Zf(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?_o(e)?[]:qf(e,this._c):[].concat(r),i],l=Yl(e,s[0],n),d=l.top,u=l.right,h=l.bottom,f=l.left;for(let g=1;g<s.length;g++){let y=Yl(e,s[g],n);d=yt(y.top,d),u=nr(y.right,u),h=nr(y.bottom,h),f=yt(y.left,f)}return{width:u-f,height:h-d,x:f,y:d}}function Yf(t){let{width:e,height:r}=Jl(t);return{width:e,height:r}}function Xf(t,e,r){let i=Tt(e),n=kt(e),a=r==="fixed",s=Po(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=bt(0);if((i||!a)&&((cr(e)!=="body"||To(n))&&(l=Io(e)),i)){let g=Po(e,!0,a,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!i&&n&&(d.x=Ei(n));let u=n&&!i&&!a?tc(n,l):bt(0),h=s.left+l.scrollLeft-d.x-u.x,f=s.top+l.scrollTop-d.y-u.y;return{x:h,y:f,width:s.width,height:s.height}}function Yn(t){return ct(t).position==="static"}function Xl(t,e){if(!Tt(t)||ct(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return kt(t)===r&&(r=r.ownerDocument.body),r}function rc(t,e){let r=Be(t);if(_o(t))return r;if(!Tt(t)){let n=Ft(t);for(;n&&!Fr(n);){if(lt(n)&&!Yn(n))return n;n=Ft(n)}return r}let i=Xl(t,e);for(;i&&Kl(i)&&Yn(i);)i=Xl(i,e);return i&&Fr(i)&&Yn(i)&&!Mr(i)?r:i||ql(t)||r}var Jf=async function(t){let e=this.getOffsetParent||rc,r=this.getDimensions,i=await r(t.floating);return{reference:Xf(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Qf(t){return ct(t).direction==="rtl"}var Ur={convertOffsetParentRelativeRectToViewportRelativeRect:Hf,getDocumentElement:kt,getClippingRect:Zf,getOffsetParent:rc,getElementRects:Jf,getClientRects:Vf,getDimensions:Yf,getScale:Br,isElement:lt,isRTL:Qf};var oc=Hl,Xn=zl,ic=Vl;var nc=Wl;var Jn=(t,e,r)=>{let i=new Map,n=r??{},a={...Ur,...n.platform,_c:i};return Ul(t,e,{...n,platform:a})};function ea(t){return eh(t)}function Qn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function eh(t){for(let e=t;e;e=Qn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Qn(t);e;e=Qn(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Mr(r)||e.tagName==="BODY"))return e}return null}async function ta(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Jn(t,e,{strategy:i.strategy,platform:{...Ur,getOffsetParent:n=>Ur.getOffsetParent(n,ea)},middleware:[ic({crossAxis:!0}),Xn({allowedPlacements:[i.placement]})]})}async function ra(t,e,r,i,n,a,s){let l,d;return typeof r=="object"?(l=r.placement,i=r.allowedPlacements,n=r.strategy,a=r.maxHeightCssVariable,d=r.maxWidthCssVariable,s=r.offsetValue):l=r,Jn(t,e,{placement:l,strategy:n,platform:{...Ur,getOffsetParent:u=>Ur.getOffsetParent(u,ea)},middleware:[oc(s??4),Xn({allowedPlacements:i}),nc({apply({availableHeight:u,availableWidth:h,elements:f}){typeof a=="string"&&(a=`var(${a})`),a?f.floating.style.maxHeight=`min(${Math.max(0,u)}px, ${a})`:f.floating.style.maxHeight=`${Math.max(0,u)}px`,typeof d=="string"&&(d=`var(${d})`),d?f.floating.style.maxWidth=`min(${Math.max(0,h)}px, ${d})`:f.floating.style.maxWidth=`${Math.max(0,h)}px`}})]})}var ia={};J(ia,{isSlotEmptyOrWithoutContent:()=>No});var No=t=>t?t.assignedNodes({flatten:!0}).filter(i=>{var n;return i.nodeType===Node.TEXT_NODE?((n=i.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0;var da={};J(da,{FtdsBase:()=>ca,toFtdsBase:()=>uc});var la={};J(la,{ExportpartsUpdatedEvent:()=>dr,FtLitElement:()=>D});var na={};J(na,{ScopedRegistryLitElement:()=>Do});var Do=class extends Qe{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return mo(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){Co(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};var sa={};J(sa,{shadowQuerySelector:()=>aa,shadowQuerySelectorAll:()=>th});function aa(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function th(t,e,...r){let i=[...t.querySelectorAll(e)];for(let n of r)i=i.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 i}var zr=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},cc,ac=Symbol("constructorPrototype"),sc=Symbol("constructorName"),dc=Symbol("exportpartsDebouncer"),lc=Symbol("dynamicDependenciesLoaded"),dr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};dr.eventName="exportparts-updated";var D=class extends Do{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[cc]=new re(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[dc].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[sc]=this.constructor.name,this[ac]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[sc]&&Object.setPrototypeOf(this,this[ac])}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(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[lc]||(r[lc]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(dr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(dr.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 dr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=aa(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).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 r,i,n,a,s,l;let d=g=>g!=null&&g.trim().length>0,u=e.filter(d).map(g=>g.trim());if(u.length===0){this.exportparts=void 0;return}let h=new Set;for(let g of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let y=(a=(n=g.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],b=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[],C=[...y,...b].filter(d).map(E=>E.trim());for(let E of C)h.add(E)}if(h.size===0){this.exportparts=void 0;return}let f=[...h.values()].flatMap(g=>u.map(y=>`${g}:${y}--${g}`));this.exportparts=[...this.part,...f].join(", ")}};cc=dc;zr([m()],D.prototype,"exportpartsPrefix",void 0);zr([ce([])],D.prototype,"exportpartsPrefixes",void 0);zr([m({reflect:!0})],D.prototype,"exportparts",void 0);zr([m()],D.prototype,"customStylesheet",void 0);zr([m()],D.prototype,"elementToFocus",void 0);zr([T()],D.prototype,"useAdoptedStyleSheets",void 0);var pc=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},uc=Ee(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=Lo.medium,this.family=Ro.neutral}getDesignSystemBaseClasses(){return{[Bn(this.family)]:!0,[Un(this.size)]:!0}}}return pc([m()],e.prototype,"size",void 0),pc([m()],e.prototype,"family",void 0),e}),ca=class extends uc(D){};var fc={};var fa={};J(fa,{highlightHtml:()=>ua,highlightHtmlColorCssVariable:()=>hc,highlightHtmlStyles:()=>oh});var pr=class t{constructor(e,r=!0,i=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=i,this.iframesTimeout=n}static matches(e,r){let i=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,r=[];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(i=>{let n=r.filter(a=>a.contains(i)).length>0;r.indexOf(i)===-1&&!n&&r.push(i)}),r}getIframeContents(e,r,i=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&r(n)}isIframeBlank(e){let r="about:blank",i=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&i!==r&&i}observeIframeLoad(e,r,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,i))}catch{i()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,i){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,i):this.getIframeContents(e,r,i):this.observeIframeLoad(e,r,i)}catch{i()}}waitForIframes(e,r){let i=0;this.forEachIframe(e,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||r()})},n=>{n||r()})}forEachIframe(e,r,i,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(u=>{t.matches(u,this.exclude)?d():this.onIframeReady(u,h=>{r(u)&&(l++,i(h)),d()},d)})}createIterator(e,r,i){return document.createNodeIterator(e,r,i,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,i){let n=e.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),i;return r===null?i=e.nextNode():i=e.nextNode()&&e.nextNode(),{prevNode:r,node:i}}checkIframeFilter(e,r,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(e,r,i)?(a===!1&&!s?n.push({val:i,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(e,r,i,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,i,n)})})}iterateThroughNodes(e,r,i,n,a){let s=this.createIterator(r,e,n),l=[],d=[],u,h,f=()=>({prevNode:h,node:u}=this.getIteratorNode(s),u);for(;f();)this.iframes&&this.forEachIframe(r,g=>this.checkIframeFilter(u,h,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,y=>d.push(y),n)}),d.push(u);d.forEach(g=>{i(g)}),this.iframes&&this.handleOpenIframes(l,e,i,n),a()}forEachNode(e,r,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var $o=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.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 pr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[r]=="function"&&i[r](`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 r=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[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${i}`),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,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&r.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",i=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=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,a=typeof i=="string"?[]:i.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):i.trim()&&r.indexOf(i)===-1&&r.push(i)}),{keywords:r.sort((i,n)=>n.length-i.length),length:r.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 r=[],i=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=a,n.length=s-a,r.push(n),i=s)}),r}callNoMatchOnInvalidRanges(e,r){let i,n,a=!1;return e&&typeof e.start<"u"?(i=parseInt(e.start,10),n=i+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-i>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:i,end:n,valid:a}}checkWhitespaceRanges(e,r,i){let n,a=!0,s=i.length,l=r-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)):i.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 r="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:i})})}matchesExclude(e){return pr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,i){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(i-r),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,r,i,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(s.node))return!1;let u=r-s.start,h=(i>s.end?s.end:i)-s.start,f=e.value.substr(0,s.start),g=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,u,h),e.value=f+g,e.nodes.forEach((y,b)=>{b>=l&&(e.nodes[b].start>0&&b!==l&&(e.nodes[b].start-=h),e.nodes[b].end-=h)}),i-=h,a(s.node.previousSibling,s.start),i>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let u;for(;(u=e.exec(d.textContent))!==null&&u[s]!=="";){if(!i(u[s],d))continue;let h=u.index;if(s!==0)for(let f=1;f<s;f++)h+=u[f].length;d=this.wrapRangeInTextNode(d,h,h+u[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let u=d.index;if(s!==0)for(let f=1;f<s;f++)u+=d[f].length;let h=u+d[s].length;this.wrapRangeInMappedTextNode(l,u,h,f=>i(d[s],f),(f,g)=>{e.lastIndex=g,n(f)})}a()})}wrapRangeFromIndex(e,r,i,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:u,end:h,valid:f}=this.checkWhitespaceRanges(l,s,a.value);f&&this.wrapRangeInMappedTextNode(a,u,h,g=>r(g,l,a.value.substring(u,h),d),g=>{i(g,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,i=document.createDocumentFragment();for(;e.firstChild;)i.appendChild(e.removeChild(e.firstChild));r.replaceChild(i,e),this.ie?this.normalizeTextNode(r):r.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,r){this.opt=r,this.log(`Searching with expression "${e}"`);let i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(e),this.opt.done(i)})}mark(e,r){this.opt=r;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=u=>{let h=new RegExp(this.createRegExp(u),`gm${l}`),f=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(g,y)=>this.opt.filter(y,u,i,f),g=>{f++,i++,this.opt.each(g)},()=>{f===0&&this.opt.noMatch(u),a[s-1]===u?this.opt.done(i):d(a[a.indexOf(u)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(e,r){this.opt=r;let i=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)=>{i++,this.opt.each(a,s)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=pr.matches(i,r),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function pa(t){let e=new $o(t);return this.mark=(r,i)=>(e.mark(r,i),this),this.markRegExp=(r,i)=>(e.markRegExp(r,i),this),this.markRanges=(r,i)=>(e.markRanges(r,i),this),this.unmark=r=>(e.unmark(r),this),this}var rh=pa,hc=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),oh=A`
1
+ "use strict";(()=>{var Iu=Object.defineProperty;var Q=(t,e)=>{for(var r in e)Iu(t,r,{get:e[r],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,i=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(b,x){if(b=b.toLowerCase(),this._getDefinition(b)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${b}" has already been used with this registry`);if(this._definitionsByClass.get(x)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let S=x.prototype.attributeChangedCallback,$=new Set(x.observedAttributes||[]);g(x,$,S);let F={elementClass:x,connectedCallback:x.prototype.connectedCallback,disconnectedCallback:x.prototype.disconnectedCallback,adoptedCallback:x.prototype.adoptedCallback,attributeChangedCallback:S,formAssociated:x.formAssociated,formAssociatedCallback:x.prototype.formAssociatedCallback,formDisabledCallback:x.prototype.formDisabledCallback,formResetCallback:x.prototype.formResetCallback,formStateRestoreCallback:x.prototype.formStateRestoreCallback,observedAttributes:$};this._definitionsByTag.set(b,F),this._definitionsByClass.set(x,F);let N=r.call(i,b);N||(N=h(b),e.call(i,b,N)),this===window.customElements&&(s.set(x,F),F.standInClass=N);let J=this._awaitingUpgrade.get(b);if(J){this._awaitingUpgrade.delete(b);for(let V of J)a.delete(V),C(V,F,!0)}let P=this._whenDefinedPromises.get(b);return P!==void 0&&(P.resolve(x),this._whenDefinedPromises.delete(b)),x}upgrade(){O.push(this),i.upgrade.apply(i,arguments),O.pop()}get(b){return this._definitionsByTag.get(b)?.elementClass}_getDefinition(b){return this._definitionsByTag.get(b)}whenDefined(b){let x=this._getDefinition(b);if(x!==void 0)return Promise.resolve(x.elementClass);let S=this._whenDefinedPromises.get(b);return S===void 0&&(S={},S.promise=new Promise($=>S.resolve=$),this._whenDefinedPromises.set(b,S)),S.promise}_upgradeWhenDefined(b,x,S){let $=this._awaitingUpgrade.get(x);$||this._awaitingUpgrade.set(x,$=new Set),S?$.add(b):$.delete(b)}};let d;window.HTMLElement=function(){let x=d;if(x)return d=void 0,x;let S=s.get(this.constructor);if(!S)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return x=Reflect.construct(t,[],S.standInClass),Object.setPrototypeOf(x,this.constructor.prototype),n.set(x,S),x},window.HTMLElement.prototype=t.prototype;let u=b=>b===document||b instanceof ShadowRoot,m=b=>{let x=b.getRootNode();if(!u(x)){let S=O[O.length-1];if(S instanceof CustomElementRegistry)return S;x=S.getRootNode(),u(x)||(x=l.get(x)?.getRootNode()||document)}return x.customElements},h=b=>class{static get formAssociated(){return!0}constructor(){let S=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(S,HTMLElement.prototype);let $=m(S)||window.customElements,F=$._getDefinition(b);return F?C(S,F):a.set(S,$),S}connectedCallback(){let S=n.get(this);S?S.connectedCallback&&S.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,b,!0)}disconnectedCallback(){let S=n.get(this);S?S.disconnectedCallback&&S.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,b,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let S=n.get(this);S&&S.formAssociated&&S?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let S=n.get(this);S?.formAssociated&&S?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let S=n.get(this);S?.formAssociated&&S?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let S=n.get(this);S?.formAssociated&&S?.formStateRestoreCallback?.apply(this,arguments)}},g=(b,x,S)=>{if(x.size===0||S===void 0)return;let $=b.prototype.setAttribute;$&&(b.prototype.setAttribute=function(J,P){let V=J.toLowerCase();if(x.has(V)){let ce=this.getAttribute(V);$.call(this,V,P),S.call(this,V,ce,P)}else $.call(this,V,P)});let F=b.prototype.removeAttribute;F&&(b.prototype.removeAttribute=function(J){let P=J.toLowerCase();if(x.has(P)){let V=this.getAttribute(P);F.call(this,P),S.call(this,P,V,null)}else F.call(this,P)});let N=b.prototype.toggleAttribute;N&&(b.prototype.toggleAttribute=function(J,P){let V=J.toLowerCase();if(x.has(V)){let ce=this.getAttribute(V);N.call(this,V,P);let ht=this.getAttribute(V);S.call(this,V,ce,ht)}else N.call(this,V,P)})},v=b=>{let x=Object.getPrototypeOf(b);if(x!==window.HTMLElement)return x===t?Object.setPrototypeOf(b,window.HTMLElement):v(x)},C=(b,x,S=!1)=>{Object.setPrototypeOf(b,x.elementClass.prototype),n.set(b,x),d=b;try{new x.elementClass}catch{v(x.elementClass),new x.elementClass}x.attributeChangedCallback&&x.observedAttributes.forEach($=>{b.hasAttribute($)&&x.attributeChangedCallback.call(b,$,null,b.getAttribute($))}),S&&x.connectedCallback&&b.isConnected&&x.connectedCallback.call(b)},k=Element.prototype.attachShadow;Element.prototype.attachShadow=function(b){let x=k.apply(this,arguments);return b.customElements&&(x.customElements=b.customElements),x};let O=[document],I=(b,x,S=void 0)=>{let $=(S?Object.getPrototypeOf(S):b.prototype)[x];b.prototype[x]=function(){O.push(this);let F=$.apply(S||this,arguments);return F!==void 0&&l.set(F,this),O.pop(),F}};I(ShadowRoot,"createElement",document),I(ShadowRoot,"importNode",document),I(Element,"insertAdjacentHTML");let K=(b,x)=>{let S=Object.getOwnPropertyDescriptor(b.prototype,x);Object.defineProperty(b.prototype,x,{...S,set($){O.push(this),S.set.call(this,$),O.pop()}})};if(K(Element,"innerHTML"),K(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let b=new WeakMap,x=HTMLElement.prototype.attachInternals,S=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...J){let P=x.call(this,...J);return b.set(P,this),P},S.forEach(J=>{let P=window.ElementInternals.prototype,V=P[J];P[J]=function(...ce){let ht=b.get(this);if(n.get(ht).formAssociated===!0)return V?.call(this,...ce);throw new DOMException(`Failed to execute ${V} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class $ extends Array{constructor(P){super(...P),this._elements=P}get value(){return this._elements.find(P=>P.checked===!0)?.value||""}}class F{constructor(P){let V=new Map;P.forEach((ce,ht)=>{let pn=ce.getAttribute("name"),Ys=V.get(pn)||[];this[+ht]=ce,Ys.push(ce),V.set(pn,Ys)}),this.length=P.length,V.forEach((ce,ht)=>{ce&&(ce.length===1?this[ht]=ce[0]:this[ht]=new $(ce))})}namedItem(P){return this[P]}}let N=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let J=N.get.call(this,[]),P=[];for(let V of J){let ce=n.get(V);(!ce||ce.formAssociated===!0)&&P.push(V)}return new F(P)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,i,n)=>{var a;if(i!==null)try{e.bind(window.customElements)(r,i,n)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(r,class extends i{},n):console.info(r,i,n,s)}}}var On={};Q(On,{CSSResult:()=>Rr,LitElement:()=>Qe,ReactiveElement:()=>Je,_$LE:()=>pl,_$LH:()=>Sn,adoptStyles:()=>lo,css:()=>w,defaultConverter:()=>_r,getCompatibleStyle:()=>ri,html:()=>y,isServer:()=>lg,mathml:()=>vn,noChange:()=>ve,notEqual:()=>po,nothing:()=>L,render:()=>En,supportsAdoptingStyleSheets:()=>so,svg:()=>xn,unsafeCSS:()=>qt});var ti=globalThis,so=ti.ShadowRoot&&(ti.ShadyCSS===void 0||ti.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,un=Symbol(),Xs=new WeakMap,Rr=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==un)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(so&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=Xs.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Xs.set(r,e))}return e}toString(){return this.cssText}},qt=t=>new Rr(typeof t=="string"?t:t+"",void 0,un),w=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,a)=>i+(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)+t[a+1],t[0]);return new Rr(r,t,un)},lo=(t,e)=>{if(so)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=ti.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},ri=so?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return qt(r)})(t):t;var{is:Pu,defineProperty:Nu,getOwnPropertyDescriptor:Du,getOwnPropertyNames:$u,getOwnPropertySymbols:Mu,getPrototypeOf:Fu}=Object,oi=globalThis,Js=oi.trustedTypes,Bu=Js?Js.emptyScript:"",Uu=oi.reactiveElementPolyfillSupport,co=(t,e)=>t,_r={toAttribute(t,e){switch(e){case Boolean:t=t?Bu:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},po=(t,e)=>!Pu(t,e),Qs={attribute:!0,type:String,converter:_r,reflect:!1,useDefault:!1,hasChanged:po};Symbol.metadata??=Symbol("metadata"),oi.litPropertyMetadata??=new WeakMap;var Je=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,r=Qs){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&Nu(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:a}=Du(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Qs}static _$Ei(){if(this.hasOwnProperty(co("elementProperties")))return;let e=Fu(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(co("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(co("properties"))){let r=this.properties,i=[...$u(r),...Mu(r)];for(let n of i)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(ri(n))}else e!==void 0&&r.push(ri(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i: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,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return lo(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,r,i){this._$AK(e,i)}_$ET(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:_r).toAttribute(r,i.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:_r;this._$Em=n;let l=s.fromAttribute(r,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,r,i,n=!1,a){if(e!==void 0){let s=this.constructor;if(n===!1&&(a=this[e]),i??=s.getPropertyOptions(e),!((i.hasChanged??po)(a,r)||i.useDefault&&i.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,i))))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:i,reflect:n,wrapped:a},s){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??r??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}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 i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i){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,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.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(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};Je.elementStyles=[],Je.shadowRootOptions={mode:"open"},Je[co("elementProperties")]=new Map,Je[co("finalized")]=new Map,Uu?.({ReactiveElement:Je}),(oi.reactiveElementVersions??=[]).push("2.1.2");var hn=globalThis,el=t=>t,ii=hn.trustedTypes,tl=ii?ii.createPolicy("lit-html",{createHTML:t=>t}):void 0,mn="$lit$",Rt=`lit$${Math.random().toFixed(9).slice(2)}$`,gn="?"+Rt,zu=`<${gn}>`,Jt=document,fo=()=>Jt.createComment(""),ho=t=>t===null||typeof t!="object"&&typeof t!="function",yn=Array.isArray,sl=t=>yn(t)||typeof t?.[Symbol.iterator]=="function",fn=`[
2
+ \f\r]`,uo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,rl=/-->/g,ol=/>/g,Yt=RegExp(`>|${fn}(?:([^\\s"'>=/]+)(${fn}*=${fn}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),il=/'/g,nl=/"/g,ll=/^(?:script|style|textarea|title)$/i,bn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),y=bn(1),xn=bn(2),vn=bn(3),ve=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),al=new WeakMap,Xt=Jt.createTreeWalker(Jt,129);function cl(t,e){if(!yn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return tl!==void 0?tl.createHTML(e):e}var dl=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=uo;for(let l=0;l<r;l++){let d=t[l],u,m,h=-1,g=0;for(;g<d.length&&(s.lastIndex=g,m=s.exec(d),m!==null);)g=s.lastIndex,s===uo?m[1]==="!--"?s=rl:m[1]!==void 0?s=ol:m[2]!==void 0?(ll.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=Yt):m[3]!==void 0&&(s=Yt):s===Yt?m[0]===">"?(s=n??uo,h=-1):m[1]===void 0?h=-2:(h=s.lastIndex-m[2].length,u=m[1],s=m[3]===void 0?Yt:m[3]==='"'?nl:il):s===nl||s===il?s=Yt:s===rl||s===ol?s=uo:(s=Yt,n=void 0);let v=s===Yt&&t[l+1].startsWith("/>")?" ":"";a+=s===uo?d+zu:h>=0?(i.push(u),d.slice(0,h)+mn+d.slice(h)+Rt+v):d+Rt+(h===-2?l:v)}return[cl(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},mo=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[u,m]=dl(e,r);if(this.el=t.createElement(u,i),Xt.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=Xt.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(mn)){let g=m[s++],v=n.getAttribute(h).split(Rt),C=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:C[2],strings:v,ctor:C[1]==="."?ai:C[1]==="?"?si:C[1]==="@"?li:er}),n.removeAttribute(h)}else h.startsWith(Rt)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(ll.test(n.tagName)){let h=n.textContent.split(Rt),g=h.length-1;if(g>0){n.textContent=ii?ii.emptyScript:"";for(let v=0;v<g;v++)n.append(h[v],fo()),Xt.nextNode(),d.push({type:2,index:++a});n.append(h[g],fo())}}}else if(n.nodeType===8)if(n.data===gn)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(Rt,h+1))!==-1;)d.push({type:7,index:a}),h+=Rt.length-1}a++}}static createElement(e,r){let i=Jt.createElement("template");return i.innerHTML=e,i}};function Qt(t,e,r=t,i){if(e===ve)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=ho(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Qt(t,n._$AS(t,e.values),n,i)),e}var ni=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??Jt).importNode(r,!0);Xt.currentNode=n;let a=Xt.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let u;d.type===2?u=new Lr(a,a.nextSibling,this,e):d.type===1?u=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(u=new ci(a,this,e)),this._$AV.push(u),d=i[++l]}s!==d?.index&&(a=Xt.nextNode(),s++)}return Xt.currentNode=Jt,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Lr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Qt(this,e,r),ho(e)?e===L||e==null||e===""?(this._$AH!==L&&this._$AR(),this._$AH=L):e!==this._$AH&&e!==ve&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):sl(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!==L&&ho(this._$AH)?this._$AA.nextSibling.data=e:this.T(Jt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=mo.createElement(cl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new ni(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=al.get(e.strings);return r===void 0&&al.set(e.strings,r=new mo(e)),r}k(e){yn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.O(fo()),this.O(fo()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=el(e).nextSibling;el(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},er=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=L,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=L}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=Qt(this,e,r,0),s=!ho(e)||e!==this._$AH&&e!==ve,s&&(this._$AH=e);else{let l=e,d,u;for(e=a[0],d=0;d<a.length-1;d++)u=Qt(this,l[i+d],r,d),u===ve&&(u=this._$AH[d]),s||=!ho(u)||u!==this._$AH[d],u===L?e=L:e!==L&&(e+=(u??"")+a[d+1]),this._$AH[d]=u}s&&!n&&this.j(e)}j(e){e===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ai=class extends er{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===L?void 0:e}},si=class extends er{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==L)}},li=class extends er{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=Qt(this,e,r,0)??L)===ve)return;let i=this._$AH,n=e===L&&i!==L||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==L&&(i===L||n);n&&this.element.removeEventListener(this.name,this,i),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)}},ci=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Qt(this,e)}},Sn={M:mn,P:Rt,A:gn,C:1,L:dl,R:ni,D:sl,V:Qt,I:Lr,H:er,N:si,U:li,B:ai,F:ci},Hu=hn.litHtmlPolyfillSupport;Hu?.(mo,Lr),(hn.litHtmlVersions??=[]).push("3.3.3");var En=(t,e,r)=>{let i=r?.renderBefore??e,n=i._$litPart$;if(n===void 0){let a=r?.renderBefore??null;i._$litPart$=n=new Lr(e.insertBefore(fo(),a),a,void 0,r??{})}return n._$AI(t),n};var Cn=globalThis,Qe=class extends Je{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 r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=En(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ve}};Qe._$litElement$=!0,Qe.finalized=!0,Cn.litElementHydrateSupport?.({LitElement:Qe});var Vu=Cn.litElementPolyfillSupport;Vu?.({LitElement:Qe});var pl={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(Cn.litElementVersions??=[]).push("4.2.2");var lg=!1;var _n={};Q(_n,{customElement:()=>Wu,eventOptions:()=>ju,property:()=>f,query:()=>M,queryAll:()=>wn,queryAssignedElements:()=>An,queryAssignedNodes:()=>Rn,queryAsync:()=>Zu,standardProperty:()=>ul,state:()=>_});var Wu=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Gu={attribute:!0,type:String,converter:_r,reflect:!1,hasChanged:po},ul=(t=Gu,e,r)=>{let{kind:i,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),i==="setter"&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),i==="accessor"){let{name:s}=r;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,t,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,t,l),l}}}if(i==="setter"){let{name:s}=r;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,t,!0,l)}}throw Error("Unsupported decorator location: "+i)};function f(t){return(e,r)=>typeof r=="object"?ul(t,e,r):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(t,e,r)}function _(t){return f({...t,state:!0,attribute:!1})}function ju(t){return(e,r)=>{let i=typeof e=="function"?e:e[r];Object.assign(i,t)}}var it=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function M(t,e){return(r,i,n)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof i=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(u){this[d]=u}}})();return it(r,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return it(r,i,{get(){return a(this)}})}}var Ku;function wn(t){return(e,r)=>it(e,r,{get(){return(this.renderRoot??(Ku??=document.createDocumentFragment())).querySelectorAll(t)}})}function Zu(t){return(e,r)=>it(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function An(t){return(e,r)=>{let{slot:i,selector:n}=t??{},a="slot"+(i?`[name=${i}]`:":not([name])");return it(e,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(t)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function Rn(t){return(e,r)=>{let{slot:i}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return it(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var Ln={};Q(Ln,{repeat:()=>he});var mt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ze=t=>(...e)=>({_$litDirective$:t,values:e}),et=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:qu}=Sn,fl=t=>t;var ml=t=>t.strings===void 0,hl=()=>document.createComment(""),kr=(t,e,r)=>{let i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=i.insertBefore(hl(),n),s=i.insertBefore(hl(),n);r=new qu(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==t;if(l){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==s._$AU&&r._$AP(d)}if(a!==n||l){let d=r._$AA;for(;d!==a;){let u=fl(d).nextSibling;fl(i).insertBefore(d,n),d=u}}}return r},$t=(t,e,r=t)=>(t._$AI(e,r),t),Yu={},gl=(t,e=Yu)=>t._$AH=e,yl=t=>t._$AH,di=t=>{t._$AR(),t._$AA.remove()};var bl=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},he=ze(class extends et{constructor(t){if(super(t),t.type!==mt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],a=[],s=0;for(let l of t)n[s]=i?i(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,i]){let n=yl(t),{values:a,keys:s}=this.dt(e,r,i);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],u,m,h=0,g=n.length-1,v=0,C=a.length-1;for(;h<=g&&v<=C;)if(n[h]===null)h++;else if(n[g]===null)g--;else if(l[h]===s[v])d[v]=$t(n[h],a[v]),h++,v++;else if(l[g]===s[C])d[C]=$t(n[g],a[C]),g--,C--;else if(l[h]===s[C])d[C]=$t(n[h],a[C]),kr(t,d[C+1],n[h]),h++,C--;else if(l[g]===s[v])d[v]=$t(n[g],a[v]),kr(t,n[h],n[g]),g--,v++;else if(u===void 0&&(u=bl(s,v,C),m=bl(l,h,g)),u.has(l[h]))if(u.has(l[g])){let k=m.get(s[v]),O=k!==void 0?n[k]:null;if(O===null){let I=kr(t,n[h]);$t(I,a[v]),d[v]=I}else d[v]=$t(O,a[v]),kr(t,n[h],O),n[k]=null;v++}else di(n[g]),g--;else di(n[h]),h++;for(;v<=C;){let k=kr(t,d[C+1]);$t(k,a[v]),d[v++]=k}for(;h<=g;){let k=n[h++];k!==null&&di(k)}return this.ut=s,gl(t,d),ve}});var kn={};Q(kn,{classMap:()=>ne});var ne=ze(class extends et{constructor(t){if(super(t),t.type!==mt.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}let r=t.element.classList;for(let i of this.st)i in e||(r.remove(i),this.st.delete(i));for(let i in e){let n=!!e[i];n===this.st.has(i)||this.nt?.has(i)||(n?(r.add(i),this.st.add(i)):(r.remove(i),this.st.delete(i)))}return ve}});var Tn={};Q(Tn,{styleMap:()=>Ju});var xl="important",Xu=" !"+xl,Ju=ze(class extends et{constructor(t){if(super(t),t.type!==mt.ATTRIBUTE||t.name!=="style"||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{let i=t[r];return i==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ft.add(i);let a=typeof n=="string"&&n.endsWith(Xu);i.includes("-")||a?r.setProperty(i,a?n.slice(0,-11):n,a?xl:""):r[i]=n}}return ve}});var Pn={};Q(Pn,{UnsafeHTMLDirective:()=>Tr,unsafeHTML:()=>In});var Tr=class extends et{constructor(e){if(super(e),this.it=L,e.type!==mt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===L||e==null)return this._t=void 0,this.it=e;if(e===ve)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 r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Tr.directiveName="unsafeHTML",Tr.resultType=1;var In=ze(Tr);var Wn={};Q(Wn,{CacheRegistry:()=>gt,ClearCacheEvent:()=>vo});var Dn={};Q(Dn,{CancelablePromise:()=>pi,CanceledPromiseError:()=>tr,cancelable:()=>Nn});var tr=class extends Error{constructor(e,r,i){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=i}},pi=class extends Promise{constructor(e){super((r,i)=>e(n=>{this.isCanceled?i(new tr("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?i(new tr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Nn=t=>new pi((e,r)=>t.then(e).catch(r));var Vn={};Q(Vn,{FtNotificationEvent:()=>xo,PostResizeEvent:()=>Hn,PreResizeEvent:()=>zn,WithEventBus:()=>_t,withEventBus:()=>mi});var Un={};Q(Un,{applyMixinOnce:()=>Ce,customElements:()=>j,dateReviver:()=>rf,deepCopy:()=>nt,deepEqual:()=>me,delay:()=>ui,eventPathContainsMatchingElement:()=>Mn,everyDeep:()=>tf,flatDeep:()=>He,forEachDeep:()=>Sl,getComposedPathTo:()=>Bn,hasChanged:()=>at,ignoreComposingEvents:()=>bo,last:()=>Fn,minmax:()=>rr,parseDate:()=>Cl,randomId:()=>nf,someDeep:()=>El,unslotText:()=>hi,waitFor:()=>fi,waitUntil:()=>yo});var $n={};Q($n,{customElement:()=>go,dateProperty:()=>ef,isNumber:()=>vl,jsonProperty:()=>le,numberProperty:()=>Mt,optionalNumberProperty:()=>Qu});var go=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function le(t,e){return f({type:Object,converter:{fromAttribute:r=>{if(r==null)return nt(t);try{return JSON.parse(r)}catch{return nt(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:at,...e??{}})}function Qu(t){return Mt(t)}function Mt(t){return f({type:Object,converter:{fromAttribute:e=>{var r,i;if(e==null)return;let n=(r=t?.min)!==null&&r!==void 0?r:-1/0,a=(i=t?.max)!==null&&i!==void 0?i:1/0;return vl(e)?rr(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function vl(t){return!isNaN(parseFloat(t))}function ef(t){return f({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let r=new Date(Date.parse(e));if(!isNaN(r.valueOf()))return r},toAttribute:e=>e?.toISOString()},useDefault:!0,...t??{}})}var ui=t=>new Promise(e=>setTimeout(e,t));async function yo(t,e=10,r=2e4){await fi(async()=>await t()||void 0,e,r)}async function fi(t,e=10,r=2e4){let i=await t(),n=performance.now(),a=n;for(;i==null&&(!r||a-n<r);)await ui(e),i=await t(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function He(t,e){return t.flatMap(r=>[r,...He(e(r),e)])}function Sl(t,e,r){let i=(n,a)=>{var s;for(let l=0;l<n.length;l++){let d=n[l];if(!(((s=r(d,l,n,a))!==null&&s!==void 0?s:!0)&&i(e(d),[...a,d])))return!1}return!0};i(t,[])}function El(t,e,r){let i=!1;return Sl(t,e,(n,a,s,l)=>(i=!!r(n,a,s,l),!i)),i}function tf(t,e,r){return!El(t,e,(i,n,a,s)=>!r(i,n,a,s))}function rf(...t){return(e,r)=>t.includes(e)?Cl(r):r}function Cl(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,i,n)=>r+i+":"+n),new Date(t)}function of(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!me(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!me(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(l=>s[l]!=null),a=n(t);if(r=a.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[i]))return!1;for(i=r;i--!==0;){let s=a[i];if(!me(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function me(t,e){try{return of(t,e)}catch{return!1}}function at(t,e){return!me(t,e)}function Mn(t,e,r=window.document.body){if(e.length>0){let i=t.composedPath();for(let n of i){if(n===r)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function rr(t,e,r){return Math.min(Math.max(t,e),r)}function Fn(t){return t[t.length-1]}function hi(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>hi(e)).join(""):t?.textContent||""}function Bn(t){let e=[],r=i=>{i.stopPropagation(),e=i.composedPath()};return t.addEventListener("get-composed-path",r),t.dispatchEvent(new Event("get-composed-path",{composed:!0})),t.removeEventListener("get-composed-path",r),e}function nt(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function nf(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function Ce(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}function bo(){return function(t,e,r){let i=r.value;r.value=function(n,...a){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return i.apply(this,[n].concat(a))}}}function j(t){for(let[e,r]of Object.entries(t))go(e)(r)}var xo=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},zn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Hn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},mi=Ce(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),_t=class extends mi(Object){};var vo=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},gt=class extends _t{constructor(){super(...arguments),this.content={}}register(e,r,i=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:r,final:i,status:s}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let i=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return r&&i.length>0&&this.dispatchEvent(new vo(i)),i}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new vo([e])),e}forceClear(e){var r;let i=this.content[e];i&&(this.clearClearTimeout(e),(r=i.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:i.loader,final:i.final,status:"REGISTERED"})}clearClearTimeout(e){var r,i,n;((r=this.content[e])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((i=this.content[e])===null||i===void 0?void 0:i.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,r,i=!1){this.forceClear(e);let n=async()=>r,a="RESOLVED";this.content[e]={loader:n,final:i,status:a,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,i){if(!this.isRegistered(e)){if(!r)throw new Error("Unknown cache key "+e);this.register(e,r)}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 r=r??n.loader,n.status="LOADING",n.promise=Nn(r()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,i!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),i)),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 r;return(r=this.content[e])===null||r===void 0?void 0:r.value}has(e){var r,i;return((r=this.content[e])===null||r===void 0?void 0:r.status)!==void 0&&((i=this.content[e])===null||i===void 0?void 0:i.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var r;return((r=this.content[e])===null||r===void 0?void 0:r.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}};var qn={};Q(qn,{ClusteringHelper:()=>Zn,formatHierarchicalValues:()=>Kn});var jn={};Q(jn,{accessBreadcrumb:()=>lf,accessResult:()=>Gn,accessResultId:()=>af,accessResultUrl:()=>sf});function Gn(t){var e,r,i,n;return(n=(i=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&i!==void 0?i:t?.htmlPackage)!==null&&n!==void 0?n:t?.htmlPackagePage}function af(t){var e,r,i,n,a,s,l,d,u;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&r!==void 0?r:(i=t?.topic)===null||i===void 0?void 0:i.tocId)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.documentId)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.packageId)!==null&&d!==void 0?d:(u=t?.htmlPackagePage)===null||u===void 0?void 0:u.contentId}function sf(t){var e,r,i,n,a,s,l,d,u;return(d=(s=(n=(r=(e=t?.map)===null||e===void 0?void 0:e.readerUrl)!==null&&r!==void 0?r:(i=t?.topic)===null||i===void 0?void 0:i.readerUrl)!==null&&n!==void 0?n:(a=t?.document)===null||a===void 0?void 0:a.viewerUrl)!==null&&s!==void 0?s:(l=t?.htmlPackage)===null||l===void 0?void 0:l.viewerUrl)!==null&&d!==void 0?d:(u=t?.htmlPackagePage)===null||u===void 0?void 0:u.viewerUrl}function lf(t){return t?.topic?[t.topic.mapTitle,...t.topic.breadcrumb]:t?.map?[t.map.title]:t?.document?[t.document.title]:t?.htmlPackage?[t.htmlPackage.title]:t?.htmlPackagePage?[t.htmlPackagePage.packageTitle,t.htmlPackagePage.title]:[]}function Kn(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var Zn=class t{constructor(e,r,i,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=i,this.metadataDescriptors=n}static findResultWithMetadataValue(e,r,i){return e?.find(n=>{var a;return((a=this.extractResultMetadata({result:n}).find(s=>s.key==r))===null||a===void 0?void 0:a.value)==i})}static extractResultMetadata(e){var r,i;let n=(i=(r=Gn(e.result))===null||r===void 0?void 0:r.metadata)!==null&&i!==void 0?i:[];return e.key==null?t.flattenMetadata(n,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(n.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,i){if(Array.isArray(e))return e.map(a=>t.flattenMetadata(a,r,i)).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(Kn(l)),s.push(Kn(l,r))}),{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=>i?i(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,r,i="No value",n,a){var s,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),u=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(h=>t.extractResultMetadata({result:h,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(h=>h??{key:e,label:u,value:void 0,displayValue:i}).filter(h=>h.value!=d?.value).filter((h,g,v)=>v.findIndex(C=>C.value===h.value)===g).map(h=>({result:this.findBestResultForMetadataValue(e,h.value),metadata:h})).sort((h,g)=>this.compareMetadata(h.metadata.value,g.metadata.value,e,r))}compareMetadata(e,r,i,n){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let i=this.allResults.filter(d=>{var u;return((u=t.extractResultMetadata({result:d,key:e}))===null||u===void 0?void 0:u.value)==r}),a=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of i){let u=this.countMatchingMetadata(d,a);if(u>l&&(l=u,s=d,u===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(i=>r.some(n=>n.key===i.key&&n.value===i.value)).length}};var Yn={};Q(Yn,{Debouncer:()=>te});var te=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)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}};var ea={};Q(ea,{designSystemVariables:()=>E});var Qn={};Q(Qn,{DesignSystemFamily:()=>So,DesignSystemSize:()=>Eo,FtCssVariableFactory:()=>o,badge:()=>Ef,banner:()=>Sf,button:()=>pf,card:()=>uf,chart:()=>Ff,checkbox:()=>hf,chip:()=>bf,chipChoice:()=>yf,chipGroup:()=>xf,collapsible:()=>$f,combobox:()=>Nf,dateRangePicker:()=>Wf,drawer:()=>Lf,floatingMenu:()=>Pf,foundation:()=>c,link:()=>vf,modal:()=>Rf,notice:()=>Uf,notification:()=>Hf,pageDesigner:()=>Bf,pageFooter:()=>wf,pageHeader:()=>Of,pageLayout:()=>Af,popover:()=>Df,radio:()=>mf,reorderableList:()=>_f,resolveFamilyClass:()=>Xn,resolveSizeClass:()=>Jn,semantic:()=>p,setVariable:()=>A,switch_:()=>Mf,table:()=>gf,tabs:()=>kf,textArea:()=>If,textInput:()=>Tf,titleBreadcrumb:()=>Cf,toggle:()=>zf,tooltip:()=>Vf,treeList:()=>ff,typographies:()=>cf,typographyBody1Medium:()=>Ll,typographyBody1Regular:()=>_l,typographyBody1Semibold:()=>kl,typographyBody2Medium:()=>Il,typographyBody2MediumUnderline:()=>Pl,typographyBody2Regular:()=>Tl,typographyBody2Semibold:()=>Nl,typographyCaption1Medium:()=>Dl,typographyCaption1Semibold:()=>$l,typographyCaption2Bold:()=>Bl,typographyCaption2Medium:()=>Ml,typographyCaption2Semibold:()=>Fl,typographyDisplay:()=>Ol,typographyTitle1:()=>wl,typographyTitle2:()=>Al,typographyTitle3:()=>Rl,typographyVariants:()=>df});var Ft=t=>typeof t=="string"?qt(t):t,o=class{static create(e,r,i,n){let a=l=>Ft(l??n),s=w`var(${Ft(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>A(s,l??a(n)),s.get=l=>w`var(${Ft(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=l=>i.get(l??n),s=w`var(${Ft(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>A(s,l??a(n)),s.get=l=>w`var(${Ft(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.defaultCssValue(a),n=w`var(${Ft(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>w`var(${Ft(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function A(t,e){return Ft(`${t.name}: ${e}`)}var c={colorWhite:o.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:o.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:o.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:o.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:o.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:o.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:o.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:o.create("--ftds-opacity-0","","NUMBER","0"),opacity4:o.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:o.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:o.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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)")},Ol={fontFamily:o.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-display-text-case","","UNKNOWN","none")},wl={fontFamily:o.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Al={fontFamily:o.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Rl={fontFamily:o.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},_l={fontFamily:o.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Ll={fontFamily:o.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},kl={fontFamily:o.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Tl={fontFamily:o.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},Il={fontFamily:o.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Pl={fontFamily:o.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Nl={fontFamily:o.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Dl={fontFamily:o.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},$l={fontFamily:o.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Ml={fontFamily:o.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Fl={fontFamily:o.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Bl={fontFamily:o.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},cf={display:Ol,"title-1":wl,"title-2":Al,"title-3":Rl,"body-1-regular":_l,"body-1-medium":Ll,"body-1-semibold":kl,"body-2-regular":Tl,"body-2-medium":Il,"body-2-medium-underline":Pl,"body-2-semibold":Nl,"caption-1-medium":Dl,"caption-1-semibold":$l,"caption-2-medium":Ml,"caption-2-semibold":Fl,"caption-2-bold":Bl},df=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var p={backgroundActionPrimary:o.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
+ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:o.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:o.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var pf={largeHeight:o.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ftds-button-primary-brand-background-color","",p.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",p.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",p.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",p.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-button-focus-focus-ring-color","",p.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",p.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",p.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",p.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ftds-button-tertiary-info-color","",p.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",p.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",p.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ftds-button-tertiary-success-color","",p.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",p.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",p.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ftds-button-tertiary-warning-color","",p.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",p.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",p.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ftds-button-tertiary-error-color","",p.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",p.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",p.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ftds-button-tertiary-neutral-icon-color","",p.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",p.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",p.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ftds-button-secondary-brand-color","",p.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",p.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",p.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ftds-button-secondary-brand-border-color","",p.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ftds-button-secondary-neutral-color","",p.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",p.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",p.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",p.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ftds-button-secondary-info-border-color","",p.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",p.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",p.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",p.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ftds-button-secondary-success-border-color","",p.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",p.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",p.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",p.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ftds-button-secondary-warning-border-color","",p.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",p.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",p.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",p.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ftds-button-secondary-error-border-color","",p.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",p.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",p.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",p.contentErrorPrimary)};var uf={borderRadius:o.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:o.extend("--ftds-card-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:o.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:o.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:o.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:o.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:o.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:o.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:o.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:o.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:o.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:o.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:o.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:o.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:o.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:o.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:o.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:o.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:o.extend("--ftds-card-non-selectable-state-layer-color","",p.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:o.extend("--ftds-card-non-selectable-default-background-color","",p.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:o.extend("--ftds-card-non-selectable-default-border-color","",p.borderGlobalSecondary),nonSelectableHoverBorderColor:o.extend("--ftds-card-non-selectable-hover-border-color","",p.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:o.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:o.extend("--ftds-card-non-selectable-focus-border-color","",p.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:o.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:o.extend("--ftds-card-internal-border-color","",p.borderGlobalSecondary),selectableUnselectedBorderWidth:o.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:o.extend("--ftds-card-selectable-unselected-state-layer-color","",p.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:o.extend("--ftds-card-selectable-unselected-default-background-color","",p.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:o.extend("--ftds-card-selectable-unselected-default-border-color","",p.borderGlobalSecondary),selectableUnselectedHoverBorderColor:o.extend("--ftds-card-selectable-unselected-hover-border-color","",p.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:o.extend("--ftds-card-selectable-unselected-focus-border-color","",p.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:o.extend("--ftds-card-selectable-selected-border-color","",p.borderActionPrimary),selectableSelectedBorderWidth:o.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:o.extend("--ftds-card-selectable-selected-state-layer-color","",p.contentActionPrimary),selectableSelectedBackgroundColor:o.extend("--ftds-card-selectable-selected-background-color","",p.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:o.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:o.create("--ftds-card-internal-border-width","","SIZE","1px")};var ff={loadMoreIconSize:o.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:o.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-unselected-default-border-color","",p.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",p.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",p.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:o.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:o.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:o.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-node-unselected-default-border-color","",p.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",p.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",p.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",p.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",p.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",p.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",p.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",p.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",p.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",p.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:o.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ftds-tree-list-header-section-color","",p.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",p.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",p.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",p.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:o.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:o.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:o.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:o.extend("--ftds-tree-list-empty-state-title-label-color","",p.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",p.contentGlobalSecondary)};var hf={iconSize:o.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:o.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing1),color:o.extend("--ftds-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",p.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-checkbox-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:o.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:o.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:o.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:o.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:o.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:o.extend("--ftds-checkbox-error-unchecked-border-color","",p.borderErrorPrimary),errorStateLayerColor:o.extend("--ftds-checkbox-error-state-layer-color","",p.contentErrorPrimary),errorHelperTextColor:o.extend("--ftds-checkbox-error-helper-text-color","",p.borderErrorPrimary),errorCheckedBackgroundColor:o.extend("--ftds-checkbox-error-checked-background-color","",p.contentErrorPrimary),helperTextColor:o.extend("--ftds-checkbox-helper-text-color","",p.contentGlobalSubtle),groupVerticalGap:o.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var mf={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",p.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",p.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ftds-radio-unselected-state-layer-color","",p.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",p.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ftds-radio-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:o.extend("--ftds-radio-horizontal-gap","",c.spacing3)};var gf={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",p.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",p.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",p.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",p.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",p.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",p.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ftds-table-data-row-selectable-selected-color","",p.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ftds-table-data-row-clickable-focus-border-color","",p.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)};var yf={neutralOffHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",p.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ftds-chip-choice-neutral-off-background-color","",p.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",p.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",p.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",p.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",p.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ftds-chip-choice-neutral-on-background-color","",p.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",p.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",p.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",p.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",p.contentGlobalPrimary),largeMinHeight:o.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)};var bf={largeMinHeight:o.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ftds-chip-neutral-background-color","",p.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",p.borderGlobalSecondary),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",p.borderErrorSubtle)};var xf={horizontalGap:o.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:o.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:o.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:o.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:o.extend("--ftds-chip-group-count-chip-default-content-color","",p.contentActionPrimary),countChipHoverBackgroundColor:o.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:o.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:o.extend("--ftds-chip-group-count-chip-hover-content-color","",p.contentActionPrimary),countChipFocusedBackgroundColor:o.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:o.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:o.extend("--ftds-chip-group-count-chip-focused-content-color","",p.contentActionPrimary)};var vf={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",p.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",p.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",p.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",p.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",p.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",p.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",p.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",p.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",p.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",p.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",p.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",p.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",p.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",p.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",p.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:o.extend("--ftds-link-horizontal-gap","",c.spacing1)};var Sf={iconSize:o.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ftds-banner-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",p.borderInfoSubtle)};var Ef={horizontalPadding:o.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ftds-badge-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",p.contentActionPrimary)};var Cf={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",p.contentGlobalSubtle)};var Of={parentHorizontalPadding:o.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ftds-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",p.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",p.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ftds-page-header-bottom-border-color","",p.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var wf={horizontalPadding:o.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ftds-page-footer-top-border-color","",p.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var Af={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var Rf={smallContainerTargetWidth:o.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:o.extend("--ftds-modal-header-icon-size","",c.iconSize3),headerBackgroundColor:o.extend("--ftds-modal-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",p.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",p.contentGlobalPrimary),headerVerticalPadding:o.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),mediumContainerTargetWidth:o.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ftds-modal-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ftds-modal-body-vertical-gap","",c.spacing6),borderRadius:o.extend("--ftds-modal-border-radius","",c.borderRadiusM)};var _f={grabberIconSize:o.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize3),verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ftds-reorderable-list-reorderable-item-title-color","",p.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",p.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ftds-reorderable-list-reorderable-item-background-color","",p.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",p.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",p.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",p.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ftds-reorderable-list-border-color","",p.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",p.backgroundGlobalOnSurfaceDark)};var Lf={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ftds-drawer-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",p.contentGlobalSecondary),headerHeight:o.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ftds-drawer-buttons-bar-background-color","",p.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",p.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",p.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)};var kf={offBorderBottomWidth:o.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-tabs-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",p.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",p.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ftds-tabs-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",p.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",p.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-tabs-focus-focus-ring-color","",p.borderActionFocusRing),mainIconIconSize:o.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:o.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var Tf={largeFieldHorizontalPadding:o.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:o.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:o.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-input-content-value-color","",p.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",p.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-input-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",p.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-text-input-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var If={backgroundColor:o.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-area-content-value-color","",p.contentGlobalPrimary),labelColor:o.extend("--ftds-text-area-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-area-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-area-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-area-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-area-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-area-error-helper-icon-color","",p.contentErrorIconOnly),focusFocusRingColor:o.extend("--ftds-text-area-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ftds-text-area-border-radius","",c.borderRadiusS)};var Pf={height:o.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:o.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:o.extend("--ftds-floating-menu-off-icon-color","",p.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",p.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",p.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:o.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ftds-floating-menu-background-color","",p.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",p.contentActionPrimary),multiselectCheckedColor:o.extend("--ftds-floating-menu-multiselect-checked-color","",p.contentGlobalPrimary),multiselectCheckedIconColor:o.extend("--ftds-floating-menu-multiselect-checked-icon-color","",p.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",p.contentActionPrimary),multiselectIndeterminatedColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-color","",p.contentGlobalPrimary),multiselectIndeterminatedIconColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",p.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",p.contentGlobalPrimary),multiselectUncheckedColor:o.extend("--ftds-floating-menu-multiselect-unchecked-color","",p.contentGlobalPrimary),multiselectUncheckedIconColor:o.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",p.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",p.contentActionPrimary),selectAllCheckedColor:o.extend("--ftds-floating-menu-select-all-checked-color","",p.contentGlobalPrimary),selectAllCheckedIconColor:o.extend("--ftds-floating-menu-select-all-checked-icon-color","",p.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:o.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",p.contentGlobalPrimary),selectAllIndeterminatedColor:o.extend("--ftds-floating-menu-select-all-indeterminated-color","",p.contentGlobalPrimary),selectAllIndeterminatedIconColor:o.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",p.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:o.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",p.contentGlobalPrimary),selectAllUncheckedColor:o.extend("--ftds-floating-menu-select-all-unchecked-color","",p.contentGlobalPrimary),selectAllUncheckedIconColor:o.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",p.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:o.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",p.contentGlobalPrimary),defaultUncheckedColor:o.extend("--ftds-floating-menu-default-unchecked-color","",p.contentGlobalPrimary),defaultUncheckedIconColor:o.extend("--ftds-floating-menu-default-unchecked-icon-color","",p.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:o.extend("--ftds-floating-menu-default-checked-state-layer-color","",p.contentActionPrimary),defaultCheckedColor:o.extend("--ftds-floating-menu-default-checked-color","",p.contentActionPrimary),defaultCheckedIconColor:o.extend("--ftds-floating-menu-default-checked-icon-color","",p.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:o.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)};var Nf={menuVerticalGap:o.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:o.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:o.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:o.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:o.extend("--ftds-combobox-menu-new-value-label-color","",p.contentGlobalSubtle),menuNewValueBorderColor:o.extend("--ftds-combobox-menu-new-value-border-color","",p.borderGlobalPrimary),menuNewValueBorderWidth:o.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:o.extend("--ftds-combobox-menu-new-value-error-background-color","",p.backgroundErrorSubtle),menuNewValueErrorBorderColor:o.extend("--ftds-combobox-menu-new-value-error-border-color","",p.borderErrorPrimary),menuNewValueErrorStateLayerColor:o.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",p.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:o.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:o.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:o.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:o.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:o.extend("--ftds-combobox-menu-message-label-color","",p.contentGlobalSubtle),valuesChipBackgroundColor:o.extend("--ftds-combobox-values-chip-background-color","",p.backgroundGlobalOnSurface),valuesChipBorderColor:o.extend("--ftds-combobox-values-chip-border-color","",p.borderInputPrimary)};var Df={backgroundColor:o.extend("--ftds-popover-background-color","",p.backgroundGlobalOnSurface),titleColor:o.extend("--ftds-popover-title-color","",p.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",p.contentGlobalSecondary),gap:o.extend("--ftds-popover-gap","",c.spacing2),borderRadius:o.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:o.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:o.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:o.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:o.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:o.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:o.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:o.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)};var $f={hoverStateLayerOpacity:o.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ftds-collapsible-focus-focus-ring-color","",p.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ftds-collapsible-color","",p.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",p.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",p.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",p.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var Mf={groupHorizontalPadding:o.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ftds-switch-group-background-color","",p.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",p.borderGlobalSubtle),groupBorderRadius:o.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ftds-switch-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ftds-switch-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",p.contentActionPrimary),iconHorizontalPadding:o.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-switch-focus-focus-ring-color","",p.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var Ff={color1Light:o.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:o.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:o.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:o.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ftds-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var Bf={color1IconColor:o.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Uf={borderWidth:o.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ftds-notice-gap","",c.spacing2),iconSize:o.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ftds-notice-info-background-color","",p.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",p.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",p.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",p.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",p.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",p.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",p.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",p.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",p.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",p.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",p.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",p.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ftds-notice-dense-border-width","","SIZE","0")};var zf={offHoverStateLayerOpacity:o.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ftds-toggle-off-background-color","",p.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ftds-toggle-on-background-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",p.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",p.contentActionPrimary),color:o.extend("--ftds-toggle-color","",p.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",p.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",c.spacing3)};var Hf={iconSize:o.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ftds-notification-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",p.borderErrorSubtle),borderRadius:o.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ftds-notification-trailing-gap","",c.spacing8)};var Vf={horizontalPadding:o.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ftds-tooltip-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",p.contentGlobalPrimary),backgroundOpacity:o.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ftds-tooltip-gap","",c.spacing05)};var Wf={menuHorizontalPadding:o.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:o.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:o.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:o.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)};var So;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(So||(So={}));var Eo;(function(t){t.large="large",t.medium="medium",t.small="small"})(Eo||(Eo={}));function Xn(t){return`ftds--family-${t}`}function Jn(t){return`ftds--size-${t}`}var E={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:o.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:o.create("--ft-color-warning","","COLOR","#B74706"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:o.create("--ft-color-success","","COLOR","#187856"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var ta={};Q(ta,{DynamicImporter:()=>gi,dynamicImporter:()=>Gf});var gi=class{async import(e){if(e)return import(e)}},Gf=new gi;var ma={};Q(ma,{computeOffsetAutoPosition:()=>ha,computeOffsetPosition:()=>fa});var zl=["top","right","bottom","left"],Ul=["start","end"],oa=zl.reduce((t,e)=>t.concat(e,e+"-"+Ul[0],e+"-"+Ul[1]),[]),or=Math.min,yt=Math.max,Co=Math.round;var bt=t=>({x:t,y:t}),jf={left:"right",right:"left",bottom:"top",top:"bottom"};function Hl(t,e,r){return yt(t,or(e,r))}function Ir(t,e){return typeof t=="function"?t(e):t}function ir(t){return t.split("-")[0]}function xt(t){return t.split("-")[1]}function ia(t){return t==="x"?"y":"x"}function na(t){return t==="y"?"height":"width"}function Pr(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function aa(t){return ia(Pr(t))}function Vl(t,e,r){r===void 0&&(r=!1);let i=xt(t),n=aa(t),a=na(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=ra(s)),[s,ra(s)]}function Wl(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function ra(t){let e=ir(t);return jf[e]+t.slice(e.length)}function Kf(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function Gl(t){return typeof t!="number"?Kf(t):{top:t,right:t,bottom:t,left:t}}function nr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function jl(t,e,r){let{reference:i,floating:n}=t,a=Pr(e),s=aa(e),l=na(s),d=ir(e),u=a==="y",m=i.x+i.width/2-n.width/2,h=i.y+i.height/2-n.height/2,g=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:m,y:i.y-n.height};break;case"bottom":v={x:m,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:h};break;case"left":v={x:i.x-n.width,y:h};break;default:v={x:i.x,y:i.y}}let C=xt(e);return C&&(v[s]+=g*(C==="end"?1:-1)*(r&&u?-1:1)),v}async function Kl(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:v=0}=Ir(e,t),C=Gl(v),O=l[g?h==="floating"?"reference":"floating":h],I=nr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(O)))==null||r?O:O.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:m,strategy:d})),K=h==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,b=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),x=await(a.isElement==null?void 0:a.isElement(b))&&await(a.getScale==null?void 0:a.getScale(b))||{x:1,y:1},S=nr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:K,offsetParent:b,strategy:d}):K);return{top:(I.top-S.top+C.top)/x.y,bottom:(S.bottom-I.bottom+C.bottom)/x.y,left:(I.left-S.left+C.left)/x.x,right:(S.right-I.right+C.right)/x.x}}var Zf=50,Zl=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:Kl},d=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:m,y:h}=jl(u,i,d),g=i,v=0,C={};for(let k=0;k<a.length;k++){let O=a[k];if(!O)continue;let{name:I,fn:K}=O,{x:b,y:x,data:S,reset:$}=await K({x:m,y:h,initialPlacement:i,placement:g,strategy:n,middlewareData:C,rects:u,platform:l,elements:{reference:t,floating:e}});m=b??m,h=x??h,C[I]={...C[I],...S},$&&v<Zf&&(v++,typeof $=="object"&&($.placement&&(g=$.placement),$.rects&&(u=$.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):$.rects),{x:m,y:h}=jl(u,g,d)),k=-1)}return{x:m,y:h,placement:g,strategy:n,middlewareData:C}};function qf(t,e,r){return(t?[...r.filter(n=>xt(n)===t),...r.filter(n=>xt(n)!==t)]:r.filter(n=>ir(n)===n)).filter(n=>t?xt(n)===t||(e?Wl(n)!==n:!1):!0)}var ql=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:u}=e,{crossAxis:m=!1,alignment:h,allowedPlacements:g=oa,autoAlignment:v=!0,...C}=Ir(t,e),k=h!==void 0||g===oa?qf(h||null,v,g):g,O=((r=s.autoPlacement)==null?void 0:r.index)||0,I=k[O];if(I==null)return{};if(l!==I)return{reset:{placement:k[0]}};let K=await d.detectOverflow(e,C),b=Vl(I,a,await(d.isRTL==null?void 0:d.isRTL(u.floating))),x=[K[ir(I)],K[b[0]],K[b[1]]],S=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:I,overflows:x}],$=k[O+1];if($)return{data:{index:O+1,overflows:S},reset:{placement:$}};let F=S.map(P=>{let V=xt(P.placement);return[P.placement,V&&m?P.overflows.slice(0,2).reduce((ce,ht)=>ce+ht,0):P.overflows[0],P.overflows]}).sort((P,V)=>P[1]-V[1]),J=((n=F.filter(P=>P[2].slice(0,xt(P[0])?2:3).every(V=>V<=0))[0])==null?void 0:n[0])||F[0][0];return J!==l?{data:{index:O+1,overflows:S},reset:{placement:J}}:{}}}};var Yf=new Set(["left","top"]);async function Xf(t,e){let{placement:r,platform:i,elements:n}=t,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=ir(r),l=xt(r),d=Pr(r)==="y",u=Yf.has(s)?-1:1,m=a&&d?-1:1,h=Ir(e,t),{mainAxis:g,crossAxis:v,alignmentAxis:C}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof C=="number"&&(v=l==="end"?C*-1:C),d?{x:v*m,y:g*u}:{x:g*u,y:v*m}}var Yl=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,i;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await Xf(e,t);return s===((r=l.offset)==null?void 0:r.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},Xl=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:K=>{let{x:b,y:x}=K;return{x:b,y:x}}},...u}=Ir(t,e),m={x:r,y:i},h=await a.detectOverflow(e,u),g=Pr(n),v=ia(g),C=m[v],k=m[g],O=(K,b)=>Hl(b+h[K==="y"?"top":"left"],b,b-h[K==="y"?"bottom":"right"]);s&&(C=O(v,C)),l&&(k=O(g,k));let I=d.fn({...e,[v]:C,[g]:k});return{...I,data:{x:I.x-r,y:I.y-i,enabled:{[v]:s,[g]:l}}}}}};var Jl=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:i,platform:n,elements:a}=e,{apply:s=()=>{},...l}=Ir(t,e),d=await n.detectOverflow(e,l),u=ir(r),m=xt(r),h=Pr(r)==="y",{width:g,height:v}=i.floating,C,k;u==="top"||u==="bottom"?(C=u,k=m===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(k=u,C=m==="end"?"top":"bottom");let O=v-d.top-d.bottom,I=g-d.left-d.right,K=or(v-d[C],O),b=or(g-d[k],I),x=e.middlewareData.shift,S=!x,$=K,F=b;x!=null&&x.enabled.x&&(F=I),x!=null&&x.enabled.y&&($=O),S&&!m&&(h?F=g-2*yt(d.left,d.right):$=v-2*yt(d.top,d.bottom)),await s({...e,availableWidth:F,availableHeight:$});let N=await n.getDimensions(a.floating);return g!==N.width||v!==N.height?{reset:{rects:!0}}:{}}}};function bi(){return typeof window<"u"}function sr(t){return ec(t)?(t.nodeName||"").toLowerCase():"#document"}function Fe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Lt(t){var e;return(e=(ec(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ec(t){return bi()?t instanceof Node||t instanceof Fe(t).Node:!1}function st(t){return bi()?t instanceof Element||t instanceof Fe(t).Element:!1}function kt(t){return bi()?t instanceof HTMLElement||t instanceof Fe(t).HTMLElement:!1}function Ql(t){return!bi()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Fe(t).ShadowRoot}function Oo(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=lt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function tc(t){return/^(table|td|th)$/.test(sr(t))}function wo(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Jf=/transform|translate|scale|rotate|perspective|filter/,Qf=/paint|layout|strict|content/,ar=t=>!!t&&t!=="none",sa;function Nr(t){let e=st(t)?lt(t):t;return ar(e.transform)||ar(e.translate)||ar(e.scale)||ar(e.rotate)||ar(e.perspective)||!xi()&&(ar(e.backdropFilter)||ar(e.filter))||Jf.test(e.willChange||"")||Qf.test(e.contain||"")}function rc(t){let e=Bt(t);for(;kt(e)&&!Dr(e);){if(Nr(e))return e;if(wo(e))return null;e=Bt(e)}return null}function xi(){return sa==null&&(sa=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),sa}function Dr(t){return/^(html|body|#document)$/.test(sr(t))}function lt(t){return Fe(t).getComputedStyle(t)}function Ao(t){return st(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Bt(t){if(sr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Ql(t)&&t.host||Lt(t);return Ql(e)?e.host:e}function oc(t){let e=Bt(t);return Dr(e)?(t.ownerDocument||t).body:kt(e)&&Oo(e)?e:oc(e)}function yi(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=oc(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Fe(n);if(a){let l=vi(s);return e.concat(s,s.visualViewport||[],Oo(n)?n:[],l&&r?yi(l):[])}else return e.concat(n,yi(n,[],r))}function vi(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ac(t){let e=lt(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=kt(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,l=Co(r)!==a||Co(i)!==s;return l&&(r=a,i=s),{width:r,height:i,$:l}}function sc(t){return st(t)?t:t.contextElement}function $r(t){let e=sc(t);if(!kt(e))return bt(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=ac(e),s=(a?Co(r.width):r.width)/i,l=(a?Co(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var eh=bt(0);function lc(t){let e=Fe(t);return!xi()||!e.visualViewport?eh:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function th(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Fe(t)}function Ro(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=sc(t),s=bt(1);e&&(i?st(i)&&(s=$r(i)):s=$r(t));let l=th(a,r,i)?lc(a):bt(0),d=(n.left+l.x)/s.x,u=(n.top+l.y)/s.y,m=n.width/s.x,h=n.height/s.y;if(a&&i){let g=Fe(a),v=st(i)?Fe(i):i,C=g,k=vi(C);for(;k&&v!==C;){let O=$r(k),I=k.getBoundingClientRect(),K=lt(k),b=I.left+(k.clientLeft+parseFloat(K.paddingLeft))*O.x,x=I.top+(k.clientTop+parseFloat(K.paddingTop))*O.y;d*=O.x,u*=O.y,m*=O.x,h*=O.y,d+=b,u+=x,C=Fe(k),k=vi(C)}}return nr({width:m,height:h,x:d,y:u})}function Si(t,e){let r=Ao(t).scrollLeft;return e?e.left+r:Ro(Lt(t)).left+r}function cc(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Si(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function rh(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,a=n==="fixed",s=Lt(i),l=e?wo(e.floating):!1;if(i===s||l&&a)return r;let d={scrollLeft:0,scrollTop:0},u=bt(1),m=bt(0),h=kt(i);if((h||!a)&&((sr(i)!=="body"||Oo(s))&&(d=Ao(i)),h)){let v=Ro(i);u=$r(i),m.x=v.x+i.clientLeft,m.y=v.y+i.clientTop}let g=s&&!h&&!a?cc(s,d):bt(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-d.scrollLeft*u.x+m.x+g.x,y:r.y*u.y-d.scrollTop*u.y+m.y+g.y}}function oh(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function ih(t){let e=Ao(t),r=t.ownerDocument.body,i=yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+Si(t),s=-e.scrollTop;return lt(r).direction==="rtl"&&(a+=yt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}var nh=25;function ah(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Fe(t),a=Lt(t),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,u=0,m=0;if(s){let g=!xi()||e==="fixed";i?g||(u=-s.offsetLeft,m=-s.offsetTop):(l=s.width,d=s.height,g&&(u=s.offsetLeft,m=s.offsetTop))}if(Si(a)<=0){let g=a.ownerDocument,v=g.body,C=getComputedStyle(v),k=g.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,O=Math.abs(a.clientWidth-v.clientWidth-k),I=getComputedStyle(a).scrollbarGutter==="stable both-edges"?O/2:O;I<=nh&&(l-=I)}return{width:l,height:d,x:u,y:m}}function sh(t,e){let r=Ro(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=$r(t),s=t.clientWidth*a.x,l=t.clientHeight*a.y,d=n*a.x,u=i*a.y;return{width:s,height:l,x:d,y:u}}function ic(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=ah(t,r,e);else if(e==="document")i=ih(Lt(t));else if(st(e))i=sh(e,r);else{let n=lc(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return nr(i)}function lh(t,e){let r=e.get(t);if(r)return r;let i=yi(t,[],!1).filter(l=>st(l)&&sr(l)!=="body"),n=null,a=lt(t).position==="fixed",s=a?Bt(t):t;for(;st(s)&&!Dr(s);){let l=lt(s),d=Nr(s),u=n?n.position:a?"fixed":"";!d&&(u==="fixed"||u==="absolute"&&l.position==="static")?i=i.filter(h=>h!==s):n=l,s=Bt(s)}return e.set(t,i),i}function ch(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?wo(e)?[]:lh(e,this._c):[].concat(r),i],l=ic(e,s[0],n),d=l.top,u=l.right,m=l.bottom,h=l.left;for(let g=1;g<s.length;g++){let v=ic(e,s[g],n);d=yt(v.top,d),u=or(v.right,u),m=or(v.bottom,m),h=yt(v.left,h)}return{width:u-h,height:m-d,x:h,y:d}}function dh(t){let{width:e,height:r}=ac(t);return{width:e,height:r}}function ph(t,e,r){let i=kt(e),n=Lt(e),a=r==="fixed",s=Ro(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=bt(0);if((i||!a)&&((sr(e)!=="body"||Oo(n))&&(l=Ao(e)),i)){let g=Ro(e,!0,a,e);d.x=g.x+e.clientLeft,d.y=g.y+e.clientTop}!i&&n&&(d.x=Si(n));let u=n&&!i&&!a?cc(n,l):bt(0),m=s.left+l.scrollLeft-d.x-u.x,h=s.top+l.scrollTop-d.y-u.y;return{x:m,y:h,width:s.width,height:s.height}}function la(t){return lt(t).position==="static"}function nc(t,e){if(!kt(t)||lt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Lt(t)===r&&(r=r.ownerDocument.body),r}function dc(t,e){let r=Fe(t);if(wo(t))return r;if(!kt(t)){let n=Bt(t);for(;n&&!Dr(n);){if(st(n)&&!la(n))return n;n=Bt(n)}return r}let i=nc(t,e);for(;i&&tc(i)&&la(i);)i=nc(i,e);return i&&Dr(i)&&la(i)&&!Nr(i)?r:i||rc(t)||r}var uh=async function(t){let e=this.getOffsetParent||dc,r=this.getDimensions,i=await r(t.floating);return{reference:ph(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function fh(t){return lt(t).direction==="rtl"}var Mr={convertOffsetParentRelativeRectToViewportRelativeRect:rh,getDocumentElement:Lt,getClippingRect:ch,getOffsetParent:dc,getElementRects:uh,getClientRects:oh,getDimensions:dh,getScale:$r,isElement:st,isRTL:fh};var pc=Yl,ca=ql,uc=Xl;var fc=Jl;var da=(t,e,r)=>{let i=new Map,n=r??{},a={...Mr,...n.platform,_c:i};return Zl(t,e,{...n,platform:a})};function ua(t){return hh(t)}function pa(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function hh(t){for(let e=t;e;e=pa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=pa(t);e;e=pa(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Nr(r)||e.tagName==="BODY"))return e}return null}async function fa(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},da(t,e,{strategy:i.strategy,platform:{...Mr,getOffsetParent:n=>Mr.getOffsetParent(n,ua)},middleware:[uc({crossAxis:!0}),ca({allowedPlacements:[i.placement]})]})}async function ha(t,e,r,i,n,a,s){let l,d;return typeof r=="object"?(l=r.placement,i=r.allowedPlacements,n=r.strategy,a=r.maxHeightCssVariable,d=r.maxWidthCssVariable,s=r.offsetValue):l=r,da(t,e,{placement:l,strategy:n,platform:{...Mr,getOffsetParent:u=>Mr.getOffsetParent(u,ua)},middleware:[pc(s??4),ca({allowedPlacements:i}),fc({apply({availableHeight:u,availableWidth:m,elements:h}){typeof a=="string"&&(a=`var(${a})`),a?h.floating.style.maxHeight=`min(${Math.max(0,u)}px, ${a})`:h.floating.style.maxHeight=`${Math.max(0,u)}px`,typeof d=="string"&&(d=`var(${d})`),d?h.floating.style.maxWidth=`min(${Math.max(0,m)}px, ${d})`:h.floating.style.maxWidth=`${Math.max(0,m)}px`}})]})}var ga={};Q(ga,{isSlotEmptyOrWithoutContent:()=>_o});var _o=t=>t?t.assignedNodes({flatten:!0}).filter(i=>{var n;return i.nodeType===Node.TEXT_NODE?((n=i.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0;var Ea={};Q(Ea,{FtdsBase:()=>Sa,toFtdsBase:()=>vc});var va={};Q(va,{ExportpartsUpdatedEvent:()=>lr,FtLitElement:()=>D});var ya={};Q(ya,{ScopedRegistryLitElement:()=>Lo});var Lo=class extends Qe{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return lo(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){go(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};var xa={};Q(xa,{shadowQuerySelector:()=>ba,shadowQuerySelectorAll:()=>mh});function ba(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function mh(t,e,...r){let i=[...t.querySelectorAll(e)];for(let n of r)i=i.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 i}var Fr=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},yc,hc=Symbol("constructorPrototype"),mc=Symbol("constructorName"),bc=Symbol("exportpartsDebouncer"),gc=Symbol("dynamicDependenciesLoaded"),lr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};lr.eventName="exportparts-updated";var D=class extends Lo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[yc]=new te(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[bc].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[mc]=this.constructor.name,this[hc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[mc]&&Object.setPrototypeOf(this,this[hc])}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(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[gc]||(r[gc]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(lr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(lr.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 lr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=ba(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).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 r,i,n,a,s,l;let d=g=>g!=null&&g.trim().length>0,u=e.filter(d).map(g=>g.trim());if(u.length===0){this.exportparts=void 0;return}let m=new Set;for(let g of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let v=(a=(n=g.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],C=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[],k=[...v,...C].filter(d).map(O=>O.trim());for(let O of k)m.add(O)}if(m.size===0){this.exportparts=void 0;return}let h=[...m.values()].flatMap(g=>u.map(v=>`${g}:${v}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};yc=bc;Fr([f()],D.prototype,"exportpartsPrefix",void 0);Fr([le([])],D.prototype,"exportpartsPrefixes",void 0);Fr([f({reflect:!0})],D.prototype,"exportparts",void 0);Fr([f()],D.prototype,"customStylesheet",void 0);Fr([f()],D.prototype,"elementToFocus",void 0);Fr([_()],D.prototype,"useAdoptedStyleSheets",void 0);var xc=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},vc=Ce(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=Eo.medium,this.family=So.neutral}getDesignSystemBaseClasses(){return{[Xn(this.family)]:!0,[Jn(this.size)]:!0}}}return xc([f()],e.prototype,"size",void 0),xc([f()],e.prototype,"family",void 0),e}),Sa=class extends vc(D){};var Sc={};var wa={};Q(wa,{highlightHtml:()=>Oa,highlightHtmlColorCssVariable:()=>Ec,highlightHtmlStyles:()=>yh});var cr=class t{constructor(e,r=!0,i=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=i,this.iframesTimeout=n}static matches(e,r){let i=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,r=[];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(i=>{let n=r.filter(a=>a.contains(i)).length>0;r.indexOf(i)===-1&&!n&&r.push(i)}),r}getIframeContents(e,r,i=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&r(n)}isIframeBlank(e){let r="about:blank",i=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&i!==r&&i}observeIframeLoad(e,r,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,i))}catch{i()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,i){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,i):this.getIframeContents(e,r,i):this.observeIframeLoad(e,r,i)}catch{i()}}waitForIframes(e,r){let i=0;this.forEachIframe(e,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||r()})},n=>{n||r()})}forEachIframe(e,r,i,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(u=>{t.matches(u,this.exclude)?d():this.onIframeReady(u,m=>{r(u)&&(l++,i(m)),d()},d)})}createIterator(e,r,i){return document.createNodeIterator(e,r,i,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,i){let n=e.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),i;return r===null?i=e.nextNode():i=e.nextNode()&&e.nextNode(),{prevNode:r,node:i}}checkIframeFilter(e,r,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(e,r,i)?(a===!1&&!s?n.push({val:i,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(e,r,i,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,i,n)})})}iterateThroughNodes(e,r,i,n,a){let s=this.createIterator(r,e,n),l=[],d=[],u,m,h=()=>({prevNode:m,node:u}=this.getIteratorNode(s),u);for(;h();)this.iframes&&this.forEachIframe(r,g=>this.checkIframeFilter(u,m,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,v=>d.push(v),n)}),d.push(u);d.forEach(g=>{i(g)}),this.iframes&&this.handleOpenIframes(l,e,i,n),a()}forEachNode(e,r,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var ko=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.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 cr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[r]=="function"&&i[r](`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 r=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[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${i}`),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,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&r.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",i=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=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,a=typeof i=="string"?[]:i.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):i.trim()&&r.indexOf(i)===-1&&r.push(i)}),{keywords:r.sort((i,n)=>n.length-i.length),length:r.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 r=[],i=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=a,n.length=s-a,r.push(n),i=s)}),r}callNoMatchOnInvalidRanges(e,r){let i,n,a=!1;return e&&typeof e.start<"u"?(i=parseInt(e.start,10),n=i+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-i>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:i,end:n,valid:a}}checkWhitespaceRanges(e,r,i){let n,a=!0,s=i.length,l=r-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)):i.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 r="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:i})})}matchesExclude(e){return cr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,i){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(i-r),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,r,i,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(s.node))return!1;let u=r-s.start,m=(i>s.end?s.end:i)-s.start,h=e.value.substr(0,s.start),g=e.value.substr(m+s.start);if(s.node=this.wrapRangeInTextNode(s.node,u,m),e.value=h+g,e.nodes.forEach((v,C)=>{C>=l&&(e.nodes[C].start>0&&C!==l&&(e.nodes[C].start-=m),e.nodes[C].end-=m)}),i-=m,a(s.node.previousSibling,s.start),i>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let u;for(;(u=e.exec(d.textContent))!==null&&u[s]!=="";){if(!i(u[s],d))continue;let m=u.index;if(s!==0)for(let h=1;h<s;h++)m+=u[h].length;d=this.wrapRangeInTextNode(d,m,m+u[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let u=d.index;if(s!==0)for(let h=1;h<s;h++)u+=d[h].length;let m=u+d[s].length;this.wrapRangeInMappedTextNode(l,u,m,h=>i(d[s],h),(h,g)=>{e.lastIndex=g,n(h)})}a()})}wrapRangeFromIndex(e,r,i,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:u,end:m,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,u,m,g=>r(g,l,a.value.substring(u,m),d),g=>{i(g,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,i=document.createDocumentFragment();for(;e.firstChild;)i.appendChild(e.removeChild(e.firstChild));r.replaceChild(i,e),this.ie?this.normalizeTextNode(r):r.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,r){this.opt=r,this.log(`Searching with expression "${e}"`);let i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(e),this.opt.done(i)})}mark(e,r){this.opt=r;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=u=>{let m=new RegExp(this.createRegExp(u),`gm${l}`),h=0;this.log(`Searching with expression "${m}"`),this[n](m,1,(g,v)=>this.opt.filter(v,u,i,h),g=>{h++,i++,this.opt.each(g)},()=>{h===0&&this.opt.noMatch(u),a[s-1]===u?this.opt.done(i):d(a[a.indexOf(u)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(e,r){this.opt=r;let i=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)=>{i++,this.opt.each(a,s)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=cr.matches(i,r),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ca(t){let e=new ko(t);return this.mark=(r,i)=>(e.mark(r,i),this),this.markRegExp=(r,i)=>(e.markRegExp(r,i),this),this.markRanges=(r,i)=>(e.markRanges(r,i),this),this.unmark=r=>(e.unmark(r),this),this}var gh=Ca,Ec=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),yh=w`
5
5
  .highlight-html-match {
6
- background: ${hc};
6
+ background: ${Ec};
7
7
  }
8
- `;function ua(t,e,r){var i,n;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new rh(t);if(s.unmark(),e&&e.trim()){let l={className:(i=r?.className)!==null&&i!==void 0?i:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=u=>{for(let h in r.attributes)u.setAttribute(h,r.attributes[h])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(u=>s.mark(u.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var ga={};J(ga,{noTextInputDefaultClearButton:()=>Mo,noTextSelect:()=>ur,safariEllipsisFix:()=>ma,wordWrap:()=>ha});var ur=A`
8
+ `;function Oa(t,e,r){var i,n;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new gh(t);if(s.unmark(),e&&e.trim()){let l={className:(i=r?.className)!==null&&i!==void 0?i:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=u=>{for(let m in r.attributes)u.setAttribute(m,r.attributes[m])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(u=>s.mark(u.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var _a={};Q(_a,{noTextInputDefaultClearButton:()=>To,noTextSelect:()=>dr,safariEllipsisFix:()=>Ra,wordWrap:()=>Aa});var dr=w`
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:o.extend("--ftds-con
14
14
  -ms-user-select: none;
15
15
  user-select: none;
16
16
  }
17
- `,ha=A`
17
+ `,Aa=w`
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:o.extend("--ftds-con
26
26
  -webkit-hyphens: auto;
27
27
  hyphens: auto
28
28
  }
29
- `,ma=A`
29
+ `,Ra=w`
30
30
  .ft-safari-ellipsis-fix {
31
31
  margin-right: 0;
32
32
 
@@ -37,14 +37,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
37
37
  display: inline-block;
38
38
  width: 0;
39
39
  }
40
- `,Mo=A`
40
+ `,To=w`
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 mc={};var ya={};J(ya,{ParametrizedLabelResolver:()=>Bt});var Bt=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var i,n;e=this.resolvePluralKey(e,r);let a=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((i,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(i,s))),e}resolvePluralKey(e,r){for(let i of r)if(typeof i=="number"){let n=`${String(e)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let i=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var za={};J(za,{FtCommandQueue:()=>Fo,FtLitElementRedux:()=>hr,FtReduxStore:()=>yr,FtStateManager:()=>Vo,ReduxWatcher:()=>Ti,clearAllStores:()=>Hh,isFtReduxStore:()=>Vr,redux:()=>Hr,reduxEventListener:()=>nh,reduxReactive:()=>ih,watch:()=>Vh,withRedux:()=>gc});var ih=()=>(t,e)=>{var r;let i=t.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(r=i.reduxReactiveProperties)===null||r===void 0||r.add(e)},Hr=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:st,attribute:!1,...e};m(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[i]),store:e.store})}},nh=t=>(e,r)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(r,t)};var Fo=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function Vr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Bo=Symbol("internalReduxEventsUnsubscribers"),Ut=Symbol("internalStoresUnsubscribers"),fr=Symbol("internalStores"),gc=Ee(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=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[fr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[fr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[fr].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[fr].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[fr].delete(l)}setupStores(){this.unsubscribeFromStores(),this[fr].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 u=this.getStore(s.store);u&&(s.store?this[Ut].has(s.store):this[Ut].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var d;this[Ut].set(s,l.subscribe(()=>this.updateFromStores())),this[Bo].set(s,[]),Vr(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,h)=>{if(typeof this[h]=="function"&&(!u.store||l.name===u.store)){let f=g=>this[h](g);l.addEventListener(u.eventName,f),this[Bo].get(s).push(()=>l.removeEventListener(u.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Ut].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Ut].has(s)&&this[Ut].get(s)(),this[Ut].delete(s),(l=this[Bo].get(s))===null||l===void 0||l.forEach(d=>d()),this[Bo].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Ut,r=fr,i=Bo,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),hr=class extends gc(D){};function tt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function _t(t){return!!t&&!!t[de]}function dt(t){var e;return!!t&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===fh})(t)||Array.isArray(t)||!!t[Oc]||!!(!((e=t.constructor)===null||e===void 0)&&e[Oc])||Aa(t)||Ra(t))}function mr(t,e,r){r===void 0&&(r=!1),Gr(t)===0?(r?Object.keys:jr)(t).forEach((function(i){r&&typeof i=="symbol"||e(i,t[i],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Gr(t){var e=t[de];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Aa(t)?2:Ra(t)?3:0}function Wr(t,e){return Gr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ah(t,e){return Gr(t)===2?t.get(e):t[e]}function Ec(t,e,r){var i=Gr(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function wc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Aa(t){return ph&&t instanceof Map}function Ra(t){return uh&&t instanceof Set}function zt(t){return t.o||t.t}function La(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Lc(t);delete e[de];for(var r=jr(e),i=0;i<r.length;i++){var n=r[i],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:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function ka(t,e){return e===void 0&&(e=!1),Ta(t)||_t(t)||!dt(t)||(Gr(t)>1&&(t.set=t.add=t.clear=t.delete=sh),Object.freeze(t),e&&mr(t,(function(r,i){return ka(i,!0)}),!0)),t}function sh(){tt(2)}function Ta(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function xt(t){var e=wa[t];return e||tt(18,t),e}function lh(t,e){wa[t]||(wa[t]=e)}function Ca(){return zo}function ba(t,e){e&&(xt("Patches"),t.u=[],t.s=[],t.v=e)}function wi(t){Oa(t),t.p.forEach(ch),t.p=null}function Oa(t){t===zo&&(zo=t.l)}function yc(t){return zo={p:[],l:zo,h:t,m:!0,_:0}}function ch(t){var e=t[de];e.i===0||e.i===1?e.j():e.g=!0}function va(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||xt("ES5").S(e,t,i),i?(r[de].P&&(wi(e),tt(4)),dt(t)&&(t=Ai(e,t),e.l||Ri(e,t)),e.u&&xt("Patches").M(r[de].t,t,e.u,e.s)):t=Ai(e,r,[]),wi(e),e.u&&e.v(e.u,e.s),t!==Rc?t:void 0}function Ai(t,e,r){if(Ta(e))return e;var i=e[de];if(!i)return mr(e,(function(l,d){return bc(t,i,e,l,d,r)}),!0),e;if(i.A!==t)return e;if(!i.P)return Ri(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=La(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),mr(a,(function(l,d){return bc(t,i,n,l,d,r,s)})),Ri(t,n,!1),r&&t.u&&xt("Patches").N(i,r,t.u,t.s)}return i.o}function bc(t,e,r,i,n,a,s){if(_t(n)){var l=Ai(t,n,a&&e&&e.i!==3&&!Wr(e.R,i)?a.concat(i):void 0);if(Ec(r,i,l),!_t(l))return;t.m=!1}else s&&r.add(n);if(dt(n)&&!Ta(n)){if(!t.h.D&&t._<1)return;Ai(t,n),e&&e.A.l||Ri(t,n)}}function Ri(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&ka(e,r)}function xa(t,e){var r=t[de];return(r?zt(r):t)[e]}function vc(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function Ht(t){t.P||(t.P=!0,t.l&&Ht(t.l))}function Sa(t){t.o||(t.o=La(t.t))}function Ea(t,e,r){var i=Aa(e)?xt("MapSet").F(e,r):Ra(e)?xt("MapSet").T(e,r):t.O?(function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Ca(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,u=Ho;s&&(d=[l],u=Uo);var h=Proxy.revocable(d,u),f=h.revoke,g=h.proxy;return l.k=g,l.j=f,g})(e,r):xt("ES5").J(e,r);return(r?r.A:Ca()).p.push(i),i}function dh(t){return _t(t)||tt(22,t),(function e(r){if(!dt(r))return r;var i,n=r[de],a=Gr(r);if(n){if(!n.P&&(n.i<4||!xt("ES5").K(n)))return n.t;n.I=!0,i=xc(r,a),n.I=!1}else i=xc(r,a);return mr(i,(function(s,l){n&&ah(n.t,s)===l||Ec(i,s,e(l))})),a===3?new Set(i):i})(t)}function xc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return La(t)}function Ac(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var u=this[de];return Ho.get(u,s)},set:function(u){var h=this[de];Ho.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][de];if(!d.P)switch(d.i){case 5:i(d)&&Ht(d);break;case 4:r(d)&&Ht(d)}}}function r(s){for(var l=s.t,d=s.k,u=jr(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==de){var g=l[f];if(g===void 0&&!Wr(l,f))return!0;var y=d[f],b=y&&y[de];if(b?b.t!==g:!wc(y,g))return!0}}var C=!!l[de];return u.length!==jr(l).length+(C?0:1)}function i(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 u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function n(s){s.g&&tt(3,JSON.stringify(zt(s)))}var a={};lh("ES5",{J:function(s,l){var d=Array.isArray(s),u=(function(f,g){if(f){for(var y=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(y,""+b,t(b,!0));return y}var C=Lc(g);delete C[de];for(var E=jr(C),L=0;L<E.length;L++){var N=E[L];C[N]=t(N,f||!!C[N].enumerable)}return Object.create(Object.getPrototypeOf(g),C)})(d,s),h={i:d?5:4,A:l?l.A:Ca(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,de,{value:h,writable:!0}),u},S:function(s,l,d){d?_t(l)&&l[de].A===s&&e(s.p):(s.u&&(function u(h){if(h&&typeof h=="object"){var f=h[de];if(f){var g=f.t,y=f.k,b=f.R,C=f.i;if(C===4)mr(y,(function(x){x!==de&&(g[x]!==void 0||Wr(g,x)?b[x]||u(y[x]):(b[x]=!0,Ht(f)))})),mr(g,(function(x){y[x]!==void 0||Wr(y,x)||(b[x]=!1,Ht(f))}));else if(C===5){if(i(f)&&(Ht(f),b.length=!0),y.length<g.length)for(var E=y.length;E<g.length;E++)b[E]=!1;else for(var L=g.length;L<y.length;L++)b[L]=!0;for(var N=Math.min(y.length,g.length),S=0;S<N;S++)y.hasOwnProperty(S)||(b[S]=!0),b[S]===void 0&&u(y[S])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Sc,zo,_a=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ph=typeof Map<"u",uh=typeof Set<"u",Cc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Rc=_a?Symbol.for("immer-nothing"):((Sc={})["immer-nothing"]=!0,Sc),Oc=_a?Symbol.for("immer-draftable"):"__$immer_draftable",de=_a?Symbol.for("immer-state"):"__$immer_state";var fh=""+Object.prototype.constructor,jr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Lc=Object.getOwnPropertyDescriptors||function(t){var e={};return jr(t).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)})),e},wa={},Ho={get:function(t,e){if(e===de)return t;var r=zt(t);if(!Wr(r,e))return(function(n,a,s){var l,d=vc(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0})(t,r,e);var i=r[e];return t.I||!dt(i)?i:i===xa(t.t,e)?(Sa(t),t.o[e]=Ea(t.A.h,i,t)):i},has:function(t,e){return e in zt(t)},ownKeys:function(t){return Reflect.ownKeys(zt(t))},set:function(t,e,r){var i=vc(zt(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=xa(zt(t),e),a=n?.[de];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(wc(r,n)&&(r!==void 0||Wr(t.t,e)))return!0;Sa(t),Ht(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return xa(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Sa(t),Ht(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=zt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){tt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){tt(12)}},Uo={};mr(Ho,(function(t,e){Uo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Uo.deleteProperty=function(t,e){return Uo.set.call(this,t,e,void 0)},Uo.set=function(t,e,r){return Ho.set.call(this,t[0],e,r,t[0])};var hh=(function(){function t(r){var i=this;this.O=Cc,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=i;return function(C){var E=this;C===void 0&&(C=l);for(var L=arguments.length,N=Array(L>1?L-1:0),S=1;S<L;S++)N[S-1]=arguments[S];return d.produce(C,(function(x){var w;return(w=a).call.apply(w,[E,x].concat(N))}))}}var u;if(typeof a!="function"&&tt(6),s!==void 0&&typeof s!="function"&&tt(7),dt(n)){var h=yc(i),f=Ea(i,n,void 0),g=!0;try{u=a(f),g=!1}finally{g?wi(h):Oa(h)}return typeof Promise<"u"&&u instanceof Promise?u.then((function(C){return ba(h,s),va(C,h)}),(function(C){throw wi(h),C})):(ba(h,s),va(u,h))}if(!n||typeof n!="object"){if((u=a(n))===void 0&&(u=n),u===Rc&&(u=void 0),i.D&&ka(u,!0),s){var y=[],b=[];xt("Patches").M(n,u,y,b),s(y,b)}return u}tt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),g=1;g<h;g++)f[g-1]=arguments[g];return i.produceWithPatches(u,(function(y){return n.apply(void 0,[y].concat(f))}))};var s,l,d=i.produce(n,a,(function(u,h){s=u,l=h}));return typeof Promise<"u"&&d instanceof Promise?d.then((function(u){return[u,s,l]})):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){dt(r)||tt(8),_t(r)&&(r=dh(r));var i=yc(this),n=Ea(this,r,void 0);return n[de].C=!0,Oa(i),n},e.finishDraft=function(r,i){var n=r&&r[de],a=n.A;return ba(a,i),va(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Cc&&tt(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=xt("Patches").$;return _t(r)?s(r,i):this.produce(r,(function(l){return s(l,i)}))},t})(),We=new hh,mh=We.produce,d0=We.produceWithPatches.bind(We),p0=We.setAutoFreeze.bind(We),u0=We.setUseProxies.bind(We),f0=We.applyPatches.bind(We),h0=We.createDraft.bind(We),m0=We.finishDraft.bind(We),Li=mh;function gr(t){"@babel/helpers - typeof";return gr=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},gr(t)}function kc(t,e){if(gr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(gr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Tc(t){var e=kc(t,"string");return gr(e)=="symbol"?e:e+""}function _c(t,e,r){return(e=Tc(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ic(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Ia(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ic(Object(r),!0).forEach(function(i){_c(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ic(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Pe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Pc=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Pa=function(){return Math.random().toString(36).substring(7).split("").join(".")},ki={INIT:"@@redux/INIT"+Pa(),REPLACE:"@@redux/REPLACE"+Pa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Pa()}};function gh(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Na(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Pe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Pe(1));return r(Na)(t,e)}if(typeof t!="function")throw new Error(Pe(2));var n=t,a=e,s=[],l=s,d=!1;function u(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Pe(3));return a}function f(C){if(typeof C!="function")throw new Error(Pe(4));if(d)throw new Error(Pe(5));var E=!0;return u(),l.push(C),function(){if(E){if(d)throw new Error(Pe(6));E=!1,u();var N=l.indexOf(C);l.splice(N,1),s=null}}}function g(C){if(!gh(C))throw new Error(Pe(7));if(typeof C.type>"u")throw new Error(Pe(8));if(d)throw new Error(Pe(9));try{d=!0,a=n(a,C)}finally{d=!1}for(var E=s=l,L=0;L<E.length;L++){var N=E[L];N()}return C}function y(C){if(typeof C!="function")throw new Error(Pe(10));n=C,g({type:ki.REPLACE})}function b(){var C,E=f;return C={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(Pe(11));function S(){N.next&&N.next(h())}S();var x=E(S);return{unsubscribe:x}}},C[Pc]=function(){return this},C}return g({type:ki.INIT}),i={dispatch:g,subscribe:f,getState:h,replaceReducer:y},i[Pc]=b,i}function yh(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:ki.INIT});if(typeof i>"u")throw new Error(Pe(12));if(typeof r(void 0,{type:ki.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Pe(13))})}function Nc(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,l;try{yh(r)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var g=!1,y={},b=0;b<a.length;b++){var C=a[b],E=r[C],L=u[C],N=E(L,h);if(typeof N>"u"){var S=h&&h.type;throw new Error(Pe(14))}y[C]=N,g=g||N!==L}return g=g||a.length!==Object.keys(u).length,g?y:u}}function Kr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Dc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Pe(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Kr.apply(void 0,l)(n.dispatch),Ia(Ia({},n),{},{dispatch:a})}}}function $c(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,t):s(l)}}};return e}var Mc=$c();Mc.withExtraArgument=$c;var Da=Mc;var Hc=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}})(),bh=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,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(u){return function(h){return d([u,h])}}function d(u){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(h){u=[6,h],n=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},qr=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},vh=Object.defineProperty,xh=Object.defineProperties,Sh=Object.getOwnPropertyDescriptors,Fc=Object.getOwnPropertySymbols,Ch=Object.prototype.hasOwnProperty,Oh=Object.prototype.propertyIsEnumerable,Bc=function(t,e,r){return e in t?vh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Vt=function(t,e){for(var r in e||(e={}))Ch.call(e,r)&&Bc(t,r,e[r]);if(Fc)for(var i=0,n=Fc(e);i<n.length;i++){var r=n[i];Oh.call(e,r)&&Bc(t,r,e[r])}return t},$a=function(t,e){return xh(t,Sh(e))},Eh=function(t,e,r){return new Promise(function(i,n){var a=function(d){try{l(r.next(d))}catch(u){n(u)}},s=function(d){try{l(r.throw(d))}catch(u){n(u)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var wh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Kr:Kr.apply(null,arguments)},P0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Ah(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function Wt(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return Vt(Vt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}var Rh=(function(t){Hc(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||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 r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,qr([void 0],r[0].concat(this)))):new(e.bind.apply(e,qr([void 0],r.concat(this))))},e})(Array),Lh=(function(t){Hc(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||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 r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,qr([void 0],r[0].concat(this)))):new(e.bind.apply(e,qr([void 0],r.concat(this))))},e})(Array);function Ba(t){return dt(t)?Li(t,function(){}):t}function kh(t){return typeof t=="boolean"}function Th(){return function(e){return _h(e)}}function _h(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,l=t.actionCreatorCheck,d=l===void 0?!0:l,u=new Rh;if(r&&(kh(r)?u.push(Da):u.push(Da.withExtraArgument(r.extraArgument))),0){if(n)var h;if(s)var f;if(d)var g}return u}var Ma=!0;function Vc(t){var e=Th(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,u=r.preloadedState,h=u===void 0?void 0:u,f=r.enhancers,g=f===void 0?void 0:f,y;if(typeof n=="function")y=n;else if(Ah(n))y=Nc(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 b=s;if(typeof b=="function"&&(b=b(e),!Ma&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ma&&b.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=Dc.apply(void 0,b),E=Kr;d&&(E=wh(Vt({trace:!Ma},typeof d=="object"&&d)));var L=new Lh(C),N=L;Array.isArray(g)?N=qr([C],g):typeof g=="function"&&(N=g(L));var S=E.apply(void 0,N);return Na(y,h,S)}function Wc(t){var e={},r=[],i,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 r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,r,i]}function Ih(t){return typeof t=="function"}function Ph(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?Wc(e):[e,r,i],a=n[0],s=n[1],l=n[2],d;if(Ih(t))d=function(){return Ba(t())};else{var u=Ba(t);d=function(){return u}}function h(f,g){f===void 0&&(f=d());var y=qr([a[g.type]],s.filter(function(b){var C=b.matcher;return C(g)}).map(function(b){var C=b.reducer;return C}));return y.filter(function(b){return!!b}).length===0&&(y=[l]),y.reduce(function(b,C){if(C)if(_t(b)){var E=b,L=C(E,g);return L===void 0?b:L}else{if(dt(b))return Li(b,function(N){return C(N,g)});var L=C(b,g);if(L===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return b},f)}return h.getInitialState=d,h}function Nh(t,e){return t+"/"+e}function jc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Ba(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(h){var f=i[h],g=Nh(e,h),y,b;"reducer"in f?(y=f.reducer,b=f.prepare):y=f,a[h]=y,s[g]=y,l[h]=b?Wt(g,b):Wt(g)});function d(){var h=typeof t.extraReducers=="function"?Wc(t.extraReducers):[t.extraReducers],f=h[0],g=f===void 0?{}:f,y=h[1],b=y===void 0?[]:y,C=h[2],E=C===void 0?void 0:C,L=Vt(Vt({},g),s);return Ph(r,function(N){for(var S in L)N.addCase(S,L[S]);for(var x=0,w=b;x<w.length;x++){var $=w[x];N.addMatcher($.matcher,$.reducer)}E&&N.addDefaultCase(E)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:l,caseReducers:a,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var Dh="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",$h=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=Dh[Math.random()*64|0];return e},Mh=["name","message","stack","code"],Fa=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Uc=(function(){function t(e,r){this.payload=e,this.meta=r}return t})(),Fh=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=Mh;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},M0=(function(){function t(e,r,i){var n=Wt(e+"/fulfilled",function(h,f,g,y){return{payload:h,meta:$a(Vt({},y||{}),{arg:g,requestId:f,requestStatus:"fulfilled"})}}),a=Wt(e+"/pending",function(h,f,g){return{payload:void 0,meta:$a(Vt({},g||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Wt(e+"/rejected",function(h,f,g,y,b){return{payload:y,error:(i&&i.serializeError||Fh)(h||"Rejected"),meta:$a(Vt({},b||{}),{arg:g,requestId:f,rejectedWithValue:!!y,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:(function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h})();function u(h){return function(f,g,y){var b=i?.idGenerator?i.idGenerator(h):$h(),C=new d,E,L=!1;function N(x){E=x,C.abort()}var S=(function(){return Eh(this,null,function(){var x,w,$,ee,j,G,P;return bh(this,function(F){switch(F.label){case 0:return F.trys.push([0,4,,5]),ee=(x=i?.condition)==null?void 0:x.call(i,h,{getState:g,extra:y}),Uh(ee)?[4,ee]:[3,2];case 1:ee=F.sent(),F.label=2;case 2:if(ee===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,j=new Promise(function(Q,Ie){return C.signal.addEventListener("abort",function(){return Ie({name:"AbortError",message:E||"Aborted"})})}),f(a(b,h,(w=i?.getPendingMeta)==null?void 0:w.call(i,{requestId:b,arg:h},{getState:g,extra:y}))),[4,Promise.race([j,Promise.resolve(r(h,{dispatch:f,getState:g,extra:y,requestId:b,signal:C.signal,abort:N,rejectWithValue:function(Q,Ie){return new Fa(Q,Ie)},fulfillWithValue:function(Q,Ie){return new Uc(Q,Ie)}})).then(function(Q){if(Q instanceof Fa)throw Q;return Q instanceof Uc?n(Q.payload,b,h,Q.meta):n(Q,b,h)})])];case 3:return $=F.sent(),[3,5];case 4:return G=F.sent(),$=G instanceof Fa?s(null,b,h,G.payload,G.meta):s(G,b,h),[3,5];case 5:return P=i&&!i.dispatchConditionRejection&&s.match($)&&$.meta.condition,P||f($),[2,$]}})})})();return Object.assign(S,{abort:N,requestId:b,arg:h,unwrap:function(){return S.then(Bh)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t})();function Bh(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Uh(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Gc="listener",Kc="completed",qc="cancelled",F0="task-"+qc,B0="task-"+Kc,U0=Gc+"-"+qc,z0=Gc+"-"+Kc;var Ua="listenerMiddleware";var H0=Wt(Ua+"/add"),V0=Wt(Ua+"/removeAll"),W0=Wt(Ua+"/remove");var zc,j0=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(zc||(zc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},zh=function(t){return function(e){setTimeout(e,t)}},G0=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:zh(10);Ac();window.ftReduxStores||(window.ftReduxStores={});var yr=class t extends Lt{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Vr(a))return a;if(n==null)return;let s=jc({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=Vc({reducer:(d,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let h=at(s.getInitialState());for(let f of u.keeping)h[f]=(d??h)[f];return h}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...u.overwrites};return s.reducer(d,u)}});return window.ftReduxStores[n.name]=new t(s,l,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Fo;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,u=a[d];return u?(...h)=>{let f=u(...h.map(n));return this.reduxStore.dispatch(f),f}:h=>{let f=d,g=this.getState()[f];ge(g,h)||this.setState({[f]:n(h)})}}}),this.eventBus=i??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 Hh(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Vr(e)&&e.clear()}var Ti=class{constructor(e,r,i){this.store=e,this.valueSelector=r,this.callback=i}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);st(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Vh(t,e,r){return new Ti(t,e,r).watch()}var Vo=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let i of r)this.getOrCreateRequestConsumers(i).add(e).size==1&&this.onNewNeededRequest(i)}unregisterComponent(e,r){for(let i of r)this.getOrCreateRequestConsumers(i).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Wa={};J(Wa,{scrollHelper:()=>Wh});var Ha,_i=new Map,Va=class{lock(e,r){if(r){let i=_i.get(r);if(i==null||i===e)return _i.set(r,e),r}}release(e,r){r&&_i.get(r)===e&&_i.delete(r)}findFirstScrollableParent(e){var r;let i,n;for(let a of Rn(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){i=s;break}else l&&n==null&&(n=s)}return(r=i??n)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var i,n;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(i=r.offsetTop)!==null&&i!==void 0?i:0,r=r.offsetParent;return a+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let i=this.findFirstScrollableParent(e);if(e&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,e),a=n-i.clientHeight+e.clientHeight,s=n,l=ir(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;i.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(Ha=window.FluidTopicsScrollHelper)!==null&&Ha!==void 0?Ha:new Va;var Wh=window.FluidTopicsScrollHelper;var Ga={};J(Ga,{SearchPlaceConverter:()=>jt,SearchPlaceQueryParams:()=>V,isSearchPlaceQueryParams:()=>Md,serializeRequest:()=>Zh});var jh=t=>typeof t=="object"&&t!=null;var Gh=t=>typeof t=="number",Ii=t=>typeof t=="string",xd=t=>jh(t)&&Ii(t.endpoint)&&Ii(t.method)&&Ii(t.statusText)&&Ii(t.body)&&Gh(t.status),Zc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Zc||(Zc={}));var Yc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Yc||(Yc={}));var Xc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Xc||(Xc={}));var Jc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Jc||(Jc={}));var Qc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Qc||(Qc={}));var ed;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ed||(ed={}));var td;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(td||(td={}));var rd;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(rd||(rd={}));var od;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(od||(od={}));var id;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(id||(id={}));var nd;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(nd||(nd={}));var ad;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(ad||(ad={}));var sd;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(sd||(sd={}));var ld;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ld||(ld={}));var cd;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(cd||(cd={}));var dd;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(dd||(dd={}));var Zr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Zr||(Zr={}));var pd;(function(t){t.ASC="ASC",t.DESC="DESC"})(pd||(pd={}));var ud;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(ud||(ud={}));var ja;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ja||(ja={}));var Sd=t=>Object.keys(ja).includes(t);var fd;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(fd||(fd={}));var hd;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(hd||(hd={}));var md;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(md||(md={}));var Yr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Yr||(Yr={}));var Cd=t=>Object.keys(Yr).includes(t);var gd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(gd||(gd={}));var yd;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(yd||(yd={}));var bd;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(bd||(bd={}));var be;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(be||(be={}));var rt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(rt||(rt={}));var vd;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(vd||(vd={}));var Od;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Od||(Od={}));var Ed;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ed||(Ed={}));var wd;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(wd||(wd={}));var Ad;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Ad||(Ad={}));var Rd;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Rd||(Rd={}));var Ld;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ld||(Ld={}));var kd;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(kd||(kd={}));var Td;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Td||(Td={}));var _d;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(_d||(_d={}));var Id;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(Id||(Id={}));var Pd;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Pd||(Pd={}));var Kh={[be.PERSONAL_BOOK_SHARE_USER]:[be.PERSONAL_BOOK_USER],[be.HTML_EXPORT_USER]:[be.PERSONAL_BOOK_USER],[be.PDF_EXPORT_USER]:[be.PERSONAL_BOOK_USER],[be.KHUB_ADMIN]:[be.CONTENT_PUBLISHER],[be.ADMIN]:[be.KHUB_ADMIN,be.USERS_ADMIN,be.PORTAL_ADMIN,be.BEHAVIOR_DATA_USER],[be.GENERATIVE_AI_EXPORT_USER]:[be.GENERATIVE_AI_USER]};function Nd(t,e){return t===e||(Kh[t]??[]).some(r=>Nd(r,e))}function Dd(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Nd(i,e))}function qh(t){return`"${t}"`}function $d(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Zh(t,e){return new jt(t).serialize(e)}var V;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.NEGATIVE_VALUE_FILTERS="negative-value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(V||(V={}));var Yh=new Set(Object.values(V));function Md(t){return Yh.has(t)}var jt=class{constructor(e,r=20,i=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=i,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,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let i=r==null||r.trim().length===0,n=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,r=!1){var i,n,a,s,l,d,u,h,f,g,y,b,C;let E=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&E.append(V.LOCALE,e.contentLocale):E.append(V.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&E.append(V.QUERY,e.query);let L=j=>{var G,P;let F=((P=(G=j.valueFilter)===null||G===void 0?void 0:G.values)!==null&&P!==void 0?P:[]).map(Q=>this.escapeFilters(Q)).map(Q=>qh($d(Q))).join("_");return`${j.key}~${F}`},N=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(j=>j.valueFilter&&!j.valueFilter.negative))!==null&&a!==void 0?a:[];N.length>0&&E.append(V.VALUE_FILTERS,N.map(L).join("*"));let S=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(j=>j.valueFilter&&j.valueFilter.negative))!==null&&l!==void 0?l:[];S.length>0&&E.append(V.NEGATIVE_VALUE_FILTERS,S.map(L).join("*"));let x=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(j=>j.dateFilter))!==null&&u!==void 0?u:[];if(x.length>0){let j=x.map(G=>{var P;return`${G.key}~${(P=G.dateFilter)===null||P===void 0?void 0:P.type.toLowerCase()}`}).join("*");E.append(V.DATE_FILTERS,j)}let w=(f=(h=e.metadataFilters)===null||h===void 0?void 0:h.filter(j=>j.rangeFilter))!==null&&f!==void 0?f:[];if(w.length>0){let j=w.map(G=>{var P,F;return`${G.key}~${(P=G.rangeFilter)===null||P===void 0?void 0:P.from}_${(F=G.rangeFilter)===null||F===void 0?void 0:F.to}`}).join("*");E.append(V.RANGE_FILTERS,j)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&E.append(V.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&E.append(V.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&E.append(V.SORT,e.sortId),!((g=e.paging)===null||g===void 0)&&g.perPage&&((b=(y=e.paging)===null||y===void 0?void 0:y.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&E.append(V.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&E.append(V.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let $=(C=e.otherQueryParams)!==null&&C!==void 0?C:{};for(let j in $)E.append(j,$[j]);let ee=new Array;return E.forEach((j,G)=>{ee.push(this.encodeQueryString(G)+"="+this.encodeQueryString(j))}),encodeURI(ee.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let i=e.split("?"),n=this.fromURLSearchParams(i.slice(1).join("?")),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(e){var r,i,n,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(L){console.warn("Could not decode search request query params, fallback on raw value",L)}let d=new URLSearchParams(e),u=d.get(V.LOCALE)==="all"?void 0:d.get(V.LOCALE),h=((r=d.get(V.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),f=(i=d.get(V.SORT))===null||i===void 0?void 0:i.toLowerCase(),g=(n=d.get(V.SCOPE))!==null&&n!==void 0?n:"default",y=+((a=d.get(V.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),b=d.get(V.KEYWORD_MATCH),C=b?b.toUpperCase()===Zr.MANDATORY?Zr.MANDATORY:Zr.OPTIONAL:void 0,E={};for(let L of d.keys())Md(L)||(E[L]=d.get(L));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(V.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[g])!==null&&l!==void 0?l:"DEFAULT",virtualField:Sd(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:ir(1,isNaN(y)?this.defaultPerPage:y,1e3)},keywordMatch:C,otherQueryParams:E}}parseCompatFilters(e){var r,i,n,a,s,l,d;let u=[];return e.has(V.FILTERS)&&(u=this.parseValueFilters((r=e.get(V.FILTERS))!==null&&r!==void 0?r:"")),(i=e.has(V.PERIOD))!==null&&i!==void 0&&i&&(u=[...u,...this.parseLegacyPeriodFilter(((n=e.get(V.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...u,...this.parseValueFilters((a=e.get(V.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseValueFilters((s=e.get(V.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(V.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(V.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(i=>({key:i[0],valueFilter:{values:i[1].split("_").map($d).map(n=>this.unescapeFilterValue(n)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Yr[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(r,i);return e}superEscapeFilters(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(i,n);return e}unescapeFilterValue(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(n,r);return e}parseLegacyPeriodFilter(e){if(Cd(e))return[{key:"ft:lastEdition",dateFilter:{type:Yr[e]}}];if(e.startsWith("CUSTOM_")){let[r,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}static clearSearchParamsInUrl(e){let r=new URL(e);return[V.LOCALE,V.FILTERS,V.VALUE_FILTERS,V.NEGATIVE_VALUE_FILTERS,V.DATE_FILTERS,V.RANGE_FILTERS].forEach(n=>{r.searchParams.delete(n)}),r.toString()}static updateLocaleParamInUrl(e,r){let i=new URL(e);return i.searchParams.delete(V.LOCALE),r!==void 0&&i.searchParams.append(V.LOCALE,r),i.toString()}};var Za={};J(Za,{toFtFormComponent:()=>qa});var Ka=Symbol("elementInternals"),qa=Ee(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[Ka].form}constructor(...i){super(i),this[Ka]=this.attachInternals()}setFormValue(i){this[Ka].setFormValue(i)}}return e});var Ya={};J(Ya,{DateFormatter:()=>br});var br=class{static format(e,r,i,n,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!a)):this.getIntlDateTime(e,r,i,n,!!a)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Ja={};J(Ja,{ALL_KEYS_VALUE:()=>Xa,SameWindowStorageEvent:()=>Xr});var Xa="__all__",Xr=class extends CustomEvent{constructor(e,r,i){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:i}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Xa}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Xr(r[0],i,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Xr(r[0],i))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new Xr(Xa))}});var es={};J(es,{FocusMainContentEvent:()=>Qa});var Qa=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Fd={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Xh(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Jh(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Xh);document.addEventListener("click",Jh);var Pi=A`
47
+ `;var Cc={};var La={};Q(La,{ParametrizedLabelResolver:()=>Ut});var Ut=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var i,n;e=this.resolvePluralKey(e,r);let a=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((i,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(i,s))),e}resolvePluralKey(e,r){for(let i of r)if(typeof i=="number"){let n=`${String(e)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let i=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var qa={};Q(qa,{FtCommandQueue:()=>Io,FtLitElementRedux:()=>ur,FtReduxStore:()=>hr,FtStateManager:()=>Uo,ReduxWatcher:()=>Hi,clearAllStores:()=>fm,isFtReduxStore:()=>Ur,redux:()=>Br,reduxEventListener:()=>xh,reduxReactive:()=>bh,watch:()=>hm,withRedux:()=>Oc});var bh=()=>(t,e)=>{var r;let i=t.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(r=i.reduxReactiveProperties)===null||r===void 0||r.add(e)},Br=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:at,attribute:!1,...e};f(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[i]),store:e.store})}},xh=t=>(e,r)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(r,t)};var Io=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};function Ur(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Po=Symbol("internalReduxEventsUnsubscribers"),zt=Symbol("internalStoresUnsubscribers"),pr=Symbol("internalStores"),Oc=Ce(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=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[pr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[pr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[pr].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[pr].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[pr].delete(l)}setupStores(){this.unsubscribeFromStores(),this[pr].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 u=this.getStore(s.store);u&&(s.store?this[zt].has(s.store):this[zt].size>0)&&(this[l]=s.selector(u.getState(),this))}})}subscribeToStore(s,l){var d;this[zt].set(s,l.subscribe(()=>this.updateFromStores())),this[Po].set(s,[]),Ur(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,m)=>{if(typeof this[m]=="function"&&(!u.store||l.name===u.store)){let h=g=>this[m](g);l.addEventListener(u.eventName,h),this[Po].get(s).push(()=>l.removeEventListener(u.eventName,h))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[zt].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[zt].has(s)&&this[zt].get(s)(),this[zt].delete(s),(l=this[Po].get(s))===null||l===void 0||l.forEach(d=>d()),this[Po].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=zt,r=pr,i=Po,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),ur=class extends Oc(D){};function Oe(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var vh=typeof Symbol=="function"&&Symbol.observable||"@@observable",wc=vh,ka=()=>Math.random().toString(36).substring(7).split("").join("."),Sh={INIT:`@@redux/INIT${ka()}`,REPLACE:`@@redux/REPLACE${ka()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ka()}`},Ei=Sh;function Ci(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Ta(t,e,r){if(typeof t!="function")throw new Error(Oe(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Oe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Oe(1));return r(Ta)(t,e)}let i=t,n=e,a=new Map,s=a,l=0,d=!1;function u(){s===a&&(s=new Map,a.forEach((O,I)=>{s.set(I,O)}))}function m(){if(d)throw new Error(Oe(3));return n}function h(O){if(typeof O!="function")throw new Error(Oe(4));if(d)throw new Error(Oe(5));let I=!0;u();let K=l++;return s.set(K,O),function(){if(I){if(d)throw new Error(Oe(6));I=!1,u(),s.delete(K),a=null}}}function g(O){if(!Ci(O))throw new Error(Oe(7));if(typeof O.type>"u")throw new Error(Oe(8));if(typeof O.type!="string")throw new Error(Oe(17));if(d)throw new Error(Oe(9));try{d=!0,n=i(n,O)}finally{d=!1}return(a=s).forEach(K=>{K()}),O}function v(O){if(typeof O!="function")throw new Error(Oe(10));i=O,g({type:Ei.REPLACE})}function C(){let O=h;return{subscribe(I){if(typeof I!="object"||I===null)throw new Error(Oe(11));function K(){let x=I;x.next&&x.next(m())}return K(),{unsubscribe:O(K)}},[wc](){return this}}}return g({type:Ei.INIT}),{dispatch:g,subscribe:h,getState:m,replaceReducer:v,[wc]:C}}function Eh(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Ei.INIT})>"u")throw new Error(Oe(12));if(typeof r(void 0,{type:Ei.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Oe(13))})}function Ac(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let l=e[s];typeof t[l]=="function"&&(r[l]=t[l])}let i=Object.keys(r),n,a;try{Eh(r)}catch(s){a=s}return function(l={},d){if(a)throw a;let u=!1,m={};for(let h=0;h<i.length;h++){let g=i[h],v=r[g],C=l[g],k=v(C,d);if(typeof k>"u"){let O=d&&d.type;throw new Error(Oe(14))}m[g]=k,u=u||k!==C}return u=u||i.length!==Object.keys(l).length,u?m:l}}function No(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function Rc(...t){return e=>(r,i)=>{let n=e(r,i),a=()=>{throw new Error(Oe(15))},s={getState:n.getState,dispatch:(d,...u)=>a(d,...u)},l=t.map(d=>d(s));return a=No(...l)(n.dispatch),{...n,dispatch:a}}}function _c(t){return Ci(t)&&"type"in t&&typeof t.type=="string"}var Mc=Symbol.for("immer-nothing"),Lc=Symbol.for("immer-draftable"),Ie=Symbol.for("immer-state");function ct(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Ve=Object,Hr=Ve.getPrototypeOf,Ri="constructor",Pi="prototype",Da="configurable",_i="enumerable",wi="writable",Do="value",vt=t=>!!t&&!!t[Ie];function We(t){return t?Fc(t)||Di(t)||!!t[Lc]||!!t[Ri]?.[Lc]||$i(t)||Mi(t):!1}var Ch=Ve[Pi][Ri].toString(),kc=new WeakMap;function Fc(t){if(!t||!Va(t))return!1;let e=Hr(t);if(e===null||e===Ve[Pi])return!0;let r=Ve.hasOwnProperty.call(e,Ri)&&e[Ri];if(r===Object)return!0;if(!zr(r))return!1;let i=kc.get(r);return i===void 0&&(i=Function.toString.call(r),kc.set(r,i)),i===Ch}function Ni(t,e,r=!0){Fo(t)===0?(r?Reflect.ownKeys(t):Ve.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function Fo(t){let e=t[Ie];return e?e.type_:Di(t)?1:$i(t)?2:Mi(t)?3:0}var Ia=(t,e,r=Fo(t))=>r===2?t.has(e):Ve[Pi].hasOwnProperty.call(t,e),$a=(t,e,r=Fo(t))=>r===2?t.get(e):t[e],Li=(t,e,r,i=Fo(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Oh(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Di=Array.isArray,$i=t=>t instanceof Map,Mi=t=>t instanceof Set,Va=t=>typeof t=="object",zr=t=>typeof t=="function",Pa=t=>typeof t=="boolean";function wh(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Tt=t=>t.copy_||t.base_;var Wa=t=>t.modified_?t.copy_:t.base_;function Ma(t,e){if($i(t))return new Map(t);if(Mi(t))return new Set(t);if(Di(t))return Array[Pi].slice.call(t);let r=Fc(t);if(e===!0||e==="class_only"&&!r){let i=Ve.getOwnPropertyDescriptors(t);delete i[Ie];let n=Reflect.ownKeys(i);for(let a=0;a<n.length;a++){let s=n[a],l=i[s];l[wi]===!1&&(l[wi]=!0,l[Da]=!0),(l.get||l.set)&&(i[s]={[Da]:!0,[wi]:!0,[_i]:l[_i],[Do]:t[s]})}return Ve.create(Hr(t),i)}else{let i=Hr(t);if(i!==null&&r)return{...t};let n=Ve.create(i);return Ve.assign(n,t)}}function Ga(t,e=!1){return Fi(t)||vt(t)||!We(t)||(Fo(t)>1&&Ve.defineProperties(t,{set:Oi,add:Oi,clear:Oi,delete:Oi}),Ve.freeze(t),e&&Ni(t,(r,i)=>{Ga(i,!0)},!1)),t}function Ah(){ct(2)}var Oi={[Do]:Ah};function Fi(t){return t===null||!Va(t)?!0:Ve.isFrozen(t)}var ki="MapSet",Fa="Patches",Tc="ArrayMethods",Bc={};function fr(t){let e=Bc[t];return e||ct(0,t),e}var Ic=t=>!!Bc[t];var $o,Uc=()=>$o,Rh=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Ic(ki)?fr(ki):void 0,arrayMethodsPlugin_:Ic(Tc)?fr(Tc):void 0});function Pc(t,e){e&&(t.patchPlugin_=fr(Fa),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Ba(t){Ua(t),t.drafts_.forEach(_h),t.drafts_=null}function Ua(t){t===$o&&($o=t.parent_)}var Nc=t=>$o=Rh($o,t);function _h(t){let e=t[Ie];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Dc(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[Ie].modified_&&(Ba(e),ct(4)),We(t)&&(t=$c(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[Ie].base_,t,e)}else t=$c(e,r);return Lh(e,t,!0),Ba(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Mc?t:void 0}function $c(t,e){if(Fi(e))return e;let r=e[Ie];if(!r)return Ti(e,t.handledSet_,t);if(!Bi(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);Vc(r,t)}return r.copy_}function Lh(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Ga(e,r)}function zc(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Bi=(t,e)=>t.scope_===e,kh=[];function Hc(t,e,r,i){let n=Tt(t),a=t.type_;if(i!==void 0&&$a(n,i,a)===e){Li(n,i,r,a);return}if(!t.draftLocations_){let l=t.draftLocations_=new Map;Ni(n,(d,u)=>{if(vt(u)){let m=l.get(u)||[];m.push(d),l.set(u,m)}})}let s=t.draftLocations_.get(e)??kh;for(let l of s)Li(n,l,r,a)}function Th(t,e,r){t.callbacks_.push(function(n){let a=e;if(!a||!Bi(a,n))return;n.mapSetPlugin_?.fixSetContents(a);let s=Wa(a);Hc(t,a.draft_??a,s,r),Vc(a,n)})}function Vc(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}zc(t)}}function Ih(t,e,r){let{scope_:i}=t;if(vt(r)){let n=r[Ie];Bi(n,i)&&n.callbacks_.push(function(){Ai(t);let s=Wa(n);Hc(t,r,s,e)})}else We(r)&&t.callbacks_.push(function(){let a=Tt(t);t.type_===3?a.has(r)&&Ti(r,i.handledSet_,i):$a(a,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Ti($a(t.copy_,e,t.type_),i.handledSet_,i)})}function Ti(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||vt(t)||e.has(t)||!We(t)||Fi(t)||(e.add(t),Ni(t,(i,n)=>{if(vt(n)){let a=n[Ie];if(Bi(a,r)){let s=Wa(a);Li(t,i,s,t.type_),zc(a)}}else We(n)&&Ti(n,e,r)})),t}function Ph(t,e){let r=Di(t),i={type_:r?1:0,scope_:e?e.scope_:Uc(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,a=Ii;r&&(n=[i],a=Mo);let{revoke:s,proxy:l}=Proxy.revocable(n,a);return i.draft_=l,i.revoke_=s,[l,i]}var Ii={get(t,e){if(e===Ie)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let n=Tt(t);if(!Ia(n,e,t.type_))return Dh(t,n,e);let a=n[e];if(t.finalized_||!We(a)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&wh(e))return a;if(a===Na(t.base_,e)||Nh(t,e,a)){Ai(t);let s=t.type_===1?+e:e,l=Ha(t.scope_,a,t,s);return t.copy_[s]=l}return a},has(t,e){return e in Tt(t)},ownKeys(t){return Reflect.ownKeys(Tt(t))},set(t,e,r){let i=Wc(Tt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=Na(Tt(t),e),a=n?.[Ie];if(a&&a.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(Oh(r,n)&&(r!==void 0||Ia(t.base_,e,t.type_)))return!0;Ai(t),za(t)}return t.copy_[e]===r&&(r!==void 0||Ia(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Ih(t,e,r)),!0},deleteProperty(t,e){return Ai(t),Na(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),za(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Tt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[wi]:!0,[Da]:t.type_!==1||e!=="length",[_i]:i[_i],[Do]:r[e]}},defineProperty(){ct(11)},getPrototypeOf(t){return Hr(t.base_)},setPrototypeOf(){ct(12)}},Mo={};for(let t in Ii){let e=Ii[t];Mo[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Mo.deleteProperty=function(t,e){return Mo.set.call(this,t,e,void 0)};Mo.set=function(t,e,r){return Ii.set.call(this,t[0],e,r,t[0])};function Na(t,e){let r=t[Ie];return(r?Tt(r):t)[e]}function Nh(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!We(r)||r[Ie]?!1:t.baseRefs_.has(r)}function Dh(t,e,r){let i=Wc(e,r);return i?Do in i?i[Do]:i.get?.call(t.draft_):void 0}function Wc(t,e){if(!(e in t))return;let r=Hr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Hr(r)}}function za(t){t.modified_||(t.modified_=!0,t.parent_&&za(t.parent_))}function Ai(t){t.copy_||(t.assigned_=new Map,t.copy_=Ma(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var $h=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(zr(e)&&!zr(r)){let a=r;r=e;let s=this;return function(d=a,...u){return s.produce(d,m=>r.call(this,m,...u))}}zr(r)||ct(6),i!==void 0&&!zr(i)&&ct(7);let n;if(We(e)){let a=Nc(this),s=Ha(a,e,void 0),l=!0;try{n=r(s),l=!1}finally{l?Ba(a):Ua(a)}return Pc(a,i),Dc(n,a)}else if(!e||!Va(e)){if(n=r(e),n===void 0&&(n=e),n===Mc&&(n=void 0),this.autoFreeze_&&Ga(n,!0),i){let a=[],s=[];fr(Fa).generateReplacementPatches_(e,n,{patches_:a,inversePatches_:s}),i(a,s)}return n}else ct(1,e)},this.produceWithPatches=(e,r)=>{if(zr(e))return(s,...l)=>this.produceWithPatches(s,d=>e(d,...l));let i,n;return[this.produce(e,r,(s,l)=>{i=s,n=l}),i,n]},Pa(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Pa(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Pa(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){We(t)||ct(8),vt(t)&&(t=Gc(t));let e=Nc(this),r=Ha(e,t,void 0);return r[Ie].isManual_=!0,Ua(e),r}finishDraft(t,e){let r=t&&t[Ie];(!r||!r.isManual_)&&ct(9);let{scope_:i}=r;return Pc(i,e),Dc(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=fr(Fa).applyPatches_;return vt(t)?i(t,e):this.produce(t,n=>i(n,e))}};function Ha(t,e,r,i){let[n,a]=$i(e)?fr(ki).proxyMap_(e,r):Mi(e)?fr(ki).proxySet_(e,r):Ph(e,r);return(r?.scope_??Uc()).drafts_.push(n),a.callbacks_=r?.callbacks_??[],a.key_=i,r&&i!==void 0?Th(r,a,i):a.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:u}=d;a.modified_&&u&&u.generatePatches_(a,[],d)}),n}function Gc(t){return vt(t)||ct(10,t),jc(t)}function jc(t){if(!We(t)||Fi(t))return t;let e=t[Ie],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Ma(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=Ma(t,!0);return Ni(r,(n,a)=>{Li(r,n,jc(a))},i),e&&(e.finalized_=!1),r}var Mh=new $h,ja=Mh.produce;function Kc(t){return({dispatch:r,getState:i})=>n=>a=>typeof a=="function"?a(r,i,t):n(a)}var Zc=Kc(),qc=Kc;var Fh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?No:No.apply(null,arguments)},H0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Bh=t=>t&&typeof t.match=="function";function Ht(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(It(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>_c(i)&&i.type===t,r}var ed=class Bo extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Bo.prototype)}static get[Symbol.species](){return Bo}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Bo(...e[0].concat(this)):new Bo(...e.concat(this))}};function Yc(t){return We(t)?ja(t,()=>{}):t}function Ui(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Uh(t){return typeof t=="boolean"}var zh=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:a=!0}=e??{},s=new ed;return r&&(Uh(r)?s.push(Zc):s.push(qc(r.extraArgument))),s},Hh="RTK_autoBatch";var Xc=t=>e=>{setTimeout(e,t)},Vh=(t,e)=>r=>{let i=!1,n=()=>{i||(i=!0,cancelAnimationFrame(a),clearTimeout(s),r())},a=t(n),s=setTimeout(n,e)},Wh=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,a=!1,s=!1,l=new Set,d=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Vh(window.requestAnimationFrame,100):Xc(10):t.type==="callback"?t.queueNotification:Xc(t.timeout),u=()=>{s=!1,a&&(a=!1,l.forEach(m=>m()))};return Object.assign({},i,{subscribe(m){let h=()=>n&&m(),g=i.subscribe(h);return l.add(m),()=>{g(),l.delete(m)}},dispatch(m){try{return n=!m?.meta?.[Hh],a=!n,a&&(s||(s=!0,d(u))),i.dispatch(m)}finally{n=!0}}})},Gh=t=>function(r){let{autoBatch:i=!0}=r??{},n=new ed(t);return i&&n.push(Wh(typeof i=="object"?i:void 0)),n};function td(t){let e=zh(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=t||{},d;if(typeof r=="function")d=r;else if(Ci(r))d=Ac(r);else throw new Error(It(1));let u;typeof i=="function"?u=i(e):u=e();let m=No;n&&(m=Fh({trace:!1,...typeof n=="object"&&n}));let h=Rc(...u),g=Gh(h),v=typeof l=="function"?l(g):g(),C=m(...v);return Ta(d,s,C)}function rd(t){let e={},r=[],i,n={addCase(a,s){let l=typeof a=="string"?a:a.type;if(!l)throw new Error(It(28));if(l in e)throw new Error(It(29));return e[l]=s,n},addAsyncThunk(a,s){return s.pending&&(e[a.pending.type]=s.pending),s.rejected&&(e[a.rejected.type]=s.rejected),s.fulfilled&&(e[a.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:a.settled,reducer:s.settled}),n},addMatcher(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase(a){return i=a,n}};return t(n),[e,r,i]}function jh(t){return typeof t=="function"}function Kh(t,e){let[r,i,n]=rd(e),a;if(jh(t))a=()=>Yc(t());else{let l=Yc(t);a=()=>l}function s(l=a(),d){let u=[r[d.type],...i.filter(({matcher:m})=>m(d)).map(({reducer:m})=>m)];return u.filter(m=>!!m).length===0&&(u=[n]),u.reduce((m,h)=>{if(h)if(vt(m)){let v=h(m,d);return v===void 0?m:v}else{if(We(m))return ja(m,g=>h(g,d));{let g=h(m,d);if(g===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return m},l)}return s.getInitialState=a,s}var Zh=(t,e)=>Bh(t)?t.match(e):t(e);function qh(...t){return e=>t.some(r=>Zh(r,e))}var Yh="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Xh=(t=21)=>{let e="",r=t;for(;r--;)e+=Yh[Math.random()*64|0];return e},Jh=["name","message","stack","code"],Ka=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Jc=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Qh=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Jh)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},Qc="External signal was aborted",em=(()=>{function t(e,r,i){let n=Ht(e+"/fulfilled",(d,u,m,h)=>({payload:d,meta:{...h||{},arg:m,requestId:u,requestStatus:"fulfilled"}})),a=Ht(e+"/pending",(d,u,m)=>({payload:void 0,meta:{...m||{},arg:u,requestId:d,requestStatus:"pending"}})),s=Ht(e+"/rejected",(d,u,m,h,g)=>({payload:h,error:(i&&i.serializeError||Qh)(d||"Rejected"),meta:{...g||{},arg:m,requestId:u,rejectedWithValue:!!h,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:u}={}){return(m,h,g)=>{let v=i?.idGenerator?i.idGenerator(d):Xh(),C=new AbortController,k,O;function I(b){O=b,C.abort()}u&&(u.aborted?I(Qc):u.addEventListener("abort",()=>I(Qc),{once:!0}));let K=(async function(){let b;try{let S=i?.condition?.(d,{getState:h,extra:g});if(rm(S)&&(S=await S),S===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let $=new Promise((F,N)=>{k=()=>{N({name:"AbortError",message:O||"Aborted"})},C.signal.addEventListener("abort",k,{once:!0})});m(a(v,d,i?.getPendingMeta?.({requestId:v,arg:d},{getState:h,extra:g}))),b=await Promise.race([$,Promise.resolve(r(d,{dispatch:m,getState:h,extra:g,requestId:v,signal:C.signal,abort:I,rejectWithValue:((F,N)=>new Ka(F,N)),fulfillWithValue:((F,N)=>new Jc(F,N))})).then(F=>{if(F instanceof Ka)throw F;return F instanceof Jc?n(F.payload,v,d,F.meta):n(F,v,d)})])}catch(S){b=S instanceof Ka?s(null,v,d,S.payload,S.meta):s(S,v,d)}finally{k&&C.signal.removeEventListener("abort",k)}return i&&!i.dispatchConditionRejection&&s.match(b)&&b.meta.condition||m(b),b})();return Object.assign(K,{abort:I,requestId:v,arg:d,unwrap(){return K.then(tm)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:n,settled:qh(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function tm(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function rm(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var od=Symbol.for("rtk-slice-createasyncthunk"),W0={[od]:em};function om(t,e){return`${t}/${e}`}function im({creators:t}={}){let e=t?.asyncThunk?.[od];return function(i){let{name:n,reducerPath:a=n}=i;if(!n)throw new Error(It(11));typeof process<"u";let s=(typeof i.reducers=="function"?i.reducers(am()):i.reducers)||{},l=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(b,x){let S=typeof b=="string"?b:b.type;if(!S)throw new Error(It(12));if(S in d.sliceCaseReducersByType)throw new Error(It(13));return d.sliceCaseReducersByType[S]=x,u},addMatcher(b,x){return d.sliceMatchers.push({matcher:b,reducer:x}),u},exposeAction(b,x){return d.actionCreators[b]=x,u},exposeCaseReducer(b,x){return d.sliceCaseReducersByName[b]=x,u}};l.forEach(b=>{let x=s[b],S={reducerName:b,type:om(n,b),createNotation:typeof i.reducers=="function"};lm(x)?dm(S,x,u,e):sm(S,x,u)});function m(){let[b={},x=[],S=void 0]=typeof i.extraReducers=="function"?rd(i.extraReducers):[i.extraReducers],$={...b,...d.sliceCaseReducersByType};return Kh(i.initialState,F=>{for(let N in $)F.addCase(N,$[N]);for(let N of d.sliceMatchers)F.addMatcher(N.matcher,N.reducer);for(let N of x)F.addMatcher(N.matcher,N.reducer);S&&F.addDefaultCase(S)})}let h=b=>b,g=new Map,v=new WeakMap,C;function k(b,x){return C||(C=m()),C(b,x)}function O(){return C||(C=m()),C.getInitialState()}function I(b,x=!1){function S(F){let N=F[b];return typeof N>"u"&&x&&(N=Ui(v,S,O)),N}function $(F=h){let N=Ui(g,x,()=>new WeakMap);return Ui(N,F,()=>{let J={};for(let[P,V]of Object.entries(i.selectors??{}))J[P]=nm(V,F,()=>Ui(v,F,O),x);return J})}return{reducerPath:b,getSelectors:$,get selectors(){return $(S)},selectSlice:S}}let K={name:n,reducer:k,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:O,...I(a),injectInto(b,{reducerPath:x,...S}={}){let $=x??a;return b.inject({reducerPath:$,reducer:k},S),{...K,...I($,!0)}}};return K}}function nm(t,e,r,i){function n(a,...s){let l=e(a);return typeof l>"u"&&i&&(l=r()),t(l,...s)}return n.unwrapped=t,n}var id=im();function am(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function sm({type:t,reducerName:e,createNotation:r},i,n){let a,s;if("reducer"in i){if(r&&!cm(i))throw new Error(It(17));a=i.reducer,s=i.prepare}else a=i;n.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?Ht(t,s):Ht(t))}function lm(t){return t._reducerDefinitionType==="asyncThunk"}function cm(t){return t._reducerDefinitionType==="reducerWithPrepare"}function dm({type:t,reducerName:e},r,i,n){if(!n)throw new Error(It(18));let{payloadCreator:a,fulfilled:s,pending:l,rejected:d,settled:u,options:m}=r,h=n(t,a,m);i.exposeAction(e,h),s&&i.addCase(h.fulfilled,s),l&&i.addCase(h.pending,l),d&&i.addCase(h.rejected,d),u&&i.addMatcher(h.settled,u),i.exposeCaseReducer(e,{fulfilled:s||zi,pending:l||zi,rejected:d||zi,settled:u||zi})}function zi(){}var nd="listener",ad="completed",sd="cancelled",G0=`task-${sd}`,j0=`task-${ad}`,K0=`${nd}-${sd}`,Z0=`${nd}-${ad}`;var{assign:ld}=Object;var Za="listenerMiddleware";var pm=ld(Ht(`${Za}/add`),{withTypes:()=>pm}),q0=Ht(`${Za}/removeAll`),um=ld(Ht(`${Za}/remove`),{withTypes:()=>um});function It(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}window.ftReduxStores||(window.ftReduxStores={});var hr=class t extends _t{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Ur(a))return a;if(n==null)return;let s=id({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=td({reducer:(d,u)=>{if(u.type==="CLEAR_FT_REDUX_STORE"){let m=nt(s.getInitialState());for(let h of u.keeping)m[h]=(d??m)[h];return m}else if(typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...u.overwrites};return s.reducer(d,u)}});return window.ftReduxStores[n.name]=new t(s,l,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Io,this.injectInto=(a,s)=>this.reduxSlice.injectInto(a,s),this.selectSlice=a=>this.reduxSlice.selectSlice(a);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,u=a[d];return u?(...m)=>{let h=u(...m.map(n));return this.reduxStore.dispatch(h),h}:m=>{let h=d,g=this.getState()[h];me(g,m)||this.setState({[h]:n(m)})}}}),this.eventBus=i??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()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};function fm(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Ur(e)&&e.clear()}var Hi=class{constructor(e,r,i){this.store=e,this.valueSelector=r,this.callback=i}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);at(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function hm(t,e,r){return new Hi(t,e,r).watch()}var Uo=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var r;return(r=this.requestConsumers.get(e))!==null&&r!==void 0?r:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,r){for(let i of r)this.getOrCreateRequestConsumers(i).add(e).size==1&&this.onNewNeededRequest(i)}unregisterComponent(e,r){for(let i of r)this.getOrCreateRequestConsumers(i).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var Ja={};Q(Ja,{scrollHelper:()=>mm});var Ya,Vi=new Map,Xa=class{lock(e,r){if(r){let i=Vi.get(r);if(i==null||i===e)return Vi.set(r,e),r}}release(e,r){r&&Vi.get(r)===e&&Vi.delete(r)}findFirstScrollableParent(e){var r;let i,n;for(let a of Bn(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){i=s;break}else l&&n==null&&(n=s)}return(r=i??n)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,r){var i,n;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(i=r.offsetTop)!==null&&i!==void 0?i:0,r=r.offsetParent;return a+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let i=this.findFirstScrollableParent(e);if(e&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,e),a=n-i.clientHeight+e.clientHeight,s=n,l=rr(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;i.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(Ya=window.FluidTopicsScrollHelper)!==null&&Ya!==void 0?Ya:new Xa;var mm=window.FluidTopicsScrollHelper;var es={};Q(es,{SearchPlaceConverter:()=>Vt,SearchPlaceQueryParams:()=>W,isSearchPlaceQueryParams:()=>Xd,serializeRequest:()=>vm});var gm=t=>typeof t=="object"&&t!=null;var ym=t=>typeof t=="number",Wi=t=>typeof t=="string",Nd=t=>gm(t)&&Wi(t.endpoint)&&Wi(t.method)&&Wi(t.statusText)&&Wi(t.body)&&ym(t.status),cd;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(cd||(cd={}));var dd;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(dd||(dd={}));var pd;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(pd||(pd={}));var ud;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(ud||(ud={}));var fd;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(fd||(fd={}));var hd;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(hd||(hd={}));var md;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(md||(md={}));var gd;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(gd||(gd={}));var yd;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(yd||(yd={}));var bd;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(bd||(bd={}));var xd;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(xd||(xd={}));var vd;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(vd||(vd={}));var Sd;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Sd||(Sd={}));var Ed;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Ed||(Ed={}));var Cd;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Cd||(Cd={}));var Od;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Od||(Od={}));var Vr;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Vr||(Vr={}));var wd;(function(t){t.ASC="ASC",t.DESC="DESC"})(wd||(wd={}));var Ad;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ad||(Ad={}));var Qa;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Qa||(Qa={}));var Dd=t=>Object.keys(Qa).includes(t);var Rd;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Rd||(Rd={}));var _d;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(_d||(_d={}));var Ld;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ld||(Ld={}));var Wr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Wr||(Wr={}));var $d=t=>Object.keys(Wr).includes(t);var kd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(kd||(kd={}));var Td;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Td||(Td={}));var Id;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Id||(Id={}));var ye;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(ye||(ye={}));var tt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(tt||(tt={}));var Pd;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Pd||(Pd={}));var Md;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Md||(Md={}));var Fd;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Fd||(Fd={}));var Bd;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Bd||(Bd={}));var Ud;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Ud||(Ud={}));var zd;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(zd||(zd={}));var Hd;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Hd||(Hd={}));var Vd;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Vd||(Vd={}));var Wd;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Wd||(Wd={}));var Gd;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Gd||(Gd={}));var jd;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(jd||(jd={}));var Kd;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Kd||(Kd={}));var bm={[ye.PERSONAL_BOOK_SHARE_USER]:[ye.PERSONAL_BOOK_USER],[ye.HTML_EXPORT_USER]:[ye.PERSONAL_BOOK_USER],[ye.PDF_EXPORT_USER]:[ye.PERSONAL_BOOK_USER],[ye.KHUB_ADMIN]:[ye.CONTENT_PUBLISHER],[ye.ADMIN]:[ye.KHUB_ADMIN,ye.USERS_ADMIN,ye.PORTAL_ADMIN,ye.BEHAVIOR_DATA_USER],[ye.GENERATIVE_AI_EXPORT_USER]:[ye.GENERATIVE_AI_USER]};function Zd(t,e){return t===e||(bm[t]??[]).some(r=>Zd(r,e))}function qd(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Zd(i,e))}function xm(t){return`"${t}"`}function Yd(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function vm(t,e){return new Vt(t).serialize(e)}var W;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.NEGATIVE_VALUE_FILTERS="negative-value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page",t.KEYWORD_MATCH="keyword-match"})(W||(W={}));var Sm=new Set(Object.values(W));function Xd(t){return Sm.has(t)}var Vt=class{constructor(e,r=20,i=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=i,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,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let i=r==null||r.trim().length===0,n=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,r=!1){var i,n,a,s,l,d,u,m,h,g,v,C,k;let O=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&O.append(W.LOCALE,e.contentLocale):O.append(W.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&O.append(W.QUERY,e.query);let I=N=>{var J,P;let V=((P=(J=N.valueFilter)===null||J===void 0?void 0:J.values)!==null&&P!==void 0?P:[]).map(ce=>this.escapeFilters(ce)).map(ce=>xm(Yd(ce))).join("_");return`${N.key}~${V}`},K=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(N=>N.valueFilter&&!N.valueFilter.negative))!==null&&a!==void 0?a:[];K.length>0&&O.append(W.VALUE_FILTERS,K.map(I).join("*"));let b=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(N=>N.valueFilter&&N.valueFilter.negative))!==null&&l!==void 0?l:[];b.length>0&&O.append(W.NEGATIVE_VALUE_FILTERS,b.map(I).join("*"));let x=(u=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(N=>N.dateFilter))!==null&&u!==void 0?u:[];if(x.length>0){let N=x.map(J=>{var P;return`${J.key}~${(P=J.dateFilter)===null||P===void 0?void 0:P.type.toLowerCase()}`}).join("*");O.append(W.DATE_FILTERS,N)}let S=(h=(m=e.metadataFilters)===null||m===void 0?void 0:m.filter(N=>N.rangeFilter))!==null&&h!==void 0?h:[];if(S.length>0){let N=S.map(J=>{var P,V;return`${J.key}~${(P=J.rangeFilter)===null||P===void 0?void 0:P.from}_${(V=J.rangeFilter)===null||V===void 0?void 0:V.to}`}).join("*");O.append(W.RANGE_FILTERS,N)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&O.append(W.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&O.append(W.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&O.append(W.SORT,e.sortId),!((g=e.paging)===null||g===void 0)&&g.perPage&&((C=(v=e.paging)===null||v===void 0?void 0:v.perPage)!==null&&C!==void 0?C:this.defaultPerPage)!=this.defaultPerPage&&O.append(W.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&O.append(W.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let $=(k=e.otherQueryParams)!==null&&k!==void 0?k:{};for(let N in $)O.append(N,$[N]);let F=new Array;return O.forEach((N,J)=>{F.push(this.encodeQueryString(J)+"="+this.encodeQueryString(N))}),encodeURI(F.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let i=e.split("?"),n=this.fromURLSearchParams(i.slice(1).join("?")),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(e){var r,i,n,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(I){console.warn("Could not decode search request query params, fallback on raw value",I)}let d=new URLSearchParams(e),u=d.get(W.LOCALE)==="all"?void 0:d.get(W.LOCALE),m=((r=d.get(W.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),h=(i=d.get(W.SORT))===null||i===void 0?void 0:i.toLowerCase(),g=(n=d.get(W.SCOPE))!==null&&n!==void 0?n:"default",v=+((a=d.get(W.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),C=d.get(W.KEYWORD_MATCH),k=C?C.toUpperCase()===Vr.MANDATORY?Vr.MANDATORY:Vr.OPTIONAL:void 0,O={};for(let I of d.keys())Xd(I)||(O[I]=d.get(I));return{contentLocale:u??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(W.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[g])!==null&&l!==void 0?l:"DEFAULT",virtualField:Dd(m)?m:"EVERYWHERE",sortId:h,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:rr(1,isNaN(v)?this.defaultPerPage:v,1e3)},keywordMatch:k,otherQueryParams:O}}parseCompatFilters(e){var r,i,n,a,s,l,d;let u=[];return e.has(W.FILTERS)&&(u=this.parseValueFilters((r=e.get(W.FILTERS))!==null&&r!==void 0?r:"")),(i=e.has(W.PERIOD))!==null&&i!==void 0&&i&&(u=[...u,...this.parseLegacyPeriodFilter(((n=e.get(W.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...u,...this.parseValueFilters((a=e.get(W.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseValueFilters((s=e.get(W.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(W.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(W.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(i=>({key:i[0],valueFilter:{values:i[1].split("_").map(Yd).map(n=>this.unescapeFilterValue(n)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Wr[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(r,i);return e}superEscapeFilters(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(i,n);return e}unescapeFilterValue(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(n,r);return e}parseLegacyPeriodFilter(e){if($d(e))return[{key:"ft:lastEdition",dateFilter:{type:Wr[e]}}];if(e.startsWith("CUSTOM_")){let[r,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}static clearSearchParamsInUrl(e){let r=new URL(e);return[W.LOCALE,W.FILTERS,W.VALUE_FILTERS,W.NEGATIVE_VALUE_FILTERS,W.DATE_FILTERS,W.RANGE_FILTERS].forEach(n=>{r.searchParams.delete(n)}),r.toString()}static updateLocaleParamInUrl(e,r){let i=new URL(e);return i.searchParams.delete(W.LOCALE),r!==void 0&&i.searchParams.append(W.LOCALE,r),i.toString()}};var os={};Q(os,{toFtFormComponent:()=>rs});var ts=Symbol("elementInternals"),rs=Ce(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[ts].form}constructor(...i){super(i),this[ts]=this.attachInternals()}setFormValue(i){this[ts].setFormValue(i)}}return e});var is={};Q(is,{DateFormatter:()=>mr});var mr=class{static format(e,r,i,n,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!a)):this.getIntlDateTime(e,r,i,n,!!a)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var as={};Q(as,{ALL_KEYS_VALUE:()=>ns,SameWindowStorageEvent:()=>Gr});var ns="__all__",Gr=class extends CustomEvent{constructor(e,r,i){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:i}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==ns}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Gr(r[0],i,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let i=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Gr(r[0],i))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new Gr(ns))}});var ls={};Q(ls,{FocusMainContentEvent:()=>ss});var ss=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Jd={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Em(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Cm(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Em);document.addEventListener("click",Cm);var Gi=w`
48
48
  .sr-only {
49
49
  position:absolute;
50
50
  left:-10000px;
@@ -68,20 +68,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
68
68
  width:auto;
69
69
  height:auto;
70
70
  }
71
- `;var rs={};J(rs,{withAriaNotification:()=>ts});var Qh={checkVisibility:!0},ts=Ee(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(i,n){let{checkVisibility:a}={...Qh,...n};setTimeout(()=>{(!a||this.checkVisibility())&&(i=typeof i=="string"?i:i?.message,i&&this.dispatchEvent(new wo({type:"aria",message:i})))},20)}}return e});var os={};J(os,{withConditionalVisibility:()=>em});var Bd=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};function em(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(i,n){if(i){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=n,this.shadowRoot.append(a)}}hideIfNecessary(){let i=!(this.forceVisible||this.isVisible);this.calculateStyles(i,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(i){super.willUpdate(i),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(n=>n.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return Bd([m({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),Bd([T()],e.prototype,"isVisible",void 0),e}var ns={};J(ns,{FormController:()=>is});function tm(t){let e={};for(let r of Object.keys(t))e[r]=t[r].initial;return e}var is=class{constructor(e,r){this.host=e,this.config=r,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=tm(r),this.data={...this.initial}}hostDisconnected(){this.submitting=!1}get values(){return this.data}get fields(){return Object.keys(this.config)}get isSubmitting(){return this.submitting}get inError(){return this.errors.size>0}value(e){return this.data[e]}hasError(e){return this.errors.has(e)}errorFor(e){return this.errors.get(e)}setValue(e,r){if(this.data[e]===r)return;let i={...this.data};i[e]=r,this.data=i,this.checkValidity()}bind(e){return r=>this.setValue(e,r.detail)}setInitialValues(e){this.initial={...e},this.reset()}reset(){this.data={...this.initial},this.errors.clear(),this.submitting=!1,this.host.requestUpdate()}validateField(e,r){var i,n;let a=(n=(i=this.config[e]).validator)===null||n===void 0?void 0:n.call(i,this.value(e),this.data,r);a!==void 0&&this.errors.set(e,a)}checkValidity(e){return this.errors.clear(),this.fields.forEach(r=>{this.validateField(r,e)}),this.host.requestUpdate(),!this.inError}get firstFieldSelectorInError(){for(let e of this.fields){let r=this.config[e].selector;if(this.errors.has(e)&&r!==void 0)return r}}focusFirstFieldInError(){let e=this.firstFieldSelectorInError;if(e===void 0)return;let r=this.host.renderRoot.querySelector(e);r instanceof HTMLElement&&r.focus()}async submit(e){var r,i,n;if(!this.submitting){this.submitting=!0,this.host.requestUpdate();try{if(!this.checkValidity()){this.focusFirstFieldInError(),(r=e.onInvalid)===null||r===void 0||r.call(e);return}e.onSuccess(await e.request(this.data))}catch(a){let s=xd(a)?a:void 0;if(!this.checkValidity(s)){this.focusFirstFieldInError(),(i=e.onInvalid)===null||i===void 0||i.call(e);return}(n=e.onFailure)===null||n===void 0||n.call(e,s)}finally{this.submitting=!1,this.host.requestUpdate()}}}};function as(t,e){return e.map(r=>r(t)).filter(r=>r!==!0).map(r=>r)}function vr(t,e,r){return t?e(t):r?.(t)}var we=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},xr;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(xr||(xr={}));var Sr;(function(t){t.default="default",t.warning="warning",t.error="error"})(Sr||(Sr={}));var ss=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},KS=Ee(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=xr.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Sr.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===xr.blur||this.validateOn===xr.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Sr.default&&this.validateOn===xr.blurWithStatusResolutionOnInput||this.validateOn===xr.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=as(this.value,[...this.errorRules,...this.additionalErrorRules]),this.warningMessages=as(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new ss(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return v`
71
+ `;var ds={};Q(ds,{withAriaNotification:()=>cs});var Om={checkVisibility:!0},cs=Ce(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(i,n){let{checkVisibility:a}={...Om,...n};setTimeout(()=>{(!a||this.checkVisibility())&&(i=typeof i=="string"?i:i?.message,i&&this.dispatchEvent(new xo({type:"aria",message:i})))},20)}}return e});var ps={};Q(ps,{withConditionalVisibility:()=>wm});var Qd=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};function wm(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(i,n){if(i){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=n,this.shadowRoot.append(a)}}hideIfNecessary(){let i=!(this.forceVisible||this.isVisible);this.calculateStyles(i,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(i){super.willUpdate(i),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(n=>n.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return Qd([f({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),Qd([_()],e.prototype,"isVisible",void 0),e}var fs={};Q(fs,{FormController:()=>us});function Am(t){let e={};for(let r of Object.keys(t))e[r]=t[r].initial;return e}var us=class{constructor(e,r){this.host=e,this.config=r,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=Am(r),this.data={...this.initial}}hostDisconnected(){this.submitting=!1}get values(){return this.data}get fields(){return Object.keys(this.config)}get isSubmitting(){return this.submitting}get inError(){return this.errors.size>0}value(e){return this.data[e]}hasError(e){return this.errors.has(e)}errorFor(e){return this.errors.get(e)}setValue(e,r){if(this.data[e]===r)return;let i={...this.data};i[e]=r,this.data=i,this.checkValidity()}bind(e){return r=>this.setValue(e,r.detail)}setInitialValues(e){this.initial={...e},this.reset()}reset(){this.data={...this.initial},this.errors.clear(),this.submitting=!1,this.host.requestUpdate()}validateField(e,r){var i,n;let a=(n=(i=this.config[e]).validator)===null||n===void 0?void 0:n.call(i,this.value(e),this.data,r);a!==void 0&&this.errors.set(e,a)}checkValidity(e){return this.errors.clear(),this.fields.forEach(r=>{this.validateField(r,e)}),this.host.requestUpdate(),!this.inError}get firstFieldSelectorInError(){for(let e of this.fields){let r=this.config[e].selector;if(this.errors.has(e)&&r!==void 0)return r}}focusFirstFieldInError(){let e=this.firstFieldSelectorInError;if(e===void 0)return;let r=this.host.renderRoot.querySelector(e);r instanceof HTMLElement&&r.focus()}async submit(e){var r,i,n;if(!this.submitting){this.submitting=!0,this.host.requestUpdate();try{if(!this.checkValidity()){this.focusFirstFieldInError(),(r=e.onInvalid)===null||r===void 0||r.call(e);return}e.onSuccess(await e.request(this.data))}catch(a){let s=Nd(a)?a:void 0;if(!this.checkValidity(s)){this.focusFirstFieldInError(),(i=e.onInvalid)===null||i===void 0||i.call(e);return}(n=e.onFailure)===null||n===void 0||n.call(e,s)}finally{this.submitting=!1,this.host.requestUpdate()}}}};function hs(t,e){return e.map(r=>r(t)).filter(r=>r!==!0).map(r=>r)}function gr(t,e,r){return t?e(t):r?.(t)}var we=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},yr;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(yr||(yr={}));var br;(function(t){t.default="default",t.warning="warning",t.error="error"})(br||(br={}));var ms=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},JS=Ce(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=yr.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=br.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===yr.blur||this.validateOn===yr.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==br.default&&this.validateOn===yr.blurWithStatusResolutionOnInput||this.validateOn===yr.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=hs(this.value,[...this.errorRules,...this.additionalErrorRules]),this.warningMessages=hs(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new ms(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return y`
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
- ${me(this.errorMessages,i=>v`
74
+ ${he(this.errorMessages,i=>y`
75
75
  <li>${i}</li>
76
76
  `)}
77
- ${me(this.warningMessages,i=>v`
77
+ ${he(this.warningMessages,i=>y`
78
78
  <li>${i}</li>
79
79
  `)}
80
- ${vr(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>v`
80
+ ${gr(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>y`
81
81
  <li>${this.helperText}</li>
82
82
  `)}
83
83
  </ul>
84
- `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Sr.error:this.warningMessages.length?Sr.warning:Sr.default}}return we([m()],e.prototype,"warningRules",void 0),we([m()],e.prototype,"errorRules",void 0),we([m()],e.prototype,"validateOn",void 0),we([m({type:Boolean})],e.prototype,"validateAtRender",void 0),we([m()],e.prototype,"label",void 0),we([m({type:Boolean})],e.prototype,"hideLabel",void 0),we([m()],e.prototype,"name",void 0),we([m({type:Boolean})],e.prototype,"disabled",void 0),we([m()],e.prototype,"helperText",void 0),we([m()],e.prototype,"forceStatus",void 0),we([m({reflect:!0})],e.prototype,"value",void 0),we([T()],e.prototype,"errorMessages",void 0),we([T()],e.prototype,"warningMessages",void 0),we([T()],e.prototype,"status",void 0),we([T()],e.prototype,"focused",void 0),we([T()],e.prototype,"additionalWarningRules",void 0),we([T()],e.prototype,"additionalErrorRules",void 0),e});var Wo=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let i of r)i._$AO?.(e,!1),Wo(i,e);return!0},Ni=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},Ud=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),im(e)}};function rm(t){this._$AN!==void 0?(Ni(this),this._$AM=t,Ud(this)):this._$AM=t}function om(t,e=!1,r=0){let i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(i))for(let a=r;a<i.length;a++)Wo(i[a],!1),Ni(i[a]);else i!=null&&(Wo(i,!1),Ni(i));else Wo(this,t)}var im=t=>{t.type==mt.CHILD&&(t._$AP??=om,t._$AQ??=rm)},Jr=class extends et{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,i){super._$AT(e,r,i),Ud(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Wo(this,e),Ni(this))}setValue(e){if(sl(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var ls=class extends Jr{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let i=r.relatedTarget;this.isInsideElement(i,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let i=r.relatedTarget;this.isInsideElement(i,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return Se}update(e){return this.part=e,this.ensureFocusTrap(e.element),Se}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,i;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((i=this.lastTrap)===null||i===void 0?void 0:i.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,i,n;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(i=this.firstTrap)===null||i===void 0||i.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 r=this.getChildren(e);for(let i=0;i<r.length;i++){let n=r[i];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusFirstDescendant(n)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let i=r.length-1;i>=0;i--){let n=r[i];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof Je&&await e.updateComplete}isInsideElement(e,r){for(let i=e;i;i=i.parentNode){if(i===r)return!0;i instanceof ShadowRoot?i=i.host:i.assignedSlot&&(i=i.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}},pC=He(ls);var zd;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(zd||(zd={}));var nm={sm:640,md:768,lg:1024,xl:1280},cs=class extends Jr{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,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,[r,i,n]){return this.lastArgs=[r,i,n],this.render(r,i,n)}render(e,r,i){let n=this.resolveThreshold(e),a=i??(()=>_);return this.size>n?r():a()}resolveThreshold(e){return typeof e=="number"?e:nm[e]}},mC=He(cs);var am=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ds=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}};function Di(t,e){class r extends t{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 u=e[n];this.dispatchEvent(new ds({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||u?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return r.analyticsActions=e,am([ce({})],r.prototype,"configuredAnalyticsActions",void 0),r}var ps,us,fs,hs,Cr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((fs=(us=(ps=window.safari)===null||ps===void 0?void 0:ps.pushNotification)===null||us===void 0?void 0:us.toString())!==null&&fs!==void 0?fs:"")==="[object SafariRemoteNotification]",ms="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(hs=window.ftGlobals)!==null&&hs!==void 0?hs:{lit:un,litDecorators:gn,litRepeat:yn,litClassMap:bn,litStyleMap:vn,litUnsafeHTML:Sn,wcUtils:{...In,...On,...Mn,...Ya,...Fn,...En,...Hn,..._n,...oa,...es,...Fd,...Wa,...ia,...zn,...da,...Za,...la,...rs,...os,...fc,...Ln,...fa,...Vn,...ga,...Pi,...mc,...ya,...za,...Ja,...na,...sa,...Ga,...Nn,...ns,isSafari:Cr,isTouchScreen:ms,setVariable:R}};var ot;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(ot||(ot={}));var Hd=A`
84
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?br.error:this.warningMessages.length?br.warning:br.default}}return we([f()],e.prototype,"warningRules",void 0),we([f()],e.prototype,"errorRules",void 0),we([f()],e.prototype,"validateOn",void 0),we([f({type:Boolean})],e.prototype,"validateAtRender",void 0),we([f()],e.prototype,"label",void 0),we([f({type:Boolean})],e.prototype,"hideLabel",void 0),we([f()],e.prototype,"name",void 0),we([f({type:Boolean})],e.prototype,"disabled",void 0),we([f()],e.prototype,"helperText",void 0),we([f()],e.prototype,"forceStatus",void 0),we([f({reflect:!0})],e.prototype,"value",void 0),we([_()],e.prototype,"errorMessages",void 0),we([_()],e.prototype,"warningMessages",void 0),we([_()],e.prototype,"status",void 0),we([_()],e.prototype,"focused",void 0),we([_()],e.prototype,"additionalWarningRules",void 0),we([_()],e.prototype,"additionalErrorRules",void 0),e});var zo=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let i of r)i._$AO?.(e,!1),zo(i,e);return!0},ji=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},ep=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),Lm(e)}};function Rm(t){this._$AN!==void 0?(ji(this),this._$AM=t,ep(this)):this._$AM=t}function _m(t,e=!1,r=0){let i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(i))for(let a=r;a<i.length;a++)zo(i[a],!1),ji(i[a]);else i!=null&&(zo(i,!1),ji(i));else zo(this,t)}var Lm=t=>{t.type==mt.CHILD&&(t._$AP??=_m,t._$AQ??=Rm)},jr=class extends et{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,i){super._$AT(e,r,i),ep(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(zo(this,e),ji(this))}setValue(e){if(ml(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var gs=class extends jr{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let i=r.relatedTarget;this.isInsideElement(i,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let i=r.relatedTarget;this.isInsideElement(i,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return ve}update(e){return this.part=e,this.ensureFocusTrap(e.element),ve}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,i;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((i=this.lastTrap)===null||i===void 0?void 0:i.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,i,n;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(i=this.firstTrap)===null||i===void 0||i.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 r=this.getChildren(e);for(let i=0;i<r.length;i++){let n=r[i];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusFirstDescendant(n)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let i=r.length-1;i>=0;i--){let n=r[i];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof Je&&await e.updateComplete}isInsideElement(e,r){for(let i=e;i;i=i.parentNode){if(i===r)return!0;i instanceof ShadowRoot?i=i.host:i.assignedSlot&&(i=i.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}},gE=ze(gs);var tp;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(tp||(tp={}));var km={sm:640,md:768,lg:1024,xl:1280},ys=class extends jr{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,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,[r,i,n]){return this.lastArgs=[r,i,n],this.render(r,i,n)}render(e,r,i){let n=this.resolveThreshold(e),a=i??(()=>L);return this.size>n?r():a()}resolveThreshold(e){return typeof e=="number"?e:km[e]}},vE=ze(ys);var Tm=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},bs=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}};function Ki(t,e){class r extends t{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 u=e[n];this.dispatchEvent(new bs({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||u?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return r.analyticsActions=e,Tm([le({})],r.prototype,"configuredAnalyticsActions",void 0),r}var xs,vs,Ss,Es,xr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ss=(vs=(xs=window.safari)===null||xs===void 0?void 0:xs.pushNotification)===null||vs===void 0?void 0:vs.toString())!==null&&Ss!==void 0?Ss:"")==="[object SafariRemoteNotification]",Cs="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Es=window.ftGlobals)!==null&&Es!==void 0?Es:{lit:On,litDecorators:_n,litRepeat:Ln,litClassMap:kn,litStyleMap:Tn,litUnsafeHTML:Pn,wcUtils:{...Wn,...Dn,...qn,...is,...Yn,...$n,...ea,...Vn,...ma,...ls,...Jd,...Ja,...ga,...Qn,...Ea,...os,...va,...ds,...ps,...Sc,...Un,...wa,...ta,..._a,...Gi,...Cc,...La,...qa,...as,...ya,...xa,...es,...jn,...fs,isSafari:xr,isTouchScreen:Cs,setVariable:A}};var rt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(rt||(rt={}));var rp=w`
85
85
  .ft-size-watcher--pixel {
86
86
  width: 0;
87
87
  height: 0;
@@ -100,93 +100,93 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
100
100
  .ft-size-watcher--local .ft-size-watcher--watcher {
101
101
  width: 100%;
102
102
  }
103
- `;var jo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},gs=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},je=class extends D{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=ot.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new re}render(){return v`
103
+ `;var Ho=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Os=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},Ge=class extends D{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=rt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new te}render(){return y`
104
104
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
105
105
  <div class="ft-size-watcher--watcher"></div>
106
106
  </div>
107
- `}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=ot.S:this.size<976?this.category=ot.M:this.size<1024?this.category=ot.L:this.size<1440?this.category=ot.XL:this.category=ot.XXL,this.dispatchEvent(new gs(this.size,this.category)))},this.debounceTimeout)}};je.elementDefinitions={};je.styles=Hd;jo([m({type:Number})],je.prototype,"debounceTimeout",void 0);jo([m({type:Boolean})],je.prototype,"local",void 0);jo([m({type:Number,reflect:!0})],je.prototype,"size",void 0);jo([m({type:String,reflect:!0})],je.prototype,"category",void 0);jo([M(".ft-size-watcher--watcher")],je.prototype,"watcher",void 0);var Vd={"ft-size-watcher":je};K(Vd);var jd=Symbol.for(""),sm=t=>{if(t?.r===jd)return t?._$litStatic$},ys=t=>({_$litStatic$:t,r:jd});var Wd=new Map,bs=t=>(e,...r)=>{let i=r.length,n,a,s=[],l=[],d,u=0,h=!1;for(;u<i;){for(d=e[u];u<i&&(a=r[u],(n=sm(a))!==void 0);)d+=n+e[++u],h=!0;u!==i&&l.push(a),s.push(d),u++}if(u===i&&s.push(e[i]),h){let f=s.join("$$lit$$");(e=Wd.get(f))===void 0&&(s.raw=s,Wd.set(f,e=s)),r=l}return t(e,...r)},vs=bs(v),kO=bs(sn),TO=bs(ln);var ve;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(ve||(ve={}));var Gd=o.extend("--ft-typography-font-family","",O.titleFont),Pt=o.extend("--ft-typography-font-family","",O.contentFont),I={fontFamily:Pt,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Qr={fontFamily:o.extend("--ft-typography-title-font-family","",Gd),fontSize:o.extend("--ft-typography-title-font-size","",I.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",I.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",I.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",I.textTransform,"inherit")},eo={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Gd),fontSize:o.extend("--ft-typography-title-dense-font-size","",I.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",I.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",I.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",I.textTransform,"inherit")},to={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Pt),fontSize:o.extend("--ft-typography-subtitle1-font-size","",I.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",I.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",I.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",I.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",I.textTransform,"inherit")},ro={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Pt),fontSize:o.extend("--ft-typography-subtitle2-font-size","",I.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",I.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",I.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",I.textTransform,"inherit")},It={fontFamily:o.extend("--ft-typography-body1-font-family","",Pt),fontSize:o.extend("--ft-typography-body1-font-size","",I.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",I.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",I.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",I.textTransform,"inherit")},Ce={fontFamily:o.extend("--ft-typography-body2-font-family","",Pt),fontSize:o.extend("--ft-typography-body2-font-size","",I.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",I.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",I.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",I.textTransform,"inherit")},Ge={fontFamily:o.extend("--ft-typography-caption-font-family","",Pt),fontSize:o.extend("--ft-typography-caption-font-size","",I.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",I.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",I.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",I.textTransform,"inherit")},oo={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Pt),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",I.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",I.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",I.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",I.textTransform,"inherit")},io={fontFamily:o.extend("--ft-typography-overline-font-family","",Pt),fontSize:o.extend("--ft-typography-overline-font-size","",I.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",I.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",I.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",I.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",I.textTransform,"uppercase")},St={fontFamily:o.extend("--ft-typography-button-font-family","",Pt),fontSize:o.extend("--ft-typography-button-font-size","",I.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",I.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",I.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",I.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",I.textTransform,"uppercase")},Kd=A`
107
+ `}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=rt.S:this.size<976?this.category=rt.M:this.size<1024?this.category=rt.L:this.size<1440?this.category=rt.XL:this.category=rt.XXL,this.dispatchEvent(new Os(this.size,this.category)))},this.debounceTimeout)}};Ge.elementDefinitions={};Ge.styles=rp;Ho([f({type:Number})],Ge.prototype,"debounceTimeout",void 0);Ho([f({type:Boolean})],Ge.prototype,"local",void 0);Ho([f({type:Number,reflect:!0})],Ge.prototype,"size",void 0);Ho([f({type:String,reflect:!0})],Ge.prototype,"category",void 0);Ho([M(".ft-size-watcher--watcher")],Ge.prototype,"watcher",void 0);var op={"ft-size-watcher":Ge};j(op);var np=Symbol.for(""),Im=t=>{if(t?.r===np)return t?._$litStatic$},ws=t=>({_$litStatic$:t,r:np});var ip=new Map,As=t=>(e,...r)=>{let i=r.length,n,a,s=[],l=[],d,u=0,m=!1;for(;u<i;){for(d=e[u];u<i&&(a=r[u],(n=Im(a))!==void 0);)d+=n+e[++u],m=!0;u!==i&&l.push(a),s.push(d),u++}if(u===i&&s.push(e[i]),m){let h=s.join("$$lit$$");(e=ip.get(h))===void 0&&(s.raw=s,ip.set(h,e=s)),r=l}return t(e,...r)},Rs=As(y),NC=As(xn),DC=As(vn);var be;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(be||(be={}));var ap=o.extend("--ft-typography-font-family","",E.titleFont),Nt=o.extend("--ft-typography-font-family","",E.contentFont),T={fontFamily:Nt,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Kr={fontFamily:o.extend("--ft-typography-title-font-family","",ap),fontSize:o.extend("--ft-typography-title-font-size","",T.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",T.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",T.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",T.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",T.textTransform,"inherit")},Zr={fontFamily:o.extend("--ft-typography-title-dense-font-family","",ap),fontSize:o.extend("--ft-typography-title-dense-font-size","",T.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",T.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",T.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",T.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",T.textTransform,"inherit")},qr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Nt),fontSize:o.extend("--ft-typography-subtitle1-font-size","",T.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",T.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",T.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",T.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",T.textTransform,"inherit")},Yr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Nt),fontSize:o.extend("--ft-typography-subtitle2-font-size","",T.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",T.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",T.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",T.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",T.textTransform,"inherit")},Pt={fontFamily:o.extend("--ft-typography-body1-font-family","",Nt),fontSize:o.extend("--ft-typography-body1-font-size","",T.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",T.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",T.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",T.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",T.textTransform,"inherit")},Se={fontFamily:o.extend("--ft-typography-body2-font-family","",Nt),fontSize:o.extend("--ft-typography-body2-font-size","",T.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",T.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",T.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",T.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",T.textTransform,"inherit")},je={fontFamily:o.extend("--ft-typography-caption-font-family","",Nt),fontSize:o.extend("--ft-typography-caption-font-size","",T.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",T.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",T.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",T.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",T.textTransform,"inherit")},Xr={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Nt),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",T.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",T.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",T.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",T.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",T.textTransform,"inherit")},Jr={fontFamily:o.extend("--ft-typography-overline-font-family","",Nt),fontSize:o.extend("--ft-typography-overline-font-size","",T.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",T.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",T.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",T.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",T.textTransform,"uppercase")},St={fontFamily:o.extend("--ft-typography-button-font-family","",Nt),fontSize:o.extend("--ft-typography-button-font-size","",T.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",T.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",T.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",T.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",T.textTransform,"uppercase")},sp=w`
108
108
  .ft-typography--title {
109
- font-family: ${Qr.fontFamily};
110
- font-size: ${Qr.fontSize};
111
- font-weight: ${Qr.fontWeight};
112
- letter-spacing: ${Qr.letterSpacing};
113
- line-height: ${Qr.lineHeight};
114
- text-transform: ${Qr.textTransform};
115
- }
116
- `,qd=A`
109
+ font-family: ${Kr.fontFamily};
110
+ font-size: ${Kr.fontSize};
111
+ font-weight: ${Kr.fontWeight};
112
+ letter-spacing: ${Kr.letterSpacing};
113
+ line-height: ${Kr.lineHeight};
114
+ text-transform: ${Kr.textTransform};
115
+ }
116
+ `,lp=w`
117
117
  .ft-typography--title-dense {
118
- font-family: ${eo.fontFamily};
119
- font-size: ${eo.fontSize};
120
- font-weight: ${eo.fontWeight};
121
- letter-spacing: ${eo.letterSpacing};
122
- line-height: ${eo.lineHeight};
123
- text-transform: ${eo.textTransform};
124
- }
125
- `,Zd=A`
118
+ font-family: ${Zr.fontFamily};
119
+ font-size: ${Zr.fontSize};
120
+ font-weight: ${Zr.fontWeight};
121
+ letter-spacing: ${Zr.letterSpacing};
122
+ line-height: ${Zr.lineHeight};
123
+ text-transform: ${Zr.textTransform};
124
+ }
125
+ `,cp=w`
126
126
  .ft-typography--subtitle1 {
127
- font-family: ${to.fontFamily};
128
- font-size: ${to.fontSize};
129
- font-weight: ${to.fontWeight};
130
- letter-spacing: ${to.letterSpacing};
131
- line-height: ${to.lineHeight};
132
- text-transform: ${to.textTransform};
133
- }
134
- `,Yd=A`
127
+ font-family: ${qr.fontFamily};
128
+ font-size: ${qr.fontSize};
129
+ font-weight: ${qr.fontWeight};
130
+ letter-spacing: ${qr.letterSpacing};
131
+ line-height: ${qr.lineHeight};
132
+ text-transform: ${qr.textTransform};
133
+ }
134
+ `,dp=w`
135
135
  .ft-typography--subtitle2 {
136
- font-family: ${ro.fontFamily};
137
- font-size: ${ro.fontSize};
138
- font-weight: ${ro.fontWeight};
139
- letter-spacing: ${ro.letterSpacing};
140
- line-height: ${ro.lineHeight};
141
- text-transform: ${ro.textTransform};
136
+ font-family: ${Yr.fontFamily};
137
+ font-size: ${Yr.fontSize};
138
+ font-weight: ${Yr.fontWeight};
139
+ letter-spacing: ${Yr.letterSpacing};
140
+ line-height: ${Yr.lineHeight};
141
+ text-transform: ${Yr.textTransform};
142
142
  }
143
143
 
144
- `,Xd=A`
144
+ `,pp=w`
145
145
  .ft-typography--body1 {
146
- font-family: ${It.fontFamily};
147
- font-size: ${It.fontSize};
148
- font-weight: ${It.fontWeight};
149
- letter-spacing: ${It.letterSpacing};
150
- line-height: ${It.lineHeight};
151
- text-transform: ${It.textTransform};
152
- }
153
- `,no=A`
146
+ font-family: ${Pt.fontFamily};
147
+ font-size: ${Pt.fontSize};
148
+ font-weight: ${Pt.fontWeight};
149
+ letter-spacing: ${Pt.letterSpacing};
150
+ line-height: ${Pt.lineHeight};
151
+ text-transform: ${Pt.textTransform};
152
+ }
153
+ `,Qr=w`
154
154
  .ft-typography--body2 {
155
- font-family: ${Ce.fontFamily};
156
- font-size: ${Ce.fontSize};
157
- font-weight: ${Ce.fontWeight};
158
- letter-spacing: ${Ce.letterSpacing};
159
- line-height: ${Ce.lineHeight};
160
- text-transform: ${Ce.textTransform};
161
- }
162
- `,Gt=A`
155
+ font-family: ${Se.fontFamily};
156
+ font-size: ${Se.fontSize};
157
+ font-weight: ${Se.fontWeight};
158
+ letter-spacing: ${Se.letterSpacing};
159
+ line-height: ${Se.lineHeight};
160
+ text-transform: ${Se.textTransform};
161
+ }
162
+ `,Wt=w`
163
163
  .ft-typography--caption {
164
- font-family: ${Ge.fontFamily};
165
- font-size: ${Ge.fontSize};
166
- font-weight: ${Ge.fontWeight};
167
- letter-spacing: ${Ge.letterSpacing};
168
- line-height: ${Ge.lineHeight};
169
- text-transform: ${Ge.textTransform};
170
- }
171
- `,Jd=A`
164
+ font-family: ${je.fontFamily};
165
+ font-size: ${je.fontSize};
166
+ font-weight: ${je.fontWeight};
167
+ letter-spacing: ${je.letterSpacing};
168
+ line-height: ${je.lineHeight};
169
+ text-transform: ${je.textTransform};
170
+ }
171
+ `,up=w`
172
172
  .ft-typography--breadcrumb {
173
- font-family: ${oo.fontFamily};
174
- font-size: ${oo.fontSize};
175
- font-weight: ${oo.fontWeight};
176
- letter-spacing: ${oo.letterSpacing};
177
- line-height: ${oo.lineHeight};
178
- text-transform: ${oo.textTransform};
179
- }
180
- `,Qd=A`
173
+ font-family: ${Xr.fontFamily};
174
+ font-size: ${Xr.fontSize};
175
+ font-weight: ${Xr.fontWeight};
176
+ letter-spacing: ${Xr.letterSpacing};
177
+ line-height: ${Xr.lineHeight};
178
+ text-transform: ${Xr.textTransform};
179
+ }
180
+ `,fp=w`
181
181
  .ft-typography--overline {
182
- font-family: ${io.fontFamily};
183
- font-size: ${io.fontSize};
184
- font-weight: ${io.fontWeight};
185
- letter-spacing: ${io.letterSpacing};
186
- line-height: ${io.lineHeight};
187
- text-transform: ${io.textTransform};
188
- }
189
- `,ep=A`
182
+ font-family: ${Jr.fontFamily};
183
+ font-size: ${Jr.fontSize};
184
+ font-weight: ${Jr.fontWeight};
185
+ letter-spacing: ${Jr.letterSpacing};
186
+ line-height: ${Jr.lineHeight};
187
+ text-transform: ${Jr.textTransform};
188
+ }
189
+ `,hp=w`
190
190
  .ft-typography--button {
191
191
  font-family: ${St.fontFamily};
192
192
  font-size: ${St.fontSize};
@@ -195,19 +195,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
195
195
  line-height: ${St.lineHeight};
196
196
  text-transform: ${St.textTransform};
197
197
  }
198
- `,tp=A`
198
+ `,mp=w`
199
199
  .ft-typography {
200
200
  vertical-align: inherit;
201
201
  }
202
- `;var rp=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},oe=class extends D{constructor(){super(...arguments),this.variant=ve.body1}render(){return this.element?vs`
203
- <${ys(this.element)}
202
+ `;var gp=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},re=class extends D{constructor(){super(...arguments),this.variant=be.body1}render(){return this.element?Rs`
203
+ <${ws(this.element)}
204
204
  part="text"
205
205
  class="ft-typography ft-typography--${this.variant}">
206
206
  <slot></slot>
207
- </${ys(this.element)}>
208
- `:vs`
207
+ </${ws(this.element)}>
208
+ `:Rs`
209
209
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
210
- `}};oe.styles=[Kd,qd,Zd,Yd,Xd,no,Gt,Jd,Qd,ep,tp];rp([m()],oe.prototype,"element",void 0);rp([m()],oe.prototype,"variant",void 0);var op={"ft-typography":oe};K(op);function $i(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function ip(t){return $i(t).split("|").pop()}function np(t){return $i(t).split("|").join(" > ")}function ap(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>ap(r,t.selected)),value:t.value}}function sp(t){return Ve(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function xs(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>ap(e,!1))}}function lp(t){return Ve(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var cp=o.extend("--ft-ripple-color","",O.colorContent),ie={color:cp,backgroundColor:o.extend("--ft-ripple-background-color","",cp),opacityContentOnSurfacePressed:o.external(O.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(O.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(O.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(O.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},dp=o.extend("--ft-ripple-color","",O.colorPrimary),pp={color:dp,backgroundColor:o.extend("--ft-ripple-background-color","",dp)},up=o.extend("--ft-ripple-color","",O.colorSecondary),fp={color:up,backgroundColor:o.extend("--ft-ripple-background-color","",up)},hp=A`
210
+ `}};re.styles=[sp,lp,cp,dp,pp,Qr,Wt,up,fp,hp,mp];gp([f()],re.prototype,"element",void 0);gp([f()],re.prototype,"variant",void 0);var yp={"ft-typography":re};j(yp);function Zi(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function bp(t){return Zi(t).split("|").pop()}function xp(t){return Zi(t).split("|").join(" > ")}function vp(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>vp(r,t.selected)),value:t.value}}function Sp(t){return He(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function _s(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>vp(e,!1))}}function Ep(t){return He(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Cp=o.extend("--ft-ripple-color","",E.colorContent),oe={color:Cp,backgroundColor:o.extend("--ft-ripple-background-color","",Cp),opacityContentOnSurfacePressed:o.external(E.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(E.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(E.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(E.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},Op=o.extend("--ft-ripple-color","",E.colorPrimary),wp={color:Op,backgroundColor:o.extend("--ft-ripple-background-color","",Op)},Ap=o.extend("--ft-ripple-color","",E.colorSecondary),Rp={color:Ap,backgroundColor:o.extend("--ft-ripple-background-color","",Ap)},_p=w`
211
211
  :host {
212
212
  display: contents;
213
213
  }
@@ -220,7 +220,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
220
220
 
221
221
  .ft-ripple:not(.ft-ripple--unbounded) {
222
222
  overflow: hidden;
223
- border-radius: ${ie.borderRadius};
223
+ border-radius: ${oe.borderRadius};
224
224
  }
225
225
 
226
226
  .ft-ripple .ft-ripple--background,
@@ -254,27 +254,27 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
254
254
  }
255
255
 
256
256
  .ft-ripple .ft-ripple--background {
257
- background-color: ${ie.backgroundColor};
257
+ background-color: ${oe.backgroundColor};
258
258
  }
259
259
 
260
260
  .ft-ripple .ft-ripple--effect {
261
- background-color: ${ie.color};
261
+ background-color: ${oe.color};
262
262
  }
263
263
 
264
264
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
265
- background-color: ${fp.backgroundColor};
265
+ background-color: ${Rp.backgroundColor};
266
266
  }
267
267
 
268
268
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
269
- background-color: ${fp.color};
269
+ background-color: ${Rp.color};
270
270
  }
271
271
 
272
272
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
273
- background-color: ${pp.backgroundColor};
273
+ background-color: ${wp.backgroundColor};
274
274
  }
275
275
 
276
276
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
277
- background-color: ${pp.color};
277
+ background-color: ${wp.color};
278
278
  }
279
279
 
280
280
  .ft-ripple .ft-ripple--background {
@@ -304,22 +304,22 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
304
304
  }
305
305
 
306
306
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
307
- opacity: ${ie.opacityContentOnSurfaceHover};
307
+ opacity: ${oe.opacityContentOnSurfaceHover};
308
308
  }
309
309
 
310
310
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
311
- opacity: ${ie.opacityContentOnSurfaceSelected};
311
+ opacity: ${oe.opacityContentOnSurfaceSelected};
312
312
  }
313
313
 
314
314
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
315
- opacity: ${ie.opacityContentOnSurfaceFocused};
315
+ opacity: ${oe.opacityContentOnSurfaceFocused};
316
316
  }
317
317
 
318
318
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
319
- opacity: ${ie.opacityContentOnSurfacePressed};
319
+ opacity: ${oe.opacityContentOnSurfacePressed};
320
320
  transform: translate(-50%, -50%) scale(1);
321
321
  }
322
- `;var Or={color:o.extend("--ft-loader-color","",O.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},mp=A`
322
+ `;var vr={color:o.extend("--ft-loader-color","",E.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},Lp=w`
323
323
  :host {
324
324
  line-height: 0;
325
325
  }
@@ -328,8 +328,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
328
328
  display: inline-block;
329
329
  position: relative;
330
330
 
331
- width: ${Or.size};
332
- height: ${Or.size};
331
+ width: ${vr.size};
332
+ height: ${vr.size};
333
333
  }
334
334
 
335
335
  .ft-loader div {
@@ -338,7 +338,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
338
338
  width: 25%;
339
339
  height: 25%;
340
340
  border-radius: 50%;
341
- background: ${Or.color};
341
+ background: ${vr.color};
342
342
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
343
343
  }
344
344
 
@@ -385,10 +385,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
385
385
  transform: translate(0, 0);
386
386
  }
387
387
  100% {
388
- transform: translate(calc(0.35 * ${Or.size}), 0);
388
+ transform: translate(calc(0.35 * ${vr.size}), 0);
389
389
  }
390
390
  }
391
- `;var De={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},gp=[A`
391
+ `;var Ne={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},kp=[w`
392
392
  :host, i.ft-icon {
393
393
  display: inline-flex;
394
394
  align-items: center;
@@ -397,14 +397,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
397
397
  }
398
398
 
399
399
  :host {
400
- width: ${De.size};
401
- height: ${De.size};
400
+ width: ${Ne.size};
401
+ height: ${Ne.size};
402
402
  }
403
403
 
404
404
  i.ft-icon {
405
405
  width: 100%;
406
406
  height: 100%;
407
- font-size: ${De.size};
407
+ font-size: ${Ne.size};
408
408
  line-height: 1;
409
409
  font-weight: normal;
410
410
  text-transform: none;
@@ -415,28 +415,28 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
415
415
  text-rendering: auto;
416
416
  -webkit-font-smoothing: antialiased;
417
417
  -moz-osx-font-smoothing: grayscale;
418
- vertical-align: ${De.verticalAlign};
418
+ vertical-align: ${Ne.verticalAlign};
419
419
  }
420
420
 
421
421
  i.ft-icon.ft-icon--fluid-topics {
422
- font-family: ${De.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
422
+ font-family: ${Ne.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
423
423
 
424
424
  /* Ugly fix because font is broken */
425
- font-size: calc(0.75 * ${De.size});
426
- line-height: ${De.size};
425
+ font-size: calc(0.75 * ${Ne.size});
426
+ line-height: ${Ne.size};
427
427
  position: relative;
428
428
  top: -4%;
429
429
  justify-content: center;
430
430
  }
431
431
 
432
432
  .ft-icon--file-format {
433
- font-family: ${De.fileFormatFontFamily}, ft-mime, sans-serif;
433
+ font-family: ${Ne.fileFormatFontFamily}, ft-mime, sans-serif;
434
434
  }
435
435
 
436
436
  .ft-icon--material {
437
- font-family: ${De.materialFontFamily}, "Material Icons", sans-serif;
437
+ font-family: ${Ne.materialFontFamily}, "Material Icons", sans-serif;
438
438
  }
439
- `,ur];var yp=o.extend("--ft-button-color","",O.colorPrimary),X={backgroundColor:o.extend("--ft-button-background-color","",O.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",O.borderRadiusL),color:yp,fontSize:o.extend("--ft-button-font-size","",St.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",yp),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(O.colorOpacityDisabled,"Design system")},bp=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",O.colorOnPrimary)),Ss={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",O.colorPrimary)),color:bp,rippleColor:o.extend("--ft-button-primary-ripple-color","",bp)},Ct={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",O.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},vp=A`
439
+ `,dr];var Tp=o.extend("--ft-button-color","",E.colorPrimary),X={backgroundColor:o.extend("--ft-button-background-color","",E.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",E.borderRadiusL),color:Tp,fontSize:o.extend("--ft-button-font-size","",St.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",Tp),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(E.colorOpacityDisabled,"Design system")},Ip=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",E.colorOnPrimary)),Ls={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",E.colorPrimary)),color:Ip,rippleColor:o.extend("--ft-button-primary-ripple-color","",Ip)},Et={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",E.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},Pp=w`
440
440
  :host {
441
441
  display: inline-block;
442
442
  max-width: 100%;
@@ -467,7 +467,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
467
467
  }
468
468
 
469
469
  .ft-button:focus-visible {
470
- outline: 2px solid ${O.colorPrimary};
470
+ outline: 2px solid ${E.colorPrimary};
471
471
  outline-offset: 2px;
472
472
  }
473
473
 
@@ -483,9 +483,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
483
483
 
484
484
  --button-internal-line-height: max(calc(${X.fontSize} + 2px), ${X.iconSize});
485
485
  --button-internal-color: ${X.color};
486
- ${R(De.size,X.iconSize)};
487
- ${R(ie.color,X.rippleColor)};
488
- ${R(ie.borderRadius,X.borderRadius)};
486
+ ${A(Ne.size,X.iconSize)};
487
+ ${A(oe.color,X.rippleColor)};
488
+ ${A(oe.borderRadius,X.borderRadius)};
489
489
 
490
490
  border-radius: ${X.borderRadius};
491
491
  padding: ${X.verticalPadding} ${X.horizontalPadding};
@@ -499,13 +499,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
499
499
  }
500
500
 
501
501
  .ft-button.ft-button--dense {
502
- padding: ${Ct.verticalPadding} ${Ct.horizontalPadding};
503
- border-radius: ${Ct.borderRadius};
504
- ${R(ie.borderRadius,Ct.borderRadius)};
502
+ padding: ${Et.verticalPadding} ${Et.horizontalPadding};
503
+ border-radius: ${Et.borderRadius};
504
+ ${A(oe.borderRadius,Et.borderRadius)};
505
505
  }
506
506
 
507
507
  .ft-button.ft-button--dense.ft-button--outlined {
508
- padding: calc(${Ct.verticalPadding} - 1px) calc(${Ct.horizontalPadding} - 1px);
508
+ padding: calc(${Et.verticalPadding} - 1px) calc(${Et.horizontalPadding} - 1px);
509
509
  }
510
510
 
511
511
  .ft-button:not([disabled]):hover {
@@ -517,7 +517,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
517
517
  }
518
518
 
519
519
  .ft-button--round.ft-button--dense {
520
- border-radius: calc(var(--button-internal-line-height) / 2 + ${Ct.verticalPadding});
520
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${Et.verticalPadding});
521
521
  }
522
522
 
523
523
  .ft-button[disabled] {
@@ -526,9 +526,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
526
526
  }
527
527
 
528
528
  .ft-button.ft-button--primary {
529
- background-color: ${Ss.backgroundColor};
530
- --button-internal-color: ${Ss.color};
531
- ${R(ie.color,Ss.rippleColor)};
529
+ background-color: ${Ls.backgroundColor};
530
+ --button-internal-color: ${Ls.color};
531
+ ${A(oe.color,Ls.rippleColor)};
532
532
  }
533
533
 
534
534
  .ft-button--label {
@@ -538,12 +538,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
538
538
  text-overflow: ellipsis;
539
539
  display: block;
540
540
  margin: 0 ${X.iconPadding};
541
- ${R(St.fontSize,"1em")};
542
- ${R(St.lineHeight,"var(--button-internal-line-height)")};
541
+ ${A(St.fontSize,"1em")};
542
+ ${A(St.lineHeight,"var(--button-internal-line-height)")};
543
543
  }
544
544
 
545
545
  .ft-button--dense .ft-button--label {
546
- margin: 0 ${Ct.iconPadding};
546
+ margin: 0 ${Et.iconPadding};
547
547
  }
548
548
 
549
549
  .ft-button--label.ft-button--label-no-text {
@@ -561,8 +561,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
561
561
  }
562
562
 
563
563
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
564
- margin: 0 calc(${Ct.horizontalPadding} * -1);
565
- padding: 0 ${Ct.verticalPadding};
564
+ margin: 0 calc(${Et.horizontalPadding} * -1);
565
+ padding: 0 ${Et.verticalPadding};
566
566
  }
567
567
 
568
568
  .ft-button:not(.ft-button--trailing-icon) [part="label"] {
@@ -570,10 +570,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
570
570
  }
571
571
 
572
572
  ft-loader {
573
- ${R(Or.size,X.iconSize)};
574
- ${R(Or.color,"var(--button-internal-color)")};
573
+ ${A(vr.size,X.iconSize)};
574
+ ${A(vr.color,"var(--button-internal-color)")};
575
575
  }
576
- `;var Go={buttonMoreColor:o.extend("--ft-filter-level-button-more-color","",O.colorOnSurface),borderRadiusM:o.external(O.borderRadiusM,"Design system"),colorOutline:o.external(O.colorOutline,"Design system"),colorOnSurface:o.external(O.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(O.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:o.external(O.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(O.colorPrimary,"Design system"),colorOnPrimary:o.external(O.colorOnPrimary,"Design system"),fontFamily:o.external(Ce.fontFamily,"Body2 typography"),fontSize:o.external(Ce.fontSize,"Body2 typography"),fontWeight:o.external(Ce.fontWeight,"Body2 typography"),letterSpacing:o.external(Ce.letterSpacing,"Body2 typography"),lineHeight:o.external(Ce.lineHeight,"Body2 typography"),textTransform:o.external(Ce.textTransform,"Body2 typography")},xp=A`
576
+ `;var Vo={buttonMoreColor:o.extend("--ft-filter-level-button-more-color","",E.colorOnSurface),borderRadiusM:o.external(E.borderRadiusM,"Design system"),colorOutline:o.external(E.colorOutline,"Design system"),colorOnSurface:o.external(E.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(E.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:o.external(E.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(E.colorPrimary,"Design system"),colorOnPrimary:o.external(E.colorOnPrimary,"Design system"),fontFamily:o.external(Se.fontFamily,"Body2 typography"),fontSize:o.external(Se.fontSize,"Body2 typography"),fontWeight:o.external(Se.fontWeight,"Body2 typography"),letterSpacing:o.external(Se.letterSpacing,"Body2 typography"),lineHeight:o.external(Se.lineHeight,"Body2 typography"),textTransform:o.external(Se.textTransform,"Body2 typography")},Np=w`
577
577
  .ft-filter-level--container {
578
578
  display: flex;
579
579
  flex-direction: column;
@@ -588,14 +588,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
588
588
  flex-shrink: 0;
589
589
  text-decoration: none;
590
590
  position: relative;
591
- border-radius: ${Go.borderRadiusM};
591
+ border-radius: ${Vo.borderRadiusM};
592
592
  overflow: hidden;
593
593
  display: flex;
594
594
  align-items: center;
595
595
  padding: 4px 4px;
596
596
  gap: 4px;
597
597
  cursor: pointer;
598
- color: ${Go.colorOnSurface};
598
+ color: ${Vo.colorOnSurface};
599
599
  }
600
600
 
601
601
  .ft-filter-level--go-back:focus {
@@ -624,11 +624,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
624
624
  }
625
625
 
626
626
  ft-button {
627
- ${R(X.color,Go.colorOnSurface)};
627
+ ${A(X.color,Vo.colorOnSurface)};
628
628
  }
629
629
 
630
630
  ft-button.ft-filter-level--display-more {
631
- ${R(X.color,Go.buttonMoreColor)};
631
+ ${A(X.color,Vo.buttonMoreColor)};
632
632
  }
633
633
 
634
634
  ft-radio, ft-checkbox {
@@ -642,20 +642,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
642
642
 
643
643
  .ft-filter-level--no-values {
644
644
  margin: 10px 0;
645
- color: ${Go.colorOnSurfaceMedium};
645
+ color: ${Vo.colorOnSurfaceMedium};
646
646
  }
647
- `;var Ue=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},q=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 re(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 re(10),this.moveRipple=e=>{var r,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{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 v`
647
+ `;var Be=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,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 te(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 te(10),this.moveRipple=e=>{var r,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{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 y`
648
648
  <style>
649
649
  .ft-ripple .ft-ripple--effect {
650
650
  left: ${this.originX}px;
651
651
  top: ${this.originY}px;
652
652
  }
653
653
  </style>
654
- <div class="${ae(e)}">
654
+ <div class="${ne(e)}">
655
655
  <div class="ft-ripple--background"></div>
656
656
  <div class="ft-ripple--effect"></div>
657
657
  </div>
658
- `}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 r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}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 r=(...l)=>d=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("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",i,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",i,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 r=e,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.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 r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};q.elementDefinitions={};q.styles=hp;Ue([m({type:Boolean})],q.prototype,"primary",void 0);Ue([m({type:Boolean})],q.prototype,"secondary",void 0);Ue([m({type:Boolean})],q.prototype,"unbounded",void 0);Ue([m({type:Boolean})],q.prototype,"activated",void 0);Ue([m({type:Boolean})],q.prototype,"selected",void 0);Ue([m({type:Boolean})],q.prototype,"disabled",void 0);Ue([T()],q.prototype,"hovered",void 0);Ue([T()],q.prototype,"focused",void 0);Ue([T()],q.prototype,"pressed",void 0);Ue([T()],q.prototype,"rippling",void 0);Ue([T()],q.prototype,"originX",void 0);Ue([T()],q.prototype,"originY",void 0);Ue([M(".ft-ripple")],q.prototype,"ripple",void 0);Ue([M(".ft-ripple--effect")],q.prototype,"rippleEffect",void 0);var Sp={"ft-ripple":q};K(Sp);var Ko={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:o.extend("--ft-tooltip-border-radius","",O.borderRadiusS),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Cp=A`
658
+ `}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 r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}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 r=(...l)=>d=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("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",i,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",i,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 r=e,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.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 r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Z.elementDefinitions={};Z.styles=_p;Be([f({type:Boolean})],Z.prototype,"primary",void 0);Be([f({type:Boolean})],Z.prototype,"secondary",void 0);Be([f({type:Boolean})],Z.prototype,"unbounded",void 0);Be([f({type:Boolean})],Z.prototype,"activated",void 0);Be([f({type:Boolean})],Z.prototype,"selected",void 0);Be([f({type:Boolean})],Z.prototype,"disabled",void 0);Be([_()],Z.prototype,"hovered",void 0);Be([_()],Z.prototype,"focused",void 0);Be([_()],Z.prototype,"pressed",void 0);Be([_()],Z.prototype,"rippling",void 0);Be([_()],Z.prototype,"originX",void 0);Be([_()],Z.prototype,"originY",void 0);Be([M(".ft-ripple")],Z.prototype,"ripple",void 0);Be([M(".ft-ripple--effect")],Z.prototype,"rippleEffect",void 0);var Dp={"ft-ripple":Z};j(Dp);var Wo={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:o.extend("--ft-tooltip-border-radius","",E.borderRadiusS),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},$p=w`
659
659
  .ft-tooltip--container {
660
660
  display: block;
661
661
  }
@@ -673,28 +673,28 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
673
673
  box-sizing: border-box;
674
674
  overflow: hidden;
675
675
  width: max-content;
676
- max-width: ${Ko.maxWidth};
676
+ max-width: ${Wo.maxWidth};
677
677
  text-align: center;
678
- padding: ${Ko.distance};
678
+ padding: ${Wo.distance};
679
679
  }
680
680
 
681
681
  .ft-tooltip--content {
682
682
  padding: 4px 8px;
683
- border-radius: ${Ko.borderRadiusS};
684
- background-color: ${Ko.backgroundColor};
685
- color: ${Ko.color};
683
+ border-radius: ${Wo.borderRadiusS};
684
+ background-color: ${Wo.backgroundColor};
685
+ color: ${Wo.color};
686
686
  position: relative;
687
687
  word-break: break-word;
688
688
  }
689
- `;var lm="ft-app-info",ao=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ao.eventName="authentication-change";var qo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};qo.eventName="ui-locale-changed";var cm={session:(t,e)=>{ge(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>H.dispatchEvent(new ao(e.payload)),0))}},H=yr.get({name:lm,reducers:cm,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Mi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},KE=Ee(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(H)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>br.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Mi([m({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Mi([m({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Mi([Hr({store:H.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Mi([Hr({store:H.name})],e.prototype,"uiLocale",void 0),e});var Er=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=H.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=H.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var so=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Er.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Er.await()}};var Ke=class extends so{constructor(e=!0,r){var i;super(r),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=(i=n.commonCache)!==null&&i!==void 0?i:new gt,this.cache=e?n.commonCache:new gt}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Fi=class extends Ke{async listMySearches(){let{session:e}=H.getState();return Dd(e,be.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Bi=class extends Ke{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 Ui=class extends Ke{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 zi=class extends Ke{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 dm="ft-user-assets",pm={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(rt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;Os(t,r,[...Cs(t,r),n]),Op(t,r,1,i),Ep(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Os(t,r,Cs(t,r).map(n=>n.id===i.id?i:n)),Ep(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Os(t,r,Cs(t,r).filter(a=>a.id!==n)),Op(t,r,-1,i)}},wp={[rt.SEARCHES]:"savedSearches",[rt.BOOKMARKS]:"bookmarks",[rt.BOOKS]:void 0,[rt.COLLECTIONS]:void 0},Cs=(t,e)=>{var r;let i=wp[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Os=(t,e,r)=>{let i=wp[e];i&&(t[i]=r)},Op=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===rt.BOOKMARKS&&i)){let a=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,a+r)}},Ep=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},$e=yr.get({name:dm,reducers:pm,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(rt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Es=class{constructor(e=new Ui,r=new zi){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=H.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Bi,this.savedSearchesService=new Fi,H.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=H.getState();ge((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),$e.actions.clearAssetCount(),$e.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),$e.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),$e.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();$e.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();$e.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&$e.getState().assetCounts.allAsset[e]!==r.count&&$e.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&$e.getState().assetCounts.bookmarkByMap[e]!==r.count&&$e.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys($e.getState().assetCounts.bookmarkByMap).length!==0;e===rt.BOOKMARKS&&r&&$e.actions.clearBookmarkCountByMap(),$e.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 r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;$e.actions.bookmarks(r)}}},um=new Es;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=um);var ws=class{addCommand(e,r=!1){H.commands.add(e,r)}consumeCommand(e){return H.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ws;var Ap,lo=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},fm=Symbol("clearAfterUnitTest"),Hi=class extends bi(Ke){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ap]=()=>{this.defaultMessages={},this.cache=new gt,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 r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};ge(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Bt((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof or)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new lo({loadedContexts:e})),this.dispatchEvent(new lo({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new lo({loadedContexts:[e]})),this.dispatchEvent(new lo({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>mi(0).then(()=>i()).catch(()=>null)))}};Ap=fm;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Hi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Hi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Zo=window.FluidTopicsI18nService,As=window.FluidTopicsCustomI18nService;var Rs=class{highlightHtml(e,r,i){ua(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Rs;var Ls=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=H.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a,s;if(e==null)return"";try{return br.format(e,(i=r?.locale)!==null&&i!==void 0?i:H.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new Ls;var Yo=class{static get(e,r){var i,n,a,s;let l=H.getState(),{lang:d,region:u}=(a=(n=(i=l.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new jt(l.baseUrl,e??20,(s=l.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${d}-${u}`)}};var ks=class{urlToSearchRequest(e){return Yo.get().parse(e)}searchRequestToUrl(e){return Yo.get().serialize(e)}};window.FluidTopicsUrlService=new ks;var wr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};wr.eventName="change";var Ts=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Rp=new Ts;var Vi=class t extends Lt{static build(){return new t(window.history,Rp,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,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,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),ge(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new wr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,l])=>{let d=r(),u={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};i.apply(n,[u,s,l]),this.setCurrentState(u,!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 r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(wr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(wr.eventName,e)}currentItem(){return at(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 at(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return at(r.find(i=>e(i)))}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 at(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 r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Vi.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var Lp=A`
690
- `;function kp(t,e){let{authenticationRequired:r,session:i}=H.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var Wi=class extends so{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var _s=class t extends Vo{static build(e){return new t(H,e)}constructor(e,r){super(),this.store=e,this.cache=new gt,this.withManualResources=!0,this.userLocaleService=new Wi,this.cleanSessionDebouncer=new re,this.reloadDebouncer=new re(500),this.apiProvider=r??(()=>Er.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(ao.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 r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});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 r=await this.cache.get("availableContentLocales",()=>kp(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new qo(i)))}).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)}},Tp=_s.build();var Ar=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var Xo=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:a}of i){let s=n.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Ar(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=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(r);a===void 0&&n.callbacks.set(r,a=new WeakSet),a.has(i)||(a.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}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 Ae=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},pe=class extends hr{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=Tp,this.contextRoot=new Xo}render(){return v`
689
+ `;var Pm="ft-app-info",eo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};eo.eventName="authentication-change";var Go=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Go.eventName="ui-locale-changed";var Nm={session:(t,e)=>{me(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>H.dispatchEvent(new eo(e.payload)),0))}},H=hr.get({name:Pm,reducers:Nm,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var qi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},JO=Ce(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(H)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>mr.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return qi([f({type:Boolean})],e.prototype,"useLongDateFormat",void 0),qi([f({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),qi([Br({store:H.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),qi([Br({store:H.name})],e.prototype,"uiLocale",void 0),e});var Sr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=H.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=H.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var to=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Sr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Sr.await()}};var Ke=class extends to{constructor(e=!0,r){var i;super(r),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=(i=n.commonCache)!==null&&i!==void 0?i:new gt,this.cache=e?n.commonCache:new gt}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Yi=class extends Ke{async listMySearches(){let{session:e}=H.getState();return qd(e,ye.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Xi=class extends Ke{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 Ji=class extends Ke{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 Qi=class extends Ke{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 Dm="ft-user-assets",$m={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(tt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;Ts(t,r,[...ks(t,r),n]),Mp(t,r,1,i),Fp(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;Ts(t,r,ks(t,r).map(n=>n.id===i.id?i:n)),Fp(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;Ts(t,r,ks(t,r).filter(a=>a.id!==n)),Mp(t,r,-1,i)}},Bp={[tt.SEARCHES]:"savedSearches",[tt.BOOKMARKS]:"bookmarks",[tt.BOOKS]:void 0,[tt.COLLECTIONS]:void 0},ks=(t,e)=>{var r;let i=Bp[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},Ts=(t,e,r)=>{let i=Bp[e];i&&(t[i]=r)},Mp=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===tt.BOOKMARKS&&i)){let a=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,a+r)}},Fp=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},De=hr.get({name:Dm,reducers:$m,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(tt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Is=class{constructor(e=new Ji,r=new Qi){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=H.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Xi,this.savedSearchesService=new Yi,H.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=H.getState();me((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),De.actions.clearAssetCount(),De.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),De.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),De.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();De.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();De.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&De.getState().assetCounts.allAsset[e]!==r.count&&De.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&De.getState().assetCounts.bookmarkByMap[e]!==r.count&&De.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(De.getState().assetCounts.bookmarkByMap).length!==0;e===tt.BOOKMARKS&&r&&De.actions.clearBookmarkCountByMap(),De.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 r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;De.actions.bookmarks(r)}}},Mm=new Is;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Mm);var Ps=class{addCommand(e,r=!1){H.commands.add(e,r)}consumeCommand(e){return H.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ps;var Up,ro=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Fm=Symbol("clearAfterUnitTest"),en=class extends mi(Ke){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Up]=()=>{this.defaultMessages={},this.cache=new gt,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 r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};me(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Ut((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof tr)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new ro({loadedContexts:e})),this.dispatchEvent(new ro({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new ro({loadedContexts:[e]})),this.dispatchEvent(new ro({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>ui(0).then(()=>i()).catch(()=>null)))}};Up=Fm;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends en{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends en{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var jo=window.FluidTopicsI18nService,Ns=window.FluidTopicsCustomI18nService;var Ds=class{highlightHtml(e,r,i){Oa(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Ds;var $s=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=H.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a,s;if(e==null)return"";try{return mr.format(e,(i=r?.locale)!==null&&i!==void 0?i:H.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new $s;var Ko=class{static get(e,r){var i,n,a,s;let l=H.getState(),{lang:d,region:u}=(a=(n=(i=l.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Vt(l.baseUrl,e??20,(s=l.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${d}-${u}`)}};var Ms=class{urlToSearchRequest(e){return Ko.get().parse(e)}searchRequestToUrl(e){return Ko.get().serialize(e)}};window.FluidTopicsUrlService=new Ms;var Er=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Er.eventName="change";var Fs=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},zp=new Fs;var tn=class t extends _t{static build(){return new t(window.history,zp,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,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,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),me(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Er(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,l])=>{let d=r(),u={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};i.apply(n,[u,s,l]),this.setCurrentState(u,!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 r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Er.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Er.eventName,e)}currentItem(){return nt(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 nt(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return nt(r.find(i=>e(i)))}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 nt(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 r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=tn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var Hp=w`
690
+ `;function Vp(t,e){let{authenticationRequired:r,session:i}=H.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var rn=class extends to{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Bs=class t extends Uo{static build(e){return new t(H,e)}constructor(e,r){super(),this.store=e,this.cache=new gt,this.withManualResources=!0,this.userLocaleService=new rn,this.cleanSessionDebouncer=new te,this.reloadDebouncer=new te(500),this.apiProvider=r??(()=>Sr.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(eo.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 r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});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 r=await this.cache.get("availableContentLocales",()=>Vp(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Go(i)))}).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)}},Wp=Bs.build();var Cr=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var Zo=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:a}of i){let s=n.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Cr(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=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(r);a===void 0&&n.callbacks.set(r,a=new WeakSet),a.has(i)||(a.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}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 Ae=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},de=class extends ur{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=Wp,this.contextRoot=new Zo}render(){return y`
691
691
  <slot></slot>
692
- `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Zo.addContext(i)),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")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};pe.elementDefinitions={};pe.styles=Lp;Ae([m()],pe.prototype,"baseUrl",void 0);Ae([m()],pe.prototype,"tenantId",void 0);Ae([m()],pe.prototype,"apiIntegrationIdentifier",void 0);Ae([m()],pe.prototype,"apiIntegrationAppVersion",void 0);Ae([m()],pe.prototype,"uiLocale",void 0);Ae([ce(null)],pe.prototype,"availableUiLocales",void 0);Ae([ce(null)],pe.prototype,"metadataConfiguration",void 0);Ae([m({type:Boolean})],pe.prototype,"editorMode",void 0);Ae([m({type:Boolean})],pe.prototype,"noCustom",void 0);Ae([m({type:Boolean})],pe.prototype,"openExternalDocumentInNewTab",void 0);Ae([m({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],pe.prototype,"noCustomComponent",void 0);Ae([m({type:Boolean})],pe.prototype,"withManualResources",void 0);Ae([m({type:Boolean})],pe.prototype,"navigatorOnline",void 0);Ae([m({type:Boolean})],pe.prototype,"forcedOffline",void 0);Ae([m({type:Boolean})],pe.prototype,"authenticationRequired",void 0);Ae([ce([])],pe.prototype,"messageContexts",void 0);Ae([ce(void 0)],pe.prototype,"session",void 0);var _p={"ft-app-context":pe};K(_p);var Is=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[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},co=new Is;var gm=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Qo=Symbol("i18nAttributes"),Ip=Symbol("i18nListAttributes"),Pp=Symbol("i18nProperties"),ji=Symbol("i18nContexts"),Jo=Symbol("i18nUnsubs"),qi=Ee(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?As:Zo}i18n(a){let{context:s,key:l,message:d}=a,{custom:u,args:h,argsProvider:f}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let g=h??(f?f(this):[]);return this.getI18nService(u).resolveMessage(s,l,...g)}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(co.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 u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,u=(h,f,g)=>g?.context&&g.key&&a(h,f,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...h})}:g;(s=this[Qo])===null||s===void 0||s.forEach((h,f)=>d[f]=u(h,f,d[f])),(l=this[Ip])===null||l===void 0||l.forEach((h,f)=>{var g;return d[f]=(g=d[f])===null||g===void 0?void 0:g.map(y=>u(h,f,y))})}updateI18nProperties(a){var s;(s=this[Pp])===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[ji].set(d,{isCustomContext:l}),this[Jo].has(d)||this[Jo].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[ji].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ji].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Jo].forEach(a=>a()),this[Jo].clear()}}return e=ji,r=Jo,gm([m({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Gi=class extends qi(D){},Ki=class extends qi(hr){};var Ps=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?co.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},ym=new Ps;var Np=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:st,converter:co,...e}),r[Qo]=(n=r[Qo])!==null&&n!==void 0?n:new Map,r[Qo].set(i,t??{})};var Dp=A`
693
- `;var ei=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},pt=class extends Ki{constructor(){super(),this.editorMode=!1,this.addStore(H)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":_:v`
692
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>jo.addContext(i)),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")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};de.elementDefinitions={};de.styles=Hp;Ae([f()],de.prototype,"baseUrl",void 0);Ae([f()],de.prototype,"tenantId",void 0);Ae([f()],de.prototype,"apiIntegrationIdentifier",void 0);Ae([f()],de.prototype,"apiIntegrationAppVersion",void 0);Ae([f()],de.prototype,"uiLocale",void 0);Ae([le(null)],de.prototype,"availableUiLocales",void 0);Ae([le(null)],de.prototype,"metadataConfiguration",void 0);Ae([f({type:Boolean})],de.prototype,"editorMode",void 0);Ae([f({type:Boolean})],de.prototype,"noCustom",void 0);Ae([f({type:Boolean})],de.prototype,"openExternalDocumentInNewTab",void 0);Ae([f({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],de.prototype,"noCustomComponent",void 0);Ae([f({type:Boolean})],de.prototype,"withManualResources",void 0);Ae([f({type:Boolean})],de.prototype,"navigatorOnline",void 0);Ae([f({type:Boolean})],de.prototype,"forcedOffline",void 0);Ae([f({type:Boolean})],de.prototype,"authenticationRequired",void 0);Ae([le([])],de.prototype,"messageContexts",void 0);Ae([le(void 0)],de.prototype,"session",void 0);var Gp={"ft-app-context":de};j(Gp);var Us=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[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},oo=new Us;var zm=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Yo=Symbol("i18nAttributes"),jp=Symbol("i18nListAttributes"),Kp=Symbol("i18nProperties"),on=Symbol("i18nContexts"),qo=Symbol("i18nUnsubs"),sn=Ce(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Ns:jo}i18n(a){let{context:s,key:l,message:d}=a,{custom:u,args:m,argsProvider:h}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let g=m??(h?h(this):[]);return this.getI18nService(u).resolveMessage(s,l,...g)}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(oo.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 u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,u=(m,h,g)=>g?.context&&g.key&&a(m,h,g)?{...g,message:this.i18n({context:g.context,key:g.key,custom:g.custom,...m})}:g;(s=this[Yo])===null||s===void 0||s.forEach((m,h)=>d[h]=u(m,h,d[h])),(l=this[jp])===null||l===void 0||l.forEach((m,h)=>{var g;return d[h]=(g=d[h])===null||g===void 0?void 0:g.map(v=>u(m,h,v))})}updateI18nProperties(a){var s;(s=this[Kp])===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[on].set(d,{isCustomContext:l}),this[qo].has(d)||this[qo].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[on].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[on].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[qo].forEach(a=>a()),this[qo].clear()}}return e=on,r=qo,zm([f({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),nn=class extends sn(D){},an=class extends sn(ur){};var zs=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?oo.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Hm=new zs;var Zp=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:at,converter:oo,...e}),r[Yo]=(n=r[Yo])!==null&&n!==void 0?n:new Map,r[Yo].set(i,t??{})};var qp=w`
693
+ `;var Xo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},dt=class extends an{constructor(){super(),this.editorMode=!1,this.addStore(H)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":L:y`
694
694
  <span class="ft-i18n">
695
695
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
696
696
  </span>
697
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};pt.elementDefinitions={};pt.styles=Dp;ei([Hr()],pt.prototype,"editorMode",void 0);ei([m()],pt.prototype,"context",void 0);ei([m()],pt.prototype,"key",void 0);ei([ce([])],pt.prototype,"args",void 0);ei([m()],pt.prototype,"defaultMessage",void 0);var $p={"ft-i18n":pt};K($p);var ut=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ye=class extends Gi{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 re,this.revealDebouncer=new re,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{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,r;return v`
697
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};dt.elementDefinitions={};dt.styles=qp;Xo([Br()],dt.prototype,"editorMode",void 0);Xo([f()],dt.prototype,"context",void 0);Xo([f()],dt.prototype,"key",void 0);Xo([le([])],dt.prototype,"args",void 0);Xo([f()],dt.prototype,"defaultMessage",void 0);var Yp={"ft-i18n":dt};j(Yp);var pt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ge=class extends nn{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 te,this.revealDebouncer=new te,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{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,r;return y`
698
698
  <div part="container"
699
699
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
700
700
  <slot part="slot"></slot>
@@ -703,74 +703,74 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
703
703
  popover="manual">
704
704
  <div part="tooltip-content" class="ft-tooltip--content">
705
705
  <slot name="text"></slot>
706
- <ft-typography variant="${ve.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
706
+ <ft-typography variant="${be.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
707
707
  ${(r=this.text)===null||r===void 0?void 0:r.message}
708
708
  </ft-typography>
709
709
  </div>
710
710
  </div>
711
711
  </div>
712
- `}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 r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&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,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}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(r=>r.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&&ta(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${O.transitionDuration}, left ${O.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return wn(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};ye.elementDefinitions={"ft-typography":oe};ye.styles=Cp;ut([Np()],ye.prototype,"text",void 0);ut([m({type:Boolean})],ye.prototype,"manual",void 0);ut([m({type:Boolean})],ye.prototype,"inline",void 0);ut([$t()],ye.prototype,"delay",void 0);ut([m()],ye.prototype,"position",void 0);ut([ce([])],ye.prototype,"ignoreMatchingElements",void 0);ut([mn()],ye.prototype,"slotNodes",void 0);ut([M(".ft-tooltip--container")],ye.prototype,"container",void 0);ut([M(".ft-tooltip")],ye.prototype,"tooltip",void 0);ut([M(".ft-tooltip--content")],ye.prototype,"tooltipContent",void 0);ut([T()],ye.prototype,"visible",void 0);var Mp={"ft-tooltip":ye};K(Mp);var ft;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(ft||(ft={}));var qe;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(qe||(qe={}));var k;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(k||(k={}));var Ns=new Map([...["abw"].map(t=>[t,k.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,k.AUDIO]),...["avi"].map(t=>[t,k.AVI]),...["chm","xhs"].map(t=>[t,k.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,k.CODE]),...["csv"].map(t=>[t,k.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,k.DITA]),...["epub"].map(t=>[t,k.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,k.EXCEL]),...["flac"].map(t=>[t,k.FLAC]),...["gif"].map(t=>[t,k.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,k.GZIP]),...["html","htm","xhtml"].map(t=>[t,k.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,k.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,k.JPEG]),...["json"].map(t=>[t,k.JSON]),...["m4a","m4p"].map(t=>[t,k.M4A]),...["mov","qt"].map(t=>[t,k.MOV]),...["mp3"].map(t=>[t,k.MP3]),...["mp4","m4v"].map(t=>[t,k.MP4]),...["ogg","oga"].map(t=>[t,k.OGG]),...["pdf","ps"].map(t=>[t,k.PDF]),...["png"].map(t=>[t,k.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,k.POWERPOINT]),...["rar"].map(t=>[t,k.RAR]),...["stp"].map(t=>[t,k.STP]),...["txt","rtf","md","mdown"].map(t=>[t,k.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,k.VIDEO]),...["wav"].map(t=>[t,k.WAV]),...["wma"].map(t=>[t,k.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,k.WORD]),...["xml","xsl","rdf"].map(t=>[t,k.XML]),...["yaml","yml","x-yaml"].map(t=>[t,k.YAML]),...["zip"].map(t=>[t,k.ZIP])]),bm=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"]]);function Fp(t,e){var r,i,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((r=bm.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(i=Ns.get(l))!==null&&i!==void 0?i:Ns.get(e))!==null&&n!==void 0?n:Ns.get(s))!==null&&a!==void 0?a:k.UNKNOWN}var wL={[k.ABW]:"#91ABC6",[k.AUDIO]:"#1795E3",[k.AVI]:"#E63324",[k.CHM]:"#71C3EB",[k.CODE]:"#71C3EB",[k.CSV]:"#1F7345",[k.DITA]:"#71C3EB",[k.EPUB]:"#85B926",[k.EXCEL]:"#1F7345",[k.FLAC]:"#1795E3",[k.GIF]:"#59B031",[k.GZIP]:"#F8AB36",[k.HTML]:"#71C3EB",[k.IMAGE]:"#59B031",[k.JPEG]:"#59B031",[k.JSON]:"#71C3EB",[k.M4A]:"#1795E3",[k.MOV]:"#E63324",[k.MP3]:"#1795E3",[k.MP4]:"#E63324",[k.OGG]:"#1795E3",[k.PDF]:"#E44948",[k.PNG]:"#59B031",[k.POWERPOINT]:"#B54A2B",[k.RAR]:"#F8AB36",[k.STP]:"#3764B1",[k.TEXT]:"#3162AB",[k.UNKNOWN]:"#999999",[k.VIDEO]:"#E63324",[k.WAV]:"#1795E3",[k.WMA]:"#1795E3",[k.WORD]:"#3162AB",[k.XML]:"#71C3EB",[k.YAML]:"#71C3EB",[k.ZIP]:"#F8AB36"};var ti=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ue=class extends D{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=_}render(){let e=this.variant&&Object.values(ft).includes(this.variant)?this.variant:ft.fluid_topics,r=e!==ft.material||!!this.value;return v`
712
+ `}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 r,i;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&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,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}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(r=>r.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&&fa(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${E.transitionDuration}, left ${E.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return Mn(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};ge.elementDefinitions={"ft-typography":re};ge.styles=$p;pt([Zp()],ge.prototype,"text",void 0);pt([f({type:Boolean})],ge.prototype,"manual",void 0);pt([f({type:Boolean})],ge.prototype,"inline",void 0);pt([Mt()],ge.prototype,"delay",void 0);pt([f()],ge.prototype,"position",void 0);pt([le([])],ge.prototype,"ignoreMatchingElements",void 0);pt([Rn()],ge.prototype,"slotNodes",void 0);pt([M(".ft-tooltip--container")],ge.prototype,"container",void 0);pt([M(".ft-tooltip")],ge.prototype,"tooltip",void 0);pt([M(".ft-tooltip--content")],ge.prototype,"tooltipContent",void 0);pt([_()],ge.prototype,"visible",void 0);var Xp={"ft-tooltip":ge};j(Xp);var ut;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(ut||(ut={}));var Ze;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(Ze||(Ze={}));var R;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(R||(R={}));var Hs=new Map([...["abw"].map(t=>[t,R.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,R.AUDIO]),...["avi"].map(t=>[t,R.AVI]),...["chm","xhs"].map(t=>[t,R.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,R.CODE]),...["csv"].map(t=>[t,R.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,R.DITA]),...["epub"].map(t=>[t,R.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,R.EXCEL]),...["flac"].map(t=>[t,R.FLAC]),...["gif"].map(t=>[t,R.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,R.GZIP]),...["html","htm","xhtml"].map(t=>[t,R.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,R.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,R.JPEG]),...["json"].map(t=>[t,R.JSON]),...["m4a","m4p"].map(t=>[t,R.M4A]),...["mov","qt"].map(t=>[t,R.MOV]),...["mp3"].map(t=>[t,R.MP3]),...["mp4","m4v"].map(t=>[t,R.MP4]),...["ogg","oga"].map(t=>[t,R.OGG]),...["pdf","ps"].map(t=>[t,R.PDF]),...["png"].map(t=>[t,R.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,R.POWERPOINT]),...["rar"].map(t=>[t,R.RAR]),...["stp"].map(t=>[t,R.STP]),...["txt","rtf","md","mdown"].map(t=>[t,R.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,R.VIDEO]),...["wav"].map(t=>[t,R.WAV]),...["wma"].map(t=>[t,R.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,R.WORD]),...["xml","xsl","rdf"].map(t=>[t,R.XML]),...["yaml","yml","x-yaml"].map(t=>[t,R.YAML]),...["zip"].map(t=>[t,R.ZIP])]),Vm=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"]]);function Jp(t,e){var r,i,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((r=Vm.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(i=Hs.get(l))!==null&&i!==void 0?i:Hs.get(e))!==null&&n!==void 0?n:Hs.get(s))!==null&&a!==void 0?a:R.UNKNOWN}var k_={[R.ABW]:"#91ABC6",[R.AUDIO]:"#1795E3",[R.AVI]:"#E63324",[R.CHM]:"#71C3EB",[R.CODE]:"#71C3EB",[R.CSV]:"#1F7345",[R.DITA]:"#71C3EB",[R.EPUB]:"#85B926",[R.EXCEL]:"#1F7345",[R.FLAC]:"#1795E3",[R.GIF]:"#59B031",[R.GZIP]:"#F8AB36",[R.HTML]:"#71C3EB",[R.IMAGE]:"#59B031",[R.JPEG]:"#59B031",[R.JSON]:"#71C3EB",[R.M4A]:"#1795E3",[R.MOV]:"#E63324",[R.MP3]:"#1795E3",[R.MP4]:"#E63324",[R.OGG]:"#1795E3",[R.PDF]:"#E44948",[R.PNG]:"#59B031",[R.POWERPOINT]:"#B54A2B",[R.RAR]:"#F8AB36",[R.STP]:"#3764B1",[R.TEXT]:"#3162AB",[R.UNKNOWN]:"#999999",[R.VIDEO]:"#E63324",[R.WAV]:"#1795E3",[R.WMA]:"#1795E3",[R.WORD]:"#3162AB",[R.XML]:"#71C3EB",[R.YAML]:"#71C3EB",[R.ZIP]:"#F8AB36"};var Jo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},pe=class extends D{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=L}render(){let e=this.variant&&Object.values(ut).includes(this.variant)?this.variant:ut.fluid_topics,r=e!==ut.material||!!this.value;return y`
713
713
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
714
- ${xn(this.resolvedIcon)}
714
+ ${In(this.resolvedIcon)}
715
715
  <slot ?hidden=${r}></slot>
716
716
  </i>
717
- `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case ft.file_format:this.resolvedIcon=(e=k[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case ft.material:this.resolvedIcon=this.value||_;break;default:this.resolvedIcon=(r=qe[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ue.elementDefinitions={};ue.styles=gp;ti([m()],ue.prototype,"variant",void 0);ti([m()],ue.prototype,"value",void 0);ti([m({reflect:!0,attribute:"aria-hidden"})],ue.prototype,"ariaHidden",void 0);ti([T()],ue.prototype,"resolvedIcon",void 0);ti([M("slot")],ue.prototype,"slottedContent",void 0);var Bp={"ft-icon":ue};K(Bp);var Rr=class extends D{render(){return v`
717
+ `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case ut.file_format:this.resolvedIcon=(e=R[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case ut.material:this.resolvedIcon=this.value||L;break;default:this.resolvedIcon=(r=Ze[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};pe.elementDefinitions={};pe.styles=kp;Jo([f()],pe.prototype,"variant",void 0);Jo([f()],pe.prototype,"value",void 0);Jo([f({reflect:!0,attribute:"aria-hidden"})],pe.prototype,"ariaHidden",void 0);Jo([_()],pe.prototype,"resolvedIcon",void 0);Jo([M("slot")],pe.prototype,"slottedContent",void 0);var Qp={"ft-icon":pe};j(Qp);var Or=class extends D{render(){return y`
718
718
  <div class="ft-loader">
719
719
  <div></div>
720
720
  <div></div>
721
721
  <div></div>
722
722
  <div></div>
723
723
  </div>
724
- `}};Rr.styles=mp;var Up={"ft-loader":Rr};K(Up);var Kt=t=>t??_;var se=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},z=class t extends qa(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.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.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":Cr,"ft-button--label-no-text":!this.hasTextContent},a=v`
724
+ `}};Or.styles=Lp;var eu={"ft-loader":Or};j(eu);var Gt=t=>t??L;var ae=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},z=class t extends rs(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.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.hasTextContent=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":xr,"ft-button--label-no-text":!this.hasTextContent},a=y`
725
725
  <ft-ripple part="ripple"
726
726
  ?disabled=${this.isDisabled()}
727
727
  ?activated=${this.activated}
728
728
  ></ft-ripple>
729
729
  <ft-typography part="label"
730
- variant="${ve.button}"
730
+ variant="${be.button}"
731
731
  element="span"
732
- class="${ae(n)}">
732
+ class="${ne(n)}">
733
733
  <slot></slot>
734
734
  </ft-typography>
735
735
  ${this.resolveIcon()}
736
- `,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?v`
736
+ `,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?y`
737
737
  <a href="${s}"
738
738
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
739
739
  part="button"
740
- class="${ae(this.buttonClasses)}"
741
- aria-label="${Kt((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
740
+ class="${ne(this.buttonClasses)}"
741
+ aria-label="${Gt((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
742
742
  ?disabled=${this.isDisabled()}>
743
743
  ${a}
744
744
  </a>
745
- `:v`
745
+ `:y`
746
746
  <button part="button"
747
- class="${ae(this.buttonClasses)}"
748
- aria-label="${Kt((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
749
- aria-haspopup="${Kt(this.ariaHasPopup)}"
750
- aria-pressed="${Kt(this.ariaPressed)}"
747
+ class="${ne(this.buttonClasses)}"
748
+ aria-label="${Gt((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
749
+ aria-haspopup="${Gt(this.ariaHasPopup)}"
750
+ aria-pressed="${Gt(this.ariaPressed)}"
751
751
  ?disabled=${this.isDisabled()}>
752
752
  ${a}
753
753
  </button>
754
- `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?v`
754
+ `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?y`
755
755
  <ft-tooltip part="tooltip"
756
756
  text="${this.label}"
757
757
  position="${this.tooltipPosition}">
758
758
  ${e}
759
759
  </ft-tooltip>
760
- `:e}resolveIcon(){return this.loading?v`
761
- <ft-loader part="loader icon"></ft-loader> `:this.icon?v`
760
+ `:e}resolveIcon(){return this.loading?y`
761
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?y`
762
762
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
763
- `:v`
763
+ `:y`
764
764
  <slot part="icon" name="icon"></slot>
765
- `}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,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};z.elementDefinitions={"ft-ripple":q,"ft-tooltip":ye,"ft-icon":ue,"ft-loader":Rr,"ft-typography":oe};z.styles=[ma,vp,ur];z.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:z.labelsObserver.unobserve(e.target)}});se([m({type:Boolean})],z.prototype,"primary",void 0);se([m({type:Boolean})],z.prototype,"outlined",void 0);se([m({type:Boolean})],z.prototype,"dense",void 0);se([m({type:Boolean})],z.prototype,"round",void 0);se([m({type:Boolean})],z.prototype,"disabled",void 0);se([m()],z.prototype,"icon",void 0);se([m()],z.prototype,"iconVariant",void 0);se([m({type:Boolean})],z.prototype,"trailingIcon",void 0);se([m()],z.prototype,"label",void 0);se([m()],z.prototype,"type",void 0);se([m()],z.prototype,"href",void 0);se([m()],z.prototype,"target",void 0);se([m({type:Boolean})],z.prototype,"loading",void 0);se([m({attribute:"aria-label"})],z.prototype,"ariaLabel",void 0);se([m()],z.prototype,"ariaHasPopup",void 0);se([m({attribute:"aria-pressed"})],z.prototype,"ariaPressed",void 0);se([m()],z.prototype,"tooltipPosition",void 0);se([m({type:Boolean})],z.prototype,"hideTooltip",void 0);se([m({type:Boolean})],z.prototype,"forceTooltip",void 0);se([m({type:Boolean})],z.prototype,"activated",void 0);se([M(".ft-button")],z.prototype,"button",void 0);se([M(".ft-button--label")],z.prototype,"labelContainer",void 0);se([T()],z.prototype,"hasTextContent",void 0);se([M(".ft-button--label slot")],z.prototype,"slottedContent",void 0);se([M("[part=tooltip]")],z.prototype,"tooltip",void 0);var zp={"ft-button":z};K(zp);var Ze={textColor:o.extend("--ft-checkbox-text-color","",O.colorOnSurfaceHigh),fontSize:o.extend("--ft-checkbox-font-size","",I.fontSize),activeColor:o.extend("--ft-checkbox-active-color","",O.colorPrimary),checkColor:o.extend("--ft-checkbox-check-color","",O.colorOnPrimary),borderColor:o.extend("--ft-checkbox-border-color","",O.colorOnSurfaceMedium),disabledColor:o.extend("--ft-checkbox-disabled-color","",O.colorOnSurfaceDisabled),errorColor:o.extend("--ft-checkbox-error-color","",O.colorError)},Hp=A`
765
+ `}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,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};z.elementDefinitions={"ft-ripple":Z,"ft-tooltip":ge,"ft-icon":pe,"ft-loader":Or,"ft-typography":re};z.styles=[Ra,Pp,dr];z.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:z.labelsObserver.unobserve(e.target)}});ae([f({type:Boolean})],z.prototype,"primary",void 0);ae([f({type:Boolean})],z.prototype,"outlined",void 0);ae([f({type:Boolean})],z.prototype,"dense",void 0);ae([f({type:Boolean})],z.prototype,"round",void 0);ae([f({type:Boolean})],z.prototype,"disabled",void 0);ae([f()],z.prototype,"icon",void 0);ae([f()],z.prototype,"iconVariant",void 0);ae([f({type:Boolean})],z.prototype,"trailingIcon",void 0);ae([f()],z.prototype,"label",void 0);ae([f()],z.prototype,"type",void 0);ae([f()],z.prototype,"href",void 0);ae([f()],z.prototype,"target",void 0);ae([f({type:Boolean})],z.prototype,"loading",void 0);ae([f({attribute:"aria-label"})],z.prototype,"ariaLabel",void 0);ae([f()],z.prototype,"ariaHasPopup",void 0);ae([f({attribute:"aria-pressed"})],z.prototype,"ariaPressed",void 0);ae([f()],z.prototype,"tooltipPosition",void 0);ae([f({type:Boolean})],z.prototype,"hideTooltip",void 0);ae([f({type:Boolean})],z.prototype,"forceTooltip",void 0);ae([f({type:Boolean})],z.prototype,"activated",void 0);ae([M(".ft-button")],z.prototype,"button",void 0);ae([M(".ft-button--label")],z.prototype,"labelContainer",void 0);ae([_()],z.prototype,"hasTextContent",void 0);ae([M(".ft-button--label slot")],z.prototype,"slottedContent",void 0);ae([M("[part=tooltip]")],z.prototype,"tooltip",void 0);var tu={"ft-button":z};j(tu);var qe={textColor:o.extend("--ft-checkbox-text-color","",E.colorOnSurfaceHigh),fontSize:o.extend("--ft-checkbox-font-size","",T.fontSize),activeColor:o.extend("--ft-checkbox-active-color","",E.colorPrimary),checkColor:o.extend("--ft-checkbox-check-color","",E.colorOnPrimary),borderColor:o.extend("--ft-checkbox-border-color","",E.colorOnSurfaceMedium),disabledColor:o.extend("--ft-checkbox-disabled-color","",E.colorOnSurfaceDisabled),errorColor:o.extend("--ft-checkbox-error-color","",E.colorError)},ru=w`
766
766
  * {
767
767
  box-sizing: border-box;
768
768
  }
769
769
 
770
770
  .ft-checkbox {
771
771
  box-sizing: border-box;
772
- color: ${Ze.textColor};
773
- font-size: ${Ze.fontSize};
772
+ color: ${qe.textColor};
773
+ font-size: ${qe.fontSize};
774
774
 
775
775
  display: inline-flex;
776
776
  align-items: center;
@@ -778,7 +778,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
778
778
  }
779
779
 
780
780
  .ft-checkbox--disabled {
781
- color: ${Ze.disabledColor};
781
+ color: ${qe.disabledColor};
782
782
  }
783
783
 
784
784
  input {
@@ -802,26 +802,26 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
802
802
 
803
803
  .ft-checkbox--box {
804
804
  display: flex;
805
- border: 2px solid ${Ze.borderColor};
805
+ border: 2px solid ${qe.borderColor};
806
806
  border-radius: 2px;
807
807
 
808
808
  width: 18px;
809
809
  height: 18px;
810
810
 
811
- color: ${Ze.checkColor};
811
+ color: ${qe.checkColor};
812
812
  }
813
813
 
814
814
 
815
815
  .ft-checkbox--checked .ft-checkbox--box,
816
816
  .ft-checkbox--indeterminate .ft-checkbox--box {
817
- border-color: ${Ze.activeColor};
818
- background-color: ${Ze.activeColor};
817
+ border-color: ${qe.activeColor};
818
+ background-color: ${qe.activeColor};
819
819
  }
820
820
 
821
821
  .ft-checkbox--disabled .ft-checkbox--box {
822
- border-color: ${Ze.disabledColor};
822
+ border-color: ${qe.disabledColor};
823
823
  background-color: transparent;
824
- color: ${Ze.disabledColor};
824
+ color: ${qe.disabledColor};
825
825
  }
826
826
 
827
827
  .ft-checkbox--checkmark {
@@ -842,20 +842,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
842
842
  }
843
843
 
844
844
  .ft-checkbox.ft-checkbox--error {
845
- color: ${Ze.errorColor};
846
- ${R(ie.color,Ze.errorColor)};
845
+ color: ${qe.errorColor};
846
+ ${A(oe.color,qe.errorColor)};
847
847
 
848
848
  .ft-checkbox--box {
849
- border-color: ${Ze.errorColor};
849
+ border-color: ${qe.errorColor};
850
850
  }
851
851
 
852
852
  &.ft-checkbox--checked, &.ft-checkbox--indeterminate {
853
853
  .ft-checkbox--box {
854
- background-color: ${Ze.errorColor};
854
+ background-color: ${qe.errorColor};
855
855
  }
856
856
  }
857
857
  }
858
- `;var Nt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ds=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Re=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 v`
858
+ `;var Dt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Vs=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Re=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 y`
859
859
  <div class="ft-checkbox--box-container" part="checkbox-box-container">
860
860
  <ft-ripple part="checkbox-ripple"
861
861
  ?disabled=${this.disabled}
@@ -877,27 +877,27 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
877
877
  @change=${this.onChange}
878
878
  >
879
879
  </div>
880
- `}render(){return v`
881
- <label class="${ae(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
880
+ `}render(){return y`
881
+ <label class="${ne(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
882
882
  ${this.renderBoxContainer()}
883
- <ft-typography variant="${ve.body2}" part="checkbox-body">
883
+ <ft-typography variant="${be.body2}" part="checkbox-body">
884
884
  <slot @slotchange=${this.onSlotchange}></slot>
885
885
  </ft-typography>
886
886
  </label>
887
- `}renderBoxIcon(){return v`
887
+ `}renderBoxIcon(){return y`
888
888
  <svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check" aria-hidden="true">
889
889
  <path class="ft-checkbox--checkmark-path" fill="none"
890
890
  d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
891
891
  </svg>
892
- `}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 Ds(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};Re.elementDefinitions={"ft-ripple":q,"ft-typography":oe};Re.styles=Hp;Nt([m()],Re.prototype,"name",void 0);Nt([m()],Re.prototype,"value",void 0);Nt([m({type:Boolean,reflect:!0})],Re.prototype,"checked",void 0);Nt([m({type:Boolean})],Re.prototype,"indeterminate",void 0);Nt([m({type:Boolean})],Re.prototype,"disabled",void 0);Nt([m({type:Boolean})],Re.prototype,"error",void 0);Nt([M(".ft-checkbox")],Re.prototype,"container",void 0);Nt([M("ft-ripple")],Re.prototype,"ripple",void 0);Nt([M("input")],Re.prototype,"input",void 0);var Vp={"ft-checkbox":Re};K(Vp);var qt={textColor:o.extend("--ft-radio-text-color","",O.colorOnSurfaceHigh),fontSize:o.extend("--ft-radio-font-size","",I.fontSize),colorPrimary:o.external(O.colorPrimary,"Design system"),colorOnPrimary:o.external(O.colorOnPrimary,"Design system"),borderColor:o.extend("--ft-radio-border-color","",O.colorOnSurfaceMedium),colorOnSurfaceDisabled:o.external(O.colorOnSurfaceDisabled,"Design system")},Wp=A`
892
+ `}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 Vs(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};Re.elementDefinitions={"ft-ripple":Z,"ft-typography":re};Re.styles=ru;Dt([f()],Re.prototype,"name",void 0);Dt([f()],Re.prototype,"value",void 0);Dt([f({type:Boolean,reflect:!0})],Re.prototype,"checked",void 0);Dt([f({type:Boolean})],Re.prototype,"indeterminate",void 0);Dt([f({type:Boolean})],Re.prototype,"disabled",void 0);Dt([f({type:Boolean})],Re.prototype,"error",void 0);Dt([M(".ft-checkbox")],Re.prototype,"container",void 0);Dt([M("ft-ripple")],Re.prototype,"ripple",void 0);Dt([M("input")],Re.prototype,"input",void 0);var ou={"ft-checkbox":Re};j(ou);var jt={textColor:o.extend("--ft-radio-text-color","",E.colorOnSurfaceHigh),fontSize:o.extend("--ft-radio-font-size","",T.fontSize),colorPrimary:o.external(E.colorPrimary,"Design system"),colorOnPrimary:o.external(E.colorOnPrimary,"Design system"),borderColor:o.extend("--ft-radio-border-color","",E.colorOnSurfaceMedium),colorOnSurfaceDisabled:o.external(E.colorOnSurfaceDisabled,"Design system")},iu=w`
893
893
  * {
894
894
  box-sizing: border-box;
895
895
  }
896
896
 
897
897
  .ft-radio {
898
898
  box-sizing: border-box;
899
- color: ${qt.textColor};
900
- font-size: ${qt.fontSize};
899
+ color: ${jt.textColor};
900
+ font-size: ${jt.fontSize};
901
901
 
902
902
  display: inline-flex;
903
903
  align-items: center;
@@ -905,7 +905,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
905
905
  }
906
906
 
907
907
  .ft-radio--disabled {
908
- color: ${qt.colorOnSurfaceDisabled};
908
+ color: ${jt.colorOnSurfaceDisabled};
909
909
  }
910
910
 
911
911
  input {
@@ -928,7 +928,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
928
928
  }
929
929
 
930
930
  .ft-radio--box {
931
- border: 2px solid ${qt.borderColor};
931
+ border: 2px solid ${jt.borderColor};
932
932
  border-radius: 50%;
933
933
 
934
934
  display: flex;
@@ -941,7 +941,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
941
941
 
942
942
  .ft-radio--box:after {
943
943
  content: " ";
944
- background-color: ${qt.colorPrimary};
944
+ background-color: ${jt.colorPrimary};
945
945
 
946
946
  border-radius: 50%;
947
947
 
@@ -953,7 +953,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
953
953
  }
954
954
 
955
955
  .ft-radio--checked .ft-radio--box {
956
- border-color: ${qt.colorPrimary};
956
+ border-color: ${jt.colorPrimary};
957
957
  }
958
958
 
959
959
 
@@ -962,24 +962,24 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
962
962
  }
963
963
 
964
964
  .ft-radio--disabled .ft-radio--box {
965
- border-color: ${qt.colorOnSurfaceDisabled};
965
+ border-color: ${jt.colorOnSurfaceDisabled};
966
966
  background-color: transparent;
967
967
  }
968
968
 
969
969
  .ft-radio--disabled .ft-radio--box:after {
970
- background-color: ${qt.colorOnSurfaceDisabled};
970
+ background-color: ${jt.colorOnSurfaceDisabled};
971
971
  }
972
972
 
973
973
  .ft-radio:has(:focus-visible) {
974
- outline: 2px solid ${O.colorPrimary};
974
+ outline: 2px solid ${E.colorPrimary};
975
975
  outline-offset: -2px;
976
976
  }
977
977
 
978
978
  .ft-radio ft-typography {
979
979
  padding-right: 2px;
980
980
  }
981
- `;var Zt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Zi=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Oe=class extends D{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return v`
982
- <div class="${ae(this.radioClasses)}"
981
+ `;var Kt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ln=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},Ee=class extends D{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return y`
982
+ <div class="${ne(this.radioClasses)}"
983
983
  @click=${this.onClick}>
984
984
  <div class="ft-radio--box-container">
985
985
  <ft-ripple
@@ -999,12 +999,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
999
999
  >
1000
1000
  </div>
1001
1001
  <label for="radio-button" inert>
1002
- <ft-typography variant="${ve.body2}">
1002
+ <ft-typography variant="${be.body2}">
1003
1003
  <slot></slot>
1004
1004
  </ft-typography>
1005
1005
  </label>
1006
1006
  </div>
1007
- `}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 Zi(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Zi(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 r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};Oe.elementDefinitions={"ft-ripple":q,"ft-typography":oe};Oe.styles=Wp;Zt([m()],Oe.prototype,"name",void 0);Zt([m()],Oe.prototype,"value",void 0);Zt([m({type:Boolean,reflect:!0})],Oe.prototype,"checked",void 0);Zt([m({attribute:"aria-checked",reflect:!0})],Oe.prototype,"ariaChecked",void 0);Zt([m({type:Boolean})],Oe.prototype,"disabled",void 0);Zt([M(".ft-radio")],Oe.prototype,"container",void 0);Zt([M("ft-ripple")],Oe.prototype,"ripple",void 0);Zt([M("input")],Oe.prototype,"input",void 0);var jp=A`
1007
+ `}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 ln(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new ln(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 r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};Ee.elementDefinitions={"ft-ripple":Z,"ft-typography":re};Ee.styles=iu;Kt([f()],Ee.prototype,"name",void 0);Kt([f()],Ee.prototype,"value",void 0);Kt([f({type:Boolean,reflect:!0})],Ee.prototype,"checked",void 0);Kt([f({attribute:"aria-checked",reflect:!0})],Ee.prototype,"ariaChecked",void 0);Kt([f({type:Boolean})],Ee.prototype,"disabled",void 0);Kt([M(".ft-radio")],Ee.prototype,"container",void 0);Kt([M("ft-ripple")],Ee.prototype,"ripple",void 0);Kt([M("input")],Ee.prototype,"input",void 0);var nu=w`
1008
1008
  :host {
1009
1009
  display: block;
1010
1010
  }
@@ -1012,14 +1012,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1012
1012
  :host(:focus-visible) {
1013
1013
  outline: none;
1014
1014
  }
1015
- `;var ri=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ye=class extends D{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return v`
1015
+ `;var Qo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ye=class extends D{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return y`
1016
1016
  <slot @slotchange=${this.onSlotChange}
1017
1017
  @change=${this.onChange}
1018
1018
  @keydown=${this.onKeyDown}
1019
1019
  ></slot>
1020
- `}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(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.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()}};Ye.elementDefinitions={};Ye.styles=jp;ri([m()],Ye.prototype,"name",void 0);ri([m({reflect:!0,attribute:"role"})],Ye.prototype,"role",void 0);ri([m({reflect:!0,attribute:"aria-labelledby"})],Ye.prototype,"ariaLabelledBy",void 0);ri([hn()],Ye.prototype,"assignedElements",void 0);ri([T()],Ye.prototype,"currentSelectedIndex",void 0);var Gp={"ft-radio":Oe,"ft-radio-group":Ye};K(Gp);var Le=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},$s={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},fe=class extends Di(qi(ts(D)),$s){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 re(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,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r: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(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return v`
1020
+ `}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(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.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()}};Ye.elementDefinitions={};Ye.styles=nu;Qo([f()],Ye.prototype,"name",void 0);Qo([f({reflect:!0,attribute:"role"})],Ye.prototype,"role",void 0);Qo([f({reflect:!0,attribute:"aria-labelledby"})],Ye.prototype,"ariaLabelledBy",void 0);Qo([An()],Ye.prototype,"assignedElements",void 0);Qo([_()],Ye.prototype,"currentSelectedIndex",void 0);var au={"ft-radio":Ee,"ft-radio-group":Ye};j(au);var _e=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ws={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},ue=class extends Ki(sn(cs(D)),Ws){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 te(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,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r: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(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return y`
1021
1021
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1022
- ${this.parent==null?null:v`
1022
+ ${this.parent==null?null:y`
1023
1023
  <div tabindex="0"
1024
1024
  part="controls go-back"
1025
1025
  class="ft-filter-level--go-back"
@@ -1030,18 +1030,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1030
1030
  @click=${this.goBackOnClick}>
1031
1031
  <ft-ripple></ft-ripple>
1032
1032
  <ft-icon>thin_arrow_left</ft-icon>
1033
- <ft-typography variant="${ve.body2}">${this.parent.label}</ft-typography>
1033
+ <ft-typography variant="${be.body2}">${this.parent.label}</ft-typography>
1034
1034
  </div>
1035
1035
  `}
1036
- ${this.filteredOptions.length===0&&this.noValuesLabel?v`
1037
- <ft-typography class="ft-filter-level--no-values" element="span" variant="${ve.body2}">
1036
+ ${this.filteredOptions.length===0&&this.noValuesLabel?y`
1037
+ <ft-typography class="ft-filter-level--no-values" element="span" variant="${be.body2}">
1038
1038
  ${this.noValuesLabel}
1039
1039
  </ft-typography>
1040
- `:_}
1041
- ${me(e,r=>r.value,r=>{var i;return v`
1040
+ `:L}
1041
+ ${he(e,r=>r.value,r=>{var i;return y`
1042
1042
  <div class="ft-filter-level--option" part="options" tabindex="-1">
1043
1043
  ${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
1044
- ${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?_:v`
1044
+ ${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?L:y`
1045
1045
  <ft-button icon="thin_arrow_right"
1046
1046
  part="controls navigate-hierarchy"
1047
1047
  aria-label="Expand node"
@@ -1052,7 +1052,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1052
1052
  `}
1053
1053
  </div>
1054
1054
  `})}
1055
- ${e.length<this.filteredOptions.length?v`
1055
+ ${e.length<this.filteredOptions.length?y`
1056
1056
  <ft-button
1057
1057
  class="ft-filter-level--display-more"
1058
1058
  icon="thin_arrow"
@@ -1061,20 +1061,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1061
1061
  @click=${()=>{this.emitAnalyticsAction("more-filters-button-pressed",{}),this.displayMore()}}>
1062
1062
  ${this.moreValuesButtonLabel}
1063
1063
  </ft-button>
1064
- `:_}
1064
+ `:L}
1065
1065
  </div>
1066
- `}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return v`
1066
+ `}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return y`
1067
1067
  <ft-checkbox name="${this.filterId}"
1068
1068
  part="multivalued-option option"
1069
1069
  .exportpartsPrefixes=${["multivalued-option","option"]}
1070
1070
  data-value="${e.value}"
1071
1071
  .checked=${e.selected}
1072
1072
  .disabled=${this.disabled}
1073
- .indeterminate=${Ve((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var n;return(n=i.subOptions)!==null&&n!==void 0?n:[]}).some(i=>i.selected)}
1073
+ .indeterminate=${He((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var n;return(n=i.subOptions)!==null&&n!==void 0?n:[]}).some(i=>i.selected)}
1074
1074
  @change=${i=>this.optionsChanged(i,e)}>
1075
1075
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1076
1076
  </ft-checkbox>
1077
- `}buildMonoValuedOption(e){return v`
1077
+ `}buildMonoValuedOption(e){return y`
1078
1078
  <ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
1079
1079
  part="monovalued-option option"
1080
1080
  data-value="${e.value}"
@@ -1085,7 +1085,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1085
1085
  @change=${r=>this.optionsChanged(r,e)}>
1086
1086
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1087
1087
  </ft-radio>
1088
- `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}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 r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};fe.elementDefinitions={"ft-button":z,"ft-ripple":q,"ft-typography":oe,"ft-checkbox":Re,"ft-icon":ue,"ft-radio":Oe};fe.styles=xp;Le([m({type:String})],fe.prototype,"filterId",void 0);Le([m({type:Object})],fe.prototype,"parent",void 0);Le([m({type:Array,hasChanged:st})],fe.prototype,"options",void 0);Le([m({type:Boolean})],fe.prototype,"multivalued",void 0);Le([m({type:Boolean})],fe.prototype,"disabled",void 0);Le([m({type:Boolean})],fe.prototype,"hideSelectedOptions",void 0);Le([m({type:Boolean})],fe.prototype,"displayCount",void 0);Le([m({type:Boolean})],fe.prototype,"preventNavigation",void 0);Le([m({type:String})],fe.prototype,"filter",void 0);Le([m({type:String})],fe.prototype,"moreValuesButtonLabel",void 0);Le([m({type:String})],fe.prototype,"noValuesLabel",void 0);Le([m()],fe.prototype,"filteredOptionsNumberAriaNotification",void 0);Le([$t()],fe.prototype,"displayedValuesLimit",void 0);Le([M(".ft-filter-level--container")],fe.prototype,"container",void 0);Le([T()],fe.prototype,"radios",void 0);Le([T()],fe.prototype,"displayedPages",void 0);Le([T()],fe.prototype,"filteredOptions",void 0);var Me={buttonsColor:o.extend("--ft-snap-scroll-buttons-color","",O.colorPrimary),buttonsZIndex:o.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:o.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:o.external(O.colorSurface,"Design system")},Kp=A`
1088
+ `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}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 r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};ue.elementDefinitions={"ft-button":z,"ft-ripple":Z,"ft-typography":re,"ft-checkbox":Re,"ft-icon":pe,"ft-radio":Ee};ue.styles=Np;_e([f({type:String})],ue.prototype,"filterId",void 0);_e([f({type:Object})],ue.prototype,"parent",void 0);_e([f({type:Array,hasChanged:at})],ue.prototype,"options",void 0);_e([f({type:Boolean})],ue.prototype,"multivalued",void 0);_e([f({type:Boolean})],ue.prototype,"disabled",void 0);_e([f({type:Boolean})],ue.prototype,"hideSelectedOptions",void 0);_e([f({type:Boolean})],ue.prototype,"displayCount",void 0);_e([f({type:Boolean})],ue.prototype,"preventNavigation",void 0);_e([f({type:String})],ue.prototype,"filter",void 0);_e([f({type:String})],ue.prototype,"moreValuesButtonLabel",void 0);_e([f({type:String})],ue.prototype,"noValuesLabel",void 0);_e([f()],ue.prototype,"filteredOptionsNumberAriaNotification",void 0);_e([Mt()],ue.prototype,"displayedValuesLimit",void 0);_e([M(".ft-filter-level--container")],ue.prototype,"container",void 0);_e([_()],ue.prototype,"radios",void 0);_e([_()],ue.prototype,"displayedPages",void 0);_e([_()],ue.prototype,"filteredOptions",void 0);var $e={buttonsColor:o.extend("--ft-snap-scroll-buttons-color","",E.colorPrimary),buttonsZIndex:o.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:o.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:o.external(E.colorSurface,"Design system")},su=w`
1089
1089
  .ft-snap-scroll {
1090
1090
  box-sizing: border-box;
1091
1091
  position: relative;
@@ -1120,7 +1120,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1120
1120
  flex-wrap: nowrap;
1121
1121
  align-items: flex-start;
1122
1122
  justify-content: flex-start;
1123
- gap: ${Me.gap};
1123
+ gap: ${$e.gap};
1124
1124
  }
1125
1125
 
1126
1126
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -1163,11 +1163,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1163
1163
  .ft-snap-scroll--next {
1164
1164
  position: absolute;
1165
1165
  display: flex;
1166
- z-index: ${Me.buttonsZIndex};
1166
+ z-index: ${$e.buttonsZIndex};
1167
1167
  opacity: 1;
1168
1168
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1169
- ${R(X.backgroundColor,"transparent")};
1170
- ${R(X.color,Me.buttonsColor)};
1169
+ ${A(X.backgroundColor,"transparent")};
1170
+ ${A(X.color,$e.buttonsColor)};
1171
1171
  }
1172
1172
 
1173
1173
  .ft-snap-scroll--previous[hidden],
@@ -1180,37 +1180,37 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1180
1180
  top: 0;
1181
1181
  left: -1px;
1182
1182
  bottom: 0;
1183
- background: linear-gradient(to right, ${Me.colorSurface} 50%, var(--snap-scroll-transparent-color));
1183
+ background: linear-gradient(to right, ${$e.colorSurface} 50%, var(--snap-scroll-transparent-color));
1184
1184
  }
1185
1185
 
1186
1186
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1187
1187
  top: -1px;
1188
1188
  left: 0;
1189
1189
  right: 0;
1190
- background: linear-gradient(to bottom, ${Me.colorSurface} 50%, var(--snap-scroll-transparent-color));
1190
+ background: linear-gradient(to bottom, ${$e.colorSurface} 50%, var(--snap-scroll-transparent-color));
1191
1191
  }
1192
1192
 
1193
1193
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1194
1194
  top: 0;
1195
1195
  right: -1px;
1196
1196
  bottom: 0;
1197
- background: linear-gradient(to left, ${Me.colorSurface} 50%, var(--snap-scroll-transparent-color));
1197
+ background: linear-gradient(to left, ${$e.colorSurface} 50%, var(--snap-scroll-transparent-color));
1198
1198
  }
1199
1199
 
1200
1200
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
1201
1201
  left: 0;
1202
1202
  right: 0;
1203
1203
  bottom: -1px;
1204
- background: linear-gradient(to top, ${Me.colorSurface} 50%, var(--snap-scroll-transparent-color));
1204
+ background: linear-gradient(to top, ${$e.colorSurface} 50%, var(--snap-scroll-transparent-color));
1205
1205
  }
1206
1206
 
1207
1207
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1208
1208
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1209
1209
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1210
1210
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1211
- background-color: ${Me.colorSurface};
1211
+ background-color: ${$e.colorSurface};
1212
1212
  }
1213
- `;var Ot=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ms=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},xe=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 re(200),this.updateScrollDebouncer=new re(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}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=ae({"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":Cr}),r=this.controls&&this.withScroll;return v`
1213
+ `;var Ct=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Gs=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},xe=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 te(200),this.updateScrollDebouncer=new te(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}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=ne({"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":xr}),r=this.controls&&this.withScroll;return y`
1214
1214
  <div part="container" class="${e}">
1215
1215
  <ft-button
1216
1216
  class="ft-snap-scroll--previous"
@@ -1234,7 +1234,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1234
1234
  @click=${this.next}
1235
1235
  ></ft-button>
1236
1236
  </div>
1237
- `}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 Ms(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;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,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);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 r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};xe.elementDefinitions={"ft-button":z};xe.styles=Kp;Ot([m({type:Boolean})],xe.prototype,"horizontal",void 0);Ot([m({type:Boolean})],xe.prototype,"hideScrollbar",void 0);Ot([m({type:Boolean})],xe.prototype,"controls",void 0);Ot([m({type:Boolean})],xe.prototype,"limitSize",void 0);Ot([T()],xe.prototype,"elements",void 0);Ot([T()],xe.prototype,"currentElement",void 0);Ot([T()],xe.prototype,"withScroll",void 0);Ot([T()],xe.prototype,"startReached",void 0);Ot([T()],xe.prototype,"endReached",void 0);Ot([M(".ft-snap-scroll--content")],xe.prototype,"contentSlot",void 0);var qp={"ft-snap-scroll":xe};K(qp);var ze={colorOutline:o.external(O.colorOutline,"Design system"),colorOnSurface:o.external(O.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(O.colorOnSurfaceMedium,"Design system"),colorPrimary:o.external(O.colorPrimary,"Design system"),colorSurface:o.external(O.colorSurface,"Design system"),transitionDuration:o.external(O.transitionDuration,"Design system"),transitionTimingFunction:o.external(O.transitionTimingFunction,"Design system"),labelColor:o.extend("--ft-filter-label-color","",O.colorOnSurface),labelFontSize:o.extend("--ft-filter-label-font-size","",I.fontSize,"16px")},Zp=[Gt,Mo,A`
1237
+ `}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 Gs(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;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,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);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 r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};xe.elementDefinitions={"ft-button":z};xe.styles=su;Ct([f({type:Boolean})],xe.prototype,"horizontal",void 0);Ct([f({type:Boolean})],xe.prototype,"hideScrollbar",void 0);Ct([f({type:Boolean})],xe.prototype,"controls",void 0);Ct([f({type:Boolean})],xe.prototype,"limitSize",void 0);Ct([_()],xe.prototype,"elements",void 0);Ct([_()],xe.prototype,"currentElement",void 0);Ct([_()],xe.prototype,"withScroll",void 0);Ct([_()],xe.prototype,"startReached",void 0);Ct([_()],xe.prototype,"endReached",void 0);Ct([M(".ft-snap-scroll--content")],xe.prototype,"contentSlot",void 0);var lu={"ft-snap-scroll":xe};j(lu);var Ue={colorOutline:o.external(E.colorOutline,"Design system"),colorOnSurface:o.external(E.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(E.colorOnSurfaceMedium,"Design system"),colorPrimary:o.external(E.colorPrimary,"Design system"),colorSurface:o.external(E.colorSurface,"Design system"),transitionDuration:o.external(E.transitionDuration,"Design system"),transitionTimingFunction:o.external(E.transitionTimingFunction,"Design system"),labelColor:o.extend("--ft-filter-label-color","",E.colorOnSurface),labelFontSize:o.extend("--ft-filter-label-font-size","",T.fontSize,"16px")},cu=[Wt,To,w`
1238
1238
  :host {
1239
1239
  display: flex;
1240
1240
  max-height: 100%;
@@ -1262,7 +1262,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1262
1262
  .ft-filter--header ft-button {
1263
1263
  flex-shrink: 0;
1264
1264
  margin-left: auto;
1265
- ${R(X.iconSize,"18px")};
1265
+ ${A(X.iconSize,"18px")};
1266
1266
  }
1267
1267
 
1268
1268
  .filter-label {
@@ -1274,10 +1274,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1274
1274
  flex-shrink: 1;
1275
1275
  flex-grow: 1;
1276
1276
  word-break: break-word;
1277
- color: ${ze.labelColor};
1278
- font-size: ${ze.labelFontSize};
1279
- ${R(I.lineHeight,"22px")};
1280
- ${R(I.fontWeight,"bold")};
1277
+ color: ${Ue.labelColor};
1278
+ font-size: ${Ue.labelFontSize};
1279
+ ${A(T.lineHeight,"22px")};
1280
+ ${A(T.fontWeight,"bold")};
1281
1281
  }
1282
1282
 
1283
1283
  .ft-filter--filter {
@@ -1288,8 +1288,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1288
1288
  padding: 0 10px;
1289
1289
  overflow: hidden;
1290
1290
  height: 32px;
1291
- transition: height ${ze.transitionDuration} ${ze.transitionTimingFunction},
1292
- margin ${ze.transitionDuration} ${ze.transitionTimingFunction};
1291
+ transition: height ${Ue.transitionDuration} ${Ue.transitionTimingFunction},
1292
+ margin ${Ue.transitionDuration} ${Ue.transitionTimingFunction};
1293
1293
  transition-delay: 500ms;
1294
1294
  }
1295
1295
 
@@ -1302,15 +1302,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1302
1302
  display: block;
1303
1303
  width: 100%;
1304
1304
  border-radius: 4px;
1305
- border: 1px solid ${ze.colorOutline};
1305
+ border: 1px solid ${Ue.colorOutline};
1306
1306
  padding: 4px;
1307
- background-color: ${ze.colorSurface};
1308
- color: ${ze.colorOnSurface};
1309
- outline-color: ${ze.colorPrimary};
1307
+ background-color: ${Ue.colorSurface};
1308
+ color: ${Ue.colorOnSurface};
1309
+ outline-color: ${Ue.colorPrimary};
1310
1310
  }
1311
1311
 
1312
1312
  input::placeholder {
1313
- color: ${ze.colorOnSurfaceMedium};
1313
+ color: ${Ue.colorOnSurfaceMedium};
1314
1314
  }
1315
1315
 
1316
1316
  input:placeholder-shown {
@@ -1326,7 +1326,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1326
1326
  }
1327
1327
 
1328
1328
  .ft-filter--separator {
1329
- border-top: 1px solid ${ze.colorOutline};
1329
+ border-top: 1px solid ${Ue.colorOutline};
1330
1330
  margin: 4px 10px;
1331
1331
  }
1332
1332
 
@@ -1351,19 +1351,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1351
1351
  slot:not([name]) {
1352
1352
  display: none;
1353
1353
  }
1354
- `];var le=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Fs=class extends CustomEvent{constructor(e){super("change",{detail:e})}},te=class extends Di(D,$s){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 re(300),this.changeDebouncer=new re(10),this.lastDispatchedValues=[]}get flatOptions(){return Ve(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return Ve(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return v`
1354
+ `];var se=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},js=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ee=class extends Ki(D,Ws){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 te(300),this.changeDebouncer=new te(10),this.lastDispatchedValues=[]}get flatOptions(){return He(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return He(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return y`
1355
1355
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1356
1356
  part="container">
1357
- ${!this.label&&!e?null:v`
1357
+ ${!this.label&&!e?null:y`
1358
1358
 
1359
1359
  <div class="ft-filter--header" part="header">
1360
1360
  <div class="filter-label" id="id-group-${this.id}">
1361
- <ft-typography class="ft-filter--label" variant="${ve.overline}" part="label">
1361
+ <ft-typography class="ft-filter--label" variant="${be.overline}" part="label">
1362
1362
  ${this.label}
1363
1363
  </ft-typography>
1364
1364
  <slot name="label"></slot>
1365
1365
  </div>
1366
- ${e&&!this.hideClearButton?v`
1366
+ ${e&&!this.hideClearButton?y`
1367
1367
  <ft-button icon="close"
1368
1368
  aria-label="${this.clearButtonLabel+" "+this.label}"
1369
1369
  dense
@@ -1391,8 +1391,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1391
1391
  @slotchange=${this.updateOptionsFromSlot}
1392
1392
  @option-change=${this.optionsChanged}></slot>
1393
1393
  </div>
1394
- `}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,n,a,s,l;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((n=this.levelsContainer)===null||n===void 0||n.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(l=(s=(a=this.shadowRoot)===null||a===void 0?void 0:a.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||s===void 0?void 0:s.hasHiddenValues)!==null&&l!==void 0?l:!1}renderLevels(){let e=this.flatOptions,r=e.filter(a=>a.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=i<0?"ft-filter--level-center":"ft-filter--level-left";return v`
1395
- ${this.raiseSelectedOptions&&r.length>0?v`
1394
+ `}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,n,a,s,l;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((n=this.levelsContainer)===null||n===void 0||n.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(l=(s=(a=this.shadowRoot)===null||a===void 0?void 0:a.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||s===void 0?void 0:s.hasHiddenValues)!==null&&l!==void 0?l:!1}renderLevels(){let e=this.flatOptions,r=e.filter(a=>a.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=i<0?"ft-filter--level-center":"ft-filter--level-left";return y`
1395
+ ${this.raiseSelectedOptions&&r.length>0?y`
1396
1396
  <ft-filter-level
1397
1397
  filterId="${this.id}"
1398
1398
  ?multivalued=${this.multivalued}
@@ -1413,7 +1413,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1413
1413
  ${this.renderLevel(n,this.options)}
1414
1414
  ${this.displayedLevels.map(a=>e.find(s=>s.value===a)).map((a,s)=>{var l;let d=a?.value===this.slideIn||a?.value===this.slideOut?"ft-filter--level-right":s===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(d,(l=a?.subOptions)!==null&&l!==void 0?l:[],a)})}
1415
1415
  </ft-snap-scroll>
1416
- `}renderLevel(e,r,i){return v`
1416
+ `}renderLevel(e,r,i){return y`
1417
1417
  <ft-filter-level
1418
1418
  class="${e}"
1419
1419
  filterId="${this.id}"
@@ -1435,21 +1435,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1435
1435
  noValuesLabel="${this.noValuesLabel}"
1436
1436
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
1437
1437
  ></ft-filter-level>
1438
- `}goBack(e){this.slideOut=e.detail.value,Oo(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,Oo(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){Oo(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.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 r;e.stopPropagation();let i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var s;a!==i&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.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(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;ge(this.lastDispatchedValues,e)||(this.dispatchEvent(new Fs(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};te.elementDefinitions={"ft-button":z,"ft-filter-level":fe,"ft-snap-scroll":xe,"ft-typography":oe};te.styles=Zp;le([m({type:String})],te.prototype,"id",void 0);le([m({type:String})],te.prototype,"label",void 0);le([m({type:String})],te.prototype,"filterPlaceHolder",void 0);le([m({type:String})],te.prototype,"clearButtonLabel",void 0);le([m({type:String})],te.prototype,"moreValuesButtonLabel",void 0);le([m({type:String})],te.prototype,"noValuesLabel",void 0);le([ce([])],te.prototype,"options",void 0);le([m({type:Boolean})],te.prototype,"multivalued",void 0);le([m({type:Boolean})],te.prototype,"disabled",void 0);le([m({type:Boolean})],te.prototype,"raiseSelectedOptions",void 0);le([m({type:Boolean})],te.prototype,"displayCount",void 0);le([$t()],te.prototype,"displayedValuesLimit",void 0);le([ce(void 0)],te.prototype,"filteredOptionsNumberAriaNotification",void 0);le([m({type:Boolean})],te.prototype,"hideClearButton",void 0);le([M(".ft-filter--slot")],te.prototype,"slotElement",void 0);le([M(".ft-filter--container")],te.prototype,"container",void 0);le([M(".ft-filter--values")],te.prototype,"valuesContainer",void 0);le([M(".ft-filter--levels")],te.prototype,"levelsContainer",void 0);le([T()],te.prototype,"lastLevelHasHiddenvalues",void 0);le([M(".ft-filter--filter input")],te.prototype,"filterInput",void 0);le([fn(".ft-filter--levels ft-filter-level")],te.prototype,"levels",void 0);le([T()],te.prototype,"withScroll",void 0);le([T()],te.prototype,"filter",void 0);le([T()],te.prototype,"slideIn",void 0);le([T()],te.prototype,"slideOut",void 0);var po=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Xe=class extends D{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return v`
1438
+ `}goBack(e){this.slideOut=e.detail.value,yo(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,yo(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){yo(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.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 r;e.stopPropagation();let i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var s;a!==i&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.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(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;me(this.lastDispatchedValues,e)||(this.dispatchEvent(new js(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};ee.elementDefinitions={"ft-button":z,"ft-filter-level":ue,"ft-snap-scroll":xe,"ft-typography":re};ee.styles=cu;se([f({type:String})],ee.prototype,"id",void 0);se([f({type:String})],ee.prototype,"label",void 0);se([f({type:String})],ee.prototype,"filterPlaceHolder",void 0);se([f({type:String})],ee.prototype,"clearButtonLabel",void 0);se([f({type:String})],ee.prototype,"moreValuesButtonLabel",void 0);se([f({type:String})],ee.prototype,"noValuesLabel",void 0);se([le([])],ee.prototype,"options",void 0);se([f({type:Boolean})],ee.prototype,"multivalued",void 0);se([f({type:Boolean})],ee.prototype,"disabled",void 0);se([f({type:Boolean})],ee.prototype,"raiseSelectedOptions",void 0);se([f({type:Boolean})],ee.prototype,"displayCount",void 0);se([Mt()],ee.prototype,"displayedValuesLimit",void 0);se([le(void 0)],ee.prototype,"filteredOptionsNumberAriaNotification",void 0);se([f({type:Boolean})],ee.prototype,"hideClearButton",void 0);se([M(".ft-filter--slot")],ee.prototype,"slotElement",void 0);se([M(".ft-filter--container")],ee.prototype,"container",void 0);se([M(".ft-filter--values")],ee.prototype,"valuesContainer",void 0);se([M(".ft-filter--levels")],ee.prototype,"levelsContainer",void 0);se([_()],ee.prototype,"lastLevelHasHiddenvalues",void 0);se([M(".ft-filter--filter input")],ee.prototype,"filterInput",void 0);se([wn(".ft-filter--levels ft-filter-level")],ee.prototype,"levels",void 0);se([_()],ee.prototype,"withScroll",void 0);se([_()],ee.prototype,"filter",void 0);se([_()],ee.prototype,"slideIn",void 0);se([_()],ee.prototype,"slideOut",void 0);var io=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Xe=class extends D{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return y`
1439
1439
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1440
- `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Xe.elementDefinitions={};po([m({type:String})],Xe.prototype,"label",void 0);po([m({type:Object,converter:t=>t})],Xe.prototype,"value",void 0);po([m({type:Boolean,reflect:!0})],Xe.prototype,"selected",void 0);po([m({type:Object})],Xe.prototype,"subOptions",void 0);po([ce({})],Xe.prototype,"renderOption",void 0);po([M(".ft-filter-option--slot")],Xe.prototype,"slotElement",void 0);var Yp={"ft-filter":te,"ft-filter-option":Xe};K(Yp);var Xp=A`
1440
+ `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Xe.elementDefinitions={};io([f({type:String})],Xe.prototype,"label",void 0);io([f({type:Object,converter:t=>t})],Xe.prototype,"value",void 0);io([f({type:Boolean,reflect:!0})],Xe.prototype,"selected",void 0);io([f({type:Object})],Xe.prototype,"subOptions",void 0);io([le({})],Xe.prototype,"renderOption",void 0);io([M(".ft-filter-option--slot")],Xe.prototype,"slotElement",void 0);var du={"ft-filter":ee,"ft-filter-option":Xe};j(du);var pu=w`
1441
1441
  .ft-accordion {
1442
1442
  box-sizing: border-box;
1443
1443
  }
1444
- `;var Jp=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Et=class extends D{constructor(){super(...arguments),this.multi=!1}render(){return v`
1444
+ `;var uu=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ot=class extends D{constructor(){super(...arguments),this.multi=!1}render(){return y`
1445
1445
  <div class="ft-accordion">
1446
1446
  <slot @activated=${this.onChange}></slot>
1447
1447
  </div>
1448
- `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Et.elementDefinitions={};Et.styles=Xp;Jp([m({type:Boolean})],Et.prototype,"multi",void 0);Jp([M("slot")],Et.prototype,"content",void 0);var Lr={horizontalSpacing:o.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:o.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:o.external(O.colorOutline,"Design system"),backgroundColor:o.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Qp=A`
1448
+ `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};Ot.elementDefinitions={};Ot.styles=pu;uu([f({type:Boolean})],Ot.prototype,"multi",void 0);uu([M("slot")],Ot.prototype,"content",void 0);var wr={horizontalSpacing:o.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:o.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:o.external(E.colorOutline,"Design system"),backgroundColor:o.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},fu=w`
1449
1449
  .ft-accordion-item {
1450
1450
  display: flex;
1451
1451
  flex-direction: column;
1452
- background-color: ${Lr.backgroundColor};
1452
+ background-color: ${wr.backgroundColor};
1453
1453
  }
1454
1454
 
1455
1455
  .ft-accordion-item--toggle {
@@ -1459,8 +1459,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1459
1459
  display: flex;
1460
1460
  align-items: center;
1461
1461
  cursor: pointer;
1462
- padding: ${Lr.verticalSpacing} ${Lr.horizontalSpacing};
1463
- gap: calc(${Lr.horizontalSpacing} / 2);
1462
+ padding: ${wr.verticalSpacing} ${wr.horizontalSpacing};
1463
+ gap: calc(${wr.horizontalSpacing} / 2);
1464
1464
  outline: none;
1465
1465
  }
1466
1466
 
@@ -1485,13 +1485,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1485
1485
  .ft-accordion-item--active .ft-accordion-item--content {
1486
1486
  height: initial;
1487
1487
  overflow: visible;
1488
- padding: ${Lr.verticalSpacing} ${Lr.horizontalSpacing};
1488
+ padding: ${wr.verticalSpacing} ${wr.horizontalSpacing};
1489
1489
  }
1490
1490
 
1491
1491
  .ft-accordion-item--separator {
1492
- border-bottom: 1px solid ${Lr.colorOutline};
1492
+ border-bottom: 1px solid ${wr.colorOutline};
1493
1493
  }
1494
- `;var Yi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},it=class extends D{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return v`
1494
+ `;var cn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ot=class extends D{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return y`
1495
1495
  <div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
1496
1496
  <div class="ft-accordion-item--toggle"
1497
1497
  part="toggle"
@@ -1502,13 +1502,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1502
1502
  aria-controls="ft-accordion-item-content"
1503
1503
  aria-expanded="${this.active}">
1504
1504
  <ft-ripple part="toggle-ripple"></ft-ripple>
1505
- ${this.icon?v`
1505
+ ${this.icon?y`
1506
1506
  <ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
1507
1507
  `:null}
1508
- ${this.label?v`
1508
+ ${this.label?y`
1509
1509
  <ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}
1510
1510
  </ft-typography>
1511
- `:v`
1511
+ `:y`
1512
1512
  <slot class="ft-accordion-item--label" name="toggle" part="label"></slot>
1513
1513
  `}
1514
1514
  <ft-icon variant="material">${this.active?"expand_less":"expand_more"}</ft-icon>
@@ -1521,7 +1521,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1521
1521
  </div>
1522
1522
  <div class="ft-accordion-item--separator" part="separator"></div>
1523
1523
  </div>
1524
- `}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)}};it.elementDefinitions={"ft-ripple":q,"ft-typography":oe,"ft-icon":ue};it.styles=Qp;Yi([m()],it.prototype,"icon",void 0);Yi([m()],it.prototype,"iconVariant",void 0);Yi([m()],it.prototype,"label",void 0);Yi([m({type:Boolean,reflect:!0})],it.prototype,"active",void 0);var eu={"ft-accordion":Et,"ft-accordion-item":it};K(eu);var tu=o.extend("--ft-chip-color","",O.colorOnSurface),ke={backgroundColor:o.extend("--ft-chip-background-color","",O.colorSurface),color:tu,fontSize:o.extend("--ft-chip-font-size","",Ce.fontSize),fontWeight:o.extend("--ft-chip-font-weight","",Ce.fontWeight),iconSize:o.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:o.create("--ft-chip-border-radius","","SIZE",""),rippleColor:o.extend("--ft-chip-ripple-color","",tu),horizontalPadding:o.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:o.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:o.extend("--ft-chip-border-color","",O.colorOutline),opacityDisabled:o.external(O.colorOpacityDisabled,"Design system")},ru=o.extend("--ft-chip-highlighted-color","",o.extend("--ft-chip-color","",O.colorOnPrimary)),Bs={backgroundColor:o.extend("--ft-chip-highlighted-background-color","",o.extend("--ft-chip-background-color","",O.colorPrimary)),color:ru,rippleColor:o.extend("--ft-chip-highlighted-ripple-color","",ru)},ou={horizontalPadding:o.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:o.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},iu=[ur,A`
1524
+ `}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)}};ot.elementDefinitions={"ft-ripple":Z,"ft-typography":re,"ft-icon":pe};ot.styles=fu;cn([f()],ot.prototype,"icon",void 0);cn([f()],ot.prototype,"iconVariant",void 0);cn([f()],ot.prototype,"label",void 0);cn([f({type:Boolean,reflect:!0})],ot.prototype,"active",void 0);var hu={"ft-accordion":Ot,"ft-accordion-item":ot};j(hu);var mu=o.extend("--ft-chip-color","",E.colorOnSurface),Le={backgroundColor:o.extend("--ft-chip-background-color","",E.colorSurface),color:mu,fontSize:o.extend("--ft-chip-font-size","",Se.fontSize),fontWeight:o.extend("--ft-chip-font-weight","",Se.fontWeight),iconSize:o.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:o.create("--ft-chip-border-radius","","SIZE",""),rippleColor:o.extend("--ft-chip-ripple-color","",mu),horizontalPadding:o.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:o.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:o.extend("--ft-chip-border-color","",E.colorOutline),opacityDisabled:o.external(E.colorOpacityDisabled,"Design system")},gu=o.extend("--ft-chip-highlighted-color","",o.extend("--ft-chip-color","",E.colorOnPrimary)),Ks={backgroundColor:o.extend("--ft-chip-highlighted-background-color","",o.extend("--ft-chip-background-color","",E.colorPrimary)),color:gu,rippleColor:o.extend("--ft-chip-highlighted-ripple-color","",gu)},yu={horizontalPadding:o.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:o.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},bu=[dr,w`
1525
1525
  :host {
1526
1526
  display: inline-block;
1527
1527
  max-width: 100%;
@@ -1537,21 +1537,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1537
1537
  box-sizing: border-box;
1538
1538
  pointer-events: auto;
1539
1539
 
1540
- --chip-internal-font-size: ${ke.fontSize};
1541
- --chip-internal-font-weight: ${ke.fontWeight};
1540
+ --chip-internal-font-size: ${Le.fontSize};
1541
+ --chip-internal-font-weight: ${Le.fontWeight};
1542
1542
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
1543
- ${R(De.size,ke.iconSize)};
1544
- --chip-internal-vertical-padding: ${ke.verticalPadding};
1545
- --chip-internal-horizontal-padding: ${ke.horizontalPadding};
1543
+ ${A(Ne.size,Le.iconSize)};
1544
+ --chip-internal-vertical-padding: ${Le.verticalPadding};
1545
+ --chip-internal-horizontal-padding: ${Le.horizontalPadding};
1546
1546
  --chip-internal-icon-padding: 3px;
1547
- --chip-internal-content-height: max(var(--chip-internal-line-height), ${ke.iconSize});
1547
+ --chip-internal-content-height: max(var(--chip-internal-line-height), ${Le.iconSize});
1548
1548
 
1549
- border: 1px solid ${ke.borderColor};
1550
- color: ${ke.color};
1551
- ${R(ie.color,ke.rippleColor)};
1552
- border-radius: var(${Xt(ke.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1549
+ border: 1px solid ${Le.borderColor};
1550
+ color: ${Le.color};
1551
+ ${A(oe.color,Le.rippleColor)};
1552
+ border-radius: var(${qt(Le.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1553
1553
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1554
- background-color: ${ke.backgroundColor};
1554
+ background-color: ${Le.backgroundColor};
1555
1555
  line-height: var(--chip-internal-content-height);
1556
1556
  }
1557
1557
 
@@ -1561,28 +1561,28 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1561
1561
 
1562
1562
  .ft-chip--dense {
1563
1563
  --chip-internal-icon-padding: 3px;
1564
- --chip-internal-vertical-padding: ${ou.verticalPadding};
1565
- --chip-internal-horizontal-padding: ${ou.horizontalPadding};
1564
+ --chip-internal-vertical-padding: ${yu.verticalPadding};
1565
+ --chip-internal-horizontal-padding: ${yu.horizontalPadding};
1566
1566
  --chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
1567
1567
  }
1568
1568
 
1569
1569
  .ft-chip--no-content {
1570
- --chip-internal-horizontal-padding: ${ke.horizontalPadding.get(A`var(--chip-internal-vertical-padding)`)};
1570
+ --chip-internal-horizontal-padding: ${Le.horizontalPadding.get(w`var(--chip-internal-vertical-padding)`)};
1571
1571
  }
1572
1572
 
1573
1573
  .ft-chip--disabled {
1574
1574
  cursor: default;
1575
1575
  pointer-events: none;
1576
1576
  filter: grayscale(1);
1577
- opacity: ${ke.opacityDisabled};
1577
+ opacity: ${Le.opacityDisabled};
1578
1578
  }
1579
1579
 
1580
1580
  .ft-chip--highlighted {
1581
1581
  border: none;
1582
1582
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1583
- background-color: ${Bs.backgroundColor};
1584
- ${R(ie.color,Bs.rippleColor)};
1585
- color: ${Bs.color};
1583
+ background-color: ${Ks.backgroundColor};
1584
+ ${A(oe.color,Ks.rippleColor)};
1585
+ color: ${Ks.color};
1586
1586
  }
1587
1587
 
1588
1588
  .ft-chip--clickable {
@@ -1591,7 +1591,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1591
1591
  }
1592
1592
 
1593
1593
  .ft-chip:focus {
1594
- outline: 2px solid ${O.colorPrimary};
1594
+ outline: 2px solid ${E.colorPrimary};
1595
1595
  outline-offset: 2px;
1596
1596
  }
1597
1597
 
@@ -1613,9 +1613,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1613
1613
  }
1614
1614
 
1615
1615
  .ft-chip--icon-button {
1616
- ${R(X.iconSize,ke.iconSize)};
1617
- ${R(X.horizontalPadding,"var(--chip-internal-icon-padding)")};
1618
- ${R(X.verticalPadding,"var(--chip-internal-icon-padding)")};
1616
+ ${A(X.iconSize,Le.iconSize)};
1617
+ ${A(X.horizontalPadding,"var(--chip-internal-icon-padding)")};
1618
+ ${A(X.verticalPadding,"var(--chip-internal-icon-padding)")};
1619
1619
  margin: calc((-1) * var(--chip-internal-icon-padding));
1620
1620
  }
1621
1621
 
@@ -1623,9 +1623,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1623
1623
  vertical-align: bottom;
1624
1624
  display: block;
1625
1625
  margin: 0 var(--chip-internal-horizontal-padding);
1626
- ${R(Ce.fontSize,"var(--chip-internal-font-size)")};
1627
- ${R(Ce.fontWeight,"var(--chip-internal-font-weight)")};
1628
- ${R(Ce.lineHeight,"var(--chip-internal-content-height)")};
1626
+ ${A(Se.fontSize,"var(--chip-internal-font-size)")};
1627
+ ${A(Se.fontWeight,"var(--chip-internal-font-weight)")};
1628
+ ${A(Se.lineHeight,"var(--chip-internal-content-height)")};
1629
1629
  }
1630
1630
 
1631
1631
  .ft-chip--safari-fix .ft-chip--label {
@@ -1661,8 +1661,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1661
1661
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1662
1662
  order: -1;
1663
1663
  }
1664
- `];var Fe=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Xi=class extends CustomEvent{constructor(){super("icon-click")}},he=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 r={"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":Cr};return v`
1665
- <div class="${ae(r)}"
1664
+ `];var Me=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},dn=class extends CustomEvent{constructor(){super("icon-click")}},fe=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 r={"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":xr};return y`
1665
+ <div class="${ne(r)}"
1666
1666
  aria-label="${this.getLabel()}"
1667
1667
  tabindex="${this.interactionsOnChip?0:-1}"
1668
1668
  @keyup=${this.onKeyUp}
@@ -1673,7 +1673,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1673
1673
  </ft-typography>
1674
1674
  ${this.internalIcon?this.renderIcon():null}
1675
1675
  </div>
1676
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?v`
1676
+ `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?y`
1677
1677
  <ft-button round
1678
1678
  class="ft-chip--icon-button"
1679
1679
  @click=${this.onIconClick}
@@ -1684,29 +1684,29 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1684
1684
  part="icon-button"
1685
1685
  ?hideTooltip=${this.hideIconTooltip}
1686
1686
  ></ft-button>
1687
- `:v`
1687
+ `:y`
1688
1688
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1689
1689
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
1690
1690
  </div>
1691
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Xi))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Xi))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return yi(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};he.elementDefinitions={"ft-ripple":q,"ft-typography":oe,"ft-icon":ue,"ft-button":z};he.styles=iu;Fe([m({type:Boolean})],he.prototype,"highlighted",void 0);Fe([m({type:Boolean})],he.prototype,"removable",void 0);Fe([m({type:Boolean})],he.prototype,"disabled",void 0);Fe([m({type:Boolean})],he.prototype,"clickable",void 0);Fe([m({type:Boolean})],he.prototype,"iconClickable",void 0);Fe([m({type:Boolean})],he.prototype,"dense",void 0);Fe([m({type:Boolean})],he.prototype,"multiLine",void 0);Fe([m()],he.prototype,"label",void 0);Fe([m()],he.prototype,"iconLabel",void 0);Fe([m({type:Boolean})],he.prototype,"hideIconTooltip",void 0);Fe([m()],he.prototype,"icon",void 0);Fe([m()],he.prototype,"iconVariant",void 0);Fe([m({type:Boolean})],he.prototype,"trailingIcon",void 0);Fe([m()],he.prototype,"typographyVariant",void 0);Fe([M("ft-typography slot")],he.prototype,"slottedContent",void 0);var nu={"ft-chip":he};K(nu);var Z={fontSize:o.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.extend("--ft-input-label-border-color","",O.colorOutline),textColor:o.extend("--ft-input-label-text-color","",O.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",O.colorOnSurfaceDisabled),backgroundColor:o.extend("--ft-input-label-background-color","",O.colorSurface),borderRadius:o.extend("--ft-input-label-border-radius","",O.borderRadiusS),colorError:o.external(O.colorError,"Design system")},au=A`
1691
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new dn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new dn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return hi(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};fe.elementDefinitions={"ft-ripple":Z,"ft-typography":re,"ft-icon":pe,"ft-button":z};fe.styles=bu;Me([f({type:Boolean})],fe.prototype,"highlighted",void 0);Me([f({type:Boolean})],fe.prototype,"removable",void 0);Me([f({type:Boolean})],fe.prototype,"disabled",void 0);Me([f({type:Boolean})],fe.prototype,"clickable",void 0);Me([f({type:Boolean})],fe.prototype,"iconClickable",void 0);Me([f({type:Boolean})],fe.prototype,"dense",void 0);Me([f({type:Boolean})],fe.prototype,"multiLine",void 0);Me([f()],fe.prototype,"label",void 0);Me([f()],fe.prototype,"iconLabel",void 0);Me([f({type:Boolean})],fe.prototype,"hideIconTooltip",void 0);Me([f()],fe.prototype,"icon",void 0);Me([f()],fe.prototype,"iconVariant",void 0);Me([f({type:Boolean})],fe.prototype,"trailingIcon",void 0);Me([f()],fe.prototype,"typographyVariant",void 0);Me([M("ft-typography slot")],fe.prototype,"slottedContent",void 0);var xu={"ft-chip":fe};j(xu);var q={fontSize:o.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.extend("--ft-input-label-border-color","",E.colorOutline),textColor:o.extend("--ft-input-label-text-color","",E.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",E.colorOnSurfaceDisabled),backgroundColor:o.extend("--ft-input-label-background-color","",E.colorSurface),borderRadius:o.extend("--ft-input-label-border-radius","",E.borderRadiusS),colorError:o.external(E.colorError,"Design system")},vu=w`
1692
1692
  .ft-input-label {
1693
1693
  position: absolute;
1694
1694
  inset: 0;
1695
1695
  display: flex;
1696
- background-color: ${Z.backgroundColor};
1697
- border-radius: ${Z.borderRadius} ${Z.borderRadius} 0 0;
1696
+ background-color: ${q.backgroundColor};
1697
+ border-radius: ${q.borderRadius} ${q.borderRadius} 0 0;
1698
1698
  }
1699
1699
 
1700
1700
  .ft-input-label--outlined {
1701
- border-radius: ${Z.borderRadius};
1701
+ border-radius: ${q.borderRadius};
1702
1702
  }
1703
1703
 
1704
1704
  .ft-input-label {
1705
- border-color: ${Z.borderColor};
1705
+ border-color: ${q.borderColor};
1706
1706
  }
1707
1707
 
1708
1708
  .ft-input-label.ft-input-label--in-error {
1709
- border-color: ${Z.colorError}
1709
+ border-color: ${q.colorError}
1710
1710
  }
1711
1711
 
1712
1712
  .ft-input-label:before,
@@ -1719,7 +1719,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1719
1719
  }
1720
1720
 
1721
1721
  .ft-input-label:before {
1722
- width: calc(${Z.horizontalSpacing} - 4px);
1722
+ width: calc(${q.horizontalSpacing} - 4px);
1723
1723
  flex-shrink: 0;
1724
1724
  }
1725
1725
 
@@ -1735,20 +1735,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1735
1735
  border-bottom-width: 1px;
1736
1736
  border-bottom-style: solid;
1737
1737
  border-color: inherit;
1738
- color: ${Z.textColor};
1738
+ color: ${q.textColor};
1739
1739
  transition: font-size 250ms, line-height 250ms, color 250ms;
1740
- max-width: calc(${Z.labelMaxWidth} - 2 * (${Z.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1740
+ max-width: calc(${q.labelMaxWidth} - 2 * (${q.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1741
1741
  text-overflow: ellipsis;
1742
- ${R(Ge.fontSize,Z.fontSize)};
1743
- ${R(Ge.lineHeight,Z.fontSize)};
1742
+ ${A(je.fontSize,q.fontSize)};
1743
+ ${A(je.lineHeight,q.fontSize)};
1744
1744
  }
1745
1745
 
1746
1746
  .ft-input-label--in-error .ft-input-label--text {
1747
- color: ${Z.colorError}
1747
+ color: ${q.colorError}
1748
1748
  }
1749
1749
 
1750
1750
  .ft-input-label--disabled .ft-input-label--text {
1751
- color: ${Z.disabledTextColor};
1751
+ color: ${q.disabledTextColor};
1752
1752
  }
1753
1753
 
1754
1754
  .ft-input-label--hidden-text {
@@ -1760,24 +1760,24 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1760
1760
 
1761
1761
  .ft-input-label--floating-text {
1762
1762
  position: absolute;
1763
- top: calc(50% - ${Ge.lineHeight} / 2);
1763
+ top: calc(50% - ${je.lineHeight} / 2);
1764
1764
  transition: top 250ms;
1765
1765
  overflow: hidden;
1766
1766
  white-space: nowrap;
1767
1767
  text-overflow: ellipsis;
1768
- padding: ${Z.verticalSpacing} 4px;
1769
- margin: calc(${Z.verticalSpacing} * -1) 0;
1768
+ padding: ${q.verticalSpacing} 4px;
1769
+ margin: calc(${q.verticalSpacing} * -1) 0;
1770
1770
  max-width: 100%;
1771
1771
  box-sizing: border-box;
1772
1772
  }
1773
1773
 
1774
1774
  .ft-input-label--raised .ft-input-label--text {
1775
- ${R(Ge.fontSize,Z.raisedFontSize)};
1776
- ${R(Ge.lineHeight,Z.raisedFontSize)};
1775
+ ${A(je.fontSize,q.raisedFontSize)};
1776
+ ${A(je.lineHeight,q.raisedFontSize)};
1777
1777
  }
1778
1778
 
1779
1779
  .ft-input-label--raised .ft-input-label--floating-text {
1780
- top: ${Z.verticalSpacing};
1780
+ top: ${q.verticalSpacing};
1781
1781
  }
1782
1782
 
1783
1783
  .ft-input-label--outlined .ft-input-label--text,
@@ -1790,36 +1790,36 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1790
1790
  .ft-input-label--outlined:before {
1791
1791
  border-left-width: 1px;
1792
1792
  border-left-style: solid;
1793
- border-radius: ${Z.borderRadius} 0 0 ${Z.borderRadius};
1793
+ border-radius: ${q.borderRadius} 0 0 ${q.borderRadius};
1794
1794
  }
1795
1795
 
1796
1796
  .ft-input-label--outlined:after {
1797
1797
  border-right-width: 1px;
1798
1798
  border-right-style: solid;
1799
- border-radius: 0 ${Z.borderRadius} ${Z.borderRadius} 0;
1799
+ border-radius: 0 ${q.borderRadius} ${q.borderRadius} 0;
1800
1800
  }
1801
1801
 
1802
1802
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1803
1803
  padding: 2px 4px;
1804
- z-index: ${Z.raisedZIndex};
1805
- background-color: ${Z.backgroundColor};
1806
- border-radius: ${Z.borderRadius};
1807
- top: calc((${Ge.lineHeight} / -2) + 2px);
1804
+ z-index: ${q.raisedZIndex};
1805
+ background-color: ${q.backgroundColor};
1806
+ border-radius: ${q.borderRadius};
1807
+ top: calc((${je.lineHeight} / -2) + 2px);
1808
1808
  }
1809
1809
 
1810
1810
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1811
1811
  border-top: none;
1812
1812
  }
1813
- `;var su=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},kr=class extends D{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return v`
1814
- <div class="${ae(this.inputLabelClasses)}">
1815
- ${vr(this.text,()=>v`
1813
+ `;var Su=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ar=class extends D{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return y`
1814
+ <div class="${ne(this.inputLabelClasses)}">
1815
+ ${gr(this.text,()=>y`
1816
1816
  <div class="ft-input-label--text ft-typography--caption">
1817
1817
  <label class="ft-input-label--floating-text">${this.text}</label>
1818
1818
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1819
1819
  </div>
1820
1820
  `)}
1821
1821
  </div>
1822
- `}};kr.elementDefinitions={};su([m({type:String})],kr.prototype,"text",void 0);su([m({type:Boolean})],kr.prototype,"raised",void 0);var Us=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ht=class extends kr{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}}};ht.elementDefinitions={};ht.styles=[Gt,au];Us([m({type:Boolean})],ht.prototype,"outlined",void 0);Us([m({type:Boolean})],ht.prototype,"error",void 0);Us([m({type:Boolean})],ht.prototype,"disabled",void 0);var lu={"ft-input-label":ht};K(lu);var W={labelSize:o.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:o.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:o.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:o.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:o.extend("--ft-select-selected-option-color","",O.colorOnSurface),helperColor:o.extend("--ft-select-helper-color","",O.colorOnSurfaceMedium),optionsColor:o.extend("--ft-select-options-color","",O.colorOnSurface),optionsZIndex:o.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:o.extend("--ft-select-background-color","",O.colorSurface),colorOnSurfaceDisabled:o.external(O.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(O.colorPrimary,"Design system"),borderRadiusS:o.external(O.borderRadiusS,"Design system"),elevation02:o.external(O.elevation02,"Design system"),colorError:o.external(O.colorError,"Design system")},cu=A`
1822
+ `}};Ar.elementDefinitions={};Su([f({type:String})],Ar.prototype,"text",void 0);Su([f({type:Boolean})],Ar.prototype,"raised",void 0);var Zs=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ft=class extends Ar{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}}};ft.elementDefinitions={};ft.styles=[Wt,vu];Zs([f({type:Boolean})],ft.prototype,"outlined",void 0);Zs([f({type:Boolean})],ft.prototype,"error",void 0);Zs([f({type:Boolean})],ft.prototype,"disabled",void 0);var Eu={"ft-input-label":ft};j(Eu);var G={labelSize:o.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:o.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:o.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:o.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:o.extend("--ft-select-selected-option-color","",E.colorOnSurface),helperColor:o.extend("--ft-select-helper-color","",E.colorOnSurfaceMedium),optionsColor:o.extend("--ft-select-options-color","",E.colorOnSurface),optionsZIndex:o.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:o.extend("--ft-select-background-color","",E.colorSurface),colorOnSurfaceDisabled:o.external(E.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.external(E.colorPrimary,"Design system"),borderRadiusS:o.external(E.borderRadiusS,"Design system"),elevation02:o.external(E.elevation02,"Design system"),colorError:o.external(E.colorError,"Design system")},Cu=w`
1823
1823
  *:focus {
1824
1824
  outline: none;
1825
1825
  }
@@ -1834,7 +1834,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1834
1834
  .ft-select--main-panel {
1835
1835
  position: relative;
1836
1836
  display: flex;
1837
- height: calc(4 * ${W.verticalSpacing} + ${W.labelSize} + ${W.selectedOptionSize});
1837
+ height: calc(4 * ${G.verticalSpacing} + ${G.labelSize} + ${G.selectedOptionSize});
1838
1838
  }
1839
1839
 
1840
1840
  .ft-select--input-panel {
@@ -1843,17 +1843,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1843
1843
  display: flex;
1844
1844
  align-items: center;
1845
1845
  overflow: hidden;
1846
- padding-left: ${W.horizontalSpacing};
1847
- padding-right: ${W.horizontalSpacing};
1846
+ padding-left: ${G.horizontalSpacing};
1847
+ padding-right: ${G.horizontalSpacing};
1848
1848
  gap: 8px;
1849
- color: ${W.selectedOptionColor};
1850
- ${R(ie.color,W.selectedOptionColor)};
1849
+ color: ${G.selectedOptionColor};
1850
+ ${A(oe.color,G.selectedOptionColor)};
1851
1851
  }
1852
1852
 
1853
1853
  .ft-select--input-panel,
1854
1854
  .ft-select--options {
1855
- ${R(ie.opacityContentOnSurfaceHover,"0.08")};
1856
- ${R(ie.opacityContentOnSurfacePressed,"0.04")};
1855
+ ${A(oe.opacityContentOnSurfaceHover,"0.08")};
1856
+ ${A(oe.opacityContentOnSurfacePressed,"0.04")};
1857
1857
  }
1858
1858
 
1859
1859
  .ft-select--input-panel > *:not(ft-ripple) {
@@ -1862,7 +1862,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1862
1862
 
1863
1863
  .ft-select--disabled .ft-select--input-panel,
1864
1864
  .ft-select--disabled .ft-select--options {
1865
- color: ${W.colorOnSurfaceDisabled};
1865
+ color: ${G.colorOnSurfaceDisabled};
1866
1866
  }
1867
1867
 
1868
1868
  .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
@@ -1871,21 +1871,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1871
1871
  }
1872
1872
 
1873
1873
  ft-input-label {
1874
- ${R(Z.fontSize,W.selectedOptionSize)};
1875
- ${R(Z.raisedFontSize,W.labelSize)};
1876
- ${R(Z.verticalSpacing,W.verticalSpacing)};
1877
- ${R(Z.horizontalSpacing,W.horizontalSpacing)};
1878
- ${R(Z.backgroundColor,W.backgroundColor)};
1879
- ${R(Z.labelMaxWidth,`calc(100% - ${De.size} - 8px)`)};
1874
+ ${A(q.fontSize,G.selectedOptionSize)};
1875
+ ${A(q.raisedFontSize,G.labelSize)};
1876
+ ${A(q.verticalSpacing,G.verticalSpacing)};
1877
+ ${A(q.horizontalSpacing,G.horizontalSpacing)};
1878
+ ${A(q.backgroundColor,G.backgroundColor)};
1879
+ ${A(q.labelMaxWidth,`calc(100% - ${Ne.size} - 8px)`)};
1880
1880
  }
1881
1881
 
1882
1882
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
1883
- color: ${W.colorPrimary};
1883
+ color: ${G.colorPrimary};
1884
1884
  }
1885
1885
 
1886
1886
  .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
1887
- ${R(Z.borderColor,W.colorPrimary)};
1888
- ${R(Z.textColor,W.colorPrimary)};
1887
+ ${A(q.borderColor,G.colorPrimary)};
1888
+ ${A(q.textColor,G.colorPrimary)};
1889
1889
  }
1890
1890
 
1891
1891
  .ft-select--selected-option {
@@ -1895,12 +1895,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1895
1895
  overflow: hidden;
1896
1896
  white-space: nowrap;
1897
1897
  text-overflow: ellipsis;
1898
- ${R(It.fontSize,W.selectedOptionSize)};
1899
- ${R(It.lineHeight,W.selectedOptionSize)};
1898
+ ${A(Pt.fontSize,G.selectedOptionSize)};
1899
+ ${A(Pt.lineHeight,G.selectedOptionSize)};
1900
1900
  }
1901
1901
 
1902
1902
  .ft-select--in-error .ft-select--selected-option {
1903
- color: ${W.colorError};
1903
+ color: ${G.colorError};
1904
1904
  }
1905
1905
 
1906
1906
  ft-icon {
@@ -1910,26 +1910,26 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1910
1910
 
1911
1911
 
1912
1912
  .ft-select--filled .ft-select--input-panel {
1913
- border-radius: ${W.borderRadiusS} ${W.borderRadiusS} 0 0;
1913
+ border-radius: ${G.borderRadiusS} ${G.borderRadiusS} 0 0;
1914
1914
  }
1915
1915
 
1916
1916
  .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
1917
1917
  align-self: stretch;
1918
- padding-top: calc(${W.labelSize} + 2 * ${W.verticalSpacing});
1918
+ padding-top: calc(${G.labelSize} + 2 * ${G.verticalSpacing});
1919
1919
  }
1920
1920
 
1921
1921
  .ft-select--outlined .ft-select--input-panel {
1922
- border-radius: ${W.borderRadiusS};
1922
+ border-radius: ${G.borderRadiusS};
1923
1923
  }
1924
1924
 
1925
1925
  .ft-select--options {
1926
1926
  display: none;
1927
1927
  position: absolute;
1928
1928
  top: 100%;
1929
- color: ${W.optionsColor};
1930
- background: ${W.backgroundColor};
1931
- z-index: ${W.optionsZIndex};
1932
- box-shadow: ${W.elevation02};
1929
+ color: ${G.optionsColor};
1930
+ background: ${G.backgroundColor};
1931
+ z-index: ${G.optionsZIndex};
1932
+ box-shadow: ${G.elevation02};
1933
1933
  width: max-content;
1934
1934
  }
1935
1935
 
@@ -1939,26 +1939,26 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1939
1939
 
1940
1940
  .ft-select--options-displayed .ft-select--options {
1941
1941
  display: block;
1942
- max-height: ${W.optionsHeight};
1942
+ max-height: ${G.optionsHeight};
1943
1943
  overflow-y: auto;
1944
1944
  }
1945
1945
 
1946
1946
  .ft-select--helper-text {
1947
- padding: 0 ${W.horizontalSpacing};
1948
- color: ${W.helperColor};
1947
+ padding: 0 ${G.horizontalSpacing};
1948
+ color: ${G.helperColor};
1949
1949
  }
1950
1950
 
1951
1951
  .ft-select--in-error .ft-select--helper-text {
1952
- color: ${W.colorError};
1952
+ color: ${G.colorError};
1953
1953
  }
1954
1954
 
1955
1955
  .ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
1956
1956
  opacity: 0;
1957
1957
  }
1958
- `;var du=A`
1958
+ `;var Ou=w`
1959
1959
  .ft-select--option {
1960
- ${R(ie.opacityContentOnSurfaceHover,"0.08")};
1961
- ${R(ie.opacityContentOnSurfacePressed,"0.04")};
1960
+ ${A(oe.opacityContentOnSurfaceHover,"0.08")};
1961
+ ${A(oe.opacityContentOnSurfacePressed,"0.04")};
1962
1962
  }
1963
1963
 
1964
1964
  .ft-select--option > *:not(ft-ripple) {
@@ -1967,14 +1967,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1967
1967
 
1968
1968
  .ft-select--option {
1969
1969
  position: relative;
1970
- padding: 4px ${W.horizontalSpacing};
1970
+ padding: 4px ${G.horizontalSpacing};
1971
1971
  min-height: 32px;
1972
1972
  display: flex;
1973
1973
  align-items: center;
1974
1974
  }
1975
1975
 
1976
1976
  .ft-select--option:hover {
1977
- border-left: 2px ${W.colorPrimary} solid;
1977
+ border-left: 2px ${G.colorPrimary} solid;
1978
1978
  }
1979
1979
 
1980
1980
  .ft-select--option span {
@@ -1982,8 +1982,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1982
1982
  overflow: hidden;
1983
1983
  }
1984
1984
 
1985
- `;var oi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ne=class extends D{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,r;let i={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return v`
1986
- <div class="${ae(i)}"
1985
+ `;var ei=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Pe=class extends D{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,r;let i={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return y`
1986
+ <div class="${ne(i)}"
1987
1987
  part="option option-${(r=(e=this.value)===null||e===void 0?void 0:e.toString())===null||r===void 0?void 0:r.replace(/[^\w-]/g,"")}"
1988
1988
  tabindex="0"
1989
1989
  aria-label="${this.label}"
@@ -1992,10 +1992,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
1992
1992
  <ft-ripple ?primary=${this.selected} ?activated=${this.selected}></ft-ripple>
1993
1993
  <slot @slotchange=${this.onSlotChange}>
1994
1994
  </slot>
1995
- ${this.isSlotEmpty?v`<span>${this.label}</span>`:v``}
1995
+ ${this.isSlotEmpty?y`<span>${this.label}</span>`:y``}
1996
1996
  </div>
1997
- `}onSlotChange(){this.isSlotEmpty=No(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}))}};Ne.elementDefinitions={"ft-ripple":q};Ne.shadowRootOptions={...Qe.shadowRootOptions,delegatesFocus:!0};Ne.styles=[du,no];oi([m({type:String})],Ne.prototype,"label",void 0);oi([m({type:Object,converter:t=>t})],Ne.prototype,"value",void 0);oi([m({type:Boolean,reflect:!0})],Ne.prototype,"selected",void 0);oi([M("slot")],Ne.prototype,"slotElement",void 0);oi([T()],Ne.prototype,"isSlotEmpty",void 0);var Te=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};var ne=class t 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 An(this.optionsList)}render(){var e,r,i,n,a;let s=this.hasOptionsMenuOpen,l=this.disabled||!this.hasOptions,d=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((i=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:"").length>0,u={"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 v`
1998
- <div class="${ae(u)}" part="container">
1997
+ `}onSlotChange(){this.isSlotEmpty=_o(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}))}};Pe.elementDefinitions={"ft-ripple":Z};Pe.shadowRootOptions={...Qe.shadowRootOptions,delegatesFocus:!0};Pe.styles=[Ou,Qr];ei([f({type:String})],Pe.prototype,"label",void 0);ei([f({type:Object,converter:t=>t})],Pe.prototype,"value",void 0);ei([f({type:Boolean,reflect:!0})],Pe.prototype,"selected",void 0);ei([M("slot")],Pe.prototype,"slotElement",void 0);ei([_()],Pe.prototype,"isSlotEmpty",void 0);var ke=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};var ie=class t 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 Fn(this.optionsList)}render(){var e,r,i,n,a;let s=this.hasOptionsMenuOpen,l=this.disabled||!this.hasOptions,d=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((i=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:"").length>0,u={"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 y`
1998
+ <div class="${ne(u)}" part="container">
1999
1999
  <div class="ft-select--main-panel" part="main-panel">
2000
2000
  <ft-input-label text="${this.label}"
2001
2001
  part="label"
@@ -2010,21 +2010,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2010
2010
  tabindex="${l?"-1":"0"}"
2011
2011
  @click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
2012
2012
  @keydown=${this.onMainPanelKeyDown}
2013
- aria-label="${Kt(this.ariaLabel)}"
2014
- aria-labelledby="${vr(!this.ariaLabel,()=>"label")}"
2013
+ aria-label="${Gt(this.ariaLabel)}"
2014
+ aria-labelledby="${gr(!this.ariaLabel,()=>"label")}"
2015
2015
  aria-haspopup="listbox"
2016
2016
  aria-expanded="${s}"
2017
- aria-activedescendant="${Kt(this.getOptionId(this.selectedOption))}"
2017
+ aria-activedescendant="${Gt(this.getOptionId(this.selectedOption))}"
2018
2018
  role="combobox">
2019
2019
  <ft-ripple ?disabled=${l} ?activated=${!this.outlined}></ft-ripple>
2020
2020
  <slot name="input-value">
2021
- <ft-typography variant="${ve.body1}"
2021
+ <ft-typography variant="${be.body1}"
2022
2022
  aria-hidden="${d?"false":"true"}"
2023
2023
  class="ft-select--selected-option">
2024
2024
  ${(a=(n=this.selectedOption)===null||n===void 0?void 0:n.label)!==null&&a!==void 0?a:this.label}
2025
2025
  </ft-typography>
2026
2026
  </slot>
2027
- <ft-icon aria-hidden="true" .value=${s?qe.THIN_ARROW_UP:qe.THIN_ARROW}></ft-icon>
2027
+ <ft-icon aria-hidden="true" .value=${s?Ze.THIN_ARROW_UP:Ze.THIN_ARROW}></ft-icon>
2028
2028
  </div>
2029
2029
  <div class="ft-select--options"
2030
2030
  part="options"
@@ -2035,49 +2035,49 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2035
2035
  @option-change=${this.updateOptionsFromSlot}
2036
2036
  >
2037
2037
  </slot>
2038
- ${vr(this.isSlotEmpty,()=>me(this.options,h=>h.value,h=>this.renderOption(h)))}
2038
+ ${gr(this.isSlotEmpty,()=>he(this.options,m=>m.value,m=>this.renderOption(m)))}
2039
2039
  </div>
2040
2040
  </div>
2041
2041
  <slot name="helper" part="helper">
2042
- ${this.helper?v`
2043
- <ft-typography class="ft-select--helper-text" variant="${ve.caption}">${this.helper}
2044
- </ft-typography>`:_}
2042
+ ${this.helper?y`
2043
+ <ft-typography class="ft-select--helper-text" variant="${be.caption}">${this.helper}
2044
+ </ft-typography>`:L}
2045
2045
  </slot>
2046
2046
  </div>
2047
- `}renderOption(e){let r=this.selectedOption===e;return v`
2047
+ `}renderOption(e){let r=this.selectedOption===e;return y`
2048
2048
  <ft-select-option
2049
2049
  ?selected=${r}
2050
2050
  label="${e.label}"
2051
2051
  .value=${e.value}
2052
2052
  ></ft-select-option>
2053
- `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];ra(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",W.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 r;e.stopPropagation(),this.isSlotEmpty=No(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;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,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.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 r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=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=r,i&&this.optionsList.find(n=>n.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>ge(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(n=>ge(n.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,n;if(!ge((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let a of this.options)a.selected=a===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(n=this.selectedOption)===null||n===void 0?void 0:n.value}))}this.optionsDisplayed=!1}};ne.elementDefinitions={"ft-input-label":ht,"ft-typography":oe,"ft-ripple":q,"ft-icon":ue,"ft-select-option":Ne};ne.searchTimeoutMilliseconds=2e3;ne.styles=[Gt,cu];Te([m({type:String})],ne.prototype,"label",void 0);Te([m({type:String})],ne.prototype,"ariaLabel",void 0);Te([m({type:String})],ne.prototype,"helper",void 0);Te([m({type:Boolean})],ne.prototype,"outlined",void 0);Te([m({type:Boolean})],ne.prototype,"disabled",void 0);Te([m({type:Boolean})],ne.prototype,"error",void 0);Te([m({type:Boolean})],ne.prototype,"fixedMenuPosition",void 0);Te([m({type:Array})],ne.prototype,"options",void 0);Te([T()],ne.prototype,"selectedOption",void 0);Te([T()],ne.prototype,"optionsDisplayed",void 0);Te([T()],ne.prototype,"focusOptions",void 0);Te([T()],ne.prototype,"currentSearch",void 0);Te([T()],ne.prototype,"lastSearchInputDate",void 0);Te([M(".ft-select")],ne.prototype,"container",void 0);Te([M(".ft-select--options")],ne.prototype,"optionsMenu",void 0);Te([M(".ft-select--input-panel")],ne.prototype,"mainPanel",void 0);Te([M("slot:not([name])")],ne.prototype,"optionsSlot",void 0);var pu={"ft-select":ne,"ft-select-option":Ne};K(pu);var _e={display:o.create("--ft-skeleton--display","","DISPLAY","block"),width:o.create("--ft-skeleton--width","","SIZE","100%"),height:o.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:o.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:o.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:o.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:o.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:o.external(O.borderRadiusM,"Design system")},uu=A`
2053
+ `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&(this.optionsDisplayed?document.addEventListener("click",this.hideOptions):document.removeEventListener("click",this.hideOptions)),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];ha(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",G.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 r;e.stopPropagation(),this.isSlotEmpty=_o(this.optionsSlot);let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i;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,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Escape":this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.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 r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){let r=new Date;r.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let i=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=r,i&&this.optionsList.find(n=>n.value===i.value)}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>me(i.value,e.value));if(r!==-1)return`option-${r}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,r=!0){let i=this.options.find(n=>me(n.value,e));i&&this.selectOption(i,r)}selectOption(e,r=!0){var i,n;if(!me((i=this.selectedOption)===null||i===void 0?void 0:i.value,e?.value)){this.selectedOption=e;for(let a of this.options)a.selected=a===e;r&&this.dispatchEvent(new CustomEvent("change",{detail:(n=this.selectedOption)===null||n===void 0?void 0:n.value}))}this.optionsDisplayed=!1}};ie.elementDefinitions={"ft-input-label":ft,"ft-typography":re,"ft-ripple":Z,"ft-icon":pe,"ft-select-option":Pe};ie.searchTimeoutMilliseconds=2e3;ie.styles=[Wt,Cu];ke([f({type:String})],ie.prototype,"label",void 0);ke([f({type:String})],ie.prototype,"ariaLabel",void 0);ke([f({type:String})],ie.prototype,"helper",void 0);ke([f({type:Boolean})],ie.prototype,"outlined",void 0);ke([f({type:Boolean})],ie.prototype,"disabled",void 0);ke([f({type:Boolean})],ie.prototype,"error",void 0);ke([f({type:Boolean})],ie.prototype,"fixedMenuPosition",void 0);ke([f({type:Array})],ie.prototype,"options",void 0);ke([_()],ie.prototype,"selectedOption",void 0);ke([_()],ie.prototype,"optionsDisplayed",void 0);ke([_()],ie.prototype,"focusOptions",void 0);ke([_()],ie.prototype,"currentSearch",void 0);ke([_()],ie.prototype,"lastSearchInputDate",void 0);ke([M(".ft-select")],ie.prototype,"container",void 0);ke([M(".ft-select--options")],ie.prototype,"optionsMenu",void 0);ke([M(".ft-select--input-panel")],ie.prototype,"mainPanel",void 0);ke([M("slot:not([name])")],ie.prototype,"optionsSlot",void 0);var wu={"ft-select":ie,"ft-select-option":Pe};j(wu);var Te={display:o.create("--ft-skeleton--display","","DISPLAY","block"),width:o.create("--ft-skeleton--width","","SIZE","100%"),height:o.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:o.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:o.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:o.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:o.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:o.external(E.borderRadiusM,"Design system")},Au=w`
2054
2054
  :host {
2055
- width: ${_e.width};
2056
- height: ${_e.height};
2057
- display: ${_e.display};
2055
+ width: ${Te.width};
2056
+ height: ${Te.height};
2057
+ display: ${Te.display};
2058
2058
  overflow: hidden;
2059
- border-radius: ${_e.borderRadiusM};
2059
+ border-radius: ${Te.borderRadiusM};
2060
2060
  background: linear-gradient(
2061
2061
  90deg,
2062
2062
  transparent,
2063
- ${_e.glareColor} calc(0.45 * ${_e.glareWidth}),
2064
- ${_e.glareColor} calc(0.55 * ${_e.glareWidth}),
2065
- transparent ${_e.glareWidth}
2066
- ), ${_e.backgroundColor};
2063
+ ${Te.glareColor} calc(0.45 * ${Te.glareWidth}),
2064
+ ${Te.glareColor} calc(0.55 * ${Te.glareWidth}),
2065
+ transparent ${Te.glareWidth}
2066
+ ), ${Te.backgroundColor};
2067
2067
  background-repeat: repeat-y;
2068
2068
  background-size: 100vw 100vh;
2069
2069
  background-attachment: fixed;
2070
- background-position: calc(${_e.glareWidth} * -1) 0;
2071
- animation: shine ${_e.animationDuration} infinite;
2070
+ background-position: calc(${Te.glareWidth} * -1) 0;
2071
+ animation: shine ${Te.animationDuration} infinite;
2072
2072
  animation-timing-function: linear;
2073
2073
  }
2074
2074
 
2075
2075
  @keyframes shine {
2076
2076
  to {
2077
- background-position: calc(100vw + ${_e.glareWidth}) 0, calc(${_e.glareWidth} * -1) 0;
2077
+ background-position: calc(100vw + ${Te.glareWidth}) 0, calc(${Te.glareWidth} * -1) 0;
2078
2078
  }
2079
2079
  }
2080
- `;var B={height:o.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-bar-border-radius","",O.borderRadiusS),mobileOpenPosition:o.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:o.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:o.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:o.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:o.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:o.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:o.external(O.colorSurface,"Design system"),colorOnSurface:o.external(O.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(O.colorOnSurfaceMedium,"Design system"),colorOutline:o.external(O.colorOutline,"Design system"),colorPrimary:o.external(O.colorPrimary,"Design system"),elevation02:o.external(O.elevation02,"Design system"),buttonColor:o.external(X.color,"Button"),buttonRippleColor:o.external(X.rippleColor,"Button"),activeItemBorderColor:o.extend("--ft-search-bar-active-border-color","",O.colorPrimary)},fu=A`
2080
+ `;var B={height:o.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-bar-border-radius","",E.borderRadiusS),mobileOpenPosition:o.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:o.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:o.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:o.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:o.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:o.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:o.external(E.colorSurface,"Design system"),colorOnSurface:o.external(E.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external(E.colorOnSurfaceMedium,"Design system"),colorOutline:o.external(E.colorOutline,"Design system"),colorPrimary:o.external(E.colorPrimary,"Design system"),elevation02:o.external(E.elevation02,"Design system"),buttonColor:o.external(X.color,"Button"),buttonRippleColor:o.external(X.rippleColor,"Button"),activeItemBorderColor:o.extend("--ft-search-bar-active-border-color","",E.colorPrimary)},Ru=w`
2081
2081
  * {
2082
2082
  box-sizing: border-box;
2083
2083
  }
@@ -2125,8 +2125,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2125
2125
  }
2126
2126
 
2127
2127
  .ft-search-bar--skeleton {
2128
- ${R(_e.height,B.height)};
2129
- ${R(_e.borderRadiusM,B.borderRadius)};
2128
+ ${A(Te.height,B.height)};
2129
+ ${A(Te.borderRadiusM,B.borderRadius)};
2130
2130
  }
2131
2131
 
2132
2132
  .ft-search-bar--floating-panel-open .ft-search-bar {
@@ -2184,11 +2184,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2184
2184
  .ft-search-bar > ft-button,
2185
2185
  .ft-search-bar--actions ft-button {
2186
2186
  flex-shrink: 0;
2187
- ${R(X.backgroundColor,"transparent")};
2187
+ ${A(X.backgroundColor,"transparent")};
2188
2188
  }
2189
2189
 
2190
2190
  .ft-search-bar--left-action {
2191
- ${R(X.borderRadius,`calc(${B.borderRadius} - 1px) 0 0 calc(${B.borderRadius} - 1px)`)};
2191
+ ${A(X.borderRadius,`calc(${B.borderRadius} - 1px) 0 0 calc(${B.borderRadius} - 1px)`)};
2192
2192
  border-right: 1px solid ${B.colorOutline};
2193
2193
  height: 100%;
2194
2194
  }
@@ -2198,7 +2198,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2198
2198
  }
2199
2199
 
2200
2200
  .ft-search-bar--floating-panel-open .ft-search-bar--left-action {
2201
- ${R(X.borderRadius,`calc(${B.borderRadius} - 1px) 0 0 0`)};
2201
+ ${A(X.borderRadius,`calc(${B.borderRadius} - 1px) 0 0 0`)};
2202
2202
  }
2203
2203
 
2204
2204
  .ft-search-bar .ft-search-bar--launch-search,
@@ -2212,9 +2212,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2212
2212
  }
2213
2213
 
2214
2214
  .ft-search-bar--left-action.ft-search-bar--content-locale {
2215
- ${R(Z.borderColor,"transparent")};
2216
- ${R(Z.borderRadius,`calc(${B.borderRadius} - 1px)`)};
2217
- ${R(W.selectedOptionColor,B.buttonColor)};
2215
+ ${A(q.borderColor,"transparent")};
2216
+ ${A(q.borderRadius,`calc(${B.borderRadius} - 1px)`)};
2217
+ ${A(G.selectedOptionColor,B.buttonColor)};
2218
2218
  }
2219
2219
 
2220
2220
  .ft-search-bar--left-action.ft-search-bar--content-locale,
@@ -2240,7 +2240,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2240
2240
  flex-direction: column;
2241
2241
  max-height: 100%;
2242
2242
  max-width: 100%;
2243
- color: ${ze.colorOnSurface};
2243
+ color: ${Ue.colorOnSurface};
2244
2244
  }
2245
2245
 
2246
2246
  [part="content-locale-selector"] > ft-radio-group {
@@ -2258,7 +2258,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2258
2258
  flex-shrink: 0;
2259
2259
  padding: 0 10px;
2260
2260
  margin-bottom: 8px;
2261
- ${R(I.fontSize,"14px")};
2261
+ ${A(T.fontSize,"14px")};
2262
2262
  }
2263
2263
 
2264
2264
  [part="content-locale-selector-label"] {
@@ -2266,18 +2266,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2266
2266
  flex-shrink: 1;
2267
2267
  flex-grow: 1;
2268
2268
  word-break: break-word;
2269
- ${R(I.lineHeight,"22px")};
2270
- ${R(I.fontWeight,"bold")};
2269
+ ${A(T.lineHeight,"22px")};
2270
+ ${A(T.fontWeight,"bold")};
2271
2271
  }
2272
2272
 
2273
- `,hu=A`
2273
+ `,_u=w`
2274
2274
  .ft-search-bar--presets {
2275
2275
  min-width: 200px;
2276
2276
  }
2277
2277
 
2278
2278
  .ft-search-bar--desktop-menu .ft-search-bar--presets {
2279
2279
  margin-right: auto;
2280
- ${R(W.optionsZIndex,"2")};
2280
+ ${A(G.optionsZIndex,"2")};
2281
2281
  }
2282
2282
 
2283
2283
  .ft-search-bar--desktop-menu {
@@ -2331,7 +2331,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2331
2331
  .ft-search-bar--desktop-menu .ft-search-bar--filters-container {
2332
2332
  display: block;
2333
2333
  height: ${B.desktopFiltersHeight};
2334
- ${R(Me.gap,"16px")};
2334
+ ${A($e.gap,"16px")};
2335
2335
  }
2336
2336
 
2337
2337
  .ft-search-bar--desktop-menu ft-filter {
@@ -2346,15 +2346,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2346
2346
  }
2347
2347
 
2348
2348
  .ft-search-bar--desktop-menu [data-filters-count="2"] ft-filter {
2349
- max-width: calc(50% - ${Me.gap} / 2);
2349
+ max-width: calc(50% - ${$e.gap} / 2);
2350
2350
  }
2351
2351
 
2352
2352
  .ft-search-bar--desktop-menu [data-filters-count="3"] ft-filter {
2353
- max-width: max(250px, calc(33% - 2 * ${Me.gap} / 3));
2353
+ max-width: max(250px, calc(33% - 2 * ${$e.gap} / 3));
2354
2354
  }
2355
2355
 
2356
2356
  .ft-search-bar--desktop-menu [data-filters-count="4"] ft-filter {
2357
- max-width: max(250px, calc(25% - 3 * ${Me.gap} / 4));
2357
+ max-width: max(250px, calc(25% - 3 * ${$e.gap} / 4));
2358
2358
  }
2359
2359
 
2360
2360
  .ft-search-bar--hierarchical-filter {
@@ -2431,16 +2431,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2431
2431
  .ft-search-bar--desktop-menu .ft-search-bar--launch-search {
2432
2432
  margin: 0;
2433
2433
  }
2434
- `;var Yt=class extends D{render(){return v`
2435
- `}};Yt.elementDefinitions={};Yt.styles=uu;var mu={"ft-skeleton":Yt};K(mu);var wt=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new re(r)}render(){let e=this.recentSearchesMatchingQuery;return v`
2434
+ `;var Zt=class extends D{render(){return y`
2435
+ `}};Zt.elementDefinitions={};Zt.styles=Au;var Lu={"ft-skeleton":Zt};j(Lu);var wt=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new te(r)}render(){let e=this.recentSearchesMatchingQuery;return y`
2436
2436
  <div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
2437
2437
  id="${this.listboxId}"
2438
2438
  role="listbox"
2439
2439
  aria-label="${this.searchBar.labelResolver.resolve("suggestionsAriaLabel")}"
2440
2440
  part="suggestions-container">
2441
- ${me(e.slice(0,5),r=>r,(r,i)=>v`
2441
+ ${he(e.slice(0,5),r=>r,(r,i)=>y`
2442
2442
  <div part="suggestion-container"
2443
- class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":_}">
2443
+ class="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":L}">
2444
2444
  <a href="${this.getRequestWithQuery(r)}"
2445
2445
  part="suggestions"
2446
2446
  class="ft-search-bar--suggestion ft-search-bar--recent-search"
@@ -2467,9 +2467,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2467
2467
  </ft-button>
2468
2468
  </div>
2469
2469
  `)}
2470
- ${me(this.searchBar.suggestions,r=>r.value,(r,i)=>v`
2470
+ ${he(this.searchBar.suggestions,r=>r.value,(r,i)=>y`
2471
2471
  <div part="suggestion-container"
2472
- class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":_}">
2472
+ class="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":L}">
2473
2473
  <a href="${this.getRequestWithQuery(r.value)}"
2474
2474
  part="suggestions"
2475
2475
  class="ft-search-bar--suggestion"
@@ -2485,9 +2485,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2485
2485
  </div>
2486
2486
  `)}
2487
2487
  </div>
2488
- `}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,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?ft.file_format:ft.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?qe.BOOK:qe.ARTICLE;break;case"DOCUMENT":i=Fp(e.mimeType,e.filenameExtension);break;case"TOPIC":i=qe.TOPICS;break;case"HTML_PACKAGE":i=qe.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=qe.FILE_CODE;break}return v`
2488
+ `}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,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?ut.file_format:ut.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?Ze.BOOK:Ze.ARTICLE;break;case"DOCUMENT":i=Jp(e.mimeType,e.filenameExtension);break;case"TOPIC":i=Ze.TOPICS;break;case"HTML_PACKAGE":i=Ze.BOX_CODE;break;case"HTML_PACKAGE_PAGE":i=Ze.FILE_CODE;break}return y`
2489
2489
  <ft-icon .variant=${r} .value=${i} part="suggestion-icon"></ft-icon>
2490
- `}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 r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.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()))}};wt.styles=[ha,A`
2490
+ `}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 r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.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()))}};wt.styles=[Aa,w`
2491
2491
  .ft-search-bar--mobile .ft-search-bar--suggestions {
2492
2492
  flex-grow: 1;
2493
2493
  flex-shrink: 1;
@@ -2575,10 +2575,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2575
2575
  }
2576
2576
 
2577
2577
  ft-ripple {
2578
- ${R(ie.opacityContentOnSurfaceHover,ie.opacityContentOnSurfaceSelected)}
2578
+ ${A(oe.opacityContentOnSurfaceHover,oe.opacityContentOnSurfaceSelected)}
2579
2579
  }
2580
- `];var At=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return v``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=v`
2581
- ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?v`
2580
+ `];var At=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return y``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=y`
2581
+ ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?y`
2582
2582
  <ft-chip part="selected-filters selected-filter-ft-locale"
2583
2583
  ?dense=${this.searchBar.dense&&!e}
2584
2584
  ?clickable=${e}
@@ -2588,46 +2588,46 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2588
2588
  ${this.getLocaleLabel(this.searchBar.contentLocale)}
2589
2589
  </ft-chip>
2590
2590
  `:null}
2591
- ${me(this.searchBar.facets,n=>n.key,n=>{let a=lp(n);return me(a,s=>{let l=n.label+": "+np(s),d=n.key.replace(":","-"),u=v`
2591
+ ${he(this.searchBar.facets,n=>n.key,n=>{let a=Ep(n);return he(a,s=>{let l=n.label+": "+xp(s),d=n.key.replace(":","-"),u=y`
2592
2592
  <ft-chip
2593
2593
  part="selected-filters selected-filter-${d}"
2594
2594
  ?dense=${this.searchBar.dense&&!e}
2595
2595
  ?clickable=${e}
2596
2596
  ?removable=${!e}
2597
- icon="${e?_:"close"}"
2597
+ icon="${e?L:"close"}"
2598
2598
  label="${l}"
2599
- title="${r?l:_}"
2599
+ title="${r?l:L}"
2600
2600
  @click=${()=>this.openMobileFilters(n.key)}
2601
- @icon-click=${()=>this.searchBar.setFilter(n.key,a.filter(h=>h!==s))}
2601
+ @icon-click=${()=>this.searchBar.setFilter(n.key,a.filter(m=>m!==s))}
2602
2602
  data-key="${n.key}"
2603
2603
  data-value="${s}">
2604
- ${ip(s)}
2604
+ ${bp(s)}
2605
2605
  </ft-chip>
2606
- `;return r?u:v`
2606
+ `;return r?u:y`
2607
2607
  <ft-tooltip inline text="${l}">
2608
2608
  ${u}
2609
2609
  </ft-tooltip>
2610
2610
  `})})}
2611
- ${e?v`
2611
+ ${e?y`
2612
2612
  <ft-chip part="selected-filters mobile-filters-opener"
2613
2613
  icon="plus"
2614
2614
  clickable
2615
2615
  @click=${()=>{this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0}}>
2616
2616
  ${this.searchBar.labelResolver.resolve("filtersButton")}
2617
2617
  </ft-chip>
2618
- `:_}
2619
- `;return r?v`
2618
+ `:L}
2619
+ `;return r?y`
2620
2620
  <ft-snap-scroll horizontal controls hideScrollbar limitSize
2621
2621
  class="ft-search-bar--selected-filters"
2622
2622
  part="selected-filters-container"
2623
2623
  exportpartsPrefix="selected-filters-container">
2624
2624
  ${i}
2625
2625
  </ft-snap-scroll>
2626
- `:v`
2626
+ `:y`
2627
2627
  <div class="ft-search-bar--selected-filters" part="selected-filters-container">
2628
2628
  ${i}
2629
2629
  </div>
2630
- `}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var n;return((n=i.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};At.styles=A`
2630
+ `}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var n;return((n=i.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};At.styles=w`
2631
2631
  .ft-search-bar--selected-filters:not(ft-snap-scroll) {
2632
2632
  flex-shrink: 0;
2633
2633
  display: flex;
@@ -2638,7 +2638,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2638
2638
 
2639
2639
  ft-snap-scroll.ft-search-bar--selected-filters {
2640
2640
  overflow: hidden;
2641
- ${R(Me.gap,"4px")};
2641
+ ${A($e.gap,"4px")};
2642
2642
  }
2643
2643
 
2644
2644
  ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
@@ -2646,8 +2646,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2646
2646
  }
2647
2647
 
2648
2648
  .ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
2649
- ${R(ke.iconSize,"17px")};
2650
- ${R(ke.fontSize,"12px")};
2649
+ ${A(Le.iconSize,"17px")};
2650
+ ${A(Le.fontSize,"12px")};
2651
2651
  }
2652
2652
 
2653
2653
  .ft-search-bar--selected-filters * {
@@ -2657,8 +2657,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2657
2657
  .ft-search-bar--selected-filters ft-chip {
2658
2658
  flex-grow: 0;
2659
2659
  }
2660
- `;var vm=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},uo=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new At(e),this.suggestManager=i??new wt(e)}render(){var e;let r={"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 v`
2661
- <div class="${ae(r)}" part="container" tabindex="-1">
2660
+ `;var Wm=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},no=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new At(e),this.suggestManager=i??new wt(e)}render(){var e;let r={"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 y`
2661
+ <div class="${ne(r)}" part="container" tabindex="-1">
2662
2662
  <div class="ft-search-bar" role="search">
2663
2663
  <div class="ft-search-bar--input-container" part="input-container">
2664
2664
  <div class="ft-search-bar--input-outline" part="input-outline">
@@ -2667,7 +2667,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2667
2667
  aria-autocomplete="list"
2668
2668
  aria-controls="${this.suggestManager.listboxId}"
2669
2669
  aria-expanded="${this.searchBar.displaySuggestListbox}"
2670
- aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:_}"
2670
+ aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:L}"
2671
2671
  part="input"
2672
2672
  type="search"
2673
2673
  placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
@@ -2681,7 +2681,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2681
2681
  </div>
2682
2682
  ${this.searchBar.displayFacets?this.searchBar.renderFacetsActions():this.selectedFacetsManager.render()}
2683
2683
  ${this.searchBar.displayFacets?this.searchBar.renderMobileFacets():this.suggestManager.render()}
2684
- ${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?v`
2684
+ ${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?y`
2685
2685
  <ft-button class="ft-search-bar--launch-search"
2686
2686
  href="${this.searchBar.searchRequestSerializer(this.searchBar.request)}"
2687
2687
  part="launch-search-in-panel"
@@ -2689,11 +2689,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2689
2689
  @click=${()=>this.searchBar.onLaunchSearch()}>
2690
2690
  ${this.searchBar.labelResolver.resolve("searchButton")}
2691
2691
  </ft-button>
2692
- `:_}
2692
+ `:L}
2693
2693
  </div>
2694
- `}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return v`
2694
+ `}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return y`
2695
2695
  <div class="ft-search-bar--actions" part="search-bar-actions">
2696
- ${e?v`
2696
+ ${e?y`
2697
2697
  <ft-button class="ft-search-bar--clear-query"
2698
2698
  part="clear-query"
2699
2699
  icon="close"
@@ -2703,7 +2703,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2703
2703
  @click=${async()=>{this.searchBar.setQuery(""),this.searchBar.mobileMenuOpen=!1,this.searchBar.displayFacets=!1}}
2704
2704
  ></ft-button>
2705
2705
  <div class="ft-search-bar--separator"></div>
2706
- `:_}
2706
+ `:L}
2707
2707
  <ft-button class="ft-search-bar--launch-search"
2708
2708
  href="${this.searchBar.isMobileMenuOpen()?this.searchBar.searchRequestSerializer(this.searchBar.request):""}"
2709
2709
  part="launch-search-in-bar"
@@ -2714,21 +2714,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2714
2714
  @click=${()=>{var r;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(r=this.searchBar.input)===null||r===void 0?void 0:r.focus()}}
2715
2715
  ></ft-button>
2716
2716
  </div>
2717
- `}onSearchBarKeyDown(e){var r;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)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}};uo.styles=A`
2717
+ `}onSearchBarKeyDown(e){var r;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)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}};no.styles=w`
2718
2718
 
2719
- `;vm([Eo()],uo.prototype,"onSearchBarKeyDown",null);var xm=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},fo=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new At(e),this.suggestManager=i??new wt(e)}render(){var e;let r={"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 v`
2720
- <div class="${ae(r)}" part="container" tabindex="-1">
2719
+ `;Wm([bo()],no.prototype,"onSearchBarKeyDown",null);var Gm=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ao=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new At(e),this.suggestManager=i??new wt(e)}render(){var e;let r={"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 y`
2720
+ <div class="${ne(r)}" part="container" tabindex="-1">
2721
2721
  <div class="ft-search-bar" part="search-bar" role="search">
2722
2722
  ${this.renderSearchBarLeftAction()}
2723
2723
  <div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
2724
2724
  <div class="ft-search-bar--input-outline" part="input-outline">
2725
- ${this.searchBar.dense?this.selectedFacetsManager.render():_}
2725
+ ${this.searchBar.dense?this.selectedFacetsManager.render():L}
2726
2726
  <input class="ft-search-bar--input ft-typography--body2"
2727
2727
  role="combobox"
2728
2728
  aria-autocomplete="list"
2729
2729
  aria-controls="${this.suggestManager.listboxId}"
2730
2730
  aria-expanded="${this.searchBar.displaySuggestListbox}"
2731
- aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:_}"
2731
+ aria-activedescendant="${(e=this.searchBar.ariaActiveDescendent)!==null&&e!==void 0?e:L}"
2732
2732
  part="input"
2733
2733
  type="search"
2734
2734
  placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
@@ -2743,9 +2743,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2743
2743
  ${this.renderDesktopSearchBarButtons()}
2744
2744
  ${this.searchBar.renderDesktopFloatingMenu()}
2745
2745
  </div>
2746
- ${this.searchBar.dense?_:this.searchBar.forceMenuOpen?this.searchBar.renderDesktopMenu():this.selectedFacetsManager.render()}
2746
+ ${this.searchBar.dense?L:this.searchBar.forceMenuOpen?this.searchBar.renderDesktopMenu():this.selectedFacetsManager.render()}
2747
2747
  </div>
2748
- `}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?_:v`
2748
+ `}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?L:y`
2749
2749
  <ft-button class="ft-search-bar--filters-opener ft-search-bar--left-action"
2750
2750
  part="filters-opener"
2751
2751
  trailingIcon
@@ -2757,24 +2757,24 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2757
2757
  >
2758
2758
  ${this.searchBar.labelResolver.resolve("filtersButton")}
2759
2759
  </ft-button>
2760
- `:this.searchBar.hasLocaleSelector()?v`
2760
+ `:this.searchBar.hasLocaleSelector()?y`
2761
2761
  <ft-select outlined
2762
2762
  class="ft-search-bar--content-locale ft-search-bar--left-action"
2763
2763
  part="content-locale select-ft-locale"
2764
2764
  ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
2765
2765
  .exportpartsPrefixes=${["content-locale","select-ft-locale"]}
2766
2766
  @change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
2767
- ${me(this.searchBar.availableContentLocales,e=>e.lang,e=>v`
2767
+ ${he(this.searchBar.availableContentLocales,e=>e.lang,e=>y`
2768
2768
  <ft-select-option .value=${e.lang}
2769
2769
  label="${e.label}"
2770
2770
  ?selected=${e.lang==this.searchBar.contentLocale}>
2771
2771
  </ft-select-option>
2772
2772
  `)}
2773
2773
  </ft-select>
2774
- `:_}renderDesktopSearchBarButtons(){return v`
2774
+ `:L}renderDesktopSearchBarButtons(){return y`
2775
2775
  <div class="ft-search-bar--actions"
2776
2776
  part="search-bar-actions">
2777
- ${this.searchBar.query?v`
2777
+ ${this.searchBar.query?y`
2778
2778
  <ft-button class="ft-search-bar--clear-query"
2779
2779
  part="clear-query"
2780
2780
  icon="close"
@@ -2793,45 +2793,45 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2793
2793
  @click=${()=>this.searchBar.onLaunchSearch()}
2794
2794
  ></ft-button>
2795
2795
  </div>
2796
- `}onSearchBarKeyDown(e){var r;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)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};fo.styles=A`
2796
+ `}onSearchBarKeyDown(e){var r;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)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};ao.styles=w`
2797
2797
 
2798
- `;xm([Eo()],fo.prototype,"onSearchBarKeyDown",null);var Y=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,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");var gu={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"},zs=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Sm=()=>{},U=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 Bt(gu,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new jt(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=ot.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 wt(this),this.selectedFacetsManager=new At(this),this.desktopSearchBarManager=new fo(this),this.mobileSearchBarManager=new uo(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new re(10),this.updateLocalesDebouncer=new re(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(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new re(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(n=>this.compareFilters(i,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(r=>{var i,n;return((n=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...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===ot.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 gi(()=>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 v`
2798
+ `;Gm([bo()],ao.prototype,"onSearchBarKeyDown",null);var Y=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,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");var ku={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"},qs=class extends CustomEvent{constructor(e){super("change",{detail:e})}},jm=()=>{},U=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 Ut(ku,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new Vt(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=rt.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 wt(this),this.selectedFacetsManager=new At(this),this.desktopSearchBarManager=new ao(this),this.mobileSearchBarManager=new no(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new te(10),this.updateLocalesDebouncer=new te(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(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new te(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(n=>this.compareFilters(i,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(r=>{var i,n;return((n=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...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===rt.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 fi(()=>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 y`
2799
2799
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2800
2800
  <div class="sr-only" aria-live="polite" aria-atomic="true">
2801
2801
  ${this.renderLiveText()}
2802
2802
  </div>
2803
2803
  ${this.renderSearchBar()}
2804
- `}renderLiveText(){return this.suggestManager.shouldDisplaySuggestions?this.labelResolver.resolve("ariaLiveSuggestions",this.suggestManager.recentSearchesMatchingQuery.length,this.suggestions.length):""}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():v`
2804
+ `}renderLiveText(){return this.suggestManager.shouldDisplaySuggestions?this.labelResolver.resolve("ariaLiveSuggestions",this.suggestManager.recentSearchesMatchingQuery.length,this.suggestions.length):""}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():y`
2805
2805
  <ft-skeleton class="ft-search-bar--container ft-search-bar--skeleton"
2806
2806
  part="loader"
2807
2807
  tabindex="-1"></ft-skeleton>
2808
- `}renderMobileFacets(){let e=this.availableContentLocales.filter(r=>r.lang===this.contentLocale).pop();return v`
2808
+ `}renderMobileFacets(){let e=this.availableContentLocales.filter(r=>r.lang===this.contentLocale).pop();return y`
2809
2809
  <ft-accordion class="ft-search-bar--filters-container">
2810
- ${this.hasLocaleSelector()?v`
2810
+ ${this.hasLocaleSelector()?y`
2811
2811
  <ft-accordion-item data-facet-key="ft:locale">
2812
2812
  <div class="ft-search-bar--filter-label" slot="toggle">
2813
2813
  <ft-typography variant="button">${this.labelResolver.resolve("contentLocaleSelector")}
2814
2814
  </ft-typography>
2815
- ${e?.label?v`
2815
+ ${e?.label?y`
2816
2816
  <ft-typography class="ft-search-bar--filter-label-values" variant="body2">
2817
2817
  ${e?.label}
2818
2818
  </ft-typography>
2819
- `:_}
2819
+ `:L}
2820
2820
  </div>
2821
2821
  <div part="content-locale-selector">
2822
2822
  ${this.getContentLocaleRadioGroup()}
2823
2823
  </div>
2824
2824
  </ft-accordion-item>
2825
2825
  `:null}
2826
- ${me(this.facets,r=>r.key,r=>{let i=xs(r),n=r.key.replace(":","-"),a=sp(i);return r.rootNodes.length>0?v`
2826
+ ${he(this.facets,r=>r.key,r=>{let i=_s(r),n=r.key.replace(":","-"),a=Sp(i);return r.rootNodes.length>0?y`
2827
2827
  <ft-accordion-item data-facet-key="${r.key}">
2828
2828
  <div class="ft-search-bar--filter-label" slot="toggle">
2829
2829
  <ft-typography variant="button">${r.label}</ft-typography>
2830
- ${a.length>0?v`
2830
+ ${a.length>0?y`
2831
2831
  <ft-typography class="ft-search-bar--filter-label-values" variant="body2">
2832
2832
  ${a.join(", ")}
2833
2833
  </ft-typography>
2834
- `:_}
2834
+ `:L}
2835
2835
  </div>
2836
2836
  <ft-filter
2837
2837
  part="filters filter filter-${n}"
@@ -2848,24 +2848,24 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2848
2848
  @change=${s=>this.setFilter(i.id,s.detail)}
2849
2849
  ></ft-filter>
2850
2850
  </ft-accordion-item>
2851
- `:_})}
2851
+ `:L})}
2852
2852
  </ft-accordion>
2853
- `}getContentLocaleRadioGroup(){var e;return v`
2853
+ `}getContentLocaleRadioGroup(){var e;return y`
2854
2854
  <ft-radio-group aria-labelledby="content_locale_radio_group_label"
2855
2855
  @change=${r=>{this.contentLocale=r.detail==="all"?void 0:r.detail,this.clearFilters()}}>
2856
- ${me((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return v`
2856
+ ${he((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return y`
2857
2857
  <ft-radio value="${(i=r.lang)!==null&&i!==void 0?i:"all"}"
2858
2858
  ?checked=${r.lang==this.contentLocale}>
2859
2859
  ${r.label}
2860
2860
  </ft-radio>
2861
2861
  `})}
2862
2862
  </ft-radio-group>
2863
- `}renderDesktopMenu(){return this.hasFacets()?v`
2863
+ `}renderDesktopMenu(){return this.hasFacets()?y`
2864
2864
  <div class="ft-search-bar--desktop-menu">
2865
2865
  ${this.renderFacetsActions()}
2866
2866
  ${this.renderDesktopFacets()}
2867
2867
  <div class="ft-search-bar--facets-actions">
2868
- ${this.forceMenuOpen?this.renderDesktopClearFilters():_}
2868
+ ${this.forceMenuOpen?this.renderDesktopClearFilters():L}
2869
2869
  <ft-button class="ft-search-bar--launch-search"
2870
2870
  href="${this.searchRequestSerializer(this.request)}"
2871
2871
  part="launch-search-in-panel"
@@ -2875,38 +2875,38 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2875
2875
  </ft-button>
2876
2876
  </div>
2877
2877
  </div>
2878
- `:_}renderFacetsActions(){var e;return v`
2878
+ `:L}renderFacetsActions(){var e;return y`
2879
2879
  <div class="ft-search-bar--facets-actions">
2880
- ${this.hasPresets?v`
2880
+ ${this.hasPresets?y`
2881
2881
  <ft-select
2882
2882
  class="ft-search-bar--presets"
2883
2883
  part="presets"
2884
2884
  label="${this.labelResolver.resolve("presetsSelector")}"
2885
2885
  outlined
2886
2886
  @change=${r=>this.selectedPreset=r.detail}>
2887
- ${me((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>v`
2887
+ ${he((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>y`
2888
2888
  <ft-select-option value="${r.name}"
2889
2889
  label="${r.name}"
2890
2890
  ?selected=${r.name===this.selectedPreset}>
2891
2891
  </ft-select-option>
2892
2892
  `)}
2893
2893
  </ft-select>
2894
- `:_}
2894
+ `:L}
2895
2895
  <slot name="facets-actions"></slot>
2896
- ${this.forceMenuOpen&&!this.isMobile()?_:this.renderDesktopClearFilters()}
2896
+ ${this.forceMenuOpen&&!this.isMobile()?L:this.renderDesktopClearFilters()}
2897
2897
  </div>
2898
- `}renderDesktopClearFilters(){return this.metadataFilters.length>0?v`
2898
+ `}renderDesktopClearFilters(){return this.metadataFilters.length>0?y`
2899
2899
  <ft-button part="facets-actions"
2900
2900
  @click=${this.clearFilters}>
2901
2901
  ${this.labelResolver.resolve("clearFilters")}
2902
2902
  </ft-button>
2903
- `:_}renderDesktopFacets(){return this.hasFacets()?v`
2903
+ `:L}renderDesktopFacets(){return this.hasFacets()?y`
2904
2904
  <ft-snap-scroll horizontal limitSize controls
2905
2905
  class="ft-search-bar--filters-container"
2906
2906
  part="filters-container"
2907
2907
  exportpartsPrefix="filters-container"
2908
2908
  data-filters-count="${this.facets.length+(this.hasLocaleSelector()?1:0)}">
2909
- ${this.hasLocaleSelector()?v`
2909
+ ${this.hasLocaleSelector()?y`
2910
2910
  <div part="content-locale-selector">
2911
2911
  <div part="content-locale-selector-header">
2912
2912
  <ft-typography variant="overline" id="content_locale_radio_group_label" part="content-locale-selector-label">
@@ -2915,8 +2915,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2915
2915
  </div>
2916
2916
  ${this.getContentLocaleRadioGroup()}
2917
2917
  </div>
2918
- `:_}
2919
- ${me(this.facets,e=>e.key,e=>{let r=xs(e),i=r.options.some(a=>{var s,l;return((l=(s=a.subOptions)===null||s===void 0?void 0:s.length)!==null&&l!==void 0?l:0)>0}),n=e.key.replace(":","-");return v`
2918
+ `:L}
2919
+ ${he(this.facets,e=>e.key,e=>{let r=_s(e),i=r.options.some(a=>{var s,l;return((l=(s=a.subOptions)===null||s===void 0?void 0:s.length)!==null&&l!==void 0?l:0)>0}),n=e.key.replace(":","-");return y`
2920
2920
  <ft-filter
2921
2921
  class="${i?"ft-search-bar--hierarchical-filter":""}"
2922
2922
  part="filters filter filter-${n}"
@@ -2935,14 +2935,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
2935
2935
  ></ft-filter>
2936
2936
  `})}
2937
2937
  </ft-snap-scroll>
2938
- `:_}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,n,a,s;if(e.has("labels")&&(this.labelResolver=new Bt(gu,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(u=>u.lang==d);l(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&l(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(l=>l.metadataFilters.forEach(d=>{d.valueFilter&&(d.valueFilter.values=d.valueFilter.values.map(u=>$i(u)))})),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 zs(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 r,i,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.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 r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),r.set(n.key,n)})).catch(Sm)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<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&&!ms&&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,r){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&Ve(n.rootNodes,a=>a.childNodes).forEach(a=>a.selected=r.includes(a.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>Ve(r.rootNodes,i=>i.childNodes).forEach(i=>i.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?_:v`
2938
+ `:L}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,n,a,s;if(e.has("labels")&&(this.labelResolver=new Ut(ku,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(u=>u.lang==d);l(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&l(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(l=>l.metadataFilters.forEach(d=>{d.valueFilter&&(d.valueFilter.values=d.valueFilter.values.map(u=>Zi(u)))})),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 qs(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 r,i,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.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 r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),r.set(n.key,n)})).catch(jm)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<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&&!Cs&&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,r){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&He(n.rootNodes,a=>a.childNodes).forEach(a=>a.selected=r.includes(a.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>He(r.rootNodes,i=>i.childNodes).forEach(i=>i.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?L:y`
2939
2939
  <div class="ft-search-bar--floating-panel"
2940
2940
  id="ft-search-bar-floating-panel"
2941
2941
  @keyup=${this.onFloatingContainerKeyUp}
2942
2942
  part="floating-panel"
2943
2943
  tabindex="-1">
2944
2944
  ${this.renderDesktopMenu()}
2945
- </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};U.elementDefinitions={"ft-accordion":Et,"ft-accordion-item":it,"ft-button":z,"ft-chip":he,"ft-filter":te,"ft-filter-option":Xe,"ft-icon":ue,"ft-ripple":q,"ft-select":ne,"ft-select-option":Ne,"ft-size-watcher":je,"ft-skeleton":Yt,"ft-snap-scroll":xe,"ft-tooltip":ye,"ft-typography":oe,"ft-radio-group":Ye,"ft-radio":Oe};U.styles=[no,Mo,fu,hu,At.styles,wt.styles,Pi];Y([m({type:Boolean})],U.prototype,"dense",void 0);Y([m()],U.prototype,"mode",void 0);Y([m({type:Boolean})],U.prototype,"forceMobileMenuOpen",void 0);Y([m({type:Boolean})],U.prototype,"forceMenuOpen",void 0);Y([m()],U.prototype,"baseUrl",void 0);Y([m()],U.prototype,"apiIntegrationIdentifier",void 0);Y([m()],U.prototype,"contentLocale",void 0);Y([T()],U.prototype,"availableContentLocales",void 0);Y([T()],U.prototype,"availableContentLocalesInitialized",void 0);Y([m()],U.prototype,"uiLocale",void 0);Y([ce({})],U.prototype,"labels",void 0);Y([ce([])],U.prototype,"displayedFilters",void 0);Y([ce([])],U.prototype,"presets",void 0);Y([m({type:String,reflect:!0})],U.prototype,"selectedPreset",void 0);Y([ce([])],U.prototype,"priors",void 0);Y([m()],U.prototype,"searchRequestSerializer",void 0);Y([m({type:Boolean})],U.prototype,"focusOnDisplay",void 0);Y([T()],U.prototype,"metadataFilters",void 0);Y([T()],U.prototype,"sizeCategory",void 0);Y([T()],U.prototype,"displayFacets",void 0);Y([T()],U.prototype,"mobileMenuOpen",void 0);Y([T()],U.prototype,"facets",void 0);Y([T()],U.prototype,"facetsInitialized",void 0);Y([M(".ft-search-bar--container")],U.prototype,"container",void 0);Y([M(".ft-search-bar--filters-opener")],U.prototype,"filtersOpener",void 0);Y([M(".ft-search-bar--floating-panel")],U.prototype,"floatingContainer",void 0);Y([M("ft-snap-scroll.ft-search-bar--filters-container")],U.prototype,"scrollingFiltersContainer",void 0);Y([M(".ft-search-bar--input")],U.prototype,"input",void 0);Y([M(".ft-search-bar--launch-search")],U.prototype,"launchSearchButton",void 0);Y([T()],U.prototype,"query",void 0);Y([T()],U.prototype,"suggestions",void 0);Y([T()],U.prototype,"recentSearches",void 0);Y([T()],U.prototype,"scrollToFacet",void 0);Y([T()],U.prototype,"api",void 0);Y([T()],U.prototype,"displaySuggestListbox",void 0);Y([T()],U.prototype,"selectedSuggestOptionId",void 0);Y([T()],U.prototype,"selectedSuggestRemoveRecent",void 0);Y([T()],U.prototype,"facetsLoaded",void 0);var yu={"ft-search-bar":U};K(yu);})();
2945
+ </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};U.elementDefinitions={"ft-accordion":Ot,"ft-accordion-item":ot,"ft-button":z,"ft-chip":fe,"ft-filter":ee,"ft-filter-option":Xe,"ft-icon":pe,"ft-ripple":Z,"ft-select":ie,"ft-select-option":Pe,"ft-size-watcher":Ge,"ft-skeleton":Zt,"ft-snap-scroll":xe,"ft-tooltip":ge,"ft-typography":re,"ft-radio-group":Ye,"ft-radio":Ee};U.styles=[Qr,To,Ru,_u,At.styles,wt.styles,Gi];Y([f({type:Boolean})],U.prototype,"dense",void 0);Y([f()],U.prototype,"mode",void 0);Y([f({type:Boolean})],U.prototype,"forceMobileMenuOpen",void 0);Y([f({type:Boolean})],U.prototype,"forceMenuOpen",void 0);Y([f()],U.prototype,"baseUrl",void 0);Y([f()],U.prototype,"apiIntegrationIdentifier",void 0);Y([f()],U.prototype,"contentLocale",void 0);Y([_()],U.prototype,"availableContentLocales",void 0);Y([_()],U.prototype,"availableContentLocalesInitialized",void 0);Y([f()],U.prototype,"uiLocale",void 0);Y([le({})],U.prototype,"labels",void 0);Y([le([])],U.prototype,"displayedFilters",void 0);Y([le([])],U.prototype,"presets",void 0);Y([f({type:String,reflect:!0})],U.prototype,"selectedPreset",void 0);Y([le([])],U.prototype,"priors",void 0);Y([f()],U.prototype,"searchRequestSerializer",void 0);Y([f({type:Boolean})],U.prototype,"focusOnDisplay",void 0);Y([_()],U.prototype,"metadataFilters",void 0);Y([_()],U.prototype,"sizeCategory",void 0);Y([_()],U.prototype,"displayFacets",void 0);Y([_()],U.prototype,"mobileMenuOpen",void 0);Y([_()],U.prototype,"facets",void 0);Y([_()],U.prototype,"facetsInitialized",void 0);Y([M(".ft-search-bar--container")],U.prototype,"container",void 0);Y([M(".ft-search-bar--filters-opener")],U.prototype,"filtersOpener",void 0);Y([M(".ft-search-bar--floating-panel")],U.prototype,"floatingContainer",void 0);Y([M("ft-snap-scroll.ft-search-bar--filters-container")],U.prototype,"scrollingFiltersContainer",void 0);Y([M(".ft-search-bar--input")],U.prototype,"input",void 0);Y([M(".ft-search-bar--launch-search")],U.prototype,"launchSearchButton",void 0);Y([_()],U.prototype,"query",void 0);Y([_()],U.prototype,"suggestions",void 0);Y([_()],U.prototype,"recentSearches",void 0);Y([_()],U.prototype,"scrollToFacet",void 0);Y([_()],U.prototype,"api",void 0);Y([_()],U.prototype,"displaySuggestListbox",void 0);Y([_()],U.prototype,"selectedSuggestOptionId",void 0);Y([_()],U.prototype,"selectedSuggestRemoveRecent",void 0);Y([_()],U.prototype,"facetsLoaded",void 0);var Tu={"ft-search-bar":U};j(Tu);})();
2946
2946
  /*! Bundled license information:
2947
2947
 
2948
2948
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: