@fluid-topics/ft-search-context 2.2.21 → 2.2.25

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 pl=Object.defineProperty;var T=(t,e)=>{for(var r in e)pl(t,r,{get:e[r],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,n=window.customElements,i=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(g,y){if(g=g.toLowerCase(),this._getDefinition(g)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${g}" has already been used with this registry`);if(this._definitionsByClass.get(y)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let x=y.prototype.attributeChangedCallback,O=new Set(y.observedAttributes||[]);m(y,O,x);let R={elementClass:y,connectedCallback:y.prototype.connectedCallback,disconnectedCallback:y.prototype.disconnectedCallback,adoptedCallback:y.prototype.adoptedCallback,attributeChangedCallback:x,formAssociated:y.formAssociated,formAssociatedCallback:y.prototype.formAssociatedCallback,formDisabledCallback:y.prototype.formDisabledCallback,formResetCallback:y.prototype.formResetCallback,formStateRestoreCallback:y.prototype.formStateRestoreCallback,observedAttributes:O};this._definitionsByTag.set(g,R),this._definitionsByClass.set(y,R);let L=r.call(n,g);L||(L=f(g),e.call(n,g,L)),this===window.customElements&&(s.set(y,R),R.standInClass=L);let D=this._awaitingUpgrade.get(g);if(D){this._awaitingUpgrade.delete(g);for(let N of D)a.delete(N),v(N,R,!0)}let _=this._whenDefinedPromises.get(g);return _!==void 0&&(_.resolve(y),this._whenDefinedPromises.delete(g)),y}upgrade(){S.push(this),n.upgrade.apply(n,arguments),S.pop()}get(g){return this._definitionsByTag.get(g)?.elementClass}_getDefinition(g){return this._definitionsByTag.get(g)}whenDefined(g){let y=this._getDefinition(g);if(y!==void 0)return Promise.resolve(y.elementClass);let x=this._whenDefinedPromises.get(g);return x===void 0&&(x={},x.promise=new Promise(O=>x.resolve=O),this._whenDefinedPromises.set(g,x)),x.promise}_upgradeWhenDefined(g,y,x){let O=this._awaitingUpgrade.get(y);O||this._awaitingUpgrade.set(y,O=new Set),x?O.add(g):O.delete(g)}};let u;window.HTMLElement=function(){let y=u;if(y)return u=void 0,y;let x=s.get(this.constructor);if(!x)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return y=Reflect.construct(t,[],x.standInClass),Object.setPrototypeOf(y,this.constructor.prototype),i.set(y,x),y},window.HTMLElement.prototype=t.prototype;let p=g=>g===document||g instanceof ShadowRoot,h=g=>{let y=g.getRootNode();if(!p(y)){let x=S[S.length-1];if(x instanceof CustomElementRegistry)return x;y=x.getRootNode(),p(y)||(y=l.get(y)?.getRootNode()||document)}return y.customElements},f=g=>class{static get formAssociated(){return!0}constructor(){let x=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(x,HTMLElement.prototype);let O=h(x)||window.customElements,R=O._getDefinition(g);return R?v(x,R):a.set(x,O),x}connectedCallback(){let x=i.get(this);x?x.connectedCallback&&x.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,g,!0)}disconnectedCallback(){let x=i.get(this);x?x.disconnectedCallback&&x.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,g,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let x=i.get(this);x&&x.formAssociated&&x?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let x=i.get(this);x?.formAssociated&&x?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let x=i.get(this);x?.formAssociated&&x?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let x=i.get(this);x?.formAssociated&&x?.formStateRestoreCallback?.apply(this,arguments)}},m=(g,y,x)=>{if(y.size===0||x===void 0)return;let O=g.prototype.setAttribute;O&&(g.prototype.setAttribute=function(D,_){let N=D.toLowerCase();if(y.has(N)){let $=this.getAttribute(N);O.call(this,N,_),x.call(this,N,$,_)}else O.call(this,N,_)});let R=g.prototype.removeAttribute;R&&(g.prototype.removeAttribute=function(D){let _=D.toLowerCase();if(y.has(_)){let N=this.getAttribute(_);R.call(this,_),x.call(this,_,N,null)}else R.call(this,_)});let L=g.prototype.toggleAttribute;L&&(g.prototype.toggleAttribute=function(D,_){let N=D.toLowerCase();if(y.has(N)){let $=this.getAttribute(N);L.call(this,N,_);let he=this.getAttribute(N);x.call(this,N,$,he)}else L.call(this,N,_)})},b=g=>{let y=Object.getPrototypeOf(g);if(y!==window.HTMLElement)return y===t?Object.setPrototypeOf(g,window.HTMLElement):b(y)},v=(g,y,x=!1)=>{Object.setPrototypeOf(g,y.elementClass.prototype),i.set(g,y),u=g;try{new y.elementClass}catch{b(y.elementClass),new y.elementClass}y.attributeChangedCallback&&y.observedAttributes.forEach(O=>{g.hasAttribute(O)&&y.attributeChangedCallback.call(g,O,null,g.getAttribute(O))}),x&&y.connectedCallback&&g.isConnected&&y.connectedCallback.call(g)},C=Element.prototype.attachShadow;Element.prototype.attachShadow=function(g){let y=C.apply(this,arguments);return g.customElements&&(y.customElements=g.customElements),y};let S=[document],w=(g,y,x=void 0)=>{let O=(x?Object.getPrototypeOf(x):g.prototype)[y];g.prototype[y]=function(){S.push(this);let R=O.apply(x||this,arguments);return R!==void 0&&l.set(R,this),S.pop(),R}};w(ShadowRoot,"createElement",document),w(ShadowRoot,"importNode",document),w(Element,"insertAdjacentHTML");let k=(g,y)=>{let x=Object.getOwnPropertyDescriptor(g.prototype,y);Object.defineProperty(g.prototype,y,{...x,set(O){S.push(this),x.set.call(this,O),S.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 g=new WeakMap,y=HTMLElement.prototype.attachInternals,x=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...D){let _=y.call(this,...D);return g.set(_,this),_},x.forEach(D=>{let _=window.ElementInternals.prototype,N=_[D];_[D]=function(...$){let he=g.get(this);if(i.get(he).formAssociated===!0)return N?.call(this,...$);throw new DOMException(`Failed to execute ${N} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class O extends Array{constructor(_){super(..._),this._elements=_}get value(){return this._elements.find(_=>_.checked===!0)?.value||""}}class R{constructor(_){let N=new Map;_.forEach(($,he)=>{let No=$.getAttribute("name"),Gi=N.get(No)||[];this[+he]=$,Gi.push($),N.set(No,Gi)}),this.length=_.length,N.forEach(($,he)=>{$&&($.length===1?this[he]=$[0]:this[he]=new O($))})}namedItem(_){return this[_]}}let L=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let D=L.get.call(this,[]),_=[];for(let N of D){let $=i.get(N);(!$||$.formAssociated===!0)&&_.push(N)}return new R(_)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,n,i)=>{var a;if(n!==null)try{e.bind(window.customElements)(r,n,i)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(r,class extends n{},i):console.info(r,n,i,s)}}}var Go={};T(Go,{CSSResult:()=>mt,LitElement:()=>ge,ReactiveElement:()=>ie,_$LE:()=>ia,_$LH:()=>$o,adoptStyles:()=>Ht,css:()=>U,defaultConverter:()=>gt,getCompatibleStyle:()=>Ar,html:()=>me,isServer:()=>hf,mathml:()=>Cl,noChange:()=>z,notEqual:()=>zt,nothing:()=>F,render:()=>zo,supportsAdoptingStyleSheets:()=>Ut,svg:()=>El,unsafeCSS:()=>Bt});var Or=globalThis,Ut=Or.ShadowRoot&&(Or.ShadyCSS===void 0||Or.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Po=Symbol(),Wi=new WeakMap,mt=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==Po)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(Ut&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=Wi.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Wi.set(r,e))}return e}toString(){return this.cssText}},Bt=t=>new mt(typeof t=="string"?t:t+"",void 0,Po),U=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((n,i,a)=>n+(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.")})(i)+t[a+1],t[0]);return new mt(r,t,Po)},Ht=(t,e)=>{if(Ut)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),i=Or.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},Ar=Ut?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return Bt(r)})(t):t;var{is:fl,defineProperty:hl,getOwnPropertyDescriptor:ml,getOwnPropertyNames:gl,getOwnPropertySymbols:yl,getPrototypeOf:bl}=Object,Rr=globalThis,ji=Rr.trustedTypes,xl=ji?ji.emptyScript:"",vl=Rr.reactiveElementPolyfillSupport,$t=(t,e)=>t,gt={toAttribute(t,e){switch(e){case Boolean:t=t?xl: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}},zt=(t,e)=>!fl(t,e),Ki={attribute:!0,type:String,converter:gt,reflect:!1,useDefault:!1,hasChanged:zt};Symbol.metadata??=Symbol("metadata"),Rr.litPropertyMetadata??=new WeakMap;var ie=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=Ki){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 n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&hl(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){let{get:i,set:a}=ml(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get:i,set(s){let l=i?.call(this);a?.call(this,s),this.requestUpdate(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ki}static _$Ei(){if(this.hasOwnProperty($t("elementProperties")))return;let e=bl(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty($t("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty($t("properties"))){let r=this.properties,n=[...gl(r),...yl(r)];for(let i of n)this.createProperty(i,r[i])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let i of n)r.unshift(Ar(i))}else e!==void 0&&r.push(Ar(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n: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 n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ht(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,n){this._$AK(e,n)}_$ET(e,r){let n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){let a=(n.converter?.toAttribute!==void 0?n.converter:gt).toAttribute(r,n.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,r){let n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=n.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:gt;this._$Em=i;let l=s.fromAttribute(r,a.type);this[i]=l??this._$Ej?.get(i)??l,this._$Em=null}}requestUpdate(e,r,n,i=!1,a){if(e!==void 0){let s=this.constructor;if(i===!1&&(a=this[e]),n??=s.getPropertyOptions(e),!((n.hasChanged??zt)(a,r)||n.useDefault&&n.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,n))))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:n,reflect:i,wrapped:a},s){n&&!(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||n||(r=void 0),this._$AL.set(e,r)),i===!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[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,a]of n){let{wrapped:s}=a,l=this[i];s!==!0||this._$AL.has(i)||l===void 0||this.C(i,void 0,a,l)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}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){}};ie.elementStyles=[],ie.shadowRootOptions={mode:"open"},ie[$t("elementProperties")]=new Map,ie[$t("finalized")]=new Map,vl?.({ReactiveElement:ie}),(Rr.reactiveElementVersions??=[]).push("2.1.2");var Mo=globalThis,qi=t=>t,_r=Mo.trustedTypes,Zi=_r?_r.createPolicy("lit-html",{createHTML:t=>t}):void 0,Do="$lit$",Re=`lit$${Math.random().toFixed(9).slice(2)}$`,Uo="?"+Re,Sl=`<${Uo}>`,qe=document,Gt=()=>qe.createComment(""),Wt=t=>t===null||typeof t!="object"&&typeof t!="function",Bo=Array.isArray,ta=t=>Bo(t)||typeof t?.[Symbol.iterator]=="function",Fo=`[
2
- \f\r]`,Vt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qi=/-->/g,Yi=/>/g,je=RegExp(`>|${Fo}(?:([^\\s"'>=/]+)(${Fo}*=${Fo}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ji=/'/g,Xi=/"/g,ra=/^(?:script|style|textarea|title)$/i,Ho=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),me=Ho(1),El=Ho(2),Cl=Ho(3),z=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),ea=new WeakMap,Ke=qe.createTreeWalker(qe,129);function oa(t,e){if(!Bo(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zi!==void 0?Zi.createHTML(e):e}var na=(t,e)=>{let r=t.length-1,n=[],i,a=e===2?"<svg>":e===3?"<math>":"",s=Vt;for(let l=0;l<r;l++){let u=t[l],p,h,f=-1,m=0;for(;m<u.length&&(s.lastIndex=m,h=s.exec(u),h!==null);)m=s.lastIndex,s===Vt?h[1]==="!--"?s=Qi:h[1]!==void 0?s=Yi:h[2]!==void 0?(ra.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=je):h[3]!==void 0&&(s=je):s===je?h[0]===">"?(s=i??Vt,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?je:h[3]==='"'?Xi:Ji):s===Xi||s===Ji?s=je:s===Qi||s===Yi?s=Vt:(s=je,i=void 0);let b=s===je&&t[l+1].startsWith("/>")?" ":"";a+=s===Vt?u+Sl:f>=0?(n.push(p),u.slice(0,f)+Do+u.slice(f)+Re+b):u+Re+(f===-2?l:b)}return[oa(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},jt=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let a=0,s=0,l=e.length-1,u=this.parts,[p,h]=na(e,r);if(this.el=t.createElement(p,n),Ke.currentNode=this.el.content,r===2||r===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=Ke.nextNode())!==null&&u.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let f of i.getAttributeNames())if(f.endsWith(Do)){let m=h[s++],b=i.getAttribute(f).split(Re),v=/([.?@])?(.*)/.exec(m);u.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?kr:v[1]==="?"?Tr:v[1]==="@"?Lr:Qe}),i.removeAttribute(f)}else f.startsWith(Re)&&(u.push({type:6,index:a}),i.removeAttribute(f));if(ra.test(i.tagName)){let f=i.textContent.split(Re),m=f.length-1;if(m>0){i.textContent=_r?_r.emptyScript:"";for(let b=0;b<m;b++)i.append(f[b],Gt()),Ke.nextNode(),u.push({type:2,index:++a});i.append(f[m],Gt())}}}else if(i.nodeType===8)if(i.data===Uo)u.push({type:2,index:a});else{let f=-1;for(;(f=i.data.indexOf(Re,f+1))!==-1;)u.push({type:7,index:a}),f+=Re.length-1}a++}}static createElement(e,r){let n=qe.createElement("template");return n.innerHTML=e,n}};function Ze(t,e,r=t,n){if(e===z)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,a=Wt(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=Ze(t,i._$AS(t,e.values),i,n)),e}var Ir=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:n}=this._$AD,i=(e?.creationScope??qe).importNode(r,!0);Ke.currentNode=i;let a=Ke.nextNode(),s=0,l=0,u=n[0];for(;u!==void 0;){if(s===u.index){let p;u.type===2?p=new yt(a,a.nextSibling,this,e):u.type===1?p=new u.ctor(a,u.name,u.strings,this,e):u.type===6&&(p=new Nr(a,this,e)),this._$AV.push(p),u=n[++l]}s!==u?.index&&(a=Ke.nextNode(),s++)}return Ke.currentNode=qe,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},yt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.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=Ze(this,e,r),Wt(e)?e===F||e==null||e===""?(this._$AH!==F&&this._$AR(),this._$AH=F):e!==this._$AH&&e!==z&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ta(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!==F&&Wt(this._$AH)?this._$AA.nextSibling.data=e:this.T(qe.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=jt.createElement(oa(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let a=new Ir(i,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=ea.get(e.strings);return r===void 0&&ea.set(e.strings,r=new jt(e)),r}k(e){Bo(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let a of e)i===r.length?r.push(n=new t(this.O(Gt()),this.O(Gt()),this,this.options)):n=r[i],n._$AI(a),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let n=qi(e).nextSibling;qi(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Qe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,a){this.type=1,this._$AH=F,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=F}_$AI(e,r=this,n,i){let a=this.strings,s=!1;if(a===void 0)e=Ze(this,e,r,0),s=!Wt(e)||e!==this._$AH&&e!==z,s&&(this._$AH=e);else{let l=e,u,p;for(e=a[0],u=0;u<a.length-1;u++)p=Ze(this,l[n+u],r,u),p===z&&(p=this._$AH[u]),s||=!Wt(p)||p!==this._$AH[u],p===F?e=F:e!==F&&(e+=(p??"")+a[u+1]),this._$AH[u]=p}s&&!i&&this.j(e)}j(e){e===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},kr=class extends Qe{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===F?void 0:e}},Tr=class extends Qe{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==F)}},Lr=class extends Qe{constructor(e,r,n,i,a){super(e,r,n,i,a),this.type=5}_$AI(e,r=this){if((e=Ze(this,e,r,0)??F)===z)return;let n=this._$AH,i=e===F&&n!==F||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==F&&(n===F||i);i&&this.element.removeEventListener(this.name,this,n),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)}},Nr=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Ze(this,e)}},$o={M:Do,P:Re,A:Uo,C:1,L:na,R:Ir,D:ta,V:Ze,I:yt,H:Qe,N:Tr,U:Lr,B:kr,F:Nr},wl=Mo.litHtmlPolyfillSupport;wl?.(jt,yt),(Mo.litHtmlVersions??=[]).push("3.3.3");var zo=(t,e,r)=>{let n=r?.renderBefore??e,i=n._$litPart$;if(i===void 0){let a=r?.renderBefore??null;n._$litPart$=i=new yt(e.insertBefore(Gt(),a),a,void 0,r??{})}return i._$AI(t),i};var Vo=globalThis,ge=class extends ie{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=zo(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return z}};ge._$litElement$=!0,ge.finalized=!0,Vo.litElementHydrateSupport?.({LitElement:ge});var Ol=Vo.litElementPolyfillSupport;Ol?.({LitElement:ge});var ia={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(Vo.litElementVersions??=[]).push("4.2.2");var hf=!1;var Wo={};T(Wo,{customElement:()=>Al,eventOptions:()=>_l,property:()=>E,query:()=>Il,queryAll:()=>Tl,queryAssignedElements:()=>Nl,queryAssignedNodes:()=>Pl,queryAsync:()=>Ll,standardProperty:()=>aa,state:()=>K});var Al=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Rl={attribute:!0,type:String,converter:gt,reflect:!1,hasChanged:zt},aa=(t=Rl,e,r)=>{let{kind:n,metadata:i}=r,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),n==="setter"&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),n==="accessor"){let{name:s}=r;return{set(l){let u=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,u,t,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,t,l),l}}}if(n==="setter"){let{name:s}=r;return function(l){let u=this[s];e.call(this,l),this.requestUpdate(s,u,t,!0,l)}}throw Error("Unsupported decorator location: "+n)};function E(t){return(e,r)=>typeof r=="object"?aa(t,e,r):((n,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,n),s?Object.getOwnPropertyDescriptor(i,a):void 0})(t,e,r)}function K(t){return E({...t,state:!0,attribute:!1})}function _l(t){return(e,r)=>{let n=typeof e=="function"?e:e[r];Object.assign(n,t)}}var le=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function Il(t,e){return(r,n,i)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof n=="object"?r:i??(()=>{let u=Symbol();return{get(){return this[u]},set(p){this[u]=p}}})();return le(r,n,{get(){let u=s.call(this);return u===void 0&&(u=a(this),(u!==null||this.hasUpdated)&&l.call(this,u)),u}})}return le(r,n,{get(){return a(this)}})}}var kl;function Tl(t){return(e,r)=>le(e,r,{get(){return(this.renderRoot??(kl??=document.createDocumentFragment())).querySelectorAll(t)}})}function Ll(t){return(e,r)=>le(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Nl(t){return(e,r)=>{let{slot:n,selector:i}=t??{},a="slot"+(n?`[name=${n}]`:":not([name])");return le(e,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(t)??[];return i===void 0?l:l.filter(u=>u.matches(i))}})}}function Pl(t){return(e,r)=>{let{slot:n}=t??{},i="slot"+(n?`[name=${n}]`:":not([name])");return le(e,r,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(t)??[]}})}}var jo={};T(jo,{repeat:()=>Fr});var ye={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},X=t=>(...e)=>({_$litDirective$:t,values:e}),ae=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:Fl}=$o,sa=t=>t;var la=t=>t.strings===void 0,ca=()=>document.createComment(""),bt=(t,e,r)=>{let n=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=n.insertBefore(ca(),i),s=n.insertBefore(ca(),i);r=new Fl(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==t;if(l){let u;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(u=t._$AU)!==s._$AU&&r._$AP(u)}if(a!==i||l){let u=r._$AA;for(;u!==a;){let p=sa(u).nextSibling;sa(n).insertBefore(u,i),u=p}}}return r},De=(t,e,r=t)=>(t._$AI(e,r),t),Ml={},da=(t,e=Ml)=>t._$AH=e,ua=t=>t._$AH,Pr=t=>{t._$AR(),t._$AA.remove()};var pa=(t,e,r)=>{let n=new Map;for(let i=e;i<=r;i++)n.set(t[i],i);return n},Fr=X(class extends ae{constructor(t){if(super(t),t.type!==ye.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let n;r===void 0?r=e:e!==void 0&&(n=e);let i=[],a=[],s=0;for(let l of t)i[s]=n?n(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:i}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,n]){let i=ua(t),{values:a,keys:s}=this.dt(e,r,n);if(!Array.isArray(i))return this.ut=s,a;let l=this.ut??=[],u=[],p,h,f=0,m=i.length-1,b=0,v=a.length-1;for(;f<=m&&b<=v;)if(i[f]===null)f++;else if(i[m]===null)m--;else if(l[f]===s[b])u[b]=De(i[f],a[b]),f++,b++;else if(l[m]===s[v])u[v]=De(i[m],a[v]),m--,v--;else if(l[f]===s[v])u[v]=De(i[f],a[v]),bt(t,u[v+1],i[f]),f++,v--;else if(l[m]===s[b])u[b]=De(i[m],a[b]),bt(t,i[f],i[m]),m--,b++;else if(p===void 0&&(p=pa(s,b,v),h=pa(l,f,m)),p.has(l[f]))if(p.has(l[m])){let C=h.get(s[b]),S=C!==void 0?i[C]:null;if(S===null){let w=bt(t,i[f]);De(w,a[b]),u[b]=w}else u[b]=De(S,a[b]),bt(t,i[f],S),i[C]=null;b++}else Pr(i[m]),m--;else Pr(i[f]),f++;for(;b<=v;){let C=bt(t,u[v+1]);De(C,a[b]),u[b++]=C}for(;f<=m;){let C=i[f++];C!==null&&Pr(C)}return this.ut=s,da(t,u),z}});var Ko={};T(Ko,{classMap:()=>Dl});var Dl=X(class extends ae{constructor(t){if(super(t),t.type!==ye.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(n=>n!=="")));for(let n in e)e[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(e)}let r=t.element.classList;for(let n of this.st)n in e||(r.remove(n),this.st.delete(n));for(let n in e){let i=!!e[n];i===this.st.has(n)||this.nt?.has(n)||(i?(r.add(n),this.st.add(n)):(r.remove(n),this.st.delete(n)))}return z}});var qo={};T(qo,{styleMap:()=>Bl});var fa="important",Ul=" !"+fa,Bl=X(class extends ae{constructor(t){if(super(t),t.type!==ye.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 n=t[r];return n==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}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 n of this.ft)e[n]==null&&(this.ft.delete(n),n.includes("-")?r.removeProperty(n):r[n]=null);for(let n in e){let i=e[n];if(i!=null){this.ft.add(n);let a=typeof i=="string"&&i.endsWith(Ul);n.includes("-")||a?r.setProperty(n,a?i.slice(0,-11):i,a?fa:""):r[n]=i}}return z}});var Zo={};T(Zo,{UnsafeHTMLDirective:()=>xt,unsafeHTML:()=>Hl});var xt=class extends ae{constructor(e){if(super(e),this.it=F,e.type!==ye.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===F||e==null)return this._t=void 0,this.it=e;if(e===z)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:[]}}};xt.directiveName="unsafeHTML",xt.resultType=1;var Hl=X(xt);var Qo={};T(Qo,{splitBreadcrumbForMenu:()=>$l});function $l(t,e=0,r=0){if(t.length===0)return{beforeMenu:[],inMenu:[],afterMenu:[]};let n=Math.max(r,1),i=t.slice(n*-1);return e+n>=t.length?{beforeMenu:[],inMenu:[],afterMenu:t}:{beforeMenu:t.slice(0,e),inMenu:t.slice(e,t.length-i.length),afterMenu:i}}var nn={};T(nn,{CacheRegistry:()=>ve,ClearCacheEvent:()=>Qt});var Yo={};T(Yo,{CancelablePromise:()=>Mr,CanceledPromiseError:()=>be,cancelable:()=>vt});var be=class extends Error{constructor(e,r,n){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=n}},Mr=class extends Promise{constructor(e){super((r,n)=>e(i=>{this.isCanceled?n(new be("Promise has been canceled",i)):r(i)},i=>{this.isCanceled?n(new be("Promise has been canceled",void 0,i)):n(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},vt=t=>new Mr((e,r)=>t.then(e).catch(r));var on={};T(on,{FtNotificationEvent:()=>Zt,PostResizeEvent:()=>rn,PreResizeEvent:()=>tn,WithEventBus:()=>Ie,withEventBus:()=>Br});var en={};T(en,{applyMixinOnce:()=>W,customElements:()=>qt,dateReviver:()=>jl,deepCopy:()=>ee,deepEqual:()=>Q,delay:()=>Ur,eventPathContainsMatchingElement:()=>ql,everyDeep:()=>Wl,flatDeep:()=>ya,forEachDeep:()=>ba,getComposedPathTo:()=>Xo,groupBy:()=>Jl,hasChanged:()=>xe,ignoreComposingEvents:()=>Yl,last:()=>Zl,minmax:()=>_e,parseDate:()=>va,randomId:()=>Ql,someDeep:()=>xa,unslotText:()=>Sa,waitFor:()=>ga,waitUntil:()=>Gl});var Jo={};T(Jo,{customElement:()=>Kt,dateProperty:()=>Vl,isNumber:()=>ma,jsonProperty:()=>te,jsonPropertyConverter:()=>ha,numberProperty:()=>Dr,optionalNumberProperty:()=>zl});var Kt=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},ha=t=>({fromAttribute:e=>{if(e==null)return ee(t);try{return JSON.parse(e)}catch{return ee(t)}},toAttribute:e=>JSON.stringify(e)});function te(t,e){return E({type:Object,converter:ha(t),hasChanged:xe,...e??{}})}function zl(t){return Dr(t)}function Dr(t){return E({type:Object,converter:{fromAttribute:e=>{var r,n;if(e==null)return;let i=(r=t?.min)!==null&&r!==void 0?r:-1/0,a=(n=t?.max)!==null&&n!==void 0?n:1/0;return ma(e)?_e(i,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function ma(t){return!isNaN(parseFloat(t))}function Vl(t){return E({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 Ur=t=>new Promise(e=>setTimeout(e,t));async function Gl(t,e=10,r=2e4){await ga(async()=>await t()||void 0,e,r)}async function ga(t,e=10,r=2e4){let n=await t(),i=performance.now(),a=i;for(;n==null&&(!r||a-i<r);)await Ur(e),n=await t(),a=performance.now();if(n==null)throw new Error("Timeout exceeded");return n}function ya(t,e){return t.flatMap(r=>[r,...ya(e(r),e)])}function ba(t,e,r){let n=(i,a)=>{var s;for(let l=0;l<i.length;l++){let u=i[l];if(!(((s=r(u,l,i,a))!==null&&s!==void 0?s:!0)&&n(e(u),[...a,u])))return!1}return!0};n(t,[])}function xa(t,e,r){let n=!1;return ba(t,e,(i,a,s,l)=>(n=!!r(i,a,s,l),!n)),n}function Wl(t,e,r){return!xa(t,e,(n,i,a,s)=>!r(n,i,a,s))}function jl(...t){return(e,r)=>t.includes(e)?va(r):r}function va(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,n,i)=>r+n+":"+i),new Date(t)}function Kl(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,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Q(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Q(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[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 i=s=>Object.keys(s).filter(l=>s[l]!=null),a=i(t);if(r=a.length,r!==i(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=r;n--!==0;){let s=a[n];if(!Q(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Q(t,e){try{return Kl(t,e)}catch{return!1}}function xe(t,e){return!Q(t,e)}function ql(t,e,r=window.document.body){if(e.length>0){let n=t.composedPath();for(let i of n){if(i===r)return!1;if(i.matches&&e.some(a=>i.matches(a)))return!0}}return!1}function _e(t,e,r){return Math.min(Math.max(t,e),r)}function Zl(t){return t[t.length-1]}function Sa(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>Sa(e)).join(""):t?.textContent||""}function Xo(t){let e=[],r=n=>{n.stopPropagation(),e=n.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 ee(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Ql(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function W(t,e){let r=n=>n[t]===!0;return n=>{if(r(n))return n;let i=e(n);return i[t]=!0,i}}function Yl(){return function(t,e,r){let n=r.value;r.value=function(i,...a){if(i.isComposing||i.keyCode===229){i.stopPropagation();return}return n.apply(this,[i].concat(a))}}}function qt(t){for(let[e,r]of Object.entries(t))Kt(e)(r)}function Jl(t,e){var r,n;let i=typeof e=="function"?e:s=>s[e],a={};for(let s of t)((r=a[n=i(s)])!==null&&r!==void 0?r:a[n]=[]).push(s);return a}var Zt=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},tn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},rn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},Br=W(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),Ie=class extends Br(Object){};var Qt=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},ve=class extends Ie{constructor(){super(...arguments),this.content={}}register(e,r,n=!1){var i;let a=this.content[e],s=(i=a?.status)!==null&&i!==void 0?i:"REGISTERED";this.content[e]={...a,loader:r,final:n,status:s}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let n=Object.keys(this.content).filter(e).filter(i=>this.clear(i,!1)!=null);return r&&n.length>0&&this.dispatchEvent(new Qt(n)),n}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new Qt([e])),e}forceClear(e){var r;let n=this.content[e];n&&(this.clearClearTimeout(e),(r=n.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:n.loader,final:n.final,status:"REGISTERED"})}clearClearTimeout(e){var r,n,i;((r=this.content[e])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((n=this.content[e])===null||n===void 0?void 0:n.clearTimeout),(i=this.content[e])===null||i===void 0||delete i.clearTimeout)}set(e,r,n=!1){this.forceClear(e);let i=async()=>r,a="RESOLVED";this.content[e]={loader:i,final:n,status:a,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,n){if(!this.isRegistered(e)){if(!r)throw new Error("Unknown cache key "+e);this.register(e,r)}let i=this.content[e];switch(i.status){case"ERROR":throw i.error;case"LOADING":return i.promise;case"RESOLVED":return i.value;case"REGISTERED":return r=r??i.loader,i.status="LOADING",i.promise=vt(r()),i.promise.then(a=>(i.status="RESOLVED",i.value=a,n!=null&&(this.clearClearTimeout(e),i.clearTimeout=window.setTimeout(()=>this.clear(e),n)),a)).catch(a=>{var s;throw!((s=i.promise)===null||s===void 0)&&s.isCanceled||(i.status="ERROR",i.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,n;return((r=this.content[e])===null||r===void 0?void 0:r.status)!==void 0&&((n=this.content[e])===null||n===void 0?void 0:n.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 pn={};T(pn,{ClusteringHelper:()=>un,formatHierarchicalValues:()=>dn});var ln={};T(ln,{accessBreadcrumb:()=>sd,accessResult:()=>Jt,accessResultId:()=>id,accessResultUrl:()=>ad,enrichReaderUrl:()=>cn});var sn={};T(sn,{SearchPlaceConverter:()=>ke,SearchPlaceQueryParams:()=>I,isSearchPlaceQueryParams:()=>as,serializeRequest:()=>od});var Xl=t=>typeof t=="object"&&t!=null;var ed=t=>typeof t=="number",Hr=t=>typeof t=="string",an=t=>Xl(t)&&Hr(t.endpoint)&&Hr(t.method)&&Hr(t.statusText)&&Hr(t.body)&&ed(t.status),Ea;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ea||(Ea={}));var Ca;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Ca||(Ca={}));var wa;(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"})(wa||(wa={}));var Ue;(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"})(Ue||(Ue={}));var Oa;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Oa||(Oa={}));var Aa;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Aa||(Aa={}));var Ra;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Ra||(Ra={}));var Ye;(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"})(Ye||(Ye={}));var _a;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(_a||(_a={}));var Ia;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Ia||(Ia={}));var ka;(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"})(ka||(ka={}));var Ta;(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"})(Ta||(Ta={}));var La;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(La||(La={}));var Na;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Na||(Na={}));var Pa;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Pa||(Pa={}));var Fa;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Fa||(Fa={}));var Ma;(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"})(Ma||(Ma={}));var Be;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Be||(Be={}));var Da;(function(t){t.ASC="ASC",t.DESC="DESC"})(Da||(Da={}));var Ua;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ua||(Ua={}));var Je;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Je||(Je={}));var Ga=t=>Object.keys(Je).includes(t);var Ba;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ba||(Ba={}));var Ha;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Ha||(Ha={}));var $a;(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"})($a||($a={}));var St;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(St||(St={}));var Wa=t=>Object.keys(St).includes(t);var Se;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Se||(Se={}));var Et;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Et||(Et={}));var za;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(za||(za={}));var B;(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"})(B||(B={}));var se;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(se||(se={}));var Va;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Va||(Va={}));var ja;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(ja||(ja={}));var Ka;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ka||(Ka={}));var qa;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(qa||(qa={}));var Za;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Za||(Za={}));var Qa;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Qa||(Qa={}));var Ya;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ya||(Ya={}));var Ja;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ja||(Ja={}));var Xa;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Xa||(Xa={}));var es;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(es||(es={}));var ts;(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"})(ts||(ts={}));var rs;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(rs||(rs={}));var td={[B.PERSONAL_BOOK_SHARE_USER]:[B.PERSONAL_BOOK_USER],[B.HTML_EXPORT_USER]:[B.PERSONAL_BOOK_USER],[B.PDF_EXPORT_USER]:[B.PERSONAL_BOOK_USER],[B.KHUB_ADMIN]:[B.CONTENT_PUBLISHER],[B.ADMIN]:[B.KHUB_ADMIN,B.USERS_ADMIN,B.PORTAL_ADMIN,B.BEHAVIOR_DATA_USER],[B.GENERATIVE_AI_EXPORT_USER]:[B.GENERATIVE_AI_USER]};function os(t,e){return t===e||(td[t]??[]).some(r=>os(r,e))}function Yt(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(n=>os(n,e))}function ns(t,...e){return t==null?!1:e.some(r=>Yt(t,r))}function rd(t){return`"${t}"`}function is(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function od(t,e){return new ke(t).serialize(e)}var I;(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"})(I||(I={}));var nd=new Set(Object.values(I));function as(t){return nd.has(t)}var ke=class t{constructor(e,r=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=n,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"}}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let n=r==null||r.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,r=!1){var n,i,a,s,l,u,p,h,f;let m=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&m.append(I.LOCALE,e.contentLocale):m.append(I.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&m.append(I.QUERY,e.query);let b=t.serializeValueFilters(e.metadataFilters);b&&m.append(I.VALUE_FILTERS,b);let v=t.serializeNegativeValueFilters(e.metadataFilters);v&&m.append(I.NEGATIVE_VALUE_FILTERS,v);let C=(u=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(g=>g.dateFilter))!==null&&u!==void 0?u:[];if(C.length>0){let g=C.map(y=>{var x;return`${y.key}~${(x=y.dateFilter)===null||x===void 0?void 0:x.type.toLowerCase()}`}).join("*");m.append(I.DATE_FILTERS,g)}let S=(p=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(g=>g.rangeFilter))!==null&&p!==void 0?p:[];if(S.length>0){let g=S.map(y=>{var x,O;return`${y.key}~${(x=y.rangeFilter)===null||x===void 0?void 0:x.from}_${(O=y.rangeFilter)===null||O===void 0?void 0:O.to}`}).join("*");m.append(I.RANGE_FILTERS,g)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&m.append(I.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&m.append(I.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&m.append(I.SORT,e.sortId),!((s=e.paging)===null||s===void 0)&&s.perPage&&((h=(l=e.paging)===null||l===void 0?void 0:l.perPage)!==null&&h!==void 0?h:this.defaultPerPage)!=this.defaultPerPage&&m.append(I.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&m.append(I.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let w=(f=e.otherQueryParams)!==null&&f!==void 0?f:{};for(let g in w)m.append(g,w[g]);let k=new Array;return m.forEach((g,y)=>{k.push(this.encodeQueryString(y)+"="+this.encodeQueryString(g))}),encodeURI(k.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(e){var r,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(w){console.warn("Could not decode search request query params, fallback on raw value",w)}let u=new URLSearchParams(e),p=u.get(I.LOCALE)==="all"?void 0:u.get(I.LOCALE),h=((n=u.get(I.VIRTUAL_FIELD))!==null&&n!==void 0?n:"EVERYWHERE").toUpperCase(),f=(r=u.get(I.SORT))===null||r===void 0?void 0:r.toLowerCase(),m=(i=u.get(I.SCOPE))!==null&&i!==void 0?i:"default",b=+((a=u.get(I.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),v=u.get(I.KEYWORD_MATCH),C=v?v.toUpperCase()===Be.MANDATORY?Be.MANDATORY:Be.OPTIONAL:void 0,S={};for(let w of u.keys())as(w)||(S[w]=u.get(w));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=u.get(I.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:Ga(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(u),facets:[],paging:{page:1,perPage:_e(1,isNaN(b)?this.defaultPerPage:b,1e3)},keywordMatch:C,otherQueryParams:S}}parseCompatFilters(e){var r,n,i,a,s,l,u;let p=[];return e.has(I.FILTERS)&&(p=t.parseValueFilters((r=e.get(I.FILTERS))!==null&&r!==void 0?r:"")),(n=e.has(I.PERIOD))!==null&&n!==void 0&&n&&(p=[...p,...this.parseLegacyPeriodFilter(((i=e.get(I.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...p,...t.parseValueFilters((a=e.get(I.VALUE_FILTERS))!==null&&a!==void 0?a:""),...t.parseValueFilters((s=e.get(I.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(I.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((u=e.get(I.RANGE_FILTERS))!==null&&u!==void 0?u:"")]}static splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}static parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(n=>({key:n[0],valueFilter:{values:n[1].split("_").map(is).map(i=>this.unescapeFilterValue(i)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:St[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}static escapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(r,n);return e}static superEscapeFilters(e){for(let[r,n,i]of t.filtersEscapeMapping)e=e.replaceAll(n,i);return e}static unescapeFilterValue(e){for(let[r,n,i]of t.filtersEscapeMapping)e=e.replaceAll(i,r);return e}parseLegacyPeriodFilter(e){if(Wa(e))return[{key:"ft:lastEdition",dateFilter:{type:St[e]}}];if(e.startsWith("CUSTOM_")){let[r,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}static serializeValueFilter(e){var r,n;let i=((n=(r=e.valueFilter)===null||r===void 0?void 0:r.values)!==null&&n!==void 0?n:[]).map(a=>t.escapeFilters(a)).map(a=>rd(is(a))).join("_");return`${e.key}~${i}`}static serializeValueFilters(e){var r;let n=(r=e?.filter(i=>i.valueFilter&&!i.valueFilter.negative))!==null&&r!==void 0?r:[];if(n.length>0)return n.map(t.serializeValueFilter).join("*")}static serializeNegativeValueFilters(e){var r;let n=(r=e?.filter(i=>i.valueFilter&&i.valueFilter.negative))!==null&&r!==void 0?r:[];if(n.length>0)return n.map(t.serializeValueFilter).join("*")}static clearSearchParamsInUrl(e){let r=new URL(e);return[I.LOCALE,I.FILTERS,I.VALUE_FILTERS,I.NEGATIVE_VALUE_FILTERS,I.DATE_FILTERS,I.RANGE_FILTERS].forEach(i=>{r.searchParams.delete(i)}),r.toString()}static updateLocaleParamInUrl(e,r){let n=new URL(e);return n.searchParams.delete(I.LOCALE),r!==void 0&&n.searchParams.append(I.LOCALE,r),n.toString()}};ke.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]];function Jt(t){var e,r,n,i;return(i=(n=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&n!==void 0?n:t?.htmlPackage)!==null&&i!==void 0?i:t?.htmlPackagePage}function id(t){var e,r,n,i,a,s,l,u,p;return(p=(u=(l=(s=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&s!==void 0?s:(r=t?.topic)===null||r===void 0?void 0:r.tocId)!==null&&l!==void 0?l:(n=t?.document)===null||n===void 0?void 0:n.documentId)!==null&&u!==void 0?u:(i=t?.htmlPackage)===null||i===void 0?void 0:i.packageId)!==null&&p!==void 0?p:(a=t?.htmlPackagePage)===null||a===void 0?void 0:a.contentId}function ad(t,e){var r,n,i,a,s,l,u,p,h;return(h=(p=(u=(l=cn((r=t?.map)===null||r===void 0?void 0:r.readerUrl,e))!==null&&l!==void 0?l:cn((n=t?.topic)===null||n===void 0?void 0:n.readerUrl,e))!==null&&u!==void 0?u:(i=t?.document)===null||i===void 0?void 0:i.viewerUrl)!==null&&p!==void 0?p:(a=t?.htmlPackage)===null||a===void 0?void 0:a.viewerUrl)!==null&&h!==void 0?h:(s=t?.htmlPackagePage)===null||s===void 0?void 0:s.viewerUrl}function sd(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 cn(t,e){if(e&&t){let r=URL.parse(t),n=ke.serializeValueFilters(e);if(n&&r?.searchParams.append(I.VALUE_FILTERS,n),r)return r.toString()}return t}function dn(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var un=class t{constructor(e,r,n,i){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=n,this.metadataDescriptors=i}static findResultWithMetadataValue(e,r,n){return e?.find(i=>{var a;return((a=this.extractResultMetadata({result:i}).find(s=>s.key==r))===null||a===void 0?void 0:a.value)==n})}static extractResultMetadata(e){var r,n;let i=(n=(r=Jt(e.result))===null||r===void 0?void 0:r.metadata)!==null&&n!==void 0?n:[];return e.key==null?t.flattenMetadata(i,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(i.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,n){if(Array.isArray(e))return e.map(a=>t.flattenMetadata(a,r,n)).filter(a=>a!=null);let i=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!i))if(i){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=>n?n(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,r,n="No value",i,a){var s,l;let u=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),p=(l=u?.label)!==null&&l!==void 0?l:(s=this.getMetadataDescriptor(e))===null||s===void 0?void 0:s.label;return this.allResults.map(f=>t.extractResultMetadata({result:f,key:e,hierarchicalValueTruncatingLevel:i,dateFormatter:a})).map(f=>f??{key:e,label:p,value:void 0,displayValue:n}).filter(f=>f.value!=u?.value).filter((f,m,b)=>b.findIndex(v=>v.value===f.value)===m).map(f=>({result:this.findBestResultForMetadataValue(e,f.value),metadata:f})).sort((f,m)=>this.compareMetadata(f.metadata.value,m.metadata.value,e,r))}compareMetadata(e,r,n,i){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(n),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let u=e.localeCompare(r,i,{numeric:!0});return l?u*-1:u}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let n=this.allResults.filter(u=>{var p;return((p=t.extractResultMetadata({result:u,key:e}))===null||p===void 0?void 0:p.value)==r}),a=[...t.extractResultMetadata({result:this.selectedResult}).filter(u=>this.clusteringMetadata.has(u.key)).filter(u=>u.key!==e)],s,l=-1;for(let u of n){let p=this.countMatchingMetadata(u,a);if(p>l&&(l=p,s=u,p===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(n=>r.some(i=>i.key===n.key&&i.value===n.value)).length}};var fn={};T(fn,{Debouncer:()=>ce});var ce=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,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let i=(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 n)try{await s()}catch(l){i(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 yn={};T(yn,{designSystemVariables:()=>jd});var gn={};T(gn,{DesignSystemFamily:()=>Xt,DesignSystemSize:()=>er,FtCssVariableFactory:()=>o,badge:()=>Cd,banner:()=>Ed,button:()=>dd,card:()=>ud,chart:()=>Bd,checkbox:()=>md,chip:()=>xd,chipChoice:()=>bd,chipGroup:()=>vd,collapsible:()=>Dd,combobox:()=>Fd,dateRangePicker:()=>Wd,drawer:()=>kd,eventCard:()=>pd,floatingMenu:()=>Pd,foundation:()=>c,link:()=>Sd,modal:()=>_d,notice:()=>$d,notification:()=>Vd,pageDesigner:()=>Hd,pageFooter:()=>Ad,pageHeader:()=>Od,pageLayout:()=>Rd,popover:()=>Md,radio:()=>gd,reorderableList:()=>Id,resolveFamilyClass:()=>hn,resolveSizeClass:()=>mn,semantic:()=>d,setVariable:()=>Ct,stickyToc:()=>hd,switch_:()=>Ud,table:()=>yd,tabs:()=>Td,textArea:()=>Nd,textInput:()=>Ld,titleBreadcrumb:()=>wd,toggle:()=>zd,tooltip:()=>Gd,treeList:()=>fd,typographies:()=>cd,typographyBody1Medium:()=>ps,typographyBody1Regular:()=>us,typographyBody1Semibold:()=>fs,typographyBody2Medium:()=>ms,typographyBody2MediumUnderline:()=>gs,typographyBody2Regular:()=>hs,typographyBody2Semibold:()=>ys,typographyCaption1Medium:()=>bs,typographyCaption1Semibold:()=>xs,typographyCaption2Bold:()=>Es,typographyCaption2Medium:()=>vs,typographyCaption2Semibold:()=>Ss,typographyDisplay:()=>ss,typographyTitle1:()=>cs,typographyTitle2:()=>ls,typographyTitle3:()=>ds,typographyVariants:()=>ld});var He=t=>typeof t=="string"?Bt(t):t,o=class{static create(e,r,n,i){let a=l=>He(l??i),s=U`var(${He(e)}, ${a(i)})`;return s.name=e,s.description=r,s.category=n,s.defaultValue=i,s.defaultCssValue=a,s.set=l=>Ct(s,l??a(i)),s.get=l=>U`var(${He(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(e,r,n,i){let a=l=>n.get(l??i),s=U`var(${He(e)}, ${a(i)})`;return s.name=e,s.description=r,s.category=n.category,s.fallbackVariable=n,s.defaultValue=i,s.defaultCssValue=a,s.set=l=>Ct(s,l??a(i)),s.get=l=>U`var(${He(e)}, ${a(l)})`,s.breadcrumb=()=>[n.name,...n.breadcrumb()],s.lastResortDefaultValue=()=>i??n.lastResortDefaultValue(),s}static external(e,r){let n=a=>e.defaultCssValue(a),i=U`var(${He(e.name)}, ${n(e.defaultValue)})`;return i.name=e.name,i.category=e.category,i.fallbackVariable=e.fallbackVariable,i.defaultValue=e.defaultValue,i.context=r,i.defaultCssValue=n,i.set=a=>e.set(a),i.get=a=>U`var(${He(e.name)}, ${n(a)})`,i.breadcrumb=()=>e.breadcrumb(),i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};function Ct(t,e){return He(`${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)")},ss={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")},cs={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")},ls={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")},ds={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")},us={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")},ps={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")},fs={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")},hs={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")},ms={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")},gs={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")},ys={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")},bs={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")},xs={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")},vs={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")},Ss={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")},Es={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")},cd={display:ss,"title-1":cs,"title-2":ls,"title-3":ds,"body-1-regular":us,"body-1-medium":ps,"body-1-semibold":fs,"body-2-regular":hs,"body-2-medium":ms,"body-2-medium-underline":gs,"body-2-semibold":ys,"caption-1-medium":bs,"caption-1-semibold":xs,"caption-2-medium":vs,"caption-2-semibold":Ss,"caption-2-bold":Es},ld=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var d={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 dd={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","",d.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",d.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",d.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",d.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","",d.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",d.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",d.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",d.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","",d.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",d.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",d.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","",d.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",d.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",d.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","",d.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",d.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",d.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","",d.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",d.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",d.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","",d.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",d.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",d.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","",d.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",d.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",d.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","",d.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","",d.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",d.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",d.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",d.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","",d.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",d.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",d.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",d.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","",d.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",d.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",d.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",d.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","",d.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",d.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",d.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",d.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","",d.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",d.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",d.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",d.contentErrorPrimary)};var ud={borderRadius:o.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:o.extend("--ftds-card-focus-focus-ring-color","",d.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","",d.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:o.extend("--ftds-card-non-selectable-default-background-color","",d.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:o.extend("--ftds-card-non-selectable-default-border-color","",d.borderGlobalSecondary),nonSelectableHoverBorderColor:o.extend("--ftds-card-non-selectable-hover-border-color","",d.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:o.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:o.extend("--ftds-card-non-selectable-focus-border-color","",d.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:o.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:o.extend("--ftds-card-internal-border-color","",d.borderGlobalSecondary),selectableUnselectedBorderWidth:o.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:o.extend("--ftds-card-selectable-unselected-state-layer-color","",d.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:o.extend("--ftds-card-selectable-unselected-default-background-color","",d.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:o.extend("--ftds-card-selectable-unselected-default-border-color","",d.borderGlobalSecondary),selectableUnselectedHoverBorderColor:o.extend("--ftds-card-selectable-unselected-hover-border-color","",d.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:o.extend("--ftds-card-selectable-unselected-focus-border-color","",d.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:o.extend("--ftds-card-selectable-selected-border-color","",d.borderActionPrimary),selectableSelectedBorderWidth:o.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:o.extend("--ftds-card-selectable-selected-state-layer-color","",d.contentActionPrimary),selectableSelectedBackgroundColor:o.extend("--ftds-card-selectable-selected-background-color","",d.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 pd={borderRadius:o.extend("--ftds-event-card-border-radius","",c.borderRadiusS),borderWidth:o.create("--ftds-event-card-border-width","","SIZE","1px"),backgroundColor:o.extend("--ftds-event-card-background-color","",d.backgroundGlobalSurface),thumbnailWidth:o.extend("--ftds-event-card-thumbnail-width","",c.spacing8),thumbnailIconSize:o.extend("--ftds-event-card-thumbnail-icon-size","",c.iconSize4),slotHorizontalPadding:o.extend("--ftds-event-card-slot-horizontal-padding","",c.spacing2),slotVerticalPadding:o.extend("--ftds-event-card-slot-vertical-padding","",c.spacing2),primaryThumbnailIconColor:o.extend("--ftds-event-card-primary-thumbnail-icon-color","",d.contentGlobalOnColor),secondaryThumbnailBackgroundColor:o.extend("--ftds-event-card-secondary-thumbnail-background-color","",d.backgroundGlobalSurface)};var fd={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","",d.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",d.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",d.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","",d.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","",d.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",d.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",d.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",d.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",d.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",d.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",d.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",d.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",d.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",d.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","",d.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",d.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","",d.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",d.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",d.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",d.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","",d.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",d.contentGlobalSecondary)};var hd={titleColor:o.extend("--ftds-sticky-toc-title-color","",d.contentGlobalSubtle),titleGap:o.extend("--ftds-sticky-toc-title-gap","",c.spacing2),itemGap:o.create("--ftds-sticky-toc-item-gap","","SIZE","0px"),itemHorizontalPadding:o.extend("--ftds-sticky-toc-item-horizontal-padding","",c.spacing4),itemVerticalPadding:o.extend("--ftds-sticky-toc-item-vertical-padding","",c.spacing3),itemBorderRadius:o.extend("--ftds-sticky-toc-item-border-radius","",c.borderRadiusS),itemBorderWidth:o.create("--ftds-sticky-toc-item-border-width","","SIZE","1px"),itemFocusFocusRingColor:o.extend("--ftds-sticky-toc-item-focus-focus-ring-color","",d.borderActionFocusRing),itemFocusFocusRingWidth:o.create("--ftds-sticky-toc-item-focus-focus-ring-width","","SIZE","3px"),itemRootDefaultLabelColor:o.extend("--ftds-sticky-toc-item-root-default-label-color","",d.contentGlobalSecondary),itemRootDefaultBorderColor:o.extend("--ftds-sticky-toc-item-root-default-border-color","",d.borderGlobalSubtle),itemRootHoverLabelColor:o.extend("--ftds-sticky-toc-item-root-hover-label-color","",d.contentGlobalSecondary),itemRootHoverBorderColor:o.extend("--ftds-sticky-toc-item-root-hover-border-color","",d.borderGlobalSubtle),itemRootHoverStateLayerColor:o.extend("--ftds-sticky-toc-item-root-hover-state-layer-color","",d.contentGlobalSecondary),itemRootHoverStateLayerOpacity:o.extend("--ftds-sticky-toc-item-root-hover-state-layer-opacity","",c.opacity8),itemRootFocusLabelColor:o.extend("--ftds-sticky-toc-item-root-focus-label-color","",d.contentGlobalSecondary),itemRootFocusStateLayerColor:o.extend("--ftds-sticky-toc-item-root-focus-state-layer-color","",d.contentGlobalSecondary),itemRootFocusStateLayerOpacity:o.extend("--ftds-sticky-toc-item-root-focus-state-layer-opacity","",c.opacity8),itemRootSelectedLabelColor:o.extend("--ftds-sticky-toc-item-root-selected-label-color","",d.contentActionPrimary),itemRootSelectedBorderColor:o.extend("--ftds-sticky-toc-item-root-selected-border-color","",d.borderActionPrimary),itemRootSelectedBorderWidth:o.create("--ftds-sticky-toc-item-root-selected-border-width","","SIZE","3px"),itemRootSelectedStateLayerColor:o.extend("--ftds-sticky-toc-item-root-selected-state-layer-color","",d.contentActionPrimary),itemRootSelectedStateLayerOpacity:o.extend("--ftds-sticky-toc-item-root-selected-state-layer-opacity","",c.opacity8),itemRootChildrenActiveLabelColor:o.extend("--ftds-sticky-toc-item-root-children-active-label-color","",d.contentActionPrimary),itemRootChildrenActiveBorderColor:o.extend("--ftds-sticky-toc-item-root-children-active-border-color","",d.borderGlobalSubtle),itemChildDefaultLabelColor:o.extend("--ftds-sticky-toc-item-child-default-label-color","",d.contentGlobalSubtle),itemChildDefaultBorderColor:o.extend("--ftds-sticky-toc-item-child-default-border-color","",d.borderGlobalSubtle),itemChildHoverLabelColor:o.extend("--ftds-sticky-toc-item-child-hover-label-color","",d.contentGlobalSubtle),itemChildHoverBorderColor:o.extend("--ftds-sticky-toc-item-child-hover-border-color","",d.borderGlobalSubtle),itemChildHoverStateLayerColor:o.extend("--ftds-sticky-toc-item-child-hover-state-layer-color","",d.contentGlobalSecondary),itemChildHoverStateLayerOpacity:o.extend("--ftds-sticky-toc-item-child-hover-state-layer-opacity","",c.opacity8),itemChildFocusLabelColor:o.extend("--ftds-sticky-toc-item-child-focus-label-color","",d.contentGlobalSubtle),itemChildFocusStateLayerColor:o.extend("--ftds-sticky-toc-item-child-focus-state-layer-color","",d.contentGlobalSecondary),itemChildFocusStateLayerOpacity:o.extend("--ftds-sticky-toc-item-child-focus-state-layer-opacity","",c.opacity8),itemChildSelectedLabelColor:o.extend("--ftds-sticky-toc-item-child-selected-label-color","",d.contentActionPrimary),itemChildSelectedBorderColor:o.extend("--ftds-sticky-toc-item-child-selected-border-color","",d.borderActionPrimary),itemChildSelectedBorderWidth:o.create("--ftds-sticky-toc-item-child-selected-border-width","","SIZE","3px"),itemChildSelectedStateLayerColor:o.extend("--ftds-sticky-toc-item-child-selected-state-layer-color","",d.contentActionPrimary),itemChildSelectedStateLayerOpacity:o.extend("--ftds-sticky-toc-item-child-selected-state-layer-opacity","",c.opacity8)};var md={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.spacing2),color:o.extend("--ftds-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",d.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","",d.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","",d.borderErrorPrimary),errorStateLayerColor:o.extend("--ftds-checkbox-error-state-layer-color","",d.contentErrorPrimary),errorHelperTextColor:o.extend("--ftds-checkbox-error-helper-text-color","",d.borderErrorPrimary),errorCheckedBackgroundColor:o.extend("--ftds-checkbox-error-checked-background-color","",d.contentErrorPrimary),helperTextColor:o.extend("--ftds-checkbox-helper-text-color","",d.contentGlobalSubtle),groupVerticalGap:o.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var gd={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",d.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",d.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","",d.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",d.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","",d.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 yd={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",d.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",d.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",d.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",d.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",d.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",d.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","",d.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","",d.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 bd={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","",d.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","",d.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",d.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",d.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",d.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","",d.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","",d.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",d.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",d.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",d.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",d.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 xd={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","",d.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",d.borderGlobalSecondary),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",d.borderErrorSubtle)};var vd={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","",d.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","",d.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","",d.contentActionPrimary)};var Sd={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",d.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",d.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",d.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",d.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",d.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",d.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",d.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",d.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",d.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",d.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",d.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",d.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",d.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",d.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",d.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:o.extend("--ftds-link-horizontal-gap","",c.spacing1)};var Ed={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","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",d.borderInfoSubtle)};var Cd={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","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",d.contentActionPrimary)};var wd={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",d.contentGlobalSubtle)};var Od={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.spacing2),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",d.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",d.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","",d.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var Ad={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","",d.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var Rd={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var _d={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","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",d.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",d.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","",d.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 Id={grabberIconSize:o.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize2),verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",c.spacing4),itemGap:o.extend("--ftds-reorderable-list-item-gap","",c.spacing2),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","",d.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","",d.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","",d.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","",d.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",d.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",d.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","",d.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",d.backgroundGlobalOnSurfaceDark)};var kd={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",d.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","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",d.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","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",d.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 Td={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","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",d.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",d.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","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",d.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",d.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","",d.borderActionFocusRing),mainIconIconSize:o.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:o.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var Ld={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","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",d.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","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",d.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","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var Nd={backgroundColor:o.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:o.extend("--ftds-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-area-default-helper-text-color","",d.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","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-area-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-area-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-area-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-area-warning-helper-icon-color","",d.contentWarningIconOnly),focusFocusRingColor:o.extend("--ftds-text-area-focus-focus-ring-color","",d.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","72px"),fieldMaxHeight:o.create("--ftds-text-area-field-max-height","","SIZE","300px"),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 Pd={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","",d.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",d.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",d.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","",d.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",d.contentActionPrimary),multiselectCheckedColor:o.extend("--ftds-floating-menu-multiselect-checked-color","",d.contentGlobalPrimary),multiselectCheckedIconColor:o.extend("--ftds-floating-menu-multiselect-checked-icon-color","",d.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","",d.contentActionPrimary),multiselectIndeterminatedColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-color","",d.contentGlobalPrimary),multiselectIndeterminatedIconColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",d.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","",d.contentGlobalPrimary),multiselectUncheckedColor:o.extend("--ftds-floating-menu-multiselect-unchecked-color","",d.contentGlobalPrimary),multiselectUncheckedIconColor:o.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",d.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","",d.contentActionPrimary),selectAllCheckedColor:o.extend("--ftds-floating-menu-select-all-checked-color","",d.contentGlobalPrimary),selectAllCheckedIconColor:o.extend("--ftds-floating-menu-select-all-checked-icon-color","",d.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","",d.contentGlobalPrimary),selectAllIndeterminatedColor:o.extend("--ftds-floating-menu-select-all-indeterminated-color","",d.contentGlobalPrimary),selectAllIndeterminatedIconColor:o.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",d.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","",d.contentGlobalPrimary),selectAllUncheckedColor:o.extend("--ftds-floating-menu-select-all-unchecked-color","",d.contentGlobalPrimary),selectAllUncheckedIconColor:o.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",d.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","",d.contentGlobalPrimary),defaultUncheckedColor:o.extend("--ftds-floating-menu-default-unchecked-color","",d.contentGlobalPrimary),defaultUncheckedIconColor:o.extend("--ftds-floating-menu-default-unchecked-icon-color","",d.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","",d.contentActionPrimary),defaultCheckedColor:o.extend("--ftds-floating-menu-default-checked-color","",d.contentActionPrimary),defaultCheckedIconColor:o.extend("--ftds-floating-menu-default-checked-icon-color","",d.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 Fd={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","",d.contentGlobalSubtle),menuNewValueBorderColor:o.extend("--ftds-combobox-menu-new-value-border-color","",d.borderGlobalPrimary),menuNewValueBorderWidth:o.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:o.extend("--ftds-combobox-menu-new-value-error-background-color","",d.backgroundErrorSubtle),menuNewValueErrorBorderColor:o.extend("--ftds-combobox-menu-new-value-error-border-color","",d.borderErrorPrimary),menuNewValueErrorStateLayerColor:o.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",d.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","",d.contentGlobalSubtle),valuesChipBackgroundColor:o.extend("--ftds-combobox-values-chip-background-color","",d.backgroundGlobalOnSurface),valuesChipBorderColor:o.extend("--ftds-combobox-values-chip-border-color","",d.borderInputPrimary)};var Md={backgroundColor:o.extend("--ftds-popover-background-color","",d.backgroundGlobalOnSurface),titleColor:o.extend("--ftds-popover-title-color","",d.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",d.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 Dd={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","",d.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","",d.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",d.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var Ud={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","",d.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",d.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","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",d.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","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",d.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","",d.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var Bd={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 Hd={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 $d={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","",d.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",d.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",d.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",d.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",d.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",d.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 zd={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","",d.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",d.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","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",d.contentActionPrimary),color:o.extend("--ftds-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",c.spacing3)};var Vd={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","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",d.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 Gd={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","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",d.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 Wd={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 Xt;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Xt||(Xt={}));var er;(function(t){t.large="large",t.medium="medium",t.small="small"})(er||(er={}));function hn(t){return`ftds--family-${t}`}function mn(t){return`ftds--size-${t}`}var jd={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 bn={};T(bn,{DynamicImporter:()=>$r,dynamicImporter:()=>Kd});var $r=class{async import(e){if(e)return import(e)}},Kd=new $r;var kn={};T(kn,{computeOffsetAutoPosition:()=>bu,computeOffsetPosition:()=>yu});var ws=["top","right","bottom","left"],Cs=["start","end"],vn=ws.reduce((t,e)=>t.concat(e,e+"-"+Cs[0],e+"-"+Cs[1]),[]),Xe=Math.min,Ee=Math.max,tr=Math.round;var Ce=t=>({x:t,y:t}),qd={left:"right",right:"left",bottom:"top",top:"bottom"};function Os(t,e,r){return Ee(t,Xe(e,r))}function wt(t,e){return typeof t=="function"?t(e):t}function et(t){return t.split("-")[0]}function we(t){return t.split("-")[1]}function Sn(t){return t==="x"?"y":"x"}function En(t){return t==="y"?"height":"width"}function Ot(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Cn(t){return Sn(Ot(t))}function As(t,e,r){r===void 0&&(r=!1);let n=we(t),i=Cn(t),a=En(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=xn(s)),[s,xn(s)]}function Rs(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function xn(t){let e=et(t);return qd[e]+t.slice(e.length)}function Zd(t){var e,r,n,i;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(n=t.bottom)!=null?n:0,left:(i=t.left)!=null?i:0}}function _s(t){return typeof t!="number"?Zd(t):{top:t,right:t,bottom:t,left:t}}function tt(t){let{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function Is(t,e,r){let{reference:n,floating:i}=t,a=Ot(e),s=Cn(e),l=En(s),u=et(e),p=a==="y",h=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,m=n[l]/2-i[l]/2,b;switch(u){case"top":b={x:h,y:n.y-i.height};break;case"bottom":b={x:h,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:f};break;case"left":b={x:n.x-i.width,y:f};break;default:b={x:n.x,y:n.y}}let v=we(e);return v&&(b[s]+=m*(v==="end"?1:-1)*(r&&p?-1:1)),b}async function ks(t,e){var r;e===void 0&&(e={});let{x:n,y:i,platform:a,rects:s,elements:l,strategy:u}=t,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:m=!1,padding:b=0}=wt(e,t),v=_s(b),S=l[m?f==="floating"?"reference":"floating":f],w=tt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(S)))==null||r?S:S.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:u})),k=f==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,g=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),y=await(a.isElement==null?void 0:a.isElement(g))&&await(a.getScale==null?void 0:a.getScale(g))||{x:1,y:1},x=tt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:k,offsetParent:g,strategy:u}):k);return{top:(w.top-x.top+v.top)/y.y,bottom:(x.bottom-w.bottom+v.bottom)/y.y,left:(w.left-x.left+v.left)/y.x,right:(x.right-w.right+v.right)/y.x}}var Qd=50,Ts=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:ks},u=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:h,y:f}=Is(p,n,u),m=n,b=0,v={};for(let C=0;C<a.length;C++){let S=a[C];if(!S)continue;let{name:w,fn:k}=S,{x:g,y,data:x,reset:O}=await k({x:h,y:f,initialPlacement:n,placement:m,strategy:i,middlewareData:v,rects:p,platform:l,elements:{reference:t,floating:e}});h=g??h,f=y??f,v[w]={...v[w],...x},O&&b<Qd&&(b++,typeof O=="object"&&(O.placement&&(m=O.placement),O.rects&&(p=O.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):O.rects),{x:h,y:f}=Is(p,m,u)),C=-1)}return{x:h,y:f,placement:m,strategy:i,middlewareData:v}};function Yd(t,e,r){return(t?[...r.filter(i=>we(i)===t),...r.filter(i=>we(i)!==t)]:r.filter(i=>et(i)===i)).filter(i=>t?we(i)===t||(e?Rs(i)!==i:!1):!0)}var Ls=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;let{rects:a,middlewareData:s,placement:l,platform:u,elements:p}=e,{crossAxis:h=!1,alignment:f,allowedPlacements:m=vn,autoAlignment:b=!0,...v}=wt(t,e),C=f!==void 0||m===vn?Yd(f||null,b,m):m,S=((r=s.autoPlacement)==null?void 0:r.index)||0,w=C[S];if(w==null)return{};if(l!==w)return{reset:{placement:C[0]}};let k=await u.detectOverflow(e,v),g=As(w,a,await(u.isRTL==null?void 0:u.isRTL(p.floating))),y=[k[et(w)],k[g[0]],k[g[1]]],x=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:w,overflows:y}],O=C[S+1];if(O)return{data:{index:S+1,overflows:x},reset:{placement:O}};let R=x.map(_=>{let N=we(_.placement);return[_.placement,N&&h?_.overflows.slice(0,2).reduce(($,he)=>$+he,0):_.overflows[0],_.overflows]}).sort((_,N)=>_[1]-N[1]),D=((i=R.filter(_=>_[2].slice(0,we(_[0])?2:3).every(N=>N<=0))[0])==null?void 0:i[0])||R[0][0];return D!==l?{data:{index:S+1,overflows:x},reset:{placement:D}}:{}}}};var Jd=new Set(["left","top"]);async function Xd(t,e){let{placement:r,platform:n,elements:i}=t,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=et(r),l=we(r),u=Ot(r)==="y",p=Jd.has(s)?-1:1,h=a&&u?-1:1,f=wt(e,t),{mainAxis:m,crossAxis:b,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof v=="number"&&(b=l==="end"?v*-1:v),u?{x:b*h,y:m*p}:{x:m*p,y:b*h}}var Ns=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;let{x:i,y:a,placement:s,middlewareData:l}=e,u=await Xd(e,t);return s===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:s}}}}},Ps=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:n,placement:i,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:k=>{let{x:g,y}=k;return{x:g,y}}},...p}=wt(t,e),h={x:r,y:n},f=await a.detectOverflow(e,p),m=Ot(i),b=Sn(m),v=h[b],C=h[m],S=(k,g)=>Os(g+f[k==="y"?"top":"left"],g,g-f[k==="y"?"bottom":"right"]);s&&(v=S(b,v)),l&&(C=S(m,C));let w=u.fn({...e,[b]:v,[m]:C});return{...w,data:{x:w.x-r,y:w.y-n,enabled:{[b]:s,[m]:l}}}}}};var Fs=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:n,platform:i,elements:a}=e,{apply:s=()=>{},...l}=wt(t,e),u=await i.detectOverflow(e,l),p=et(r),h=we(r),f=Ot(r)==="y",{width:m,height:b}=n.floating,v,C;p==="top"||p==="bottom"?(v=p,C=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(C=p,v=h==="end"?"top":"bottom");let S=b-u.top-u.bottom,w=m-u.left-u.right,k=Xe(b-u[v],S),g=Xe(m-u[C],w),y=e.middlewareData.shift,x=!y,O=k,R=g;y!=null&&y.enabled.x&&(R=w),y!=null&&y.enabled.y&&(O=S),x&&!h&&(f?R=m-2*Ee(u.left,u.right):O=b-2*Ee(u.top,u.bottom)),await s({...e,availableWidth:R,availableHeight:O});let L=await i.getDimensions(a.floating);return m!==L.width||b!==L.height?{reset:{rects:!0}}:{}}}};function Vr(){return typeof window<"u"}function ot(t){return Ds(t)?(t.nodeName||"").toLowerCase():"#document"}function J(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Te(t){var e;return(e=(Ds(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ds(t){return Vr()?t instanceof Node||t instanceof J(t).Node:!1}function de(t){return Vr()?t instanceof Element||t instanceof J(t).Element:!1}function Le(t){return Vr()?t instanceof HTMLElement||t instanceof J(t).HTMLElement:!1}function Ms(t){return!Vr()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof J(t).ShadowRoot}function rr(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=ue(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&i!=="inline"&&i!=="contents"}function Us(t){return/^(table|td|th)$/.test(ot(t))}function or(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var eu=/transform|translate|scale|rotate|perspective|filter/,tu=/paint|layout|strict|content/,rt=t=>!!t&&t!=="none",wn;function At(t){let e=de(t)?ue(t):t;return rt(e.transform)||rt(e.translate)||rt(e.scale)||rt(e.rotate)||rt(e.perspective)||!Gr()&&(rt(e.backdropFilter)||rt(e.filter))||eu.test(e.willChange||"")||tu.test(e.contain||"")}function Bs(t){let e=$e(t);for(;Le(e)&&!Rt(e);){if(At(e))return e;if(or(e))return null;e=$e(e)}return null}function Gr(){return wn==null&&(wn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),wn}function Rt(t){return/^(html|body|#document)$/.test(ot(t))}function ue(t){return J(t).getComputedStyle(t)}function nr(t){return de(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function $e(t){if(ot(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Ms(t)&&t.host||Te(t);return Ms(e)?e.host:e}function Hs(t){let e=$e(t);return Rt(e)?(t.ownerDocument||t).body:Le(e)&&rr(e)?e:Hs(e)}function zr(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=Hs(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),s=J(i);if(a){let l=Wr(s);return e.concat(s,s.visualViewport||[],rr(i)?i:[],l&&r?zr(l):[])}else return e.concat(i,zr(i,[],r))}function Wr(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Vs(t){let e=ue(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=Le(t),a=i?t.offsetWidth:r,s=i?t.offsetHeight:n,l=tr(r)!==a||tr(n)!==s;return l&&(r=a,n=s),{width:r,height:n,$:l}}function Gs(t){return de(t)?t:t.contextElement}function _t(t){let e=Gs(t);if(!Le(e))return Ce(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:a}=Vs(e),s=(a?tr(r.width):r.width)/n,l=(a?tr(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var ru=Ce(0);function Ws(t){let e=J(t);return!Gr()||!e.visualViewport?ru:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ou(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===J(t)}function ir(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),a=Gs(t),s=Ce(1);e&&(n?de(n)&&(s=_t(n)):s=_t(t));let l=ou(a,r,n)?Ws(a):Ce(0),u=(i.left+l.x)/s.x,p=(i.top+l.y)/s.y,h=i.width/s.x,f=i.height/s.y;if(a&&n){let m=J(a),b=de(n)?J(n):n,v=m,C=Wr(v);for(;C&&b!==v;){let S=_t(C),w=C.getBoundingClientRect(),k=ue(C),g=w.left+(C.clientLeft+parseFloat(k.paddingLeft))*S.x,y=w.top+(C.clientTop+parseFloat(k.paddingTop))*S.y;u*=S.x,p*=S.y,h*=S.x,f*=S.y,u+=g,p+=y,v=J(C),C=Wr(v)}}return tt({width:h,height:f,x:u,y:p})}function jr(t,e){let r=nr(t).scrollLeft;return e?e.left+r:ir(Te(t)).left+r}function js(t,e){let r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-jr(t,r),i=r.top+e.scrollTop;return{x:n,y:i}}function nu(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t,a=i==="fixed",s=Te(n),l=e?or(e.floating):!1;if(n===s||l&&a)return r;let u={scrollLeft:0,scrollTop:0},p=Ce(1),h=Ce(0),f=Le(n);if((f||!a)&&((ot(n)!=="body"||rr(s))&&(u=nr(n)),f)){let b=ir(n);p=_t(n),h.x=b.x+n.clientLeft,h.y=b.y+n.clientTop}let m=s&&!f&&!a?js(s,u):Ce(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-u.scrollLeft*p.x+h.x+m.x,y:r.y*p.y-u.scrollTop*p.y+h.y+m.y}}function iu(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function au(t){let e=nr(t),r=t.ownerDocument.body,n=Ee(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ee(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+jr(t),s=-e.scrollTop;return ue(r).direction==="rtl"&&(a+=Ee(t.clientWidth,r.clientWidth)-n),{width:n,height:i,x:a,y:s}}var su=25;function cu(t,e,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",i=J(t),a=Te(t),s=i.visualViewport,l=a.clientWidth,u=a.clientHeight,p=0,h=0;if(s){let m=!Gr()||e==="fixed";n?m||(p=-s.offsetLeft,h=-s.offsetTop):(l=s.width,u=s.height,m&&(p=s.offsetLeft,h=s.offsetTop))}if(jr(a)<=0){let m=a.ownerDocument,b=m.body,v=getComputedStyle(b),C=m.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,S=Math.abs(a.clientWidth-b.clientWidth-C),w=getComputedStyle(a).scrollbarGutter==="stable both-edges"?S/2:S;w<=su&&(l-=w)}return{width:l,height:u,x:p,y:h}}function lu(t,e){let r=ir(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,a=_t(t),s=t.clientWidth*a.x,l=t.clientHeight*a.y,u=i*a.x,p=n*a.y;return{width:s,height:l,x:u,y:p}}function $s(t,e,r){let n;if(e==="viewport"||e==="layoutViewport")n=cu(t,r,e);else if(e==="document")n=au(Te(t));else if(de(e))n=lu(e,r);else{let i=Ws(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return tt(n)}function du(t,e){let r=e.get(t);if(r)return r;let n=zr(t,[],!1).filter(l=>de(l)&&ot(l)!=="body"),i=null,a=ue(t).position==="fixed",s=a?$e(t):t;for(;de(s)&&!Rt(s);){let l=ue(s),u=At(s),p=i?i.position:a?"fixed":"";!u&&(p==="fixed"||p==="absolute"&&l.position==="static")?n=n.filter(f=>f!==s):i=l,s=$e(s)}return e.set(t,n),n}function uu(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,s=[...r==="clippingAncestors"?or(e)?[]:du(e,this._c):[].concat(r),n],l=$s(e,s[0],i),u=l.top,p=l.right,h=l.bottom,f=l.left;for(let m=1;m<s.length;m++){let b=$s(e,s[m],i);u=Ee(b.top,u),p=Xe(b.right,p),h=Xe(b.bottom,h),f=Ee(b.left,f)}return{width:p-f,height:h-u,x:f,y:u}}function pu(t){let{width:e,height:r}=Vs(t);return{width:e,height:r}}function fu(t,e,r){let n=Le(e),i=Te(e),a=r==="fixed",s=ir(t,!0,a,e),l={scrollLeft:0,scrollTop:0},u=Ce(0);if((n||!a)&&((ot(e)!=="body"||rr(i))&&(l=nr(e)),n)){let m=ir(e,!0,a,e);u.x=m.x+e.clientLeft,u.y=m.y+e.clientTop}!n&&i&&(u.x=jr(i));let p=i&&!n&&!a?js(i,l):Ce(0),h=s.left+l.scrollLeft-u.x-p.x,f=s.top+l.scrollTop-u.y-p.y;return{x:h,y:f,width:s.width,height:s.height}}function On(t){return ue(t).position==="static"}function zs(t,e){if(!Le(t)||ue(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Te(t)===r&&(r=r.ownerDocument.body),r}function Ks(t,e){let r=J(t);if(or(t))return r;if(!Le(t)){let i=$e(t);for(;i&&!Rt(i);){if(de(i)&&!On(i))return i;i=$e(i)}return r}let n=zs(t,e);for(;n&&Us(n)&&On(n);)n=zs(n,e);return n&&Rt(n)&&On(n)&&!At(n)?r:n||Bs(t)||r}var hu=async function(t){let e=this.getOffsetParent||Ks,r=this.getDimensions,n=await r(t.floating);return{reference:fu(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function mu(t){return ue(t).direction==="rtl"}var It={convertOffsetParentRelativeRectToViewportRelativeRect:nu,getDocumentElement:Te,getClippingRect:uu,getOffsetParent:Ks,getElementRects:hu,getClientRects:iu,getDimensions:pu,getScale:_t,isElement:de,isRTL:mu};var qs=Ns,An=Ls,Zs=Ps;var Qs=Fs;var Rn=(t,e,r)=>{let n=new Map,i=r??{},a={...It,...i.platform,_c:n};return Ts(t,e,{...i,platform:a})};function In(t){return gu(t)}function _n(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function gu(t){for(let e=t;e;e=_n(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=_n(t);e;e=_n(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||At(r)||e.tagName==="BODY"))return e}return null}async function yu(t,e,r){let n;return typeof r=="object"?n=r:n={placement:r},Rn(t,e,{strategy:n.strategy,platform:{...It,getOffsetParent:i=>It.getOffsetParent(i,In)},middleware:[Zs({crossAxis:!0}),An({allowedPlacements:[n.placement]})]})}async function bu(t,e,r,n,i,a,s){let l,u;return typeof r=="object"?(l=r.placement,n=r.allowedPlacements,i=r.strategy,a=r.maxHeightCssVariable,u=r.maxWidthCssVariable,s=r.offsetValue):l=r,Rn(t,e,{placement:l,strategy:i,platform:{...It,getOffsetParent:p=>It.getOffsetParent(p,In)},middleware:[qs(s??4),An({allowedPlacements:n}),Qs({apply({availableHeight:p,availableWidth:h,elements:f}){typeof a=="string"&&(a=`var(${a})`),a?f.floating.style.maxHeight=`min(${Math.max(0,p)}px, ${a})`:f.floating.style.maxHeight=`${Math.max(0,p)}px`,typeof u=="string"&&(u=`var(${u})`),u?f.floating.style.maxWidth=`min(${Math.max(0,h)}px, ${u})`:f.floating.style.maxWidth=`${Math.max(0,h)}px`}})]})}var Tn={};T(Tn,{isSlotEmptyOrWithoutContent:()=>xu});var xu=t=>t?t.assignedNodes({flatten:!0}).filter(n=>{var i;return n.nodeType===Node.TEXT_NODE?((i=n.textContent)!==null&&i!==void 0?i:"").trim().length>0:!0}).length===0:!0;var Dn={};T(Dn,{FtdsBase:()=>Mn,toFtdsBase:()=>oc});var Fn={};T(Fn,{ExportpartsUpdatedEvent:()=>nt,FtLitElement:()=>re});var Ln={};T(Ln,{ScopedRegistryLitElement:()=>ar});var ar=class extends ge{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},n=this.renderOptions.creationScope=this.attachShadow(r);return Ht(n,e.elementStyles),n}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(e,r){Kt(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 Pn={};T(Pn,{shadowQuerySelector:()=>Nn,shadowQuerySelectorAll:()=>vu});function Nn(t,e,...r){var n;let i=t.querySelector(e);for(let a of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function vu(t,e,...r){let n=[...t.querySelectorAll(e)];for(let i of r)n=n.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return n}var kt=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ec,Ys=Symbol("constructorPrototype"),Js=Symbol("constructorName"),tc=Symbol("exportpartsDebouncer"),Xs=Symbol("dynamicDependenciesLoaded"),nt=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};nt.eventName="exportparts-updated";var re=class extends ar{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ec]=new ce(5),this.scheduleExportpartsUpdate=()=>{var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[tc].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.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[Js]=this.constructor.name,this[Ys]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Js]&&Object.setPrototypeOf(this,this[Ys])}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(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[Xs]||(r[Xs]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(nt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(nt.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 nt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let a=[...i??[],n];r=Nn(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}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,n,i,a,s,l;let u=m=>m!=null&&m.trim().length>0,p=e.filter(u).map(m=>m.trim());if(p.length===0){this.exportparts=void 0;return}let h=new Set;for(let m of(a=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&a!==void 0?a:[]){let b=(s=(n=m.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&s!==void 0?s:[],v=(l=(i=m.getAttribute("exportparts"))===null||i===void 0?void 0:i.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[],C=[...b,...v].filter(u).map(S=>S.trim());for(let S of C)h.add(S)}if(h.size===0){this.exportparts=void 0;return}let f=[...h.values()].flatMap(m=>p.map(b=>`${m}:${b}--${m}`));this.exportparts=[...this.part,...f].join(", ")}};ec=tc;kt([E()],re.prototype,"exportpartsPrefix",void 0);kt([te([])],re.prototype,"exportpartsPrefixes",void 0);kt([E({reflect:!0})],re.prototype,"exportparts",void 0);kt([E()],re.prototype,"customStylesheet",void 0);kt([E()],re.prototype,"elementToFocus",void 0);kt([K()],re.prototype,"useAdoptedStyleSheets",void 0);var rc=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},oc=W(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=er.medium,this.family=Xt.neutral}getDesignSystemBaseClasses(){return{[hn(this.family)]:!0,[mn(this.size)]:!0}}}return rc([E()],e.prototype,"size",void 0),rc([E()],e.prototype,"family",void 0),e}),Mn=class extends oc(re){};var nc={};var Hn={};T(Hn,{highlightHtml:()=>Bn,highlightHtmlColorCssVariable:()=>ic,highlightHtmlStyles:()=>Eu});var it=class t{constructor(e,r=!0,n=[],i=5e3){this.ctx=e,this.iframes=r,this.exclude=n,this.iframesTimeout=i}static matches(e,r){let n=typeof r=="string"?[r]:r,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(i){let a=!1;return n.every(s=>i.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(n=>{let i=r.filter(a=>a.contains(n)).length>0;r.indexOf(n)===-1&&!i&&r.push(n)}),r}getIframeContents(e,r,n=()=>{}){let i;try{let a=e.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{n()}i&&r(i)}isIframeBlank(e){let r="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&n!==r&&n}observeIframeLoad(e,r,n){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,n))}catch{n()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,n){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,n):this.getIframeContents(e,r,n):this.observeIframeLoad(e,r,n)}catch{n()}}waitForIframes(e,r){let n=0;this.forEachIframe(e,()=>!0,i=>{n++,this.waitForIframes(i.querySelector("html"),()=>{--n||r()})},i=>{i||r()})}forEachIframe(e,r,n,i=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let u=()=>{--s<=0&&i(l)};s||u(),a.forEach(p=>{t.matches(p,this.exclude)?u():this.onIframeReady(p,h=>{r(p)&&(l++,n(h)),u()},u)})}createIterator(e,r,n){return document.createNodeIterator(e,r,n,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,n){let i=e.compareDocumentPosition(n),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(r!==null){let s=r.compareDocumentPosition(n),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),n;return r===null?n=e.nextNode():n=e.nextNode()&&e.nextNode(),{prevNode:r,node:n}}checkIframeFilter(e,r,n,i){let a=!1,s=!1;return i.forEach((l,u)=>{l.val===n&&(a=u,s=l.handled)}),this.compareNodeIframe(e,r,n)?(a===!1&&!s?i.push({val:n,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:n,handled:!1}),!1)}handleOpenIframes(e,r,n,i){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,n,i)})})}iterateThroughNodes(e,r,n,i,a){let s=this.createIterator(r,e,i),l=[],u=[],p,h,f=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;f();)this.iframes&&this.forEachIframe(r,m=>this.checkIframeFilter(p,h,m,l),m=>{this.createInstanceOnIframe(m).forEachNode(e,b=>u.push(b),i)}),u.push(p);u.forEach(m=>{n(m)}),this.iframes&&this.handleOpenIframes(l,e,n,i),a()}forEachNode(e,r,n,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(l=>{let u=()=>{this.iterateThroughNodes(e,l,r,n,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(l,u):u()})}};var sr=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 it(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[r]=="function"&&n[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,n=this.opt.caseSensitive?"":"i",i=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),u=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&u!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(u)})`,`gm${n}`),i+`(${this.processSynomyms(l)}|${this.processSynomyms(u)})`+i))}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,n,i)=>{let a=i.charAt(n+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&r.push(this.escapeStr(n.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",n=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"],i=[];return e.split("").forEach(a=>{n.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),i.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",n=this.opt.accuracy,i=typeof n=="string"?n:n.value,a=typeof n=="string"?[]:n.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),i){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(n=>{this.opt.separateWordSearch?n.split(" ").forEach(i=>{i.trim()&&r.indexOf(i)===-1&&r.push(i)}):n.trim()&&r.indexOf(n)===-1&&r.push(n)}),{keywords:r.sort((n,i)=>i.length-n.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=[],n=0;return e.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(i,n);l&&(i.start=a,i.length=s-a,r.push(i),n=s)}),r}callNoMatchOnInvalidRanges(e,r){let n,i,a=!1;return e&&typeof e.start<"u"?(n=parseInt(e.start,10),i=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&i-r>0&&i-n>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:n,end:i,valid:a}}checkWhitespaceRanges(e,r,n){let i,a=!0,s=n.length,l=r-s,u=parseInt(e.start,10)-l;return u=u>s?s:u,i=u+parseInt(e.length,10),i>s&&(i=s,this.log(`End range automatically set to the max value of ${s}`)),u<0||i-u<0||u>s||i>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(u,i).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:u,end:i,valid:a}}getTextNodes(e){let r="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{n.push({start:r.length,end:(r+=i.textContent).length,node:i})},i=>this.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:n})})}matchesExclude(e){return it.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,n){let i=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(n-r),l=document.createElement(i);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,n,i,a){e.nodes.every((s,l)=>{let u=e.nodes[l+1];if(typeof u>"u"||u.start>r){if(!i(s.node))return!1;let p=r-s.start,h=(n>s.end?s.end:n)-s.start,f=e.value.substr(0,s.start),m=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,h),e.value=f+m,e.nodes.forEach((b,v)=>{v>=l&&(e.nodes[v].start>0&&v!==l&&(e.nodes[v].start-=h),e.nodes[v].end-=h)}),n-=h,a(s.node.previousSibling,s.start),n>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,n,i,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(u=>{u=u.node;let p;for(;(p=e.exec(u.textContent))!==null&&p[s]!=="";){if(!n(p[s],u))continue;let h=p.index;if(s!==0)for(let f=1;f<s;f++)h+=p[f].length;u=this.wrapRangeInTextNode(u,h,h+p[s].length),i(u.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,n,i,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let u;for(;(u=e.exec(l.value))!==null&&u[s]!=="";){let p=u.index;if(s!==0)for(let f=1;f<s;f++)p+=u[f].length;let h=p+u[s].length;this.wrapRangeInMappedTextNode(l,p,h,f=>n(u[s],f),(f,m)=>{e.lastIndex=m,i(f)})}a()})}wrapRangeFromIndex(e,r,n,i){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,u)=>{let{start:p,end:h,valid:f}=this.checkWhitespaceRanges(l,s,a.value);f&&this.wrapRangeInMappedTextNode(a,p,h,m=>r(m,l,a.value.substring(p,h),u),m=>{n(m,l)})}),i()})}unwrapMatches(e){let r=e.parentNode,n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.removeChild(e.firstChild));r.replaceChild(n,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 n=0,i="wrapMatches",a=s=>{n++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,n),a,()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,r){this.opt=r;let n=0,i="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",u=p=>{let h=new RegExp(this.createRegExp(p),`gm${l}`),f=0;this.log(`Searching with expression "${h}"`),this[i](h,1,(m,b)=>this.opt.filter(b,p,n,f),m=>{f++,n++,this.opt.each(m)},()=>{f===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(n):u(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(n):u(a[0])}markRanges(e,r){this.opt=r;let n=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(a,s,l,u)=>this.opt.filter(a,s,l,u),(a,s)=>{n++,this.opt.each(a,s)},()=>{this.opt.done(n)})):this.opt.done(n)}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,n=>{this.unwrapMatches(n)},n=>{let i=it.matches(n,r),a=this.matchesExclude(n);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Un(t){let e=new sr(t);return this.mark=(r,n)=>(e.mark(r,n),this),this.markRegExp=(r,n)=>(e.markRegExp(r,n),this),this.markRanges=(r,n)=>(e.markRanges(r,n),this),this.unmark=r=>(e.unmark(r),this),this}var Su=Un,ic=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Eu=U`
1
+ "use strict";(()=>{var fl=Object.defineProperty;var L=(t,e)=>{for(var r in e)fl(t,r,{get:e[r],enumerable:!0})};if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,n=window.customElements,i=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(g,y){if(g=g.toLowerCase(),this._getDefinition(g)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${g}" has already been used with this registry`);if(this._definitionsByClass.get(y)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let x=y.prototype.attributeChangedCallback,O=new Set(y.observedAttributes||[]);m(y,O,x);let R={elementClass:y,connectedCallback:y.prototype.connectedCallback,disconnectedCallback:y.prototype.disconnectedCallback,adoptedCallback:y.prototype.adoptedCallback,attributeChangedCallback:x,formAssociated:y.formAssociated,formAssociatedCallback:y.prototype.formAssociatedCallback,formDisabledCallback:y.prototype.formDisabledCallback,formResetCallback:y.prototype.formResetCallback,formStateRestoreCallback:y.prototype.formStateRestoreCallback,observedAttributes:O};this._definitionsByTag.set(g,R),this._definitionsByClass.set(y,R);let k=r.call(n,g);k||(k=f(g),e.call(n,g,k)),this===window.customElements&&(s.set(y,R),R.standInClass=k);let D=this._awaitingUpgrade.get(g);if(D){this._awaitingUpgrade.delete(g);for(let N of D)a.delete(N),v(N,R,!0)}let _=this._whenDefinedPromises.get(g);return _!==void 0&&(_.resolve(y),this._whenDefinedPromises.delete(g)),y}upgrade(){S.push(this),n.upgrade.apply(n,arguments),S.pop()}get(g){return this._definitionsByTag.get(g)?.elementClass}_getDefinition(g){return this._definitionsByTag.get(g)}whenDefined(g){let y=this._getDefinition(g);if(y!==void 0)return Promise.resolve(y.elementClass);let x=this._whenDefinedPromises.get(g);return x===void 0&&(x={},x.promise=new Promise(O=>x.resolve=O),this._whenDefinedPromises.set(g,x)),x.promise}_upgradeWhenDefined(g,y,x){let O=this._awaitingUpgrade.get(y);O||this._awaitingUpgrade.set(y,O=new Set),x?O.add(g):O.delete(g)}};let u;window.HTMLElement=function(){let y=u;if(y)return u=void 0,y;let x=s.get(this.constructor);if(!x)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return y=Reflect.construct(t,[],x.standInClass),Object.setPrototypeOf(y,this.constructor.prototype),i.set(y,x),y},window.HTMLElement.prototype=t.prototype;let p=g=>g===document||g instanceof ShadowRoot,h=g=>{let y=g.getRootNode();if(!p(y)){let x=S[S.length-1];if(x instanceof CustomElementRegistry)return x;y=x.getRootNode(),p(y)||(y=l.get(y)?.getRootNode()||document)}return y.customElements},f=g=>class{static get formAssociated(){return!0}constructor(){let x=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(x,HTMLElement.prototype);let O=h(x)||window.customElements,R=O._getDefinition(g);return R?v(x,R):a.set(x,O),x}connectedCallback(){let x=i.get(this);x?x.connectedCallback&&x.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,g,!0)}disconnectedCallback(){let x=i.get(this);x?x.disconnectedCallback&&x.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,g,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let x=i.get(this);x&&x.formAssociated&&x?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let x=i.get(this);x?.formAssociated&&x?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let x=i.get(this);x?.formAssociated&&x?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let x=i.get(this);x?.formAssociated&&x?.formStateRestoreCallback?.apply(this,arguments)}},m=(g,y,x)=>{if(y.size===0||x===void 0)return;let O=g.prototype.setAttribute;O&&(g.prototype.setAttribute=function(D,_){let N=D.toLowerCase();if(y.has(N)){let H=this.getAttribute(N);O.call(this,N,_),x.call(this,N,H,_)}else O.call(this,N,_)});let R=g.prototype.removeAttribute;R&&(g.prototype.removeAttribute=function(D){let _=D.toLowerCase();if(y.has(_)){let N=this.getAttribute(_);R.call(this,_),x.call(this,_,N,null)}else R.call(this,_)});let k=g.prototype.toggleAttribute;k&&(g.prototype.toggleAttribute=function(D,_){let N=D.toLowerCase();if(y.has(N)){let H=this.getAttribute(N);k.call(this,N,_);let he=this.getAttribute(N);x.call(this,N,H,he)}else k.call(this,N,_)})},b=g=>{let y=Object.getPrototypeOf(g);if(y!==window.HTMLElement)return y===t?Object.setPrototypeOf(g,window.HTMLElement):b(y)},v=(g,y,x=!1)=>{Object.setPrototypeOf(g,y.elementClass.prototype),i.set(g,y),u=g;try{new y.elementClass}catch{b(y.elementClass),new y.elementClass}y.attributeChangedCallback&&y.observedAttributes.forEach(O=>{g.hasAttribute(O)&&y.attributeChangedCallback.call(g,O,null,g.getAttribute(O))}),x&&y.connectedCallback&&g.isConnected&&y.connectedCallback.call(g)},C=Element.prototype.attachShadow;Element.prototype.attachShadow=function(g){let y=C.apply(this,arguments);return g.customElements&&(y.customElements=g.customElements),y};let S=[document],w=(g,y,x=void 0)=>{let O=(x?Object.getPrototypeOf(x):g.prototype)[y];g.prototype[y]=function(){S.push(this);let R=O.apply(x||this,arguments);return R!==void 0&&l.set(R,this),S.pop(),R}};w(ShadowRoot,"createElement",document),w(ShadowRoot,"importNode",document),w(Element,"insertAdjacentHTML");let T=(g,y)=>{let x=Object.getOwnPropertyDescriptor(g.prototype,y);Object.defineProperty(g.prototype,y,{...x,set(O){S.push(this),x.set.call(this,O),S.pop()}})};if(T(Element,"innerHTML"),T(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let g=new WeakMap,y=HTMLElement.prototype.attachInternals,x=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...D){let _=y.call(this,...D);return g.set(_,this),_},x.forEach(D=>{let _=window.ElementInternals.prototype,N=_[D];_[D]=function(...H){let he=g.get(this);if(i.get(he).formAssociated===!0)return N?.call(this,...H);throw new DOMException(`Failed to execute ${N} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class O extends Array{constructor(_){super(..._),this._elements=_}get value(){return this._elements.find(_=>_.checked===!0)?.value||""}}class R{constructor(_){let N=new Map;_.forEach((H,he)=>{let No=H.getAttribute("name"),ji=N.get(No)||[];this[+he]=H,ji.push(H),N.set(No,ji)}),this.length=_.length,N.forEach((H,he)=>{H&&(H.length===1?this[he]=H[0]:this[he]=new O(H))})}namedItem(_){return this[_]}}let k=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let D=k.get.call(this,[]),_=[];for(let N of D){let H=i.get(N);(!H||H.formAssociated===!0)&&_.push(N)}return new R(_)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,n,i)=>{var a;if(n!==null)try{e.bind(window.customElements)(r,n,i)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(r,class extends n{},i):console.info(r,n,i,s)}}}var Go={};L(Go,{CSSResult:()=>mt,LitElement:()=>Re,ReactiveElement:()=>ie,_$LE:()=>Rl,_$LH:()=>Ho,adoptStyles:()=>$t,css:()=>U,defaultConverter:()=>gt,getCompatibleStyle:()=>Ar,html:()=>me,isServer:()=>gf,mathml:()=>wl,noChange:()=>z,notEqual:()=>zt,nothing:()=>F,render:()=>zo,supportsAdoptingStyleSheets:()=>Ut,svg:()=>Cl,unsafeCSS:()=>Bt});var Or=globalThis,Ut=Or.ShadowRoot&&(Or.ShadyCSS===void 0||Or.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Po=Symbol(),Ki=new WeakMap,mt=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==Po)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(Ut&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=Ki.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Ki.set(r,e))}return e}toString(){return this.cssText}},Bt=t=>new mt(typeof t=="string"?t:t+"",void 0,Po),U=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((n,i,a)=>n+(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.")})(i)+t[a+1],t[0]);return new mt(r,t,Po)},$t=(t,e)=>{if(Ut)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),i=Or.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},Ar=Ut?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return Bt(r)})(t):t;var{is:hl,defineProperty:ml,getOwnPropertyDescriptor:gl,getOwnPropertyNames:yl,getOwnPropertySymbols:bl,getPrototypeOf:xl}=Object,Rr=globalThis,qi=Rr.trustedTypes,vl=qi?qi.emptyScript:"",Sl=Rr.reactiveElementPolyfillSupport,Ht=(t,e)=>t,gt={toAttribute(t,e){switch(e){case Boolean:t=t?vl: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}},zt=(t,e)=>!hl(t,e),Zi={attribute:!0,type:String,converter:gt,reflect:!1,useDefault:!1,hasChanged:zt};Symbol.metadata??=Symbol("metadata"),Rr.litPropertyMetadata??=new WeakMap;var ie=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=Zi){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 n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&ml(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){let{get:i,set:a}=gl(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get:i,set(s){let l=i?.call(this);a?.call(this,s),this.requestUpdate(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Zi}static _$Ei(){if(this.hasOwnProperty(Ht("elementProperties")))return;let e=xl(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ht("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ht("properties"))){let r=this.properties,n=[...yl(r),...bl(r)];for(let i of n)this.createProperty(i,r[i])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let i of n)r.unshift(Ar(i))}else e!==void 0&&r.push(Ar(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n: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 n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return $t(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,n){this._$AK(e,n)}_$ET(e,r){let n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){let a=(n.converter?.toAttribute!==void 0?n.converter:gt).toAttribute(r,n.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,r){let n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=n.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:gt;this._$Em=i;let l=s.fromAttribute(r,a.type);this[i]=l??this._$Ej?.get(i)??l,this._$Em=null}}requestUpdate(e,r,n,i=!1,a){if(e!==void 0){let s=this.constructor;if(i===!1&&(a=this[e]),n??=s.getPropertyOptions(e),!((n.hasChanged??zt)(a,r)||n.useDefault&&n.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,n))))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:n,reflect:i,wrapped:a},s){n&&!(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||n||(r=void 0),this._$AL.set(e,r)),i===!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[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,a]of n){let{wrapped:s}=a,l=this[i];s!==!0||this._$AL.has(i)||l===void 0||this.C(i,void 0,a,l)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}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){}};ie.elementStyles=[],ie.shadowRootOptions={mode:"open"},ie[Ht("elementProperties")]=new Map,ie[Ht("finalized")]=new Map,Sl?.({ReactiveElement:ie}),(Rr.reactiveElementVersions??=[]).push("2.1.2");var Mo=globalThis,Qi=t=>t,_r=Mo.trustedTypes,Yi=_r?_r.createPolicy("lit-html",{createHTML:t=>t}):void 0,Do="$lit$",Ae=`lit$${Math.random().toFixed(9).slice(2)}$`,Uo="?"+Ae,El=`<${Uo}>`,qe=document,Gt=()=>qe.createComment(""),Wt=t=>t===null||typeof t!="object"&&typeof t!="function",Bo=Array.isArray,oa=t=>Bo(t)||typeof t?.[Symbol.iterator]=="function",Fo=`[
2
+ \f\r]`,Vt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ji=/-->/g,Xi=/>/g,je=RegExp(`>|${Fo}(?:([^\\s"'>=/]+)(${Fo}*=${Fo}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ea=/'/g,ta=/"/g,na=/^(?:script|style|textarea|title)$/i,$o=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),me=$o(1),Cl=$o(2),wl=$o(3),z=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),ra=new WeakMap,Ke=qe.createTreeWalker(qe,129);function ia(t,e){if(!Bo(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Yi!==void 0?Yi.createHTML(e):e}var aa=(t,e)=>{let r=t.length-1,n=[],i,a=e===2?"<svg>":e===3?"<math>":"",s=Vt;for(let l=0;l<r;l++){let u=t[l],p,h,f=-1,m=0;for(;m<u.length&&(s.lastIndex=m,h=s.exec(u),h!==null);)m=s.lastIndex,s===Vt?h[1]==="!--"?s=Ji:h[1]!==void 0?s=Xi:h[2]!==void 0?(na.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=je):h[3]!==void 0&&(s=je):s===je?h[0]===">"?(s=i??Vt,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?je:h[3]==='"'?ta:ea):s===ta||s===ea?s=je:s===Ji||s===Xi?s=Vt:(s=je,i=void 0);let b=s===je&&t[l+1].startsWith("/>")?" ":"";a+=s===Vt?u+El:f>=0?(n.push(p),u.slice(0,f)+Do+u.slice(f)+Ae+b):u+Ae+(f===-2?l:b)}return[ia(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},jt=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let a=0,s=0,l=e.length-1,u=this.parts,[p,h]=aa(e,r);if(this.el=t.createElement(p,n),Ke.currentNode=this.el.content,r===2||r===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=Ke.nextNode())!==null&&u.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let f of i.getAttributeNames())if(f.endsWith(Do)){let m=h[s++],b=i.getAttribute(f).split(Ae),v=/([.?@])?(.*)/.exec(m);u.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?Tr:v[1]==="?"?Lr:v[1]==="@"?kr:Qe}),i.removeAttribute(f)}else f.startsWith(Ae)&&(u.push({type:6,index:a}),i.removeAttribute(f));if(na.test(i.tagName)){let f=i.textContent.split(Ae),m=f.length-1;if(m>0){i.textContent=_r?_r.emptyScript:"";for(let b=0;b<m;b++)i.append(f[b],Gt()),Ke.nextNode(),u.push({type:2,index:++a});i.append(f[m],Gt())}}}else if(i.nodeType===8)if(i.data===Uo)u.push({type:2,index:a});else{let f=-1;for(;(f=i.data.indexOf(Ae,f+1))!==-1;)u.push({type:7,index:a}),f+=Ae.length-1}a++}}static createElement(e,r){let n=qe.createElement("template");return n.innerHTML=e,n}};function Ze(t,e,r=t,n){if(e===z)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,a=Wt(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=Ze(t,i._$AS(t,e.values),i,n)),e}var Ir=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:n}=this._$AD,i=(e?.creationScope??qe).importNode(r,!0);Ke.currentNode=i;let a=Ke.nextNode(),s=0,l=0,u=n[0];for(;u!==void 0;){if(s===u.index){let p;u.type===2?p=new yt(a,a.nextSibling,this,e):u.type===1?p=new u.ctor(a,u.name,u.strings,this,e):u.type===6&&(p=new Nr(a,this,e)),this._$AV.push(p),u=n[++l]}s!==u?.index&&(a=Ke.nextNode(),s++)}return Ke.currentNode=qe,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},yt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.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=Ze(this,e,r),Wt(e)?e===F||e==null||e===""?(this._$AH!==F&&this._$AR(),this._$AH=F):e!==this._$AH&&e!==z&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):oa(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!==F&&Wt(this._$AH)?this._$AA.nextSibling.data=e:this.T(qe.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=jt.createElement(ia(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let a=new Ir(i,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=ra.get(e.strings);return r===void 0&&ra.set(e.strings,r=new jt(e)),r}k(e){Bo(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let a of e)i===r.length?r.push(n=new t(this.O(Gt()),this.O(Gt()),this,this.options)):n=r[i],n._$AI(a),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let n=Qi(e).nextSibling;Qi(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Qe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,a){this.type=1,this._$AH=F,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=F}_$AI(e,r=this,n,i){let a=this.strings,s=!1;if(a===void 0)e=Ze(this,e,r,0),s=!Wt(e)||e!==this._$AH&&e!==z,s&&(this._$AH=e);else{let l=e,u,p;for(e=a[0],u=0;u<a.length-1;u++)p=Ze(this,l[n+u],r,u),p===z&&(p=this._$AH[u]),s||=!Wt(p)||p!==this._$AH[u],p===F?e=F:e!==F&&(e+=(p??"")+a[u+1]),this._$AH[u]=p}s&&!i&&this.j(e)}j(e){e===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Tr=class extends Qe{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===F?void 0:e}},Lr=class extends Qe{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==F)}},kr=class extends Qe{constructor(e,r,n,i,a){super(e,r,n,i,a),this.type=5}_$AI(e,r=this){if((e=Ze(this,e,r,0)??F)===z)return;let n=this._$AH,i=e===F&&n!==F||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==F&&(n===F||i);i&&this.element.removeEventListener(this.name,this,n),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)}},Nr=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Ze(this,e)}},Ho={M:Do,P:Ae,A:Uo,C:1,L:aa,R:Ir,D:oa,V:Ze,I:yt,H:Qe,N:Lr,U:kr,B:Tr,F:Nr},Ol=Mo.litHtmlPolyfillSupport;Ol?.(jt,yt),(Mo.litHtmlVersions??=[]).push("3.3.3");var zo=(t,e,r)=>{let n=r?.renderBefore??e,i=n._$litPart$;if(i===void 0){let a=r?.renderBefore??null;n._$litPart$=i=new yt(e.insertBefore(Gt(),a),a,void 0,r??{})}return i._$AI(t),i};var Vo=globalThis,Re=class extends ie{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=zo(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return z}};Re._$litElement$=!0,Re.finalized=!0,Vo.litElementHydrateSupport?.({LitElement:Re});var Al=Vo.litElementPolyfillSupport;Al?.({LitElement:Re});var Rl={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(Vo.litElementVersions??=[]).push("4.2.2");var gf=!1;var Wo={};L(Wo,{customElement:()=>_l,eventOptions:()=>Tl,property:()=>E,query:()=>Ll,queryAll:()=>Nl,queryAssignedElements:()=>Fl,queryAssignedNodes:()=>Ml,queryAsync:()=>Pl,standardProperty:()=>sa,state:()=>K});var _l=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Il={attribute:!0,type:String,converter:gt,reflect:!1,hasChanged:zt},sa=(t=Il,e,r)=>{let{kind:n,metadata:i}=r,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),n==="setter"&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),n==="accessor"){let{name:s}=r;return{set(l){let u=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,u,t,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,t,l),l}}}if(n==="setter"){let{name:s}=r;return function(l){let u=this[s];e.call(this,l),this.requestUpdate(s,u,t,!0,l)}}throw Error("Unsupported decorator location: "+n)};function E(t){return(e,r)=>typeof r=="object"?sa(t,e,r):((n,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,n),s?Object.getOwnPropertyDescriptor(i,a):void 0})(t,e,r)}function K(t){return E({...t,state:!0,attribute:!1})}function Tl(t){return(e,r)=>{let n=typeof e=="function"?e:e[r];Object.assign(n,t)}}var le=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function Ll(t,e){return(r,n,i)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof n=="object"?r:i??(()=>{let u=Symbol();return{get(){return this[u]},set(p){this[u]=p}}})();return le(r,n,{get(){let u=s.call(this);return u===void 0&&(u=a(this),(u!==null||this.hasUpdated)&&l.call(this,u)),u}})}return le(r,n,{get(){return a(this)}})}}var kl;function Nl(t){return(e,r)=>le(e,r,{get(){return(this.renderRoot??(kl??=document.createDocumentFragment())).querySelectorAll(t)}})}function Pl(t){return(e,r)=>le(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Fl(t){return(e,r)=>{let{slot:n,selector:i}=t??{},a="slot"+(n?`[name=${n}]`:":not([name])");return le(e,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(t)??[];return i===void 0?l:l.filter(u=>u.matches(i))}})}}function Ml(t){return(e,r)=>{let{slot:n}=t??{},i="slot"+(n?`[name=${n}]`:":not([name])");return le(e,r,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(t)??[]}})}}var jo={};L(jo,{repeat:()=>Fr});var ge={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},X=t=>(...e)=>({_$litDirective$:t,values:e}),ae=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:Dl}=Ho,ca=t=>t;var da=t=>t.strings===void 0,la=()=>document.createComment(""),bt=(t,e,r)=>{let n=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=n.insertBefore(la(),i),s=n.insertBefore(la(),i);r=new Dl(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==t;if(l){let u;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(u=t._$AU)!==s._$AU&&r._$AP(u)}if(a!==i||l){let u=r._$AA;for(;u!==a;){let p=ca(u).nextSibling;ca(n).insertBefore(u,i),u=p}}}return r},De=(t,e,r=t)=>(t._$AI(e,r),t),Ul={},ua=(t,e=Ul)=>t._$AH=e,pa=t=>t._$AH,Pr=t=>{t._$AR(),t._$AA.remove()};var fa=(t,e,r)=>{let n=new Map;for(let i=e;i<=r;i++)n.set(t[i],i);return n},Fr=X(class extends ae{constructor(t){if(super(t),t.type!==ge.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let n;r===void 0?r=e:e!==void 0&&(n=e);let i=[],a=[],s=0;for(let l of t)i[s]=n?n(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:i}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,n]){let i=pa(t),{values:a,keys:s}=this.dt(e,r,n);if(!Array.isArray(i))return this.ut=s,a;let l=this.ut??=[],u=[],p,h,f=0,m=i.length-1,b=0,v=a.length-1;for(;f<=m&&b<=v;)if(i[f]===null)f++;else if(i[m]===null)m--;else if(l[f]===s[b])u[b]=De(i[f],a[b]),f++,b++;else if(l[m]===s[v])u[v]=De(i[m],a[v]),m--,v--;else if(l[f]===s[v])u[v]=De(i[f],a[v]),bt(t,u[v+1],i[f]),f++,v--;else if(l[m]===s[b])u[b]=De(i[m],a[b]),bt(t,i[f],i[m]),m--,b++;else if(p===void 0&&(p=fa(s,b,v),h=fa(l,f,m)),p.has(l[f]))if(p.has(l[m])){let C=h.get(s[b]),S=C!==void 0?i[C]:null;if(S===null){let w=bt(t,i[f]);De(w,a[b]),u[b]=w}else u[b]=De(S,a[b]),bt(t,i[f],S),i[C]=null;b++}else Pr(i[m]),m--;else Pr(i[f]),f++;for(;b<=v;){let C=bt(t,u[v+1]);De(C,a[b]),u[b++]=C}for(;f<=m;){let C=i[f++];C!==null&&Pr(C)}return this.ut=s,ua(t,u),z}});var Ko={};L(Ko,{classMap:()=>Bl});var Bl=X(class extends ae{constructor(t){if(super(t),t.type!==ge.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(n=>n!=="")));for(let n in e)e[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(e)}let r=t.element.classList;for(let n of this.st)n in e||(r.remove(n),this.st.delete(n));for(let n in e){let i=!!e[n];i===this.st.has(n)||this.nt?.has(n)||(i?(r.add(n),this.st.add(n)):(r.remove(n),this.st.delete(n)))}return z}});var qo={};L(qo,{styleMap:()=>Hl});var ha="important",$l=" !"+ha,Hl=X(class extends ae{constructor(t){if(super(t),t.type!==ge.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 n=t[r];return n==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}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 n of this.ft)e[n]==null&&(this.ft.delete(n),n.includes("-")?r.removeProperty(n):r[n]=null);for(let n in e){let i=e[n];if(i!=null){this.ft.add(n);let a=typeof i=="string"&&i.endsWith($l);n.includes("-")||a?r.setProperty(n,a?i.slice(0,-11):i,a?ha:""):r[n]=i}}return z}});var Zo={};L(Zo,{UnsafeHTMLDirective:()=>xt,unsafeHTML:()=>zl});var xt=class extends ae{constructor(e){if(super(e),this.it=F,e.type!==ge.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===F||e==null)return this._t=void 0,this.it=e;if(e===z)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:[]}}};xt.directiveName="unsafeHTML",xt.resultType=1;var zl=X(xt);var Qo={};L(Qo,{splitBreadcrumbForMenu:()=>Vl});function Vl(t,e=0,r=0){if(t.length===0)return{beforeMenu:[],inMenu:[],afterMenu:[]};let n=Math.max(r,1),i=t.slice(n*-1);return e+n>=t.length?{beforeMenu:[],inMenu:[],afterMenu:t}:{beforeMenu:t.slice(0,e),inMenu:t.slice(e,t.length-i.length),afterMenu:i}}var nn={};L(nn,{CacheRegistry:()=>xe,ClearCacheEvent:()=>Qt});var Yo={};L(Yo,{CancelablePromise:()=>Mr,CanceledPromiseError:()=>ye,cancelable:()=>vt});var ye=class extends Error{constructor(e,r,n){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=n}},Mr=class extends Promise{constructor(e){super((r,n)=>e(i=>{this.isCanceled?n(new ye("Promise has been canceled",i)):r(i)},i=>{this.isCanceled?n(new ye("Promise has been canceled",void 0,i)):n(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},vt=t=>new Mr((e,r)=>t.then(e).catch(r));var on={};L(on,{FtNotificationEvent:()=>Zt,PostResizeEvent:()=>rn,PreResizeEvent:()=>tn,WithEventBus:()=>Ie,withEventBus:()=>Br});var en={};L(en,{applyMixinOnce:()=>W,customElements:()=>qt,dateReviver:()=>ql,deepCopy:()=>ee,deepEqual:()=>Q,delay:()=>Ur,eventPathContainsMatchingElement:()=>Ql,everyDeep:()=>Kl,flatDeep:()=>ba,forEachDeep:()=>xa,getComposedPathTo:()=>Xo,groupBy:()=>ed,hasChanged:()=>be,ignoreComposingEvents:()=>Xl,last:()=>Yl,minmax:()=>_e,parseDate:()=>Sa,randomId:()=>Jl,someDeep:()=>va,unslotText:()=>Ea,waitFor:()=>ya,waitUntil:()=>jl});var Jo={};L(Jo,{customElement:()=>Kt,dateProperty:()=>Wl,isNumber:()=>ga,jsonProperty:()=>te,jsonPropertyConverter:()=>ma,numberProperty:()=>Dr,optionalNumberProperty:()=>Gl});var Kt=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},ma=t=>({fromAttribute:e=>{if(e==null)return ee(t);try{return JSON.parse(e)}catch{return ee(t)}},toAttribute:e=>JSON.stringify(e)});function te(t,e){return E({type:Object,converter:ma(t),hasChanged:be,...e??{}})}function Gl(t){return Dr(t)}function Dr(t){return E({type:Object,converter:{fromAttribute:e=>{var r,n;if(e==null)return;let i=(r=t?.min)!==null&&r!==void 0?r:-1/0,a=(n=t?.max)!==null&&n!==void 0?n:1/0;return ga(e)?_e(i,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...t??{}})}function ga(t){return!isNaN(parseFloat(t))}function Wl(t){return E({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 Ur=t=>new Promise(e=>setTimeout(e,t));async function jl(t,e=10,r=2e4){await ya(async()=>await t()||void 0,e,r)}async function ya(t,e=10,r=2e4){let n=await t(),i=performance.now(),a=i;for(;n==null&&(!r||a-i<r);)await Ur(e),n=await t(),a=performance.now();if(n==null)throw new Error("Timeout exceeded");return n}function ba(t,e){return t.flatMap(r=>[r,...ba(e(r),e)])}function xa(t,e,r){let n=(i,a)=>{var s;for(let l=0;l<i.length;l++){let u=i[l];if(!(((s=r(u,l,i,a))!==null&&s!==void 0?s:!0)&&n(e(u),[...a,u])))return!1}return!0};n(t,[])}function va(t,e,r){let n=!1;return xa(t,e,(i,a,s,l)=>(n=!!r(i,a,s,l),!n)),n}function Kl(t,e,r){return!va(t,e,(n,i,a,s)=>!r(n,i,a,s))}function ql(...t){return(e,r)=>t.includes(e)?Sa(r):r}function Sa(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,n,i)=>r+n+":"+i),new Date(t)}function Zl(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,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Q(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Q(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[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 i=s=>Object.keys(s).filter(l=>s[l]!=null),a=i(t);if(r=a.length,r!==i(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=r;n--!==0;){let s=a[n];if(!Q(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Q(t,e){try{return Zl(t,e)}catch{return!1}}function be(t,e){return!Q(t,e)}function Ql(t,e,r=window.document.body){if(e.length>0){let n=t.composedPath();for(let i of n){if(i===r)return!1;if(i.matches&&e.some(a=>i.matches(a)))return!0}}return!1}function _e(t,e,r){return Math.min(Math.max(t,e),r)}function Yl(t){return t[t.length-1]}function Ea(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>Ea(e)).join(""):t?.textContent||""}function Xo(t){let e=[],r=n=>{n.stopPropagation(),e=n.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 ee(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Jl(t,e){return(e??"")+(""+Math.floor(Math.random()*10**t)).padStart(t,"0")}function W(t,e){let r=n=>n[t]===!0;return n=>{if(r(n))return n;let i=e(n);return i[t]=!0,i}}function Xl(){return function(t,e,r){let n=r.value;r.value=function(i,...a){if(i.isComposing||i.keyCode===229){i.stopPropagation();return}return n.apply(this,[i].concat(a))}}}function qt(t){for(let[e,r]of Object.entries(t))Kt(e)(r)}function ed(t,e){var r,n;let i=typeof e=="function"?e:s=>s[e],a={};for(let s of t)((r=a[n=i(s)])!==null&&r!==void 0?r:a[n]=[]).push(s);return a}var Zt=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},tn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},rn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},Br=W(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}),Ie=class extends Br(Object){};var Qt=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},xe=class extends Ie{constructor(){super(...arguments),this.content={}}register(e,r,n=!1){var i;let a=this.content[e],s=(i=a?.status)!==null&&i!==void 0?i:"REGISTERED";this.content[e]={...a,loader:r,final:n,status:s}}registerFinal(e,r){this.register(e,r,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,r=!0){let n=Object.keys(this.content).filter(e).filter(i=>this.clear(i,!1)!=null);return r&&n.length>0&&this.dispatchEvent(new Qt(n)),n}clear(e,r=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),r&&this.dispatchEvent(new Qt([e])),e}forceClear(e){var r;let n=this.content[e];n&&(this.clearClearTimeout(e),(r=n.promise)===null||r===void 0||r.cancel(),this.content[e]={loader:n.loader,final:n.final,status:"REGISTERED"})}clearClearTimeout(e){var r,n,i;((r=this.content[e])===null||r===void 0?void 0:r.clearTimeout)!=null&&(window.clearTimeout((n=this.content[e])===null||n===void 0?void 0:n.clearTimeout),(i=this.content[e])===null||i===void 0||delete i.clearTimeout)}set(e,r,n=!1){this.forceClear(e);let i=async()=>r,a="RESOLVED";this.content[e]={loader:i,final:n,status:a,value:r}}setFinal(e,r){return this.set(e,r,!0)}async get(e,r,n){if(!this.isRegistered(e)){if(!r)throw new Error("Unknown cache key "+e);this.register(e,r)}let i=this.content[e];switch(i.status){case"ERROR":throw i.error;case"LOADING":return i.promise;case"RESOLVED":return i.value;case"REGISTERED":return r=r??i.loader,i.status="LOADING",i.promise=vt(r()),i.promise.then(a=>(i.status="RESOLVED",i.value=a,n!=null&&(this.clearClearTimeout(e),i.clearTimeout=window.setTimeout(()=>this.clear(e),n)),a)).catch(a=>{var s;throw!((s=i.promise)===null||s===void 0)&&s.isCanceled||(i.status="ERROR",i.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,n;return((r=this.content[e])===null||r===void 0?void 0:r.status)!==void 0&&((n=this.content[e])===null||n===void 0?void 0:n.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 pn={};L(pn,{ClusteringHelper:()=>un,formatHierarchicalValues:()=>dn});var ln={};L(ln,{accessBreadcrumb:()=>ld,accessResult:()=>Jt,accessResultId:()=>sd,accessResultUrl:()=>cd,enrichReaderUrl:()=>cn});var sn={};L(sn,{SearchPlaceConverter:()=>Te,SearchPlaceQueryParams:()=>I,isSearchPlaceQueryParams:()=>ss,serializeRequest:()=>id});var td=t=>typeof t=="object"&&t!=null;var rd=t=>typeof t=="number",$r=t=>typeof t=="string",an=t=>td(t)&&$r(t.endpoint)&&$r(t.method)&&$r(t.statusText)&&$r(t.body)&&rd(t.status),Ca;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Ca||(Ca={}));var wa;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(wa||(wa={}));var Oa;(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"})(Oa||(Oa={}));var Ue;(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"})(Ue||(Ue={}));var Aa;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Aa||(Aa={}));var Ra;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ra||(Ra={}));var _a;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(_a||(_a={}));var Ye;(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"})(Ye||(Ye={}));var Ia;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Ia||(Ia={}));var Ta;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Ta||(Ta={}));var La;(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"})(La||(La={}));var ka;(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"})(ka||(ka={}));var Na;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Na||(Na={}));var Pa;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Pa||(Pa={}));var Fa;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Fa||(Fa={}));var Ma;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Ma||(Ma={}));var Da;(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"})(Da||(Da={}));var Be;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Be||(Be={}));var Ua;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ua||(Ua={}));var Ba;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ba||(Ba={}));var Je;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Je||(Je={}));var Wa=t=>Object.keys(Je).includes(t);var $a;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})($a||($a={}));var Ha;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Ha||(Ha={}));var za;(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"})(za||(za={}));var St;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(St||(St={}));var ja=t=>Object.keys(St).includes(t);var ve;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ve||(ve={}));var Et;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Et||(Et={}));var Va;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Va||(Va={}));var B;(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"})(B||(B={}));var se;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(se||(se={}));var Ga;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Ga||(Ga={}));var Ka;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Ka||(Ka={}));var qa;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(qa||(qa={}));var Za;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Za||(Za={}));var Qa;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Qa||(Qa={}));var Ya;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ya||(Ya={}));var Ja;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Ja||(Ja={}));var Xa;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Xa||(Xa={}));var es;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(es||(es={}));var ts;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(ts||(ts={}));var rs;(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"})(rs||(rs={}));var os;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(os||(os={}));var od={[B.PERSONAL_BOOK_SHARE_USER]:[B.PERSONAL_BOOK_USER],[B.HTML_EXPORT_USER]:[B.PERSONAL_BOOK_USER],[B.PDF_EXPORT_USER]:[B.PERSONAL_BOOK_USER],[B.KHUB_ADMIN]:[B.CONTENT_PUBLISHER],[B.ADMIN]:[B.KHUB_ADMIN,B.USERS_ADMIN,B.PORTAL_ADMIN,B.BEHAVIOR_DATA_USER],[B.GENERATIVE_AI_EXPORT_USER]:[B.GENERATIVE_AI_USER]};function ns(t,e){return t===e||(od[t]??[]).some(r=>ns(r,e))}function Yt(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(n=>ns(n,e))}function is(t,...e){return t==null?!1:e.some(r=>Yt(t,r))}function nd(t){return`"${t}"`}function as(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function id(t,e){return new Te(t).serialize(e)}var I;(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"})(I||(I={}));var ad=new Set(Object.values(I));function ss(t){return ad.has(t)}var Te=class t{constructor(e,r=20,n=!1,i="en-US"){this.baseUrl=e,this.defaultPerPage=r,this.allLanguagesAllowed=n,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"}}serialize(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let n=r==null||r.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=this.toURLSearchParams(e),i.toString()}toURLSearchParams(e,r=!1){var n,i,a,s,l,u,p,h,f;let m=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&m.append(I.LOCALE,e.contentLocale):m.append(I.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&m.append(I.QUERY,e.query);let b=t.serializeValueFilters(e.metadataFilters);b&&m.append(I.VALUE_FILTERS,b);let v=t.serializeNegativeValueFilters(e.metadataFilters);v&&m.append(I.NEGATIVE_VALUE_FILTERS,v);let C=(u=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(g=>g.dateFilter))!==null&&u!==void 0?u:[];if(C.length>0){let g=C.map(y=>{var x;return`${y.key}~${(x=y.dateFilter)===null||x===void 0?void 0:x.type.toLowerCase()}`}).join("*");m.append(I.DATE_FILTERS,g)}let S=(p=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(g=>g.rangeFilter))!==null&&p!==void 0?p:[];if(S.length>0){let g=S.map(y=>{var x,O;return`${y.key}~${(x=y.rangeFilter)===null||x===void 0?void 0:x.from}_${(O=y.rangeFilter)===null||O===void 0?void 0:O.to}`}).join("*");m.append(I.RANGE_FILTERS,g)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&m.append(I.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&m.append(I.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&m.append(I.SORT,e.sortId),!((s=e.paging)===null||s===void 0)&&s.perPage&&((h=(l=e.paging)===null||l===void 0?void 0:l.perPage)!==null&&h!==void 0?h:this.defaultPerPage)!=this.defaultPerPage&&m.append(I.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&m.append(I.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let w=(f=e.otherQueryParams)!==null&&f!==void 0?f:{};for(let g in w)m.append(g,w[g]);let T=new Array;return m.forEach((g,y)=>{T.push(this.encodeQueryString(y)+"="+this.encodeQueryString(g))}),encodeURI(T.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var r;let n=e.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(e){var r,n,i,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(w){console.warn("Could not decode search request query params, fallback on raw value",w)}let u=new URLSearchParams(e),p=u.get(I.LOCALE)==="all"?void 0:u.get(I.LOCALE),h=((n=u.get(I.VIRTUAL_FIELD))!==null&&n!==void 0?n:"EVERYWHERE").toUpperCase(),f=(r=u.get(I.SORT))===null||r===void 0?void 0:r.toLowerCase(),m=(i=u.get(I.SCOPE))!==null&&i!==void 0?i:"default",b=+((a=u.get(I.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),v=u.get(I.KEYWORD_MATCH),C=v?v.toUpperCase()===Be.MANDATORY?Be.MANDATORY:Be.OPTIONAL:void 0,S={};for(let w of u.keys())ss(w)||(S[w]=u.get(w));return{contentLocale:p??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=u.get(I.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:Wa(h)?h:"EVERYWHERE",sortId:f,metadataFilters:this.parseCompatFilters(u),facets:[],paging:{page:1,perPage:_e(1,isNaN(b)?this.defaultPerPage:b,1e3)},keywordMatch:C,otherQueryParams:S}}parseCompatFilters(e){var r,n,i,a,s,l,u;let p=[];return e.has(I.FILTERS)&&(p=t.parseValueFilters((r=e.get(I.FILTERS))!==null&&r!==void 0?r:"")),(n=e.has(I.PERIOD))!==null&&n!==void 0&&n&&(p=[...p,...this.parseLegacyPeriodFilter(((i=e.get(I.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...p,...t.parseValueFilters((a=e.get(I.VALUE_FILTERS))!==null&&a!==void 0?a:""),...t.parseValueFilters((s=e.get(I.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(I.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((u=e.get(I.RANGE_FILTERS))!==null&&u!==void 0?u:"")]}static splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(r=>r.split("~"))}static parseValueFilters(e,r=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(n=>({key:n[0],valueFilter:{values:n[1].split("_").map(as).map(i=>this.unescapeFilterValue(i)),negative:r}}))}parseDateFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:St[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:t.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}static escapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(r,n);return e}static superEscapeFilters(e){for(let[r,n,i]of t.filtersEscapeMapping)e=e.replaceAll(n,i);return e}static unescapeFilterValue(e){for(let[r,n,i]of t.filtersEscapeMapping)e=e.replaceAll(i,r);return e}parseLegacyPeriodFilter(e){if(ja(e))return[{key:"ft:lastEdition",dateFilter:{type:St[e]}}];if(e.startsWith("CUSTOM_")){let[r,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}static serializeValueFilter(e){var r,n;let i=((n=(r=e.valueFilter)===null||r===void 0?void 0:r.values)!==null&&n!==void 0?n:[]).map(a=>t.escapeFilters(a)).map(a=>nd(as(a))).join("_");return`${e.key}~${i}`}static serializeValueFilters(e){var r;let n=(r=e?.filter(i=>i.valueFilter&&!i.valueFilter.negative))!==null&&r!==void 0?r:[];if(n.length>0)return n.map(t.serializeValueFilter).join("*")}static serializeNegativeValueFilters(e){var r;let n=(r=e?.filter(i=>i.valueFilter&&i.valueFilter.negative))!==null&&r!==void 0?r:[];if(n.length>0)return n.map(t.serializeValueFilter).join("*")}static clearSearchParamsInUrl(e){let r=new URL(e);return[I.LOCALE,I.FILTERS,I.VALUE_FILTERS,I.NEGATIVE_VALUE_FILTERS,I.DATE_FILTERS,I.RANGE_FILTERS].forEach(i=>{r.searchParams.delete(i)}),r.toString()}static updateLocaleParamInUrl(e,r){let n=new URL(e);return n.searchParams.delete(I.LOCALE),r!==void 0&&n.searchParams.append(I.LOCALE,r),n.toString()}};Te.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]];function Jt(t){var e,r,n,i;return(i=(n=(r=(e=t?.map)!==null&&e!==void 0?e:t?.topic)!==null&&r!==void 0?r:t?.document)!==null&&n!==void 0?n:t?.htmlPackage)!==null&&i!==void 0?i:t?.htmlPackagePage}function sd(t){var e,r,n,i,a,s,l,u,p;return(p=(u=(l=(s=(e=t?.map)===null||e===void 0?void 0:e.mapId)!==null&&s!==void 0?s:(r=t?.topic)===null||r===void 0?void 0:r.tocId)!==null&&l!==void 0?l:(n=t?.document)===null||n===void 0?void 0:n.documentId)!==null&&u!==void 0?u:(i=t?.htmlPackage)===null||i===void 0?void 0:i.packageId)!==null&&p!==void 0?p:(a=t?.htmlPackagePage)===null||a===void 0?void 0:a.contentId}function cd(t,e){var r,n,i,a,s,l,u,p,h;return(h=(p=(u=(l=cn((r=t?.map)===null||r===void 0?void 0:r.readerUrl,e))!==null&&l!==void 0?l:cn((n=t?.topic)===null||n===void 0?void 0:n.readerUrl,e))!==null&&u!==void 0?u:(i=t?.document)===null||i===void 0?void 0:i.viewerUrl)!==null&&p!==void 0?p:(a=t?.htmlPackage)===null||a===void 0?void 0:a.viewerUrl)!==null&&h!==void 0?h:(s=t?.htmlPackagePage)===null||s===void 0?void 0:s.viewerUrl}function ld(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 cn(t,e){if(e&&t){let r=URL.parse(t),n=Te.serializeValueFilters(e);if(n&&r?.searchParams.append(I.VALUE_FILTERS,n),r)return r.toString()}return t}function dn(t,e){return e&&e>1&&t.length>=e?`... > ${t[t.length-1]}`:t.join(" > ")}var un=class t{constructor(e,r,n,i){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=n,this.metadataDescriptors=i}static findResultWithMetadataValue(e,r,n){return e?.find(i=>{var a;return((a=this.extractResultMetadata({result:i}).find(s=>s.key==r))===null||a===void 0?void 0:a.value)==n})}static extractResultMetadata(e){var r,n;let i=(n=(r=Jt(e.result))===null||r===void 0?void 0:r.metadata)!==null&&n!==void 0?n:[];return e.key==null?t.flattenMetadata(i,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(i.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,n){if(Array.isArray(e))return e.map(a=>t.flattenMetadata(a,r,n)).filter(a=>a!=null);let i=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!i))if(i){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=>n?n(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,r,n="No value",i,a){var s,l;let u=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),p=(l=u?.label)!==null&&l!==void 0?l:(s=this.getMetadataDescriptor(e))===null||s===void 0?void 0:s.label;return this.allResults.map(f=>t.extractResultMetadata({result:f,key:e,hierarchicalValueTruncatingLevel:i,dateFormatter:a})).map(f=>f??{key:e,label:p,value:void 0,displayValue:n}).filter(f=>f.value!=u?.value).filter((f,m,b)=>b.findIndex(v=>v.value===f.value)===m).map(f=>({result:this.findBestResultForMetadataValue(e,f.value),metadata:f})).sort((f,m)=>this.compareMetadata(f.metadata.value,m.metadata.value,e,r))}compareMetadata(e,r,n,i){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(n),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let u=e.localeCompare(r,i,{numeric:!0});return l?u*-1:u}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let n=this.allResults.filter(u=>{var p;return((p=t.extractResultMetadata({result:u,key:e}))===null||p===void 0?void 0:p.value)==r}),a=[...t.extractResultMetadata({result:this.selectedResult}).filter(u=>this.clusteringMetadata.has(u.key)).filter(u=>u.key!==e)],s,l=-1;for(let u of n){let p=this.countMatchingMetadata(u,a);if(p>l&&(l=p,s=u,p===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata({result:e}).filter(n=>r.some(i=>i.key===n.key&&i.value===n.value)).length}};var fn={};L(fn,{Debouncer:()=>ce});var ce=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,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let i=(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 n)try{await s()}catch(l){i(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 yn={};L(yn,{designSystemVariables:()=>qd});var gn={};L(gn,{DesignSystemFamily:()=>Xt,DesignSystemSize:()=>er,FtCssVariableFactory:()=>o,badge:()=>Ad,banner:()=>Od,button:()=>pd,card:()=>hd,chart:()=>zd,checkbox:()=>bd,chip:()=>Ed,chipChoice:()=>Sd,chipGroup:()=>Cd,collapsible:()=>$d,combobox:()=>Ud,dateRangePicker:()=>Kd,drawer:()=>Nd,eventCard:()=>md,floatingMenu:()=>Dd,foundation:()=>c,link:()=>wd,modal:()=>Ld,notice:()=>Gd,notification:()=>Wd,pageDesigner:()=>Vd,pageFooter:()=>Id,pageHeader:()=>_d,pageLayout:()=>Td,popover:()=>Bd,radio:()=>xd,reorderableList:()=>kd,resolveFamilyClass:()=>hn,resolveSizeClass:()=>mn,semantic:()=>d,setVariable:()=>Ct,switch_:()=>Hd,table:()=>vd,tabs:()=>Pd,textArea:()=>Md,textInput:()=>Fd,titleBreadcrumb:()=>Rd,toc:()=>yd,toggle:()=>fd,tooltip:()=>jd,treeList:()=>gd,typographies:()=>dd,typographyBody1Medium:()=>fs,typographyBody1Regular:()=>ps,typographyBody1Semibold:()=>hs,typographyBody2Medium:()=>gs,typographyBody2MediumUnderline:()=>ys,typographyBody2Regular:()=>ms,typographyBody2Semibold:()=>bs,typographyCaption1Medium:()=>xs,typographyCaption1Semibold:()=>vs,typographyCaption2Bold:()=>Cs,typographyCaption2Medium:()=>Ss,typographyCaption2Semibold:()=>Es,typographyDisplay:()=>cs,typographyTitle1:()=>ls,typographyTitle2:()=>ds,typographyTitle3:()=>us,typographyVariants:()=>ud});var $e=t=>typeof t=="string"?Bt(t):t,o=class{static create(e,r,n,i){let a=l=>$e(l??i),s=U`var(${$e(e)}, ${a(i)})`;return s.name=e,s.description=r,s.category=n,s.defaultValue=i,s.defaultCssValue=a,s.set=l=>Ct(s,l??a(i)),s.get=l=>U`var(${$e(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(e,r,n,i){let a=l=>n.get(l??i),s=U`var(${$e(e)}, ${a(i)})`;return s.name=e,s.description=r,s.category=n.category,s.fallbackVariable=n,s.defaultValue=i,s.defaultCssValue=a,s.set=l=>Ct(s,l??a(i)),s.get=l=>U`var(${$e(e)}, ${a(l)})`,s.breadcrumb=()=>[n.name,...n.breadcrumb()],s.lastResortDefaultValue=()=>i??n.lastResortDefaultValue(),s}static external(e,r){let n=a=>e.defaultCssValue(a),i=U`var(${$e(e.name)}, ${n(e.defaultValue)})`;return i.name=e.name,i.category=e.category,i.fallbackVariable=e.fallbackVariable,i.defaultValue=e.defaultValue,i.context=r,i.defaultCssValue=n,i.set=a=>e.set(a),i.get=a=>U`var(${$e(e.name)}, ${n(a)})`,i.breadcrumb=()=>e.breadcrumb(),i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};function Ct(t,e){return $e(`${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)")},cs={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")},ls={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")},ds={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")},us={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")},ps={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")},fs={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")},hs={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")},ms={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")},gs={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")},ys={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")},bs={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")},xs={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")},vs={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")},Ss={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")},Es={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")},Cs={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")},dd={display:cs,"title-1":ls,"title-2":ds,"title-3":us,"body-1-regular":ps,"body-1-medium":fs,"body-1-semibold":hs,"body-2-regular":ms,"body-2-medium":gs,"body-2-medium-underline":ys,"body-2-semibold":bs,"caption-1-medium":xs,"caption-1-semibold":vs,"caption-2-medium":Ss,"caption-2-semibold":Es,"caption-2-bold":Cs},ud=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"];var d={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 pd={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","",d.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",d.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",d.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",d.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","",d.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",d.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",d.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",d.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","",d.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",d.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",d.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","",d.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",d.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",d.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","",d.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",d.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",d.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","",d.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",d.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",d.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","",d.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",d.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",d.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","",d.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",d.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",d.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","",d.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","",d.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",d.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",d.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",d.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","",d.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",d.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",d.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",d.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","",d.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",d.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",d.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",d.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","",d.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",d.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",d.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",d.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","",d.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",d.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",d.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",d.contentErrorPrimary)};var fd={iconSize:o.extend("--ftds-toggle-icon-size","",c.iconSize1),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","",d.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",d.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","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",d.contentActionPrimary),color:o.extend("--ftds-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",c.spacing3),width:o.create("--ftds-toggle-width","","SIZE","36px"),height:o.create("--ftds-toggle-height","","SIZE","20px")};var hd={borderRadius:o.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:o.extend("--ftds-card-focus-focus-ring-color","",d.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","",d.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:o.extend("--ftds-card-non-selectable-default-background-color","",d.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:o.extend("--ftds-card-non-selectable-default-border-color","",d.borderGlobalSecondary),nonSelectableHoverBorderColor:o.extend("--ftds-card-non-selectable-hover-border-color","",d.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:o.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:o.extend("--ftds-card-non-selectable-focus-border-color","",d.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:o.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:o.extend("--ftds-card-internal-border-color","",d.borderGlobalSecondary),selectableUnselectedBorderWidth:o.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:o.extend("--ftds-card-selectable-unselected-state-layer-color","",d.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:o.extend("--ftds-card-selectable-unselected-default-background-color","",d.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:o.extend("--ftds-card-selectable-unselected-default-border-color","",d.borderGlobalSecondary),selectableUnselectedHoverBorderColor:o.extend("--ftds-card-selectable-unselected-hover-border-color","",d.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:o.extend("--ftds-card-selectable-unselected-focus-border-color","",d.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:o.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:o.extend("--ftds-card-selectable-selected-border-color","",d.borderActionPrimary),selectableSelectedBorderWidth:o.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:o.extend("--ftds-card-selectable-selected-state-layer-color","",d.contentActionPrimary),selectableSelectedBackgroundColor:o.extend("--ftds-card-selectable-selected-background-color","",d.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 md={borderRadius:o.extend("--ftds-event-card-border-radius","",c.borderRadiusS),borderWidth:o.create("--ftds-event-card-border-width","","SIZE","1px"),backgroundColor:o.extend("--ftds-event-card-background-color","",d.backgroundGlobalSurface),thumbnailWidth:o.extend("--ftds-event-card-thumbnail-width","",c.spacing8),thumbnailIconSize:o.extend("--ftds-event-card-thumbnail-icon-size","",c.iconSize3),slotHorizontalPadding:o.extend("--ftds-event-card-slot-horizontal-padding","",c.spacing2),slotVerticalPadding:o.extend("--ftds-event-card-slot-vertical-padding","",c.spacing2),primaryThumbnailIconColor:o.extend("--ftds-event-card-primary-thumbnail-icon-color","",d.contentGlobalOnColor),secondaryThumbnailBackgroundColor:o.extend("--ftds-event-card-secondary-thumbnail-background-color","",d.backgroundGlobalSurface)};var gd={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","",d.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",d.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",d.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","",d.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","",d.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",d.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",d.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",d.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",d.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",d.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",d.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",d.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",d.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",d.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","",d.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",d.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","",d.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",d.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",d.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",d.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","",d.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",d.contentGlobalSecondary)};var yd={titleColor:o.extend("--ftds-toc-title-color","",d.contentGlobalSubtle),titleGap:o.extend("--ftds-toc-title-gap","",c.spacing2),top:o.create("--ftds-toc-top","","SIZE","160px"),itemGap:o.create("--ftds-toc-item-gap","","SIZE","0px"),itemHorizontalPadding:o.extend("--ftds-toc-item-horizontal-padding","",c.spacing4),itemVerticalPadding:o.extend("--ftds-toc-item-vertical-padding","",c.spacing3),itemBorderRadius:o.extend("--ftds-toc-item-border-radius","",c.borderRadiusS),itemBorderWidth:o.create("--ftds-toc-item-border-width","","SIZE","1px"),itemFocusFocusRingColor:o.extend("--ftds-toc-item-focus-focus-ring-color","",d.borderActionFocusRing),itemFocusFocusRingWidth:o.create("--ftds-toc-item-focus-focus-ring-width","","SIZE","3px"),itemRootDefaultLabelColor:o.extend("--ftds-toc-item-root-default-label-color","",d.contentGlobalSecondary),itemRootDefaultBorderColor:o.extend("--ftds-toc-item-root-default-border-color","",d.borderGlobalSubtle),itemRootHoverLabelColor:o.extend("--ftds-toc-item-root-hover-label-color","",d.contentGlobalSecondary),itemRootHoverBorderColor:o.extend("--ftds-toc-item-root-hover-border-color","",d.borderGlobalSubtle),itemRootHoverStateLayerColor:o.extend("--ftds-toc-item-root-hover-state-layer-color","",d.contentGlobalSecondary),itemRootHoverStateLayerOpacity:o.extend("--ftds-toc-item-root-hover-state-layer-opacity","",c.opacity8),itemRootFocusLabelColor:o.extend("--ftds-toc-item-root-focus-label-color","",d.contentGlobalSecondary),itemRootFocusStateLayerColor:o.extend("--ftds-toc-item-root-focus-state-layer-color","",d.contentGlobalSecondary),itemRootFocusStateLayerOpacity:o.extend("--ftds-toc-item-root-focus-state-layer-opacity","",c.opacity8),itemRootSelectedLabelColor:o.extend("--ftds-toc-item-root-selected-label-color","",d.contentActionPrimary),itemRootSelectedBorderColor:o.extend("--ftds-toc-item-root-selected-border-color","",d.borderActionPrimary),itemRootSelectedBorderWidth:o.create("--ftds-toc-item-root-selected-border-width","","SIZE","3px"),itemRootSelectedStateLayerColor:o.extend("--ftds-toc-item-root-selected-state-layer-color","",d.contentActionPrimary),itemRootSelectedStateLayerOpacity:o.extend("--ftds-toc-item-root-selected-state-layer-opacity","",c.opacity8),itemRootChildrenActiveLabelColor:o.extend("--ftds-toc-item-root-children-active-label-color","",d.contentActionPrimary),itemRootChildrenActiveBorderColor:o.extend("--ftds-toc-item-root-children-active-border-color","",d.borderGlobalSubtle),itemChildDefaultLabelColor:o.extend("--ftds-toc-item-child-default-label-color","",d.contentGlobalSubtle),itemChildDefaultBorderColor:o.extend("--ftds-toc-item-child-default-border-color","",d.borderGlobalSubtle),itemChildHoverLabelColor:o.extend("--ftds-toc-item-child-hover-label-color","",d.contentGlobalSubtle),itemChildHoverBorderColor:o.extend("--ftds-toc-item-child-hover-border-color","",d.borderGlobalSubtle),itemChildHoverStateLayerColor:o.extend("--ftds-toc-item-child-hover-state-layer-color","",d.contentGlobalSecondary),itemChildHoverStateLayerOpacity:o.extend("--ftds-toc-item-child-hover-state-layer-opacity","",c.opacity8),itemChildFocusLabelColor:o.extend("--ftds-toc-item-child-focus-label-color","",d.contentGlobalSubtle),itemChildFocusStateLayerColor:o.extend("--ftds-toc-item-child-focus-state-layer-color","",d.contentGlobalSecondary),itemChildFocusStateLayerOpacity:o.extend("--ftds-toc-item-child-focus-state-layer-opacity","",c.opacity8),itemChildSelectedLabelColor:o.extend("--ftds-toc-item-child-selected-label-color","",d.contentActionPrimary),itemChildSelectedBorderColor:o.extend("--ftds-toc-item-child-selected-border-color","",d.borderActionPrimary),itemChildSelectedBorderWidth:o.create("--ftds-toc-item-child-selected-border-width","","SIZE","3px"),itemChildSelectedStateLayerColor:o.extend("--ftds-toc-item-child-selected-state-layer-color","",d.contentActionPrimary),itemChildSelectedStateLayerOpacity:o.extend("--ftds-toc-item-child-selected-state-layer-opacity","",c.opacity8)};var bd={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.spacing2),color:o.extend("--ftds-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",d.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","",d.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","",d.borderErrorPrimary),errorStateLayerColor:o.extend("--ftds-checkbox-error-state-layer-color","",d.contentErrorPrimary),errorHelperTextColor:o.extend("--ftds-checkbox-error-helper-text-color","",d.borderErrorPrimary),errorCheckedBackgroundColor:o.extend("--ftds-checkbox-error-checked-background-color","",d.contentErrorPrimary),helperTextColor:o.extend("--ftds-checkbox-helper-text-color","",d.contentGlobalSubtle),groupVerticalGap:o.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)};var xd={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",d.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",d.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","",d.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",d.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","",d.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 vd={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",d.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",d.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",d.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",d.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",d.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",d.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","",d.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","",d.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 Sd={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","",d.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","",d.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",d.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",d.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",d.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","",d.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","",d.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",d.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",d.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",d.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",d.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 Ed={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","",d.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",d.borderGlobalSecondary),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",d.borderErrorSubtle)};var Cd={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","",d.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","",d.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","",d.contentActionPrimary)};var wd={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",d.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",d.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",d.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",d.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",d.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",d.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",d.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",d.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",d.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",d.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",d.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",d.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",d.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",d.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",d.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:o.extend("--ftds-link-horizontal-gap","",c.spacing1)};var Od={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","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",d.borderInfoSubtle)};var Ad={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","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",d.contentActionPrimary)};var Rd={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",d.contentGlobalSubtle)};var _d={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.spacing2),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",d.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",d.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","",d.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var Id={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","",d.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)};var Td={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)};var Ld={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","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",d.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",d.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","",d.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 kd={grabberIconSize:o.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize2),verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",c.spacing4),itemGap:o.extend("--ftds-reorderable-list-item-gap","",c.spacing2),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","",d.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","",d.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","",d.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","",d.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",d.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",d.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","",d.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",d.backgroundGlobalOnSurfaceDark)};var Nd={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",d.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","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",d.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","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",d.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 Pd={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","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",d.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",d.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","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",d.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",d.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","",d.borderActionFocusRing),mainIconIconSize:o.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:o.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)};var Fd={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","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",d.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","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",d.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","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)};var Md={backgroundColor:o.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ftds-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:o.extend("--ftds-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-area-default-helper-text-color","",d.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","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-area-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-area-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-area-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-area-warning-helper-icon-color","",d.contentWarningIconOnly),focusFocusRingColor:o.extend("--ftds-text-area-focus-focus-ring-color","",d.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","72px"),fieldMaxHeight:o.create("--ftds-text-area-field-max-height","","SIZE","300px"),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 Dd={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","",d.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",d.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",d.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","",d.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:o.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",d.contentActionPrimary),multiselectCheckedColor:o.extend("--ftds-floating-menu-multiselect-checked-color","",d.contentGlobalPrimary),multiselectCheckedIconColor:o.extend("--ftds-floating-menu-multiselect-checked-icon-color","",d.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","",d.contentActionPrimary),multiselectIndeterminatedColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-color","",d.contentGlobalPrimary),multiselectIndeterminatedIconColor:o.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",d.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","",d.contentGlobalPrimary),multiselectUncheckedColor:o.extend("--ftds-floating-menu-multiselect-unchecked-color","",d.contentGlobalPrimary),multiselectUncheckedIconColor:o.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",d.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","",d.contentActionPrimary),selectAllCheckedColor:o.extend("--ftds-floating-menu-select-all-checked-color","",d.contentGlobalPrimary),selectAllCheckedIconColor:o.extend("--ftds-floating-menu-select-all-checked-icon-color","",d.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","",d.contentGlobalPrimary),selectAllIndeterminatedColor:o.extend("--ftds-floating-menu-select-all-indeterminated-color","",d.contentGlobalPrimary),selectAllIndeterminatedIconColor:o.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",d.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","",d.contentGlobalPrimary),selectAllUncheckedColor:o.extend("--ftds-floating-menu-select-all-unchecked-color","",d.contentGlobalPrimary),selectAllUncheckedIconColor:o.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",d.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","",d.contentGlobalPrimary),defaultUncheckedColor:o.extend("--ftds-floating-menu-default-unchecked-color","",d.contentGlobalPrimary),defaultUncheckedIconColor:o.extend("--ftds-floating-menu-default-unchecked-icon-color","",d.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","",d.contentActionPrimary),defaultCheckedColor:o.extend("--ftds-floating-menu-default-checked-color","",d.contentActionPrimary),defaultCheckedIconColor:o.extend("--ftds-floating-menu-default-checked-icon-color","",d.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 Ud={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","",d.contentGlobalSubtle),menuNewValueBorderColor:o.extend("--ftds-combobox-menu-new-value-border-color","",d.borderGlobalPrimary),menuNewValueBorderWidth:o.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:o.extend("--ftds-combobox-menu-new-value-error-background-color","",d.backgroundErrorSubtle),menuNewValueErrorBorderColor:o.extend("--ftds-combobox-menu-new-value-error-border-color","",d.borderErrorPrimary),menuNewValueErrorStateLayerColor:o.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",d.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","",d.contentGlobalSubtle),valuesChipBackgroundColor:o.extend("--ftds-combobox-values-chip-background-color","",d.backgroundGlobalOnSurface),valuesChipBorderColor:o.extend("--ftds-combobox-values-chip-border-color","",d.borderInputPrimary)};var Bd={backgroundColor:o.extend("--ftds-popover-background-color","",d.backgroundGlobalOnSurface),titleColor:o.extend("--ftds-popover-title-color","",d.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",d.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 $d={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","",d.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","",d.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",d.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",c.iconSize3)};var Hd={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","",d.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",d.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","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",d.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","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",d.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","",d.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)};var zd={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)};var Vd={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 Gd={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","",d.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",d.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",d.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",d.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",d.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",d.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 Wd={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","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",d.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 jd={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","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",d.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 Kd={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 Xt;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Xt||(Xt={}));var er;(function(t){t.large="large",t.medium="medium",t.small="small"})(er||(er={}));function hn(t){return`ftds--family-${t}`}function mn(t){return`ftds--size-${t}`}var qd={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 bn={};L(bn,{DynamicImporter:()=>Hr,dynamicImporter:()=>Zd});var Hr=class{async import(e){if(e)return import(e)}},Zd=new Hr;var Tn={};L(Tn,{computeOffsetAutoPosition:()=>vu,computeOffsetPosition:()=>xu});var Os=["top","right","bottom","left"],ws=["start","end"],vn=Os.reduce((t,e)=>t.concat(e,e+"-"+ws[0],e+"-"+ws[1]),[]),Xe=Math.min,Se=Math.max,tr=Math.round;var Ee=t=>({x:t,y:t}),Qd={left:"right",right:"left",bottom:"top",top:"bottom"};function As(t,e,r){return Se(t,Xe(e,r))}function wt(t,e){return typeof t=="function"?t(e):t}function et(t){return t.split("-")[0]}function Ce(t){return t.split("-")[1]}function Sn(t){return t==="x"?"y":"x"}function En(t){return t==="y"?"height":"width"}function Ot(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Cn(t){return Sn(Ot(t))}function Rs(t,e,r){r===void 0&&(r=!1);let n=Ce(t),i=Cn(t),a=En(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=xn(s)),[s,xn(s)]}function _s(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function xn(t){let e=et(t);return Qd[e]+t.slice(e.length)}function Yd(t){var e,r,n,i;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(n=t.bottom)!=null?n:0,left:(i=t.left)!=null?i:0}}function Is(t){return typeof t!="number"?Yd(t):{top:t,right:t,bottom:t,left:t}}function tt(t){let{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function Ts(t,e,r){let{reference:n,floating:i}=t,a=Ot(e),s=Cn(e),l=En(s),u=et(e),p=a==="y",h=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,m=n[l]/2-i[l]/2,b;switch(u){case"top":b={x:h,y:n.y-i.height};break;case"bottom":b={x:h,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:f};break;case"left":b={x:n.x-i.width,y:f};break;default:b={x:n.x,y:n.y}}let v=Ce(e);return v&&(b[s]+=m*(v==="end"?1:-1)*(r&&p?-1:1)),b}async function Ls(t,e){var r;e===void 0&&(e={});let{x:n,y:i,platform:a,rects:s,elements:l,strategy:u}=t,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:m=!1,padding:b=0}=wt(e,t),v=Is(b),S=l[m?f==="floating"?"reference":"floating":f],w=tt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(S)))==null||r?S:S.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:u})),T=f==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,g=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),y=await(a.isElement==null?void 0:a.isElement(g))&&await(a.getScale==null?void 0:a.getScale(g))||{x:1,y:1},x=tt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:T,offsetParent:g,strategy:u}):T);return{top:(w.top-x.top+v.top)/y.y,bottom:(x.bottom-w.bottom+v.bottom)/y.y,left:(w.left-x.left+v.left)/y.x,right:(x.right-w.right+v.right)/y.x}}var Jd=50,ks=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,l=s.detectOverflow?s:{...s,detectOverflow:Ls},u=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:h,y:f}=Ts(p,n,u),m=n,b=0,v={};for(let C=0;C<a.length;C++){let S=a[C];if(!S)continue;let{name:w,fn:T}=S,{x:g,y,data:x,reset:O}=await T({x:h,y:f,initialPlacement:n,placement:m,strategy:i,middlewareData:v,rects:p,platform:l,elements:{reference:t,floating:e}});h=g??h,f=y??f,v[w]={...v[w],...x},O&&b<Jd&&(b++,typeof O=="object"&&(O.placement&&(m=O.placement),O.rects&&(p=O.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):O.rects),{x:h,y:f}=Ts(p,m,u)),C=-1)}return{x:h,y:f,placement:m,strategy:i,middlewareData:v}};function Xd(t,e,r){return(t?[...r.filter(i=>Ce(i)===t),...r.filter(i=>Ce(i)!==t)]:r.filter(i=>et(i)===i)).filter(i=>t?Ce(i)===t||(e?_s(i)!==i:!1):!0)}var Ns=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;let{rects:a,middlewareData:s,placement:l,platform:u,elements:p}=e,{crossAxis:h=!1,alignment:f,allowedPlacements:m=vn,autoAlignment:b=!0,...v}=wt(t,e),C=f!==void 0||m===vn?Xd(f||null,b,m):m,S=((r=s.autoPlacement)==null?void 0:r.index)||0,w=C[S];if(w==null)return{};if(l!==w)return{reset:{placement:C[0]}};let T=await u.detectOverflow(e,v),g=Rs(w,a,await(u.isRTL==null?void 0:u.isRTL(p.floating))),y=[T[et(w)],T[g[0]],T[g[1]]],x=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:w,overflows:y}],O=C[S+1];if(O)return{data:{index:S+1,overflows:x},reset:{placement:O}};let R=x.map(_=>{let N=Ce(_.placement);return[_.placement,N&&h?_.overflows.slice(0,2).reduce((H,he)=>H+he,0):_.overflows[0],_.overflows]}).sort((_,N)=>_[1]-N[1]),D=((i=R.filter(_=>_[2].slice(0,Ce(_[0])?2:3).every(N=>N<=0))[0])==null?void 0:i[0])||R[0][0];return D!==l?{data:{index:S+1,overflows:x},reset:{placement:D}}:{}}}};var eu=new Set(["left","top"]);async function tu(t,e){let{placement:r,platform:n,elements:i}=t,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=et(r),l=Ce(r),u=Ot(r)==="y",p=eu.has(s)?-1:1,h=a&&u?-1:1,f=wt(e,t),{mainAxis:m,crossAxis:b,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof v=="number"&&(b=l==="end"?v*-1:v),u?{x:b*h,y:m*p}:{x:m*p,y:b*h}}var Ps=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;let{x:i,y:a,placement:s,middlewareData:l}=e,u=await tu(e,t);return s===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:s}}}}},Fs=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:n,placement:i,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:T=>{let{x:g,y}=T;return{x:g,y}}},...p}=wt(t,e),h={x:r,y:n},f=await a.detectOverflow(e,p),m=Ot(i),b=Sn(m),v=h[b],C=h[m],S=(T,g)=>As(g+f[T==="y"?"top":"left"],g,g-f[T==="y"?"bottom":"right"]);s&&(v=S(b,v)),l&&(C=S(m,C));let w=u.fn({...e,[b]:v,[m]:C});return{...w,data:{x:w.x-r,y:w.y-n,enabled:{[b]:s,[m]:l}}}}}};var Ms=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){let{placement:r,rects:n,platform:i,elements:a}=e,{apply:s=()=>{},...l}=wt(t,e),u=await i.detectOverflow(e,l),p=et(r),h=Ce(r),f=Ot(r)==="y",{width:m,height:b}=n.floating,v,C;p==="top"||p==="bottom"?(v=p,C=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(C=p,v=h==="end"?"top":"bottom");let S=b-u.top-u.bottom,w=m-u.left-u.right,T=Xe(b-u[v],S),g=Xe(m-u[C],w),y=e.middlewareData.shift,x=!y,O=T,R=g;y!=null&&y.enabled.x&&(R=w),y!=null&&y.enabled.y&&(O=S),x&&!h&&(f?R=m-2*Se(u.left,u.right):O=b-2*Se(u.top,u.bottom)),await s({...e,availableWidth:R,availableHeight:O});let k=await i.getDimensions(a.floating);return m!==k.width||b!==k.height?{reset:{rects:!0}}:{}}}};function Vr(){return typeof window<"u"}function ot(t){return Us(t)?(t.nodeName||"").toLowerCase():"#document"}function J(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Le(t){var e;return(e=(Us(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Us(t){return Vr()?t instanceof Node||t instanceof J(t).Node:!1}function de(t){return Vr()?t instanceof Element||t instanceof J(t).Element:!1}function ke(t){return Vr()?t instanceof HTMLElement||t instanceof J(t).HTMLElement:!1}function Ds(t){return!Vr()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof J(t).ShadowRoot}function rr(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=ue(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&i!=="inline"&&i!=="contents"}function Bs(t){return/^(table|td|th)$/.test(ot(t))}function or(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var ru=/transform|translate|scale|rotate|perspective|filter/,ou=/paint|layout|strict|content/,rt=t=>!!t&&t!=="none",wn;function At(t){let e=de(t)?ue(t):t;return rt(e.transform)||rt(e.translate)||rt(e.scale)||rt(e.rotate)||rt(e.perspective)||!Gr()&&(rt(e.backdropFilter)||rt(e.filter))||ru.test(e.willChange||"")||ou.test(e.contain||"")}function $s(t){let e=He(t);for(;ke(e)&&!Rt(e);){if(At(e))return e;if(or(e))return null;e=He(e)}return null}function Gr(){return wn==null&&(wn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),wn}function Rt(t){return/^(html|body|#document)$/.test(ot(t))}function ue(t){return J(t).getComputedStyle(t)}function nr(t){return de(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function He(t){if(ot(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Ds(t)&&t.host||Le(t);return Ds(e)?e.host:e}function Hs(t){let e=He(t);return Rt(e)?(t.ownerDocument||t).body:ke(e)&&rr(e)?e:Hs(e)}function zr(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=Hs(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),s=J(i);if(a){let l=Wr(s);return e.concat(s,s.visualViewport||[],rr(i)?i:[],l&&r?zr(l):[])}else return e.concat(i,zr(i,[],r))}function Wr(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Gs(t){let e=ue(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=ke(t),a=i?t.offsetWidth:r,s=i?t.offsetHeight:n,l=tr(r)!==a||tr(n)!==s;return l&&(r=a,n=s),{width:r,height:n,$:l}}function Ws(t){return de(t)?t:t.contextElement}function _t(t){let e=Ws(t);if(!ke(e))return Ee(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:a}=Gs(e),s=(a?tr(r.width):r.width)/n,l=(a?tr(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var nu=Ee(0);function js(t){let e=J(t);return!Gr()||!e.visualViewport?nu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function iu(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===J(t)}function ir(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),a=Ws(t),s=Ee(1);e&&(n?de(n)&&(s=_t(n)):s=_t(t));let l=iu(a,r,n)?js(a):Ee(0),u=(i.left+l.x)/s.x,p=(i.top+l.y)/s.y,h=i.width/s.x,f=i.height/s.y;if(a&&n){let m=J(a),b=de(n)?J(n):n,v=m,C=Wr(v);for(;C&&b!==v;){let S=_t(C),w=C.getBoundingClientRect(),T=ue(C),g=w.left+(C.clientLeft+parseFloat(T.paddingLeft))*S.x,y=w.top+(C.clientTop+parseFloat(T.paddingTop))*S.y;u*=S.x,p*=S.y,h*=S.x,f*=S.y,u+=g,p+=y,v=J(C),C=Wr(v)}}return tt({width:h,height:f,x:u,y:p})}function jr(t,e){let r=nr(t).scrollLeft;return e?e.left+r:ir(Le(t)).left+r}function Ks(t,e){let r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-jr(t,r),i=r.top+e.scrollTop;return{x:n,y:i}}function au(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t,a=i==="fixed",s=Le(n),l=e?or(e.floating):!1;if(n===s||l&&a)return r;let u={scrollLeft:0,scrollTop:0},p=Ee(1),h=Ee(0),f=ke(n);if((f||!a)&&((ot(n)!=="body"||rr(s))&&(u=nr(n)),f)){let b=ir(n);p=_t(n),h.x=b.x+n.clientLeft,h.y=b.y+n.clientTop}let m=s&&!f&&!a?Ks(s,u):Ee(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-u.scrollLeft*p.x+h.x+m.x,y:r.y*p.y-u.scrollTop*p.y+h.y+m.y}}function su(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function cu(t){let e=nr(t),r=t.ownerDocument.body,n=Se(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Se(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-e.scrollLeft+jr(t),s=-e.scrollTop;return ue(r).direction==="rtl"&&(a+=Se(t.clientWidth,r.clientWidth)-n),{width:n,height:i,x:a,y:s}}var lu=25;function du(t,e,r){r===void 0&&(r="viewport");let n=r==="layoutViewport",i=J(t),a=Le(t),s=i.visualViewport,l=a.clientWidth,u=a.clientHeight,p=0,h=0;if(s){let m=!Gr()||e==="fixed";n?m||(p=-s.offsetLeft,h=-s.offsetTop):(l=s.width,u=s.height,m&&(p=s.offsetLeft,h=s.offsetTop))}if(jr(a)<=0){let m=a.ownerDocument,b=m.body,v=getComputedStyle(b),C=m.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,S=Math.abs(a.clientWidth-b.clientWidth-C),w=getComputedStyle(a).scrollbarGutter==="stable both-edges"?S/2:S;w<=lu&&(l-=w)}return{width:l,height:u,x:p,y:h}}function uu(t,e){let r=ir(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,a=_t(t),s=t.clientWidth*a.x,l=t.clientHeight*a.y,u=i*a.x,p=n*a.y;return{width:s,height:l,x:u,y:p}}function zs(t,e,r){let n;if(e==="viewport"||e==="layoutViewport")n=du(t,r,e);else if(e==="document")n=cu(Le(t));else if(de(e))n=uu(e,r);else{let i=js(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return tt(n)}function pu(t,e){let r=e.get(t);if(r)return r;let n=zr(t,[],!1).filter(l=>de(l)&&ot(l)!=="body"),i=null,a=ue(t).position==="fixed",s=a?He(t):t;for(;de(s)&&!Rt(s);){let l=ue(s),u=At(s),p=i?i.position:a?"fixed":"";!u&&(p==="fixed"||p==="absolute"&&l.position==="static")?n=n.filter(f=>f!==s):i=l,s=He(s)}return e.set(t,n),n}function fu(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,s=[...r==="clippingAncestors"?or(e)?[]:pu(e,this._c):[].concat(r),n],l=zs(e,s[0],i),u=l.top,p=l.right,h=l.bottom,f=l.left;for(let m=1;m<s.length;m++){let b=zs(e,s[m],i);u=Se(b.top,u),p=Xe(b.right,p),h=Xe(b.bottom,h),f=Se(b.left,f)}return{width:p-f,height:h-u,x:f,y:u}}function hu(t){let{width:e,height:r}=Gs(t);return{width:e,height:r}}function mu(t,e,r){let n=ke(e),i=Le(e),a=r==="fixed",s=ir(t,!0,a,e),l={scrollLeft:0,scrollTop:0},u=Ee(0);if((n||!a)&&((ot(e)!=="body"||rr(i))&&(l=nr(e)),n)){let m=ir(e,!0,a,e);u.x=m.x+e.clientLeft,u.y=m.y+e.clientTop}!n&&i&&(u.x=jr(i));let p=i&&!n&&!a?Ks(i,l):Ee(0),h=s.left+l.scrollLeft-u.x-p.x,f=s.top+l.scrollTop-u.y-p.y;return{x:h,y:f,width:s.width,height:s.height}}function On(t){return ue(t).position==="static"}function Vs(t,e){if(!ke(t)||ue(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Le(t)===r&&(r=r.ownerDocument.body),r}function qs(t,e){let r=J(t);if(or(t))return r;if(!ke(t)){let i=He(t);for(;i&&!Rt(i);){if(de(i)&&!On(i))return i;i=He(i)}return r}let n=Vs(t,e);for(;n&&Bs(n)&&On(n);)n=Vs(n,e);return n&&Rt(n)&&On(n)&&!At(n)?r:n||$s(t)||r}var gu=async function(t){let e=this.getOffsetParent||qs,r=this.getDimensions,n=await r(t.floating);return{reference:mu(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function yu(t){return ue(t).direction==="rtl"}var It={convertOffsetParentRelativeRectToViewportRelativeRect:au,getDocumentElement:Le,getClippingRect:fu,getOffsetParent:qs,getElementRects:gu,getClientRects:su,getDimensions:hu,getScale:_t,isElement:de,isRTL:yu};var Zs=Ps,An=Ns,Qs=Fs;var Ys=Ms;var Rn=(t,e,r)=>{let n=new Map,i=r??{},a={...It,...i.platform,_c:n};return ks(t,e,{...i,platform:a})};function In(t){return bu(t)}function _n(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function bu(t){for(let e=t;e;e=_n(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=_n(t);e;e=_n(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||At(r)||e.tagName==="BODY"))return e}return null}async function xu(t,e,r){let n;return typeof r=="object"?n=r:n={placement:r},Rn(t,e,{strategy:n.strategy,platform:{...It,getOffsetParent:i=>It.getOffsetParent(i,In)},middleware:[Qs({crossAxis:!0}),An({allowedPlacements:[n.placement]})]})}async function vu(t,e,r,n,i,a,s){let l,u;return typeof r=="object"?(l=r.placement,n=r.allowedPlacements,i=r.strategy,a=r.maxHeightCssVariable,u=r.maxWidthCssVariable,s=r.offsetValue):l=r,Rn(t,e,{placement:l,strategy:i,platform:{...It,getOffsetParent:p=>It.getOffsetParent(p,In)},middleware:[Zs(s??4),An({allowedPlacements:n}),Ys({apply({availableHeight:p,availableWidth:h,elements:f}){typeof a=="string"&&(a=`var(${a})`),a?f.floating.style.maxHeight=`min(${Math.max(0,p)}px, ${a})`:f.floating.style.maxHeight=`${Math.max(0,p)}px`,typeof u=="string"&&(u=`var(${u})`),u?f.floating.style.maxWidth=`min(${Math.max(0,h)}px, ${u})`:f.floating.style.maxWidth=`${Math.max(0,h)}px`}})]})}var Ln={};L(Ln,{isSlotEmptyOrWithoutContent:()=>Su});var Su=t=>t?t.assignedNodes({flatten:!0}).filter(n=>{var i;return n.nodeType===Node.TEXT_NODE?((i=n.textContent)!==null&&i!==void 0?i:"").trim().length>0:!0}).length===0:!0;var Dn={};L(Dn,{FtdsBase:()=>Mn,toFtdsBase:()=>nc});var Fn={};L(Fn,{ExportpartsUpdatedEvent:()=>nt,FtLitElement:()=>re});var kn={};L(kn,{ScopedRegistryLitElement:()=>ar});var ar=class extends Re{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},n=this.renderOptions.creationScope=this.attachShadow(r);return $t(n,e.elementStyles),n}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(e,r){Kt(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 Pn={};L(Pn,{shadowQuerySelector:()=>Nn,shadowQuerySelectorAll:()=>Eu});function Nn(t,e,...r){var n;let i=t.querySelector(e);for(let a of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function Eu(t,e,...r){let n=[...t.querySelectorAll(e)];for(let i of r)n=n.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return n}var Tt=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},tc,Js=Symbol("constructorPrototype"),Xs=Symbol("constructorName"),rc=Symbol("exportpartsDebouncer"),ec=Symbol("dynamicDependenciesLoaded"),nt=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};nt.eventName="exportparts-updated";var re=class extends ar{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[tc]=new ce(5),this.scheduleExportpartsUpdate=()=>{var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[rc].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.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[Xs]=this.constructor.name,this[Js]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Xs]&&Object.setPrototypeOf(this,this[Js])}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(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[ec]||(r[ec]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(nt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(nt.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 nt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let a=[...i??[],n];r=Nn(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}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,n,i,a,s,l;let u=m=>m!=null&&m.trim().length>0,p=e.filter(u).map(m=>m.trim());if(p.length===0){this.exportparts=void 0;return}let h=new Set;for(let m of(a=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&a!==void 0?a:[]){let b=(s=(n=m.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&s!==void 0?s:[],v=(l=(i=m.getAttribute("exportparts"))===null||i===void 0?void 0:i.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[],C=[...b,...v].filter(u).map(S=>S.trim());for(let S of C)h.add(S)}if(h.size===0){this.exportparts=void 0;return}let f=[...h.values()].flatMap(m=>p.map(b=>`${m}:${b}--${m}`));this.exportparts=[...this.part,...f].join(", ")}};tc=rc;Tt([E()],re.prototype,"exportpartsPrefix",void 0);Tt([te([])],re.prototype,"exportpartsPrefixes",void 0);Tt([E({reflect:!0})],re.prototype,"exportparts",void 0);Tt([E()],re.prototype,"customStylesheet",void 0);Tt([E()],re.prototype,"elementToFocus",void 0);Tt([K()],re.prototype,"useAdoptedStyleSheets",void 0);var oc=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},nc=W(Symbol("toFtdsBase"),function(t){class e extends t{constructor(){super(...arguments),this.size=er.medium,this.family=Xt.neutral}getDesignSystemBaseClasses(){return{[hn(this.family)]:!0,[mn(this.size)]:!0}}}return oc([E()],e.prototype,"size",void 0),oc([E()],e.prototype,"family",void 0),e}),Mn=class extends nc(re){};var ic={};var $n={};L($n,{highlightHtml:()=>Bn,highlightHtmlColorCssVariable:()=>ac,highlightHtmlStyles:()=>wu});var it=class t{constructor(e,r=!0,n=[],i=5e3){this.ctx=e,this.iframes=r,this.exclude=n,this.iframesTimeout=i}static matches(e,r){let n=typeof r=="string"?[r]:r,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(i){let a=!1;return n.every(s=>i.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(n=>{let i=r.filter(a=>a.contains(n)).length>0;r.indexOf(n)===-1&&!i&&r.push(n)}),r}getIframeContents(e,r,n=()=>{}){let i;try{let a=e.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{n()}i&&r(i)}isIframeBlank(e){let r="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&n!==r&&n}observeIframeLoad(e,r,n){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,n))}catch{n()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,n){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,n):this.getIframeContents(e,r,n):this.observeIframeLoad(e,r,n)}catch{n()}}waitForIframes(e,r){let n=0;this.forEachIframe(e,()=>!0,i=>{n++,this.waitForIframes(i.querySelector("html"),()=>{--n||r()})},i=>{i||r()})}forEachIframe(e,r,n,i=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let u=()=>{--s<=0&&i(l)};s||u(),a.forEach(p=>{t.matches(p,this.exclude)?u():this.onIframeReady(p,h=>{r(p)&&(l++,n(h)),u()},u)})}createIterator(e,r,n){return document.createNodeIterator(e,r,n,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,n){let i=e.compareDocumentPosition(n),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(r!==null){let s=r.compareDocumentPosition(n),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),n;return r===null?n=e.nextNode():n=e.nextNode()&&e.nextNode(),{prevNode:r,node:n}}checkIframeFilter(e,r,n,i){let a=!1,s=!1;return i.forEach((l,u)=>{l.val===n&&(a=u,s=l.handled)}),this.compareNodeIframe(e,r,n)?(a===!1&&!s?i.push({val:n,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:n,handled:!1}),!1)}handleOpenIframes(e,r,n,i){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,n,i)})})}iterateThroughNodes(e,r,n,i,a){let s=this.createIterator(r,e,i),l=[],u=[],p,h,f=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;f();)this.iframes&&this.forEachIframe(r,m=>this.checkIframeFilter(p,h,m,l),m=>{this.createInstanceOnIframe(m).forEachNode(e,b=>u.push(b),i)}),u.push(p);u.forEach(m=>{n(m)}),this.iframes&&this.handleOpenIframes(l,e,n,i),a()}forEachNode(e,r,n,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(l=>{let u=()=>{this.iterateThroughNodes(e,l,r,n,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(l,u):u()})}};var sr=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 it(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[r]=="function"&&n[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,n=this.opt.caseSensitive?"":"i",i=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),u=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&u!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(u)})`,`gm${n}`),i+`(${this.processSynomyms(l)}|${this.processSynomyms(u)})`+i))}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,n,i)=>{let a=i.charAt(n+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&r.push(this.escapeStr(n.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",n=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"],i=[];return e.split("").forEach(a=>{n.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),i.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",n=this.opt.accuracy,i=typeof n=="string"?n:n.value,a=typeof n=="string"?[]:n.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),i){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(n=>{this.opt.separateWordSearch?n.split(" ").forEach(i=>{i.trim()&&r.indexOf(i)===-1&&r.push(i)}):n.trim()&&r.indexOf(n)===-1&&r.push(n)}),{keywords:r.sort((n,i)=>i.length-n.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=[],n=0;return e.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(i,n);l&&(i.start=a,i.length=s-a,r.push(i),n=s)}),r}callNoMatchOnInvalidRanges(e,r){let n,i,a=!1;return e&&typeof e.start<"u"?(n=parseInt(e.start,10),i=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&i-r>0&&i-n>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:n,end:i,valid:a}}checkWhitespaceRanges(e,r,n){let i,a=!0,s=n.length,l=r-s,u=parseInt(e.start,10)-l;return u=u>s?s:u,i=u+parseInt(e.length,10),i>s&&(i=s,this.log(`End range automatically set to the max value of ${s}`)),u<0||i-u<0||u>s||i>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(u,i).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:u,end:i,valid:a}}getTextNodes(e){let r="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{n.push({start:r.length,end:(r+=i.textContent).length,node:i})},i=>this.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:n})})}matchesExclude(e){return it.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,n){let i=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(n-r),l=document.createElement(i);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,n,i,a){e.nodes.every((s,l)=>{let u=e.nodes[l+1];if(typeof u>"u"||u.start>r){if(!i(s.node))return!1;let p=r-s.start,h=(n>s.end?s.end:n)-s.start,f=e.value.substr(0,s.start),m=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,h),e.value=f+m,e.nodes.forEach((b,v)=>{v>=l&&(e.nodes[v].start>0&&v!==l&&(e.nodes[v].start-=h),e.nodes[v].end-=h)}),n-=h,a(s.node.previousSibling,s.start),n>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,n,i,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(u=>{u=u.node;let p;for(;(p=e.exec(u.textContent))!==null&&p[s]!=="";){if(!n(p[s],u))continue;let h=p.index;if(s!==0)for(let f=1;f<s;f++)h+=p[f].length;u=this.wrapRangeInTextNode(u,h,h+p[s].length),i(u.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,n,i,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let u;for(;(u=e.exec(l.value))!==null&&u[s]!=="";){let p=u.index;if(s!==0)for(let f=1;f<s;f++)p+=u[f].length;let h=p+u[s].length;this.wrapRangeInMappedTextNode(l,p,h,f=>n(u[s],f),(f,m)=>{e.lastIndex=m,i(f)})}a()})}wrapRangeFromIndex(e,r,n,i){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,u)=>{let{start:p,end:h,valid:f}=this.checkWhitespaceRanges(l,s,a.value);f&&this.wrapRangeInMappedTextNode(a,p,h,m=>r(m,l,a.value.substring(p,h),u),m=>{n(m,l)})}),i()})}unwrapMatches(e){let r=e.parentNode,n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.removeChild(e.firstChild));r.replaceChild(n,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 n=0,i="wrapMatches",a=s=>{n++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,n),a,()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,r){this.opt=r;let n=0,i="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",u=p=>{let h=new RegExp(this.createRegExp(p),`gm${l}`),f=0;this.log(`Searching with expression "${h}"`),this[i](h,1,(m,b)=>this.opt.filter(b,p,n,f),m=>{f++,n++,this.opt.each(m)},()=>{f===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(n):u(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(n):u(a[0])}markRanges(e,r){this.opt=r;let n=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(a,s,l,u)=>this.opt.filter(a,s,l,u),(a,s)=>{n++,this.opt.each(a,s)},()=>{this.opt.done(n)})):this.opt.done(n)}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,n=>{this.unwrapMatches(n)},n=>{let i=it.matches(n,r),a=this.matchesExclude(n);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Un(t){let e=new sr(t);return this.mark=(r,n)=>(e.mark(r,n),this),this.markRegExp=(r,n)=>(e.markRegExp(r,n),this),this.markRanges=(r,n)=>(e.markRanges(r,n),this),this.unmark=r=>(e.unmark(r),this),this}var Cu=Un,ac=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),wu=U`
5
5
  .highlight-html-match {
6
- background: ${ic};
6
+ background: ${ac};
7
7
  }
8
- `;function Bn(t,e,r){var n,i;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Su(t);if(s.unmark(),e&&e.trim()){let l={className:(n=r?.className)!==null&&n!==void 0?n:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=p=>{for(let h in r.attributes)p.setAttribute(h,r.attributes[h])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((i=e.match(/"[^"]+"/g))!==null&&i!==void 0?i:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var $n={};T($n,{noTextInputDefaultClearButton:()=>Au,noTextSelect:()=>Cu,safariEllipsisFix:()=>Ou,wordWrap:()=>wu});var Cu=U`
8
+ `;function Bn(t,e,r){var n,i;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Cu(t);if(s.unmark(),e&&e.trim()){let l={className:(n=r?.className)!==null&&n!==void 0?n:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=p=>{for(let h in r.attributes)p.setAttribute(h,r.attributes[h])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((i=e.match(/"[^"]+"/g))!==null&&i!==void 0?i:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var Hn={};L(Hn,{noTextInputDefaultClearButton:()=>_u,noTextSelect:()=>Ou,safariEllipsisFix:()=>Ru,wordWrap:()=>Au});var Ou=U`
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
- `,wu=U`
17
+ `,Au=U`
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
- `,Ou=U`
29
+ `,Ru=U`
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
- `,Au=U`
40
+ `,_u=U`
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 ac={};var zn={};T(zn,{ParametrizedLabelResolver:()=>cr});var cr=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var n,i;e=this.resolvePluralKey(e,r);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,r){for(let n of r)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let n=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var li={};T(li,{FtCommandQueue:()=>lr,FtLitElementRedux:()=>Ne,FtReduxStore:()=>Me,FtStateManager:()=>ct,ReduxWatcher:()=>Ge,clearAllStores:()=>Cp,isFtReduxStore:()=>Tt,redux:()=>pe,reduxEventListener:()=>_u,reduxReactive:()=>Ru,watch:()=>ci,withRedux:()=>sc});var Ru=()=>(t,e)=>{var r;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(e)},pe=t=>{let e=t??{};return(r,n)=>{var i;let a={hasChanged:xe,attribute:!1,...e};E(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(l=>l[n]),store:e.store})}},_u=t=>(e,r)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,t)};var lr=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==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 Tt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var dr=Symbol("internalReduxEventsUnsubscribers"),ze=Symbol("internalStoresUnsubscribers"),at=Symbol("internalStores"),sc=W(Symbol("withRedux"),function(t){var e,r,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=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[at].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[at].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[at].get(s)}addStore(s,l){var u;l=(u=l??s.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(l),this[at].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[at].delete(l)}setupStores(){this.unsubscribeFromStores(),this[at].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let u=this.constructor.getPropertyOptions(l);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[ze].has(s.store):this[ze].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var u;this[ze].set(s,l.subscribe(()=>this.updateFromStores())),this[dr].set(s,[]),Tt(l)&&l.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||l.name===p.store)){let f=m=>this[h](m);l.addEventListener(p.eventName,f),this[dr].get(s).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ze].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[ze].has(s)&&this[ze].get(s)(),this[ze].delete(s),(l=this[dr].get(s))===null||l===void 0||l.forEach(u=>u()),this[dr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ze,r=at,n=dr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Ne=class extends sc(re){};function j(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 Iu=typeof Symbol=="function"&&Symbol.observable||"@@observable",cc=Iu,Vn=()=>Math.random().toString(36).substring(7).split("").join("."),ku={INIT:`@@redux/INIT${Vn()}`,REPLACE:`@@redux/REPLACE${Vn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Vn()}`},Kr=ku;function qr(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 Gn(t,e,r){if(typeof t!="function")throw new Error(j(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(j(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(j(1));return r(Gn)(t,e)}let n=t,i=e,a=new Map,s=a,l=0,u=!1;function p(){s===a&&(s=new Map,a.forEach((S,w)=>{s.set(w,S)}))}function h(){if(u)throw new Error(j(3));return i}function f(S){if(typeof S!="function")throw new Error(j(4));if(u)throw new Error(j(5));let w=!0;p();let k=l++;return s.set(k,S),function(){if(w){if(u)throw new Error(j(6));w=!1,p(),s.delete(k),a=null}}}function m(S){if(!qr(S))throw new Error(j(7));if(typeof S.type>"u")throw new Error(j(8));if(typeof S.type!="string")throw new Error(j(17));if(u)throw new Error(j(9));try{u=!0,i=n(i,S)}finally{u=!1}return(a=s).forEach(k=>{k()}),S}function b(S){if(typeof S!="function")throw new Error(j(10));n=S,m({type:Kr.REPLACE})}function v(){let S=f;return{subscribe(w){if(typeof w!="object"||w===null)throw new Error(j(11));function k(){let y=w;y.next&&y.next(h())}return k(),{unsubscribe:S(k)}},[cc](){return this}}}return m({type:Kr.INIT}),{dispatch:m,subscribe:f,getState:h,replaceReducer:b,[cc]:v}}function Tu(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Kr.INIT})>"u")throw new Error(j(12));if(typeof r(void 0,{type:Kr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(j(13))})}function lc(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 n=Object.keys(r),i,a;try{Tu(r)}catch(s){a=s}return function(l={},u){if(a)throw a;let p=!1,h={};for(let f=0;f<n.length;f++){let m=n[f],b=r[m],v=l[m],C=b(v,u);if(typeof C>"u"){let S=u&&u.type;throw new Error(j(14))}h[m]=C,p=p||C!==v}return p=p||n.length!==Object.keys(l).length,p?h:l}}function ur(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...n)=>e(r(...n)))}function dc(...t){return e=>(r,n)=>{let i=e(r,n),a=()=>{throw new Error(j(15))},s={getState:i.getState,dispatch:(u,...p)=>a(u,...p)},l=t.map(u=>u(s));return a=ur(...l)(i.dispatch),{...i,dispatch:a}}}function uc(t){return qr(t)&&"type"in t&&typeof t.type=="string"}var vc=Symbol.for("immer-nothing"),pc=Symbol.for("immer-draftable"),q=Symbol.for("immer-state");function fe(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var oe=Object,Nt=oe.getPrototypeOf,Jr="constructor",no="prototype",qn="configurable",Xr="enumerable",Qr="writable",pr="value",Oe=t=>!!t&&!!t[q];function ne(t){return t?Sc(t)||ao(t)||!!t[pc]||!!t[Jr]?.[pc]||so(t)||co(t):!1}var Lu=oe[no][Jr].toString(),fc=new WeakMap;function Sc(t){if(!t||!ri(t))return!1;let e=Nt(t);if(e===null||e===oe[no])return!0;let r=oe.hasOwnProperty.call(e,Jr)&&e[Jr];if(r===Object)return!0;if(!Lt(r))return!1;let n=fc.get(r);return n===void 0&&(n=Function.toString.call(r),fc.set(r,n)),n===Lu}function io(t,e,r=!0){mr(t)===0?(r?Reflect.ownKeys(t):oe.keys(t)).forEach(i=>{e(i,t[i],t)}):t.forEach((n,i)=>e(i,n,t))}function mr(t){let e=t[q];return e?e.type_:ao(t)?1:so(t)?2:co(t)?3:0}var Wn=(t,e,r=mr(t))=>r===2?t.has(e):oe[no].hasOwnProperty.call(t,e),Zn=(t,e,r=mr(t))=>r===2?t.get(e):t[e],eo=(t,e,r,n=mr(t))=>{n===2?t.set(e,r):n===3?t.add(r):t[e]=r};function Nu(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var ao=Array.isArray,so=t=>t instanceof Map,co=t=>t instanceof Set,ri=t=>typeof t=="object",Lt=t=>typeof t=="function",jn=t=>typeof t=="boolean";function Pu(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Pe=t=>t.copy_||t.base_;var oi=t=>t.modified_?t.copy_:t.base_;function Qn(t,e){if(so(t))return new Map(t);if(co(t))return new Set(t);if(ao(t))return Array[no].slice.call(t);let r=Sc(t);if(e===!0||e==="class_only"&&!r){let n=oe.getOwnPropertyDescriptors(t);delete n[q];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){let s=i[a],l=n[s];l[Qr]===!1&&(l[Qr]=!0,l[qn]=!0),(l.get||l.set)&&(n[s]={[qn]:!0,[Qr]:!0,[Xr]:l[Xr],[pr]:t[s]})}return oe.create(Nt(t),n)}else{let n=Nt(t);if(n!==null&&r)return{...t};let i=oe.create(n);return oe.assign(i,t)}}function ni(t,e=!1){return lo(t)||Oe(t)||!ne(t)||(mr(t)>1&&oe.defineProperties(t,{set:Zr,add:Zr,clear:Zr,delete:Zr}),oe.freeze(t),e&&io(t,(r,n)=>{ni(n,!0)},!1)),t}function Fu(){fe(2)}var Zr={[pr]:Fu};function lo(t){return t===null||!ri(t)?!0:oe.isFrozen(t)}var to="MapSet",Yn="Patches",hc="ArrayMethods",Ec={};function st(t){let e=Ec[t];return e||fe(0,t),e}var mc=t=>!!Ec[t];var fr,Cc=()=>fr,Mu=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:mc(to)?st(to):void 0,arrayMethodsPlugin_:mc(hc)?st(hc):void 0});function gc(t,e){e&&(t.patchPlugin_=st(Yn),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Jn(t){Xn(t),t.drafts_.forEach(Du),t.drafts_=null}function Xn(t){t===fr&&(fr=t.parent_)}var yc=t=>fr=Mu(fr,t);function Du(t){let e=t[q];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function bc(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[q].modified_&&(Jn(e),fe(4)),ne(t)&&(t=xc(e,t));let{patchPlugin_:i}=e;i&&i.generateReplacementPatches_(r[q].base_,t,e)}else t=xc(e,r);return Uu(e,t,!0),Jn(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==vc?t:void 0}function xc(t,e){if(lo(e))return e;let r=e[q];if(!r)return ro(e,t.handledSet_,t);if(!uo(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(t);Ac(r,t)}return r.copy_}function Uu(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&ni(e,r)}function wc(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var uo=(t,e)=>t.scope_===e,Bu=[];function Oc(t,e,r,n){let i=Pe(t),a=t.type_;if(n!==void 0&&Zn(i,n,a)===e){eo(i,n,r,a);return}if(!t.draftLocations_){let l=t.draftLocations_=new Map;io(i,(u,p)=>{if(Oe(p)){let h=l.get(p)||[];h.push(u),l.set(p,h)}})}let s=t.draftLocations_.get(e)??Bu;for(let l of s)eo(i,l,r,a)}function Hu(t,e,r){t.callbacks_.push(function(i){let a=e;if(!a||!uo(a,i))return;i.mapSetPlugin_?.fixSetContents(a);let s=oi(a);Oc(t,a.draft_??a,s,r),Ac(a,i)})}function Ac(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:n}=e;if(n){let i=n.getPath(t);i&&n.generatePatches_(t,i,e)}wc(t)}}function $u(t,e,r){let{scope_:n}=t;if(Oe(r)){let i=r[q];uo(i,n)&&i.callbacks_.push(function(){Yr(t);let s=oi(i);Oc(t,r,s,e)})}else ne(r)&&t.callbacks_.push(function(){let a=Pe(t);t.type_===3?a.has(r)&&ro(r,n.handledSet_,n):Zn(a,e,t.type_)===r&&n.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&ro(Zn(t.copy_,e,t.type_),n.handledSet_,n)})}function ro(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Oe(t)||e.has(t)||!ne(t)||lo(t)||(e.add(t),io(t,(n,i)=>{if(Oe(i)){let a=i[q];if(uo(a,r)){let s=oi(a);eo(t,n,s,t.type_),wc(a)}}else ne(i)&&ro(i,e,r)})),t}function zu(t,e){let r=ao(t),n={type_:r?1:0,scope_:e?e.scope_:Cc(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,a=oo;r&&(i=[n],a=hr);let{revoke:s,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=s,[l,n]}var oo={get(t,e){if(e===q)return t;let r=t.scope_.arrayMethodsPlugin_,n=t.type_===1&&typeof e=="string";if(n&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let i=Pe(t);if(!Wn(i,e,t.type_))return Gu(t,i,e);let a=i[e];if(t.finalized_||!ne(a)||n&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Pu(e))return a;if(a===Kn(t.base_,e)||Vu(t,e,a)){Yr(t);let s=t.type_===1?+e:e,l=ti(t.scope_,a,t,s);return t.copy_[s]=l}return a},has(t,e){return e in Pe(t)},ownKeys(t){return Reflect.ownKeys(Pe(t))},set(t,e,r){let n=Rc(Pe(t),e);if(n?.set)return n.set.call(t.draft_,r),!0;if(!t.modified_){let i=Kn(Pe(t),e),a=i?.[q];if(a&&a.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(Nu(r,i)&&(r!==void 0||Wn(t.base_,e,t.type_)))return!0;Yr(t),ei(t)}return t.copy_[e]===r&&(r!==void 0||Wn(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),$u(t,e,r)),!0},deleteProperty(t,e){return Yr(t),Kn(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),ei(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Pe(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{[Qr]:!0,[qn]:t.type_!==1||e!=="length",[Xr]:n[Xr],[pr]:r[e]}},defineProperty(){fe(11)},getPrototypeOf(t){return Nt(t.base_)},setPrototypeOf(){fe(12)}},hr={};for(let t in oo){let e=oo[t];hr[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}hr.deleteProperty=function(t,e){return hr.set.call(this,t,e,void 0)};hr.set=function(t,e,r){return oo.set.call(this,t[0],e,r,t[0])};function Kn(t,e){let r=t[q];return(r?Pe(r):t)[e]}function Vu(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!ne(r)||r[q]?!1:t.baseRefs_.has(r)}function Gu(t,e,r){let n=Rc(e,r);return n?pr in n?n[pr]:n.get?.call(t.draft_):void 0}function Rc(t,e){if(!(e in t))return;let r=Nt(t);for(;r;){let n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Nt(r)}}function ei(t){t.modified_||(t.modified_=!0,t.parent_&&ei(t.parent_))}function Yr(t){t.copy_||(t.assigned_=new Map,t.copy_=Qn(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Wu=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,n)=>{if(Lt(e)&&!Lt(r)){let a=r;r=e;let s=this;return function(u=a,...p){return s.produce(u,h=>r.call(this,h,...p))}}Lt(r)||fe(6),n!==void 0&&!Lt(n)&&fe(7);let i;if(ne(e)){let a=yc(this),s=ti(a,e,void 0),l=!0;try{i=r(s),l=!1}finally{l?Jn(a):Xn(a)}return gc(a,n),bc(i,a)}else if(!e||!ri(e)){if(i=r(e),i===void 0&&(i=e),i===vc&&(i=void 0),this.autoFreeze_&&ni(i,!0),n){let a=[],s=[];st(Yn).generateReplacementPatches_(e,i,{patches_:a,inversePatches_:s}),n(a,s)}return i}else fe(1,e)},this.produceWithPatches=(e,r)=>{if(Lt(e))return(s,...l)=>this.produceWithPatches(s,u=>e(u,...l));let n,i;return[this.produce(e,r,(s,l)=>{n=s,i=l}),n,i]},jn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),jn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),jn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){ne(t)||fe(8),Oe(t)&&(t=_c(t));let e=yc(this),r=ti(e,t,void 0);return r[q].isManual_=!0,Xn(e),r}finishDraft(t,e){let r=t&&t[q];(!r||!r.isManual_)&&fe(9);let{scope_:n}=r;return gc(n,e),bc(void 0,n)}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 i=e[r];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}r>-1&&(e=e.slice(r+1));let n=st(Yn).applyPatches_;return Oe(t)?n(t,e):this.produce(t,i=>n(i,e))}};function ti(t,e,r,n){let[i,a]=so(e)?st(to).proxyMap_(e,r):co(e)?st(to).proxySet_(e,r):zu(e,r);return(r?.scope_??Cc()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=n,r&&n!==void 0?Hu(r,a,n):a.callbacks_.push(function(u){u.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:p}=u;a.modified_&&p&&p.generatePatches_(a,[],u)}),i}function _c(t){return Oe(t)||fe(10,t),Ic(t)}function Ic(t){if(!ne(t)||lo(t))return t;let e=t[q],r,n=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Qn(t,e.scope_.immer_.useStrictShallowCopy_),n=e.scope_.immer_.shouldUseStrictIteration()}else r=Qn(t,!0);return io(r,(i,a)=>{eo(r,i,Ic(a))},n),e&&(e.finalized_=!1),r}var ju=globalThis.Iterator,yx=typeof ju?.from=="function";var Ku=new Wu,ii=Ku.produce;function kc(t){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,t):i(a)}var Tc=kc(),Lc=kc;var qu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ur:ur.apply(null,arguments)},wx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Zu=t=>t&&typeof t.match=="function";function Ve(t,e){function r(...n){if(e){let i=e(...n);if(!i)throw new Error(Fe(0));return{type:t,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:t,payload:n[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=n=>uc(n)&&n.type===t,r}var Dc=class gr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,gr.prototype)}static get[Symbol.species](){return gr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new gr(...e[0].concat(this)):new gr(...e.concat(this))}};function Nc(t){return ne(t)?ii(t,()=>{}):t}function po(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Qu(t){return typeof t=="boolean"}var Yu=()=>function(e){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{},s=new Dc;return r&&(Qu(r)?s.push(Tc):s.push(Lc(r.extraArgument))),s},Ju="RTK_autoBatch";var Pc=t=>e=>{setTimeout(e,t)},Xu=(t,e)=>r=>{let n=!1,i=()=>{n||(n=!0,cancelAnimationFrame(a),clearTimeout(s),r())},a=t(i),s=setTimeout(i,e)},ep=(t={type:"raf"})=>e=>(...r)=>{let n=e(...r),i=!0,a=!1,s=!1,l=new Set,u=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Xu(window.requestAnimationFrame,100):Pc(10):t.type==="callback"?t.queueNotification:Pc(t.timeout),p=()=>{s=!1,a&&(a=!1,l.forEach(h=>h()))};return Object.assign({},n,{subscribe(h){let f=()=>i&&h(),m=n.subscribe(f);return l.add(h),()=>{m(),l.delete(h)}},dispatch(h){try{return i=!h?.meta?.[Ju],a=!i,a&&(s||(s=!0,u(p))),n.dispatch(h)}finally{i=!0}}})},tp=t=>function(r){let{autoBatch:n=!0}=r??{},i=new Dc(t);return n&&i.push(ep(typeof n=="object"?n:void 0)),i};function Uc(t){let e=Yu(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=t||{},u;if(typeof r=="function")u=r;else if(qr(r))u=lc(r);else throw new Error(Fe(1));let p;typeof n=="function"?p=n(e):p=e();let h=ur;i&&(h=qu({trace:!1,...typeof i=="object"&&i}));let f=dc(...p),m=tp(f),b=typeof l=="function"?l(m):m(),v=h(...b);return Gn(u,s,v)}function Bc(t){let e={},r=[],n,i={addCase(a,s){let l=typeof a=="string"?a:a.type;if(!l)throw new Error(Fe(28));if(l in e)throw new Error(Fe(29));return e[l]=s,i},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}),i},addMatcher(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase(a){return n=a,i}};return t(i),[e,r,n]}function rp(t){return typeof t=="function"}function op(t,e){let[r,n,i]=Bc(e),a;if(rp(t))a=()=>Nc(t());else{let l=Nc(t);a=()=>l}function s(l=a(),u){let p=[r[u.type],...n.filter(({matcher:h})=>h(u)).map(({reducer:h})=>h)];return p.filter(h=>!!h).length===0&&(p=[i]),p.reduce((h,f)=>{if(f)if(Oe(h)){let b=f(h,u);return b===void 0?h:b}else{if(ne(h))return ii(h,m=>f(m,u));{let m=f(h,u);if(m===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return h},l)}return s.getInitialState=a,s}var np=(t,e)=>Zu(t)?t.match(e):t(e);function ip(...t){return e=>t.some(r=>np(r,e))}var ap="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",sp=(t=21)=>{let e="",r=t;for(;r--;)e+=ap[Math.random()*64|0];return e},cp=["name","message","stack","code"],ai=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Fc=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},lp=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of cp)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},Mc="External signal was aborted",dp=(()=>{function t(e,r,n){let i=Ve(e+"/fulfilled",(u,p,h,f)=>({payload:u,meta:{...f||{},arg:h,requestId:p,requestStatus:"fulfilled"}})),a=Ve(e+"/pending",(u,p,h)=>({payload:void 0,meta:{...h||{},arg:p,requestId:u,requestStatus:"pending"}})),s=Ve(e+"/rejected",(u,p,h,f,m)=>({payload:f,error:(n&&n.serializeError||lp)(u||"Rejected"),meta:{...m||{},arg:h,requestId:p,rejectedWithValue:!!f,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"}}));function l(u,{signal:p}={}){return(h,f,m)=>{let b=n?.idGenerator?n.idGenerator(u):sp(),v=new AbortController,C,S;function w(g){S=g,v.abort()}p&&(p.aborted?w(Mc):p.addEventListener("abort",()=>w(Mc),{once:!0}));let k=(async function(){let g;try{let x=n?.condition?.(u,{getState:f,extra:m});if(pp(x)&&(x=await x),x===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let O=new Promise((R,L)=>{C=()=>{L({name:"AbortError",message:S||"Aborted"})},v.signal.addEventListener("abort",C,{once:!0})});h(a(b,u,n?.getPendingMeta?.({requestId:b,arg:u},{getState:f,extra:m}))),g=await Promise.race([O,Promise.resolve(r(u,{dispatch:h,getState:f,extra:m,requestId:b,signal:v.signal,abort:w,rejectWithValue:((R,L)=>new ai(R,L)),fulfillWithValue:((R,L)=>new Fc(R,L))})).then(R=>{if(R instanceof ai)throw R;return R instanceof Fc?i(R.payload,b,u,R.meta):i(R,b,u)})])}catch(x){g=x instanceof ai?s(null,b,u,x.payload,x.meta):s(x,b,u)}finally{C&&v.signal.removeEventListener("abort",C)}return n&&!n.dispatchConditionRejection&&s.match(g)&&g.meta.condition||h(g),g})();return Object.assign(k,{abort:w,requestId:b,arg:u,unwrap(){return k.then(up)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:i,settled:ip(s,i),typePrefix:e})}return t.withTypes=()=>t,t})();function up(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function pp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Hc=Symbol.for("rtk-slice-createasyncthunk"),Ax={[Hc]:dp};function fp(t,e){return`${t}/${e}`}function hp({creators:t}={}){let e=t?.asyncThunk?.[Hc];return function(n){let{name:i,reducerPath:a=i}=n;if(!i)throw new Error(Fe(11));typeof process<"u";let s=(typeof n.reducers=="function"?n.reducers(gp()):n.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(g,y){let x=typeof g=="string"?g:g.type;if(!x)throw new Error(Fe(12));if(x in u.sliceCaseReducersByType)throw new Error(Fe(13));return u.sliceCaseReducersByType[x]=y,p},addMatcher(g,y){return u.sliceMatchers.push({matcher:g,reducer:y}),p},exposeAction(g,y){return u.actionCreators[g]=y,p},exposeCaseReducer(g,y){return u.sliceCaseReducersByName[g]=y,p}};l.forEach(g=>{let y=s[g],x={reducerName:g,type:fp(i,g),createNotation:typeof n.reducers=="function"};bp(y)?vp(x,y,p,e):yp(x,y,p)});function h(){let[g={},y=[],x=void 0]=typeof n.extraReducers=="function"?Bc(n.extraReducers):[n.extraReducers],O={...g,...u.sliceCaseReducersByType};return op(n.initialState,R=>{for(let L in O)R.addCase(L,O[L]);for(let L of u.sliceMatchers)R.addMatcher(L.matcher,L.reducer);for(let L of y)R.addMatcher(L.matcher,L.reducer);x&&R.addDefaultCase(x)})}let f=g=>g,m=new Map,b=new WeakMap,v;function C(g,y){return v||(v=h()),v(g,y)}function S(){return v||(v=h()),v.getInitialState()}function w(g,y=!1){function x(R){let L=R[g];return typeof L>"u"&&y&&(L=po(b,x,S)),L}function O(R=f){let L=po(m,y,()=>new WeakMap);return po(L,R,()=>{let D={};for(let[_,N]of Object.entries(n.selectors??{}))D[_]=mp(N,R,()=>po(b,R,S),y);return D})}return{reducerPath:g,getSelectors:O,get selectors(){return O(x)},selectSlice:x}}let k={name:i,reducer:C,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:S,...w(a),injectInto(g,{reducerPath:y,...x}={}){let O=y??a;return g.inject({reducerPath:O,reducer:C},x),{...k,...w(O,!0)}}};return k}}function mp(t,e,r,n){function i(a,...s){let l=e(a);return typeof l>"u"&&n&&(l=r()),t(l,...s)}return i.unwrapped=t,i}var $c=hp();function gp(){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 yp({type:t,reducerName:e,createNotation:r},n,i){let a,s;if("reducer"in n){if(r&&!xp(n))throw new Error(Fe(17));a=n.reducer,s=n.prepare}else a=n;i.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?Ve(t,s):Ve(t))}function bp(t){return t._reducerDefinitionType==="asyncThunk"}function xp(t){return t._reducerDefinitionType==="reducerWithPrepare"}function vp({type:t,reducerName:e},r,n,i){if(!i)throw new Error(Fe(18));let{payloadCreator:a,fulfilled:s,pending:l,rejected:u,settled:p,options:h}=r,f=i(t,a,h);n.exposeAction(e,f),s&&n.addCase(f.fulfilled,s),l&&n.addCase(f.pending,l),u&&n.addCase(f.rejected,u),p&&n.addMatcher(f.settled,p),n.exposeCaseReducer(e,{fulfilled:s||fo,pending:l||fo,rejected:u||fo,settled:p||fo})}function fo(){}var zc="listener",Vc="completed",Gc="cancelled",Rx=`task-${Gc}`,_x=`task-${Vc}`,Ix=`${zc}-${Gc}`,kx=`${zc}-${Vc}`;var{assign:Wc}=Object;var si="listenerMiddleware";var Sp=Wc(Ve(`${si}/add`),{withTypes:()=>Sp}),Tx=Ve(`${si}/removeAll`),Ep=Wc(Ve(`${si}/remove`),{withTypes:()=>Ep});function Fe(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 Me=class t extends Ie{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Tt(a))return a;if(i==null)return;let s=$c({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=Uc({reducer:(u,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let h=ee(s.getInitialState());for(let f of p.keeping)h[f]=(u??h)[f];return h}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...p.overwrites};return s.reducer(u,p)}});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new lr,this.injectInto=(a,s)=>this.reduxSlice.injectInto(a,s),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let u=s,p=a[u];return p?(...h)=>{let f=p(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{let f=u,m=this.getState()[f];Q(m,h)||this.setState({[f]:i(h)})}}}),this.eventBus=n??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 Cp(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Tt(e)&&e.clear()}var Ge=class{constructor(e,r,n){this.store=e,this.valueSelector=r,this.callback=n}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);xe(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 ci(t,e,r){return new Ge(t,e,r).watch()}var ct=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 n of r)this.getOrCreateRequestConsumers(n).add(e).size==1&&this.onNewNeededRequest(n)}unregisterComponent(e,r){for(let n of r)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var pi={};T(pi,{scrollHelper:()=>wp});var di,ho=new Map,ui=class{lock(e,r){if(r){let n=ho.get(r);if(n==null||n===e)return ho.set(r,e),r}}release(e,r){r&&ho.get(r)===e&&ho.delete(r)}findFirstScrollableParent(e){var r;let n,i;for(let a of Xo(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(r=n??i)!==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 n,i;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(n=r.offsetTop)!==null&&n!==void 0?n:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i: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 n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=_e(0,(s-n.scrollTop)/(s-a),1),u=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;n.scrollTo({behavior:r?.behavior,top:u})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(di=window.FluidTopicsScrollHelper)!==null&&di!==void 0?di:new ui;var wp=window.FluidTopicsScrollHelper;var hi={};T(hi,{toFtFormComponent:()=>Op});var fi=Symbol("elementInternals"),Op=W(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[fi].form}constructor(...n){super(n),this[fi]=this.attachInternals()}setFormValue(n){this[fi].setFormValue(n)}}return e});var mi={};T(mi,{DateFormatter:()=>lt});var lt=class{static format(e,r,n,i,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,i,!!a)):this.getIntlDateTime(e,r,n,i,!!a)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,i,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?u:i?`${l} ${u}`:l}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var yi={};T(yi,{ALL_KEYS_VALUE:()=>gi,SameWindowStorageEvent:()=>Pt});var gi="__all__",Pt=class extends CustomEvent{constructor(e,r,n){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==gi}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let n=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Pt(r[0],n,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let n=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Pt(r[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new Pt(gi))}});var xi={};T(xi,{FocusMainContentEvent:()=>bi});var bi=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var jc={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function Ap(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Rp(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",Ap);document.addEventListener("click",Rp);var Kc=U`
47
+ `;var sc={};var zn={};L(zn,{ParametrizedLabelResolver:()=>cr});var cr=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var n,i;e=this.resolvePluralKey(e,r);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,r){for(let n of r)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let n=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var li={};L(li,{FtCommandQueue:()=>lr,FtLitElementRedux:()=>Ne,FtReduxStore:()=>Me,FtStateManager:()=>ct,ReduxWatcher:()=>Ge,clearAllStores:()=>Op,isFtReduxStore:()=>Lt,redux:()=>pe,reduxEventListener:()=>Tu,reduxReactive:()=>Iu,watch:()=>ci,withRedux:()=>cc});var Iu=()=>(t,e)=>{var r;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(e)},pe=t=>{let e=t??{};return(r,n)=>{var i;let a={hasChanged:be,attribute:!1,...e};E(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:(l=>l[n]),store:e.store})}},Tu=t=>(e,r)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,t)};var lr=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==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 Lt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var dr=Symbol("internalReduxEventsUnsubscribers"),ze=Symbol("internalStoresUnsubscribers"),at=Symbol("internalStores"),cc=W(Symbol("withRedux"),function(t){var e,r,n;class i extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=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[at].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[at].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[at].get(s)}addStore(s,l){var u;l=(u=l??s.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(l),this[at].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[at].delete(l)}setupStores(){this.unsubscribeFromStores(),this[at].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let u=this.constructor.getPropertyOptions(l);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:l)){let p=this.getStore(s.store);p&&(s.store?this[ze].has(s.store):this[ze].size>0)&&(this[l]=s.selector(p.getState(),this))}})}subscribeToStore(s,l){var u;this[ze].set(s,l.subscribe(()=>this.updateFromStores())),this[dr].set(s,[]),Lt(l)&&l.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,h)=>{if(typeof this[h]=="function"&&(!p.store||l.name===p.store)){let f=m=>this[h](m);l.addEventListener(p.eventName,f),this[dr].get(s).push(()=>l.removeEventListener(p.eventName,f))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[ze].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[ze].has(s)&&this[ze].get(s)(),this[ze].delete(s),(l=this[dr].get(s))===null||l===void 0||l.forEach(u=>u()),this[dr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=ze,r=at,n=dr,i.reduxProperties=new Map,i.reduxReactiveProperties=new Set,i.reduxEventListeners=new Map,i}),Ne=class extends cc(re){};function j(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 Lu=typeof Symbol=="function"&&Symbol.observable||"@@observable",lc=Lu,Vn=()=>Math.random().toString(36).substring(7).split("").join("."),ku={INIT:`@@redux/INIT${Vn()}`,REPLACE:`@@redux/REPLACE${Vn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Vn()}`},Kr=ku;function qr(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 Gn(t,e,r){if(typeof t!="function")throw new Error(j(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(j(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(j(1));return r(Gn)(t,e)}let n=t,i=e,a=new Map,s=a,l=0,u=!1;function p(){s===a&&(s=new Map,a.forEach((S,w)=>{s.set(w,S)}))}function h(){if(u)throw new Error(j(3));return i}function f(S){if(typeof S!="function")throw new Error(j(4));if(u)throw new Error(j(5));let w=!0;p();let T=l++;return s.set(T,S),function(){if(w){if(u)throw new Error(j(6));w=!1,p(),s.delete(T),a=null}}}function m(S){if(!qr(S))throw new Error(j(7));if(typeof S.type>"u")throw new Error(j(8));if(typeof S.type!="string")throw new Error(j(17));if(u)throw new Error(j(9));try{u=!0,i=n(i,S)}finally{u=!1}return(a=s).forEach(T=>{T()}),S}function b(S){if(typeof S!="function")throw new Error(j(10));n=S,m({type:Kr.REPLACE})}function v(){let S=f;return{subscribe(w){if(typeof w!="object"||w===null)throw new Error(j(11));function T(){let y=w;y.next&&y.next(h())}return T(),{unsubscribe:S(T)}},[lc](){return this}}}return m({type:Kr.INIT}),{dispatch:m,subscribe:f,getState:h,replaceReducer:b,[lc]:v}}function Nu(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Kr.INIT})>"u")throw new Error(j(12));if(typeof r(void 0,{type:Kr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(j(13))})}function dc(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 n=Object.keys(r),i,a;try{Nu(r)}catch(s){a=s}return function(l={},u){if(a)throw a;let p=!1,h={};for(let f=0;f<n.length;f++){let m=n[f],b=r[m],v=l[m],C=b(v,u);if(typeof C>"u"){let S=u&&u.type;throw new Error(j(14))}h[m]=C,p=p||C!==v}return p=p||n.length!==Object.keys(l).length,p?h:l}}function ur(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...n)=>e(r(...n)))}function uc(...t){return e=>(r,n)=>{let i=e(r,n),a=()=>{throw new Error(j(15))},s={getState:i.getState,dispatch:(u,...p)=>a(u,...p)},l=t.map(u=>u(s));return a=ur(...l)(i.dispatch),{...i,dispatch:a}}}function pc(t){return qr(t)&&"type"in t&&typeof t.type=="string"}var Sc=Symbol.for("immer-nothing"),fc=Symbol.for("immer-draftable"),q=Symbol.for("immer-state");function fe(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var oe=Object,Nt=oe.getPrototypeOf,Jr="constructor",no="prototype",qn="configurable",Xr="enumerable",Qr="writable",pr="value",we=t=>!!t&&!!t[q];function ne(t){return t?Ec(t)||ao(t)||!!t[fc]||!!t[Jr]?.[fc]||so(t)||co(t):!1}var Pu=oe[no][Jr].toString(),hc=new WeakMap;function Ec(t){if(!t||!ri(t))return!1;let e=Nt(t);if(e===null||e===oe[no])return!0;let r=oe.hasOwnProperty.call(e,Jr)&&e[Jr];if(r===Object)return!0;if(!kt(r))return!1;let n=hc.get(r);return n===void 0&&(n=Function.toString.call(r),hc.set(r,n)),n===Pu}function io(t,e,r=!0){mr(t)===0?(r?Reflect.ownKeys(t):oe.keys(t)).forEach(i=>{e(i,t[i],t)}):t.forEach((n,i)=>e(i,n,t))}function mr(t){let e=t[q];return e?e.type_:ao(t)?1:so(t)?2:co(t)?3:0}var Wn=(t,e,r=mr(t))=>r===2?t.has(e):oe[no].hasOwnProperty.call(t,e),Zn=(t,e,r=mr(t))=>r===2?t.get(e):t[e],eo=(t,e,r,n=mr(t))=>{n===2?t.set(e,r):n===3?t.add(r):t[e]=r};function Fu(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var ao=Array.isArray,so=t=>t instanceof Map,co=t=>t instanceof Set,ri=t=>typeof t=="object",kt=t=>typeof t=="function",jn=t=>typeof t=="boolean";function Mu(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Pe=t=>t.copy_||t.base_;var oi=t=>t.modified_?t.copy_:t.base_;function Qn(t,e){if(so(t))return new Map(t);if(co(t))return new Set(t);if(ao(t))return Array[no].slice.call(t);let r=Ec(t);if(e===!0||e==="class_only"&&!r){let n=oe.getOwnPropertyDescriptors(t);delete n[q];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){let s=i[a],l=n[s];l[Qr]===!1&&(l[Qr]=!0,l[qn]=!0),(l.get||l.set)&&(n[s]={[qn]:!0,[Qr]:!0,[Xr]:l[Xr],[pr]:t[s]})}return oe.create(Nt(t),n)}else{let n=Nt(t);if(n!==null&&r)return{...t};let i=oe.create(n);return oe.assign(i,t)}}function ni(t,e=!1){return lo(t)||we(t)||!ne(t)||(mr(t)>1&&oe.defineProperties(t,{set:Zr,add:Zr,clear:Zr,delete:Zr}),oe.freeze(t),e&&io(t,(r,n)=>{ni(n,!0)},!1)),t}function Du(){fe(2)}var Zr={[pr]:Du};function lo(t){return t===null||!ri(t)?!0:oe.isFrozen(t)}var to="MapSet",Yn="Patches",mc="ArrayMethods",Cc={};function st(t){let e=Cc[t];return e||fe(0,t),e}var gc=t=>!!Cc[t];var fr,wc=()=>fr,Uu=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:gc(to)?st(to):void 0,arrayMethodsPlugin_:gc(mc)?st(mc):void 0});function yc(t,e){e&&(t.patchPlugin_=st(Yn),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Jn(t){Xn(t),t.drafts_.forEach(Bu),t.drafts_=null}function Xn(t){t===fr&&(fr=t.parent_)}var bc=t=>fr=Uu(fr,t);function Bu(t){let e=t[q];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function xc(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[q].modified_&&(Jn(e),fe(4)),ne(t)&&(t=vc(e,t));let{patchPlugin_:i}=e;i&&i.generateReplacementPatches_(r[q].base_,t,e)}else t=vc(e,r);return $u(e,t,!0),Jn(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Sc?t:void 0}function vc(t,e){if(lo(e))return e;let r=e[q];if(!r)return ro(e,t.handledSet_,t);if(!uo(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(t);Rc(r,t)}return r.copy_}function $u(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&ni(e,r)}function Oc(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var uo=(t,e)=>t.scope_===e,Hu=[];function Ac(t,e,r,n){let i=Pe(t),a=t.type_;if(n!==void 0&&Zn(i,n,a)===e){eo(i,n,r,a);return}if(!t.draftLocations_){let l=t.draftLocations_=new Map;io(i,(u,p)=>{if(we(p)){let h=l.get(p)||[];h.push(u),l.set(p,h)}})}let s=t.draftLocations_.get(e)??Hu;for(let l of s)eo(i,l,r,a)}function zu(t,e,r){t.callbacks_.push(function(i){let a=e;if(!a||!uo(a,i))return;i.mapSetPlugin_?.fixSetContents(a);let s=oi(a);Ac(t,a.draft_??a,s,r),Rc(a,i)})}function Rc(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:n}=e;if(n){let i=n.getPath(t);i&&n.generatePatches_(t,i,e)}Oc(t)}}function Vu(t,e,r){let{scope_:n}=t;if(we(r)){let i=r[q];uo(i,n)&&i.callbacks_.push(function(){Yr(t);let s=oi(i);Ac(t,r,s,e)})}else ne(r)&&t.callbacks_.push(function(){let a=Pe(t);t.type_===3?a.has(r)&&ro(r,n.handledSet_,n):Zn(a,e,t.type_)===r&&n.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&ro(Zn(t.copy_,e,t.type_),n.handledSet_,n)})}function ro(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||we(t)||e.has(t)||!ne(t)||lo(t)||(e.add(t),io(t,(n,i)=>{if(we(i)){let a=i[q];if(uo(a,r)){let s=oi(a);eo(t,n,s,t.type_),Oc(a)}}else ne(i)&&ro(i,e,r)})),t}function Gu(t,e){let r=ao(t),n={type_:r?1:0,scope_:e?e.scope_:wc(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=n,a=oo;r&&(i=[n],a=hr);let{revoke:s,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=s,[l,n]}var oo={get(t,e){if(e===q)return t;let r=t.scope_.arrayMethodsPlugin_,n=t.type_===1&&typeof e=="string";if(n&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let i=Pe(t);if(!Wn(i,e,t.type_))return ju(t,i,e);let a=i[e];if(t.finalized_||!ne(a)||n&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Mu(e))return a;if(a===Kn(t.base_,e)||Wu(t,e,a)){Yr(t);let s=t.type_===1?+e:e,l=ti(t.scope_,a,t,s);return t.copy_[s]=l}return a},has(t,e){return e in Pe(t)},ownKeys(t){return Reflect.ownKeys(Pe(t))},set(t,e,r){let n=_c(Pe(t),e);if(n?.set)return n.set.call(t.draft_,r),!0;if(!t.modified_){let i=Kn(Pe(t),e),a=i?.[q];if(a&&a.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(Fu(r,i)&&(r!==void 0||Wn(t.base_,e,t.type_)))return!0;Yr(t),ei(t)}return t.copy_[e]===r&&(r!==void 0||Wn(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Vu(t,e,r)),!0},deleteProperty(t,e){return Yr(t),Kn(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),ei(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=Pe(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{[Qr]:!0,[qn]:t.type_!==1||e!=="length",[Xr]:n[Xr],[pr]:r[e]}},defineProperty(){fe(11)},getPrototypeOf(t){return Nt(t.base_)},setPrototypeOf(){fe(12)}},hr={};for(let t in oo){let e=oo[t];hr[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}hr.deleteProperty=function(t,e){return hr.set.call(this,t,e,void 0)};hr.set=function(t,e,r){return oo.set.call(this,t[0],e,r,t[0])};function Kn(t,e){let r=t[q];return(r?Pe(r):t)[e]}function Wu(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!ne(r)||r[q]?!1:t.baseRefs_.has(r)}function ju(t,e,r){let n=_c(e,r);return n?pr in n?n[pr]:n.get?.call(t.draft_):void 0}function _c(t,e){if(!(e in t))return;let r=Nt(t);for(;r;){let n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Nt(r)}}function ei(t){t.modified_||(t.modified_=!0,t.parent_&&ei(t.parent_))}function Yr(t){t.copy_||(t.assigned_=new Map,t.copy_=Qn(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Ku=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,n)=>{if(kt(e)&&!kt(r)){let a=r;r=e;let s=this;return function(u=a,...p){return s.produce(u,h=>r.call(this,h,...p))}}kt(r)||fe(6),n!==void 0&&!kt(n)&&fe(7);let i;if(ne(e)){let a=bc(this),s=ti(a,e,void 0),l=!0;try{i=r(s),l=!1}finally{l?Jn(a):Xn(a)}return yc(a,n),xc(i,a)}else if(!e||!ri(e)){if(i=r(e),i===void 0&&(i=e),i===Sc&&(i=void 0),this.autoFreeze_&&ni(i,!0),n){let a=[],s=[];st(Yn).generateReplacementPatches_(e,i,{patches_:a,inversePatches_:s}),n(a,s)}return i}else fe(1,e)},this.produceWithPatches=(e,r)=>{if(kt(e))return(s,...l)=>this.produceWithPatches(s,u=>e(u,...l));let n,i;return[this.produce(e,r,(s,l)=>{n=s,i=l}),n,i]},jn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),jn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),jn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){ne(t)||fe(8),we(t)&&(t=Ic(t));let e=bc(this),r=ti(e,t,void 0);return r[q].isManual_=!0,Xn(e),r}finishDraft(t,e){let r=t&&t[q];(!r||!r.isManual_)&&fe(9);let{scope_:n}=r;return yc(n,e),xc(void 0,n)}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 i=e[r];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}r>-1&&(e=e.slice(r+1));let n=st(Yn).applyPatches_;return we(t)?n(t,e):this.produce(t,i=>n(i,e))}};function ti(t,e,r,n){let[i,a]=so(e)?st(to).proxyMap_(e,r):co(e)?st(to).proxySet_(e,r):Gu(e,r);return(r?.scope_??wc()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=n,r&&n!==void 0?zu(r,a,n):a.callbacks_.push(function(u){u.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:p}=u;a.modified_&&p&&p.generatePatches_(a,[],u)}),i}function Ic(t){return we(t)||fe(10,t),Tc(t)}function Tc(t){if(!ne(t)||lo(t))return t;let e=t[q],r,n=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Qn(t,e.scope_.immer_.useStrictShallowCopy_),n=e.scope_.immer_.shouldUseStrictIteration()}else r=Qn(t,!0);return io(r,(i,a)=>{eo(r,i,Tc(a))},n),e&&(e.finalized_=!1),r}var qu=globalThis.Iterator,bx=typeof qu?.from=="function";var Zu=new Ku,ii=Zu.produce;function Lc(t){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,t):i(a)}var kc=Lc(),Nc=Lc;var Qu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ur:ur.apply(null,arguments)},Ox=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Yu=t=>t&&typeof t.match=="function";function Ve(t,e){function r(...n){if(e){let i=e(...n);if(!i)throw new Error(Fe(0));return{type:t,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:t,payload:n[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=n=>pc(n)&&n.type===t,r}var Uc=class gr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,gr.prototype)}static get[Symbol.species](){return gr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new gr(...e[0].concat(this)):new gr(...e.concat(this))}};function Pc(t){return ne(t)?ii(t,()=>{}):t}function po(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Ju(t){return typeof t=="boolean"}var Xu=()=>function(e){let{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=e??{},s=new Uc;return r&&(Ju(r)?s.push(kc):s.push(Nc(r.extraArgument))),s},ep="RTK_autoBatch";var Fc=t=>e=>{setTimeout(e,t)},tp=(t,e)=>r=>{let n=!1,i=()=>{n||(n=!0,cancelAnimationFrame(a),clearTimeout(s),r())},a=t(i),s=setTimeout(i,e)},rp=(t={type:"raf"})=>e=>(...r)=>{let n=e(...r),i=!0,a=!1,s=!1,l=new Set,u=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?tp(window.requestAnimationFrame,100):Fc(10):t.type==="callback"?t.queueNotification:Fc(t.timeout),p=()=>{s=!1,a&&(a=!1,l.forEach(h=>h()))};return Object.assign({},n,{subscribe(h){let f=()=>i&&h(),m=n.subscribe(f);return l.add(h),()=>{m(),l.delete(h)}},dispatch(h){try{return i=!h?.meta?.[ep],a=!i,a&&(s||(s=!0,u(p))),n.dispatch(h)}finally{i=!0}}})},op=t=>function(r){let{autoBatch:n=!0}=r??{},i=new Uc(t);return n&&i.push(rp(typeof n=="object"?n:void 0)),i};function Bc(t){let e=Xu(),{reducer:r=void 0,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=t||{},u;if(typeof r=="function")u=r;else if(qr(r))u=dc(r);else throw new Error(Fe(1));let p;typeof n=="function"?p=n(e):p=e();let h=ur;i&&(h=Qu({trace:!1,...typeof i=="object"&&i}));let f=uc(...p),m=op(f),b=typeof l=="function"?l(m):m(),v=h(...b);return Gn(u,s,v)}function $c(t){let e={},r=[],n,i={addCase(a,s){let l=typeof a=="string"?a:a.type;if(!l)throw new Error(Fe(28));if(l in e)throw new Error(Fe(29));return e[l]=s,i},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}),i},addMatcher(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase(a){return n=a,i}};return t(i),[e,r,n]}function np(t){return typeof t=="function"}function ip(t,e){let[r,n,i]=$c(e),a;if(np(t))a=()=>Pc(t());else{let l=Pc(t);a=()=>l}function s(l=a(),u){let p=[r[u.type],...n.filter(({matcher:h})=>h(u)).map(({reducer:h})=>h)];return p.filter(h=>!!h).length===0&&(p=[i]),p.reduce((h,f)=>{if(f)if(we(h)){let b=f(h,u);return b===void 0?h:b}else{if(ne(h))return ii(h,m=>f(m,u));{let m=f(h,u);if(m===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return h},l)}return s.getInitialState=a,s}var ap=(t,e)=>Yu(t)?t.match(e):t(e);function sp(...t){return e=>t.some(r=>ap(r,e))}var cp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",lp=(t=21)=>{let e="",r=t;for(;r--;)e+=cp[Math.random()*64|0];return e},dp=["name","message","stack","code"],ai=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Mc=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},up=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of dp)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},Dc="External signal was aborted",pp=(()=>{function t(e,r,n){let i=Ve(e+"/fulfilled",(u,p,h,f)=>({payload:u,meta:{...f||{},arg:h,requestId:p,requestStatus:"fulfilled"}})),a=Ve(e+"/pending",(u,p,h)=>({payload:void 0,meta:{...h||{},arg:p,requestId:u,requestStatus:"pending"}})),s=Ve(e+"/rejected",(u,p,h,f,m)=>({payload:f,error:(n&&n.serializeError||up)(u||"Rejected"),meta:{...m||{},arg:h,requestId:p,rejectedWithValue:!!f,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"}}));function l(u,{signal:p}={}){return(h,f,m)=>{let b=n?.idGenerator?n.idGenerator(u):lp(),v=new AbortController,C,S;function w(g){S=g,v.abort()}p&&(p.aborted?w(Dc):p.addEventListener("abort",()=>w(Dc),{once:!0}));let T=(async function(){let g;try{let x=n?.condition?.(u,{getState:f,extra:m});if(hp(x)&&(x=await x),x===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let O=new Promise((R,k)=>{C=()=>{k({name:"AbortError",message:S||"Aborted"})},v.signal.addEventListener("abort",C,{once:!0})});h(a(b,u,n?.getPendingMeta?.({requestId:b,arg:u},{getState:f,extra:m}))),g=await Promise.race([O,Promise.resolve(r(u,{dispatch:h,getState:f,extra:m,requestId:b,signal:v.signal,abort:w,rejectWithValue:((R,k)=>new ai(R,k)),fulfillWithValue:((R,k)=>new Mc(R,k))})).then(R=>{if(R instanceof ai)throw R;return R instanceof Mc?i(R.payload,b,u,R.meta):i(R,b,u)})])}catch(x){g=x instanceof ai?s(null,b,u,x.payload,x.meta):s(x,b,u)}finally{C&&v.signal.removeEventListener("abort",C)}return n&&!n.dispatchConditionRejection&&s.match(g)&&g.meta.condition||h(g),g})();return Object.assign(T,{abort:w,requestId:b,arg:u,unwrap(){return T.then(fp)}})}}return Object.assign(l,{pending:a,rejected:s,fulfilled:i,settled:sp(s,i),typePrefix:e})}return t.withTypes=()=>t,t})();function fp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function hp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Hc=Symbol.for("rtk-slice-createasyncthunk"),Rx={[Hc]:pp};function mp(t,e){return`${t}/${e}`}function gp({creators:t}={}){let e=t?.asyncThunk?.[Hc];return function(n){let{name:i,reducerPath:a=i}=n;if(!i)throw new Error(Fe(11));typeof process<"u";let s=(typeof n.reducers=="function"?n.reducers(bp()):n.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(g,y){let x=typeof g=="string"?g:g.type;if(!x)throw new Error(Fe(12));if(x in u.sliceCaseReducersByType)throw new Error(Fe(13));return u.sliceCaseReducersByType[x]=y,p},addMatcher(g,y){return u.sliceMatchers.push({matcher:g,reducer:y}),p},exposeAction(g,y){return u.actionCreators[g]=y,p},exposeCaseReducer(g,y){return u.sliceCaseReducersByName[g]=y,p}};l.forEach(g=>{let y=s[g],x={reducerName:g,type:mp(i,g),createNotation:typeof n.reducers=="function"};vp(y)?Ep(x,y,p,e):xp(x,y,p)});function h(){let[g={},y=[],x=void 0]=typeof n.extraReducers=="function"?$c(n.extraReducers):[n.extraReducers],O={...g,...u.sliceCaseReducersByType};return ip(n.initialState,R=>{for(let k in O)R.addCase(k,O[k]);for(let k of u.sliceMatchers)R.addMatcher(k.matcher,k.reducer);for(let k of y)R.addMatcher(k.matcher,k.reducer);x&&R.addDefaultCase(x)})}let f=g=>g,m=new Map,b=new WeakMap,v;function C(g,y){return v||(v=h()),v(g,y)}function S(){return v||(v=h()),v.getInitialState()}function w(g,y=!1){function x(R){let k=R[g];return typeof k>"u"&&y&&(k=po(b,x,S)),k}function O(R=f){let k=po(m,y,()=>new WeakMap);return po(k,R,()=>{let D={};for(let[_,N]of Object.entries(n.selectors??{}))D[_]=yp(N,R,()=>po(b,R,S),y);return D})}return{reducerPath:g,getSelectors:O,get selectors(){return O(x)},selectSlice:x}}let T={name:i,reducer:C,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:S,...w(a),injectInto(g,{reducerPath:y,...x}={}){let O=y??a;return g.inject({reducerPath:O,reducer:C},x),{...T,...w(O,!0)}}};return T}}function yp(t,e,r,n){function i(a,...s){let l=e(a);return typeof l>"u"&&n&&(l=r()),t(l,...s)}return i.unwrapped=t,i}var zc=gp();function bp(){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 xp({type:t,reducerName:e,createNotation:r},n,i){let a,s;if("reducer"in n){if(r&&!Sp(n))throw new Error(Fe(17));a=n.reducer,s=n.prepare}else a=n;i.addCase(t,a).exposeCaseReducer(e,a).exposeAction(e,s?Ve(t,s):Ve(t))}function vp(t){return t._reducerDefinitionType==="asyncThunk"}function Sp(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Ep({type:t,reducerName:e},r,n,i){if(!i)throw new Error(Fe(18));let{payloadCreator:a,fulfilled:s,pending:l,rejected:u,settled:p,options:h}=r,f=i(t,a,h);n.exposeAction(e,f),s&&n.addCase(f.fulfilled,s),l&&n.addCase(f.pending,l),u&&n.addCase(f.rejected,u),p&&n.addMatcher(f.settled,p),n.exposeCaseReducer(e,{fulfilled:s||fo,pending:l||fo,rejected:u||fo,settled:p||fo})}function fo(){}var Vc="listener",Gc="completed",Wc="cancelled",_x=`task-${Wc}`,Ix=`task-${Gc}`,Tx=`${Vc}-${Wc}`,Lx=`${Vc}-${Gc}`;var{assign:jc}=Object;var si="listenerMiddleware";var Cp=jc(Ve(`${si}/add`),{withTypes:()=>Cp}),kx=Ve(`${si}/removeAll`),wp=jc(Ve(`${si}/remove`),{withTypes:()=>wp});function Fe(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 Me=class t extends Ie{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Lt(a))return a;if(i==null)return;let s=zc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=Bc({reducer:(u,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let h=ee(s.getInitialState());for(let f of p.keeping)h[f]=(u??h)[f];return h}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...p.overwrites};return s.reducer(u,p)}});return window.ftReduxStores[i.name]=new t(s,l,i.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new lr,this.injectInto=(a,s)=>this.reduxSlice.injectInto(a,s),this.selectSlice=a=>this.reduxSlice.selectSlice(a);let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let u=s,p=a[u];return p?(...h)=>{let f=p(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{let f=u,m=this.getState()[f];Q(m,h)||this.setState({[f]:i(h)})}}}),this.eventBus=n??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 Op(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Lt(e)&&e.clear()}var Ge=class{constructor(e,r,n){this.store=e,this.valueSelector=r,this.callback=n}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);be(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 ci(t,e,r){return new Ge(t,e,r).watch()}var ct=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 n of r)this.getOrCreateRequestConsumers(n).add(e).size==1&&this.onNewNeededRequest(n)}unregisterComponent(e,r){for(let n of r)this.getOrCreateRequestConsumers(n).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}};var pi={};L(pi,{scrollHelper:()=>Ap});var di,ho=new Map,ui=class{lock(e,r){if(r){let n=ho.get(r);if(n==null||n===e)return ho.set(r,e),r}}release(e,r){r&&ho.get(r)===e&&ho.delete(r)}findFirstScrollableParent(e){var r;let n,i;for(let a of Xo(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(r=n??i)!==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 n,i;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(n=r.offsetTop)!==null&&n!==void 0?n:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i: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 n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=_e(0,(s-n.scrollTop)/(s-a),1),u=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;n.scrollTo({behavior:r?.behavior,top:u})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(di=window.FluidTopicsScrollHelper)!==null&&di!==void 0?di:new ui;var Ap=window.FluidTopicsScrollHelper;var hi={};L(hi,{toFtFormComponent:()=>Rp});var fi=Symbol("elementInternals"),Rp=W(Symbol("toFtFormComponent"),function(t){class e extends t{static get formAssociated(){return!0}get form(){return this[fi].form}constructor(...n){super(n),this[fi]=this.attachInternals()}setFormValue(n){this[fi].setFormValue(n)}}return e});var mi={};L(mi,{DateFormatter:()=>lt});var lt=class{static format(e,r,n,i,a){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,i,!!a)):this.getIntlDateTime(e,r,n,i,!!a)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,i,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(s),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return a?u:i?`${l} ${u}`:l}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var yi={};L(yi,{ALL_KEYS_VALUE:()=>gi,SameWindowStorageEvent:()=>Pt});var gi="__all__",Pt=class extends CustomEvent{constructor(e,r,n){super("same-window-storage",{detail:{key:e,oldValue:r,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==gi}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(t,e,r){let n=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Pt(r[0],n,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(t,e,r){let n=e.getItem(r[0]);Reflect.apply(t,e,r),window.dispatchEvent(new Pt(r[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(t,e,r){Reflect.apply(t,e,r),window.dispatchEvent(new Pt(gi))}});var xi={};L(xi,{FocusMainContentEvent:()=>bi});var bi=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Kc={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};function _p(t){(t.key==="Enter"||t.key===" "||t.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=t.key}function Ip(t){window.FluidTopicsA11yHints.isKeyboardNavigation=t.detail==0}document.addEventListener("keydown",_p);document.addEventListener("click",Ip);var qc=U`
48
48
  .sr-only {
49
49
  position:absolute;
50
50
  left:-10000px;
@@ -68,7 +68,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
68
68
  width:auto;
69
69
  height:auto;
70
70
  }
71
- `;var vi={};T(vi,{withAriaNotification:()=>Ip});var _p={checkVisibility:!0},Ip=W(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,i){let{checkVisibility:a}={..._p,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new Zt({type:"aria",message:n})))},20)}}return e});var Si={};T(Si,{withConditionalVisibility:()=>kp});var qc=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a};function kp(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(n,i){if(n){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=i,this.shadowRoot.append(a)}}hideIfNecessary(){let n=!(this.forceVisible||this.isVisible);this.calculateStyles(n,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(n){super.willUpdate(n),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(i=>i.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return qc([E({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),qc([K()],e.prototype,"isVisible",void 0),e}var Ci={};T(Ci,{FormController:()=>Ei});function Tp(t){let e={};for(let r of Object.keys(t))e[r]=t[r].initial;return e}var Ei=class{constructor(e,r){this.host=e,this.config=r,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=Tp(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 n={...this.data};n[e]=r,this.data=n,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 n,i;let a=(i=(n=this.config[e]).validator)===null||i===void 0?void 0:i.call(n,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,n,i;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=an(a)?a:void 0;if(!this.checkValidity(s)){this.focusFirstFieldInError(),(n=e.onInvalid)===null||n===void 0||n.call(e);return}(i=e.onFailure)===null||i===void 0||i.call(e,s)}finally{this.submitting=!1,this.host.requestUpdate()}}}};function wi(t,e){return e.map(r=>r(t)).filter(r=>r!==!0).map(r=>r)}function Zc(t,e,r){return t?e(t):r?.(t)}var V=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},dt;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(dt||(dt={}));var We;(function(t){t.default="default",t.warning="warning",t.error="error"})(We||(We={}));var Oi=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}};var gv=W(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=dt.blurWithStatusResolutionOnInput,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=We.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[],this.forceErrorMessages=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===dt.blur||this.validateOn===dt.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){this.forceErrorMessages.length&&(this.forceErrorMessages=[]),(this.status!==We.default&&this.validateOn===dt.blurWithStatusResolutionOnInput||this.validateOn===dt.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=[...this.forceErrorMessages,...wi(this.value,[...this.errorRules,...this.additionalErrorRules])],this.warningMessages=wi(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new Oi(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return me`
71
+ `;var vi={};L(vi,{withAriaNotification:()=>Lp});var Tp={checkVisibility:!0},Lp=W(Symbol("withAriaNotification"),function(t){class e extends t{sendAriaNotification(n,i){let{checkVisibility:a}={...Tp,...i};setTimeout(()=>{(!a||this.checkVisibility())&&(n=typeof n=="string"?n:n?.message,n&&this.dispatchEvent(new Zt({type:"aria",message:n})))},20)}}return e});var Si={};L(Si,{withConditionalVisibility:()=>kp});var Zc=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a};function kp(t){class e extends t{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(n,i){if(n){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=i,this.shadowRoot.append(a)}}hideIfNecessary(){let n=!(this.forceVisible||this.isVisible);this.calculateStyles(n,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(n){super.willUpdate(n),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(i=>i.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return Zc([E({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),Zc([K()],e.prototype,"isVisible",void 0),e}var Ci={};L(Ci,{FormController:()=>Ei});function Np(t){let e={};for(let r of Object.keys(t))e[r]=t[r].initial;return e}var Ei=class{constructor(e,r){this.host=e,this.config=r,this.errors=new Map,this.submitting=!1,e.addController(this),this.initial=Np(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 n={...this.data};n[e]=r,this.data=n,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 n,i;let a=(i=(n=this.config[e]).validator)===null||i===void 0?void 0:i.call(n,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,n,i;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=an(a)?a:void 0;if(!this.checkValidity(s)){this.focusFirstFieldInError(),(n=e.onInvalid)===null||n===void 0||n.call(e);return}(i=e.onFailure)===null||i===void 0||i.call(e,s)}finally{this.submitting=!1,this.host.requestUpdate()}}}};var Oi={};L(Oi,{MetadataValueLocalizer:()=>wi});var wi=class{constructor(e){this.contentLocales=e}localize(e){var r,n;return e?.key!=="ft:locale"?e:{...e,displayValue:(r=this.findLocaleValue(e))!==null&&r!==void 0?r:e.displayValue,displayTooltipValue:(n=this.findLocaleValue(e))!==null&&n!==void 0?n:e.displayTooltipValue}}findLocaleValue(e){var r;return(r=this.contentLocales.find(n=>n.lang===e.value))===null||r===void 0?void 0:r.label}};function Ai(t,e){return e.map(r=>r(t)).filter(r=>r!==!0).map(r=>r)}function Qc(t,e,r){return t?e(t):r?.(t)}var V=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},dt;(function(t){t.blur="blur",t.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",t.input="input"})(dt||(dt={}));var We;(function(t){t.default="default",t.warning="warning",t.error="error"})(We||(We={}));var Ri=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}};var yv=W(Symbol("toFtInput"),function(t){class e extends t{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=dt.blurWithStatusResolutionOnInput,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=We.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[],this.forceErrorMessages=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===dt.blur||this.validateOn===dt.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){this.forceErrorMessages.length&&(this.forceErrorMessages=[]),(this.status!==We.default&&this.validateOn===dt.blurWithStatusResolutionOnInput||this.validateOn===dt.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=[...this.forceErrorMessages,...Ai(this.value,[...this.errorRules,...this.additionalErrorRules])],this.warningMessages=Ai(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new Ri(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return me`
72
72
  <ul aria-live="polite" id="${this.messagesForScreenReaderElementId}"
73
73
  style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;list-style:none;">
74
74
  ${Fr(this.errorMessages,n=>me`
@@ -77,21 +77,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
77
77
  ${Fr(this.warningMessages,n=>me`
78
78
  <li>${n}</li>
79
79
  `)}
80
- ${Zc(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>me`
80
+ ${Qc(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>me`
81
81
  <li>${this.helperText}</li>
82
82
  `)}
83
83
  </ul>
84
- `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?We.error:this.warningMessages.length?We.warning:We.default}}return V([E()],e.prototype,"warningRules",void 0),V([E()],e.prototype,"errorRules",void 0),V([E()],e.prototype,"validateOn",void 0),V([E({type:Boolean})],e.prototype,"validateAtRender",void 0),V([E()],e.prototype,"label",void 0),V([E({type:Boolean})],e.prototype,"hideLabel",void 0),V([E()],e.prototype,"name",void 0),V([E({type:Boolean})],e.prototype,"disabled",void 0),V([E()],e.prototype,"helperText",void 0),V([E()],e.prototype,"forceStatus",void 0),V([E({reflect:!0})],e.prototype,"value",void 0),V([K()],e.prototype,"errorMessages",void 0),V([K()],e.prototype,"warningMessages",void 0),V([K()],e.prototype,"status",void 0),V([K()],e.prototype,"focused",void 0),V([K()],e.prototype,"additionalWarningRules",void 0),V([K()],e.prototype,"additionalErrorRules",void 0),V([K()],e.prototype,"forceErrorMessages",void 0),e});var yr=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),yr(n,e);return!0},mo=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},Qc=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),Fp(e)}};function Np(t){this._$AN!==void 0?(mo(this),this._$AM=t,Qc(this)):this._$AM=t}function Pp(t,e=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=r;a<n.length;a++)yr(n[a],!1),mo(n[a]);else n!=null&&(yr(n,!1),mo(n));else yr(this,t)}var Fp=t=>{t.type==ye.CHILD&&(t._$AP??=Pp,t._$AQ??=Np)},Ft=class extends ae{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),Qc(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(yr(this,e),mo(this))}setValue(e){if(la(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 Ai=class extends Ft{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 n=r.relatedTarget;this.isInsideElement(n,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let n=r.relatedTarget;this.isInsideElement(n,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return z}update(e){return this.part=e,this.ensureFocusTrap(e.element),z}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,n;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((n=this.lastTrap)===null||n===void 0?void 0:n.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,n,i;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(n=this.firstTrap)===null||n===void 0||n.remove(),(i=this.lastTrap)===null||i===void 0||i.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 n=0;n<r.length;n++){let i=r[n];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusFirstDescendant(i)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let n=r.length-1;n>=0;n--){let i=r[n];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusLastDescendant(i)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof ie&&await e.updateComplete}isInsideElement(e,r){for(let n=e;n;n=n.parentNode){if(n===r)return!0;n instanceof ShadowRoot?n=n.host:n.assignedSlot&&(n=n.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}},Kv=X(Ai);var Yc;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(Yc||(Yc={}));var Mp={sm:640,md:768,lg:1024,xl:1280},Ri=class extends Ft{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,n,i]){return this.lastArgs=[r,n,i],this.render(r,n,i)}render(e,r,n){let i=this.resolveThreshold(e),a=n??(()=>F);return this.size>i?r():a()}resolveThreshold(e){return typeof e=="number"?e:Mp[e]}},Yv=X(Ri);var go=class{constructor(e,r=20){this.onChange=e,this.maxCapacity=r,this.recentQueries=[],this.storageKey="",this.onStorageEvent=n=>{n.key===this.storageKey&&this.loadRecentQueries()}}enable(e){this.storageKey=e,this.loadRecentQueries(),window.addEventListener("storage",this.onStorageEvent)}disable(){this.storageKey="",window.removeEventListener("storage",this.onStorageEvent)}loadRecentQueries(){var e;this.recentQueries=JSON.parse((e=window.localStorage.getItem(this.storageKey))!==null&&e!==void 0?e:"[]"),this.onChange(this.recentQueries)}addRecentQuery(e){if(e=e.trim(),e.length===0)return;let r=e.toLowerCase(),n=this.recentQueries.filter(i=>i.toLowerCase()!==r).slice(0,this.maxCapacity-1);n.unshift(e),this.saveRecentQueries(n)}removeRecentQuery(e){let r=e.trim().toLowerCase(),n=this.recentQueries.filter(i=>i.toLowerCase()!==r);this.recentQueries.length!==n.length&&this.saveRecentQueries(n)}saveRecentQueries(e){if(this.storageKey==="")return;let r=JSON.stringify(e);window.localStorage.setItem(this.storageKey,r),window.dispatchEvent(new StorageEvent("storage",{key:this.storageKey,newValue:r,storageArea:window.localStorage,url:window.location.href}))}};var _i,Ii,ki,Ti,Dp=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ki=(Ii=(_i=window.safari)===null||_i===void 0?void 0:_i.pushNotification)===null||Ii===void 0?void 0:Ii.toString())!==null&&ki!==void 0?ki:"")==="[object SafariRemoteNotification]",Up="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ti=window.ftGlobals)!==null&&Ti!==void 0?Ti:{lit:Go,litDecorators:Wo,litRepeat:jo,litClassMap:Ko,litStyleMap:qo,litUnsafeHTML:Zo,wcUtils:{...Qo,...nn,...Yo,...pn,...mi,...fn,...Jo,...yn,...on,...kn,...xi,...jc,...pi,...Tn,...gn,...Dn,...hi,...Fn,...vi,...Si,...nc,...en,...Hn,...bn,...$n,...Kc,...ac,...zn,...li,...yi,...Ln,...Pn,...sn,...ln,...Ci,isSafari:Dp,isTouchScreen:Up,setVariable:Ct}};var Jc=U`
85
- `;var br;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(br||(br={}));var Bp={setRequest:(t,e)=>{t.request=e.payload}},Xc=t=>Me.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",recentQueries:[],paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0,propagatedFacets:[]},reducers:Bp});var Hp="ft-app-info",Ae=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Ae.eventName="authentication-change";var xr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};xr.eventName="ui-locale-changed";var $p={session:(t,e)=>{Q(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>A.dispatchEvent(new Ae(e.payload)),0))}},A=Me.get({name:Hp,reducers:$p,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,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var yo=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},sS=W(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(A)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>lt.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return yo([E({type:Boolean})],e.prototype,"useLongDateFormat",void 0),yo([E({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),yo([pe({store:A.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),yo([pe({store:A.name})],e.prototype,"uiLocale",void 0),e});var ut=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=A.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=A.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var Mt=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:ut.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ut.await()}};var Z=class extends Mt{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[u])=>l.localeCompare(u)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new ve,this.cache=e?i.commonCache:new ve}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var bo=class extends Z{async listMySearches(){let{session:e}=A.getState();return Yt(e,B.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var xo=class extends Z{async listMyBookmarks(){let e=A.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var vo=class extends Z{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=A.getState().session;return!!e?.sessionAuthenticated}};var So=class extends Z{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=A.getState().session;return!!e?.sessionAuthenticated}};var zp="ft-user-assets",Vp={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(se).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:n,asset:i}=e.payload;Ni(t,r,[...Li(t,r),i]),el(t,r,1,n),tl(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;Ni(t,r,Li(t,r).map(i=>i.id===n.id?n:i)),tl(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;Ni(t,r,Li(t,r).filter(a=>a.id!==i)),el(t,r,-1,n)}},rl={[se.SEARCHES]:"savedSearches",[se.BOOKMARKS]:"bookmarks",[se.BOOKS]:void 0,[se.COLLECTIONS]:void 0},Li=(t,e)=>{var r;let n=rl[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},Ni=(t,e,r)=>{let n=rl[e];n&&(t[n]=r)},el=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===se.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+r)}},tl=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},Y=Me.get({name:zp,reducers:Vp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(se).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Pi=class{constructor(e=new vo,r=new So){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=A.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new xo,this.savedSearchesService=new bo,A.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=A.getState();Q((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(),Y.actions.clearAssetCount(),Y.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Y.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Y.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Y.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Y.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Y.getState().assetCounts.allAsset[e]!==r.count&&Y.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Y.getState().assetCounts.bookmarkByMap[e]!==r.count&&Y.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Y.getState().assetCounts.bookmarkByMap).length!==0;e===se.BOOKMARKS&&r&&Y.actions.clearBookmarkCountByMap(),Y.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;Y.actions.bookmarks(r)}}},Gp=new Pi;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Gp);var Fi=class{addCommand(e,r=!1){A.commands.add(e,r)}consumeCommand(e){return A.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Fi;var ol,Dt=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Wp=Symbol("clearAfterUnitTest"),Eo=class extends Br(Z){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ol]=()=>{this.defaultMessages={},this.cache=new ve,this.listeners={}},this.currentUiLocale=A.getState().uiLocale,A.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=A.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 n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};Q(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new cr((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof be)&&r&&console.error(i)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Dt({loadedContexts:e})),this.dispatchEvent(new Dt({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Dt({loadedContexts:[e]})),this.dispatchEvent(new Dt({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>Ur(0).then(()=>n()).catch(()=>null)))}};ol=Wp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Eo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Eo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var nl=window.FluidTopicsI18nService,WS=window.FluidTopicsCustomI18nService;var Mi=class{highlightHtml(e,r,n){Bn(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Mi;var Di=class{isDate(e){var r,n,i,a;return(a=(n=((i=(r=A.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 n,i,a,s;if(e==null)return"";try{return lt.format(e,(n=r?.locale)!==null&&n!==void 0?n:A.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!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 Di;var vr=class{static get(e,r){var n,i,a,s;let l=A.getState(),{lang:u,region:p}=(s=(i=(n=l.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new ke(l.baseUrl,e??20,(a=l.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed,r??`${u}-${p}`)}};var Co=class extends Z{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}sortEventArrays(e){let r=Object.entries(e).map(([n,i])=>Array.isArray(i)?[n,i.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof i=="object"&&i!==null?[n,this.sortEventArrays(i)]:[n,i]);return Object.fromEntries(r)}sendEvents(e,r){let n="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>n).catch(i=>(console.info(r),console.debug(i),n)),1e3)}};var Ui=class{urlToSearchRequest(e){return vr.get().parse(e)}searchRequestToUrl(e){return vr.get().serialize(e)}};window.FluidTopicsUrlService=new Ui;var pt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};pt.eventName="before-location-change";var ft=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};ft.eventName="change";var Bi=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))}},il=new Bi;var wo=class t extends Ie{static build(){return new t(window.history,il,()=>window.location,!1)}constructor(e,r,n,i){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,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(i)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Q(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new ft(this.currentItem())),0)}installProxies(){let e=r=>(n,i,[a,s,l])=>{let u=new pt(new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin));this.dispatchEvent(u);let p=r(),h={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:u.detail.nextLocation.href};n.apply(i,[h,s,h.href]),this.setCurrentState(h,!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 n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addBeforeLocationChangeListener(e){this.addEventListener(pt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(pt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(ft.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(ft.eventName,e)}currentItem(){return ee(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 ee(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return ee(r.find(n=>e(n)))}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 ee(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 n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}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 n;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,a=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=wo.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),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var al=U`
86
- `;function sl(t,e){let{authenticationRequired:r,session:n}=A.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var Oo=class extends Mt{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Hi=class t extends ct{static build(e){return new t(A,e)}constructor(e,r){super(),this.store=e,this.cache=new ve,this.withManualResources=!0,this.userLocaleService=new Oo,this.cleanSessionDebouncer=new ce,this.reloadConfiguration=()=>{var n;(n=this.cache)===null||n===void 0||n.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new ce(500),this.apiProvider=r??(()=>ut.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Ae.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Ae.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",()=>sl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}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(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new xr(n)))}).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)}setNoCustomCode(e){this.store.actions.noCustomCode(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)}userHasAnyRole(...e){return ns(A.getState().session,...e)}},Sr=Hi.build();var ht=class extends Event{constructor(e,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var Er=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:n}=r;for(let{elementRef:i,callbackRef:a}of n){let s=i.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new ht(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],n=e.callback,i=this.pendingContextRequests.get(e.context);i===void 0&&this.pendingContextRequests.set(e.context,i={callbacks:new WeakMap,requests:[]});let a=i.callbacks.get(r);a===void 0&&i.callbacks.set(r,a=new WeakSet),a.has(n)||(a.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}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 G=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},M=class extends Ne{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.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Sr,this.contextRoot=new Er}render(){return me`
84
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?We.error:this.warningMessages.length?We.warning:We.default}}return V([E()],e.prototype,"warningRules",void 0),V([E()],e.prototype,"errorRules",void 0),V([E()],e.prototype,"validateOn",void 0),V([E({type:Boolean})],e.prototype,"validateAtRender",void 0),V([E()],e.prototype,"label",void 0),V([E({type:Boolean})],e.prototype,"hideLabel",void 0),V([E()],e.prototype,"name",void 0),V([E({type:Boolean})],e.prototype,"disabled",void 0),V([E()],e.prototype,"helperText",void 0),V([E()],e.prototype,"forceStatus",void 0),V([E({reflect:!0})],e.prototype,"value",void 0),V([K()],e.prototype,"errorMessages",void 0),V([K()],e.prototype,"warningMessages",void 0),V([K()],e.prototype,"status",void 0),V([K()],e.prototype,"focused",void 0),V([K()],e.prototype,"additionalWarningRules",void 0),V([K()],e.prototype,"additionalErrorRules",void 0),V([K()],e.prototype,"forceErrorMessages",void 0),e});var yr=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),yr(n,e);return!0},mo=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},Yc=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),Dp(e)}};function Fp(t){this._$AN!==void 0?(mo(this),this._$AM=t,Yc(this)):this._$AM=t}function Mp(t,e=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=r;a<n.length;a++)yr(n[a],!1),mo(n[a]);else n!=null&&(yr(n,!1),mo(n));else yr(this,t)}var Dp=t=>{t.type==ge.CHILD&&(t._$AP??=Mp,t._$AQ??=Fp)},Ft=class extends ae{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),Yc(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(yr(this,e),mo(this))}setValue(e){if(da(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 _i=class extends Ft{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 n=r.relatedTarget;this.isInsideElement(n,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let n=r.relatedTarget;this.isInsideElement(n,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return z}update(e){return this.part=e,this.ensureFocusTrap(e.element),z}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,n;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((n=this.lastTrap)===null||n===void 0?void 0:n.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,n,i;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(n=this.firstTrap)===null||n===void 0||n.remove(),(i=this.lastTrap)===null||i===void 0||i.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 n=0;n<r.length;n++){let i=r[n];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusFirstDescendant(i)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let n=r.length-1;n>=0;n--){let i=r[n];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusLastDescendant(i)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof ie&&await e.updateComplete}isInsideElement(e,r){for(let n=e;n;n=n.parentNode){if(n===r)return!0;n instanceof ShadowRoot?n=n.host:n.assignedSlot&&(n=n.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}},Vv=X(_i);var Jc;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(Jc||(Jc={}));var Up={sm:640,md:768,lg:1024,xl:1280},Ii=class extends Ft{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,n,i]){return this.lastArgs=[r,n,i],this.render(r,n,i)}render(e,r,n){let i=this.resolveThreshold(e),a=n??(()=>F);return this.size>i?r():a()}resolveThreshold(e){return typeof e=="number"?e:Up[e]}},Kv=X(Ii);var go=class{constructor(e,r=20){this.onChange=e,this.maxCapacity=r,this.recentQueries=[],this.storageKey="",this.onStorageEvent=n=>{n.key===this.storageKey&&this.loadRecentQueries()}}enable(e){this.storageKey=e,this.loadRecentQueries(),window.addEventListener("storage",this.onStorageEvent)}disable(){this.storageKey="",window.removeEventListener("storage",this.onStorageEvent)}loadRecentQueries(){var e;this.recentQueries=JSON.parse((e=window.localStorage.getItem(this.storageKey))!==null&&e!==void 0?e:"[]"),this.onChange(this.recentQueries)}addRecentQuery(e){if(e=e.trim(),e.length===0)return;let r=e.toLowerCase(),n=this.recentQueries.filter(i=>i.toLowerCase()!==r).slice(0,this.maxCapacity-1);n.unshift(e),this.saveRecentQueries(n)}removeRecentQuery(e){let r=e.trim().toLowerCase(),n=this.recentQueries.filter(i=>i.toLowerCase()!==r);this.recentQueries.length!==n.length&&this.saveRecentQueries(n)}saveRecentQueries(e){if(this.storageKey==="")return;let r=JSON.stringify(e);window.localStorage.setItem(this.storageKey,r),window.dispatchEvent(new StorageEvent("storage",{key:this.storageKey,newValue:r,storageArea:window.localStorage,url:window.location.href}))}};var Ti,Li,ki,Ni,Bp=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ki=(Li=(Ti=window.safari)===null||Ti===void 0?void 0:Ti.pushNotification)===null||Li===void 0?void 0:Li.toString())!==null&&ki!==void 0?ki:"")==="[object SafariRemoteNotification]",$p="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ni=window.ftGlobals)!==null&&Ni!==void 0?Ni:{lit:Go,litDecorators:Wo,litRepeat:jo,litClassMap:Ko,litStyleMap:qo,litUnsafeHTML:Zo,wcUtils:{...Qo,...nn,...Yo,...pn,...mi,...fn,...Jo,...yn,...on,...Tn,...xi,...Kc,...pi,...Ln,...gn,...Dn,...hi,...Fn,...vi,...Si,...ic,...en,...$n,...Oi,...bn,...Hn,...qc,...sc,...zn,...li,...yi,...kn,...Pn,...sn,...ln,...Ci,isSafari:Bp,isTouchScreen:$p,setVariable:Ct}};var Xc=U`
85
+ `;var br;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(br||(br={}));var Hp={setRequest:(t,e)=>{t.request=e.payload}},el=t=>Me.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",recentQueries:[],paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0,propagatedFacets:[]},reducers:Hp});var zp="ft-app-info",Oe=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Oe.eventName="authentication-change";var xr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};xr.eventName="ui-locale-changed";var Vp={session:(t,e)=>{Q(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>A.dispatchEvent(new Oe(e.payload)),0))}},A=Me.get({name:zp,reducers:Vp,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,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var yo=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},nS=W(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(A)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>lt.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return yo([E({type:Boolean})],e.prototype,"useLongDateFormat",void 0),yo([E({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),yo([pe({store:A.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),yo([pe({store:A.name})],e.prototype,"uiLocale",void 0),e});var ut=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=A.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=A.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var Mt=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:ut.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ut.await()}};var Z=class extends Mt{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[u])=>l.localeCompare(u)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new xe,this.cache=e?i.commonCache:new xe}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var bo=class extends Z{async listMySearches(){let{session:e}=A.getState();return Yt(e,B.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var xo=class extends Z{async listMyBookmarks(){let e=A.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var vo=class extends Z{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=A.getState().session;return!!e?.sessionAuthenticated}};var So=class extends Z{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=A.getState().session;return!!e?.sessionAuthenticated}};var Gp="ft-user-assets",Wp={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(se).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:n,asset:i}=e.payload;Fi(t,r,[...Pi(t,r),i]),tl(t,r,1,n),rl(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;Fi(t,r,Pi(t,r).map(i=>i.id===n.id?n:i)),rl(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;Fi(t,r,Pi(t,r).filter(a=>a.id!==i)),tl(t,r,-1,n)}},ol={[se.SEARCHES]:"savedSearches",[se.BOOKMARKS]:"bookmarks",[se.BOOKS]:void 0,[se.COLLECTIONS]:void 0},Pi=(t,e)=>{var r;let n=ol[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},Fi=(t,e,r)=>{let n=ol[e];n&&(t[n]=r)},tl=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===se.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+r)}},rl=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},Y=Me.get({name:Gp,reducers:Wp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(se).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Mi=class{constructor(e=new vo,r=new So){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=A.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new xo,this.savedSearchesService=new bo,A.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=A.getState();Q((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(),Y.actions.clearAssetCount(),Y.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Y.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Y.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Y.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Y.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&Y.getState().assetCounts.allAsset[e]!==r.count&&Y.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&Y.getState().assetCounts.bookmarkByMap[e]!==r.count&&Y.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(Y.getState().assetCounts.bookmarkByMap).length!==0;e===se.BOOKMARKS&&r&&Y.actions.clearBookmarkCountByMap(),Y.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;Y.actions.bookmarks(r)}}},jp=new Mi;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=jp);var Di=class{addCommand(e,r=!1){A.commands.add(e,r)}consumeCommand(e){return A.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Di;var nl,Dt=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Kp=Symbol("clearAfterUnitTest"),Eo=class extends Br(Z){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[nl]=()=>{this.defaultMessages={},this.cache=new xe,this.listeners={}},this.currentUiLocale=A.getState().uiLocale,A.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=A.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 n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};Q(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new cr((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof ye)&&r&&console.error(i)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Dt({loadedContexts:e})),this.dispatchEvent(new Dt({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Dt({loadedContexts:[e]})),this.dispatchEvent(new Dt({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>Ur(0).then(()=>n()).catch(()=>null)))}};nl=Kp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Eo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Eo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var il=window.FluidTopicsI18nService,zS=window.FluidTopicsCustomI18nService;var Ui=class{highlightHtml(e,r,n){Bn(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Ui;var Bi=class{isDate(e){var r,n,i,a;return(a=(n=((i=(r=A.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 n,i,a,s;if(e==null)return"";try{return lt.format(e,(n=r?.locale)!==null&&n!==void 0?n:A.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!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 Bi;var vr=class{static get(e,r){var n,i,a,s;let l=A.getState(),{lang:u,region:p}=(s=(i=(n=l.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new Te(l.baseUrl,e??20,(a=l.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed,r??`${u}-${p}`)}};var Co=class extends Z{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}sortEventArrays(e){let r=Object.entries(e).map(([n,i])=>Array.isArray(i)?[n,i.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof i=="object"&&i!==null?[n,this.sortEventArrays(i)]:[n,i]);return Object.fromEntries(r)}sendEvents(e,r){let n="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>n).catch(i=>(console.info(r),console.debug(i),n)),1e3)}};var $i=class{urlToSearchRequest(e){return vr.get().parse(e)}searchRequestToUrl(e){return vr.get().serialize(e)}};window.FluidTopicsUrlService=new $i;var pt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};pt.eventName="before-location-change";var ft=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};ft.eventName="change";var Hi=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))}},al=new Hi;var wo=class t extends Ie{static build(){return new t(window.history,al,()=>window.location,!1)}constructor(e,r,n,i){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,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(i)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Q(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new ft(this.currentItem())),0)}installProxies(){let e=r=>(n,i,[a,s,l])=>{let u=new pt(new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin));this.dispatchEvent(u);let p=r(),h={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:u.detail.nextLocation.href};n.apply(i,[h,s,h.href]),this.setCurrentState(h,!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 n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addBeforeLocationChangeListener(e){this.addEventListener(pt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(pt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(ft.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(ft.eventName,e)}currentItem(){return ee(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 ee(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return ee(r.find(n=>e(n)))}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 ee(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 n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}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 n;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,a=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=wo.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),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var sl=U`
86
+ `;function cl(t,e){let{authenticationRequired:r,session:n}=A.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var Oo=class extends Mt{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var zi=class t extends ct{static build(e){return new t(A,e)}constructor(e,r){super(),this.store=e,this.cache=new xe,this.withManualResources=!0,this.userLocaleService=new Oo,this.cleanSessionDebouncer=new ce,this.reloadConfiguration=()=>{var n;(n=this.cache)===null||n===void 0||n.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new ce(500),this.apiProvider=r??(()=>ut.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Oe.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Oe.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",()=>cl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}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(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new xr(n)))}).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)}setNoCustomCode(e){this.store.actions.noCustomCode(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)}userHasAnyRole(...e){return is(A.getState().session,...e)}},Sr=zi.build();var ht=class extends Event{constructor(e,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var Er=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:n}=r;for(let{elementRef:i,callbackRef:a}of n){let s=i.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new ht(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],n=e.callback,i=this.pendingContextRequests.get(e.context);i===void 0&&this.pendingContextRequests.set(e.context,i={callbacks:new WeakMap,requests:[]});let a=i.callbacks.get(r);a===void 0&&i.callbacks.set(r,a=new WeakSet),a.has(n)||(a.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}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 G=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},M=class extends Ne{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.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Sr,this.contextRoot=new Er}render(){return me`
87
87
  <slot></slot>
88
- `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),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("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>nl.addContext(n)),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())}};M.elementDefinitions={};M.styles=al;G([E()],M.prototype,"baseUrl",void 0);G([E()],M.prototype,"tenantId",void 0);G([E()],M.prototype,"apiIntegrationIdentifier",void 0);G([E()],M.prototype,"apiIntegrationAppVersion",void 0);G([E()],M.prototype,"uiLocale",void 0);G([te(null)],M.prototype,"availableUiLocales",void 0);G([te(null)],M.prototype,"metadataConfiguration",void 0);G([E({type:Boolean})],M.prototype,"editorMode",void 0);G([E({type:Boolean})],M.prototype,"noCustom",void 0);G([E({type:Boolean})],M.prototype,"openExternalDocumentInNewTab",void 0);G([E({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],M.prototype,"noCustomComponent",void 0);G([E({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],M.prototype,"noCustomCode",void 0);G([E({type:Boolean})],M.prototype,"withManualResources",void 0);G([E({type:Boolean})],M.prototype,"navigatorOnline",void 0);G([E({type:Boolean})],M.prototype,"forcedOffline",void 0);G([E({type:Boolean})],M.prototype,"authenticationRequired",void 0);G([te([])],M.prototype,"messageContexts",void 0);G([te(void 0)],M.prototype,"session",void 0);var cl={"ft-app-context":M};qt(cl);var Ao=class extends Z{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((n,i)=>n.id.localeCompare(i.id))};return this.cache.get("search-"+this.hash(r),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(r),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(r=>r.valueFilter==null?r:{...r,valueFilter:{...r.valueFilter,values:[...r.valueFilter.values].sort((n,i)=>n.localeCompare(i))}}).sort((r,n)=>r.key.localeCompare(n.key))}};var Ro=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e,composed:!0,bubbles:!0})}},_o=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},Io=class extends CustomEvent{constructor(e,r,n){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:n},composed:!0,bubbles:!0})}},Cr=class t extends Event{constructor(){super(t.eventName)}};Cr.eventName="search-context-clear-all-filters";var qp=t=>t.request.virtualField===Je.TITLE_ONLY&&t.request.scope===Et.DOCUMENTS,Zp=t=>t.request.keywordMatch==Be.MANDATORY,wr=class t extends ct{static build(e,r){return new t(Xc(e.trim()||"context"),r)}constructor(e,r){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.applyStickyFilters=!1,this.history=new go(this.store.actions.recentQueries),this.onNewNeededRequest=n=>{n==br.CLUSTERED_SEARCH&&this.launchSearch()},this.onStorageEvent=n=>{n.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var n;let i;if(Yt(A.getState().session,B.DEBUG_USER)){let a=JSON.parse((n=window.localStorage.getItem(this.taruqaConfigStorageKey))!==null&&n!==void 0?n:"{}");i=a.overrideEnabled?a.template:void 0}this.updateSearchRequest({taruqaTemplateOverride:i,changedByConfiguration:!0})},this.localesDebouncer=new ce(10),this.searchDebouncer=new ce(100),this.launchSearch=n=>this.searchDebouncer.run(()=>this.fetchSearchData(n??this.buildSearchRequest())),this.buildSearchRequest=(n=this.store.getState())=>{var i;return{...n.request,facets:this.facetIds.map(a=>({id:a})),stickyFiltersId:this.applyStickyFilters?(i=A.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.suggestDebouncer=new ce(1e3),this.launchSuggest=n=>this.suggestDebouncer.run(()=>this.fetchSuggestData(n??this.buildSuggestRequest())),this.buildSuggestRequest=(n=this.store.getState())=>{var i,a;return{input:n.liveQuery,metadataFilters:n.request.metadataFilters,sort:(a=n.request.sort)!==null&&a!==void 0?a:[],sortId:n.request.sortId,contentLocale:n.request.contentLocale,scope:n.request.scope,keywordMatch:n.request.keywordMatch,stickyFiltersId:this.applyStickyFilters?(i=A.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.service=r??new Ao,this.service.cache.addEventListener("clear-cache",n=>{n.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=new Ge(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=new Ge(e,this.buildSuggestRequest,this.launchSuggest),this.stickyFiltersIdWatcher=new Ge(A,n=>{var i;return(i=n.stickyFilters)===null||i===void 0?void 0:i.id},()=>{this.applyStickyFilters&&(this.launchSearch(),this.launchSuggest())})}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.loadTaruqaTemplate(),this.launchSearch()}addListeners(){window.addEventListener("storage",this.onStorageEvent),A.addEventListener(Ae.eventName,this.loadTaruqaTemplate),this.searchWatcher.watch(),this.suggestWatcher.watch(),this.stickyFiltersIdWatcher.watch(),this.history.enable(A.getState().tenantId+"-ft-recent-queries")}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),A.removeEventListener(Ae.eventName,this.loadTaruqaTemplate),this.searchWatcher.stop(),this.suggestWatcher.stop(),this.stickyFiltersIdWatcher.stop(),this.history.disable()}get taruqaConfigStorageKey(){return A.getState().tenantId+"-taruqa-experiment-conf"}updateSearchRequest(e,r=!1){let n=ee(this.store.getState().request);delete n.changedByConfiguration,this.store.actions.setRequest({...n,paging:{perPage:n.paging.perPage,page:r?1:n.paging.page},...e})}setQuery(e){this.updateSearchRequest({query:e},!0),this.setLiveQuery(e)}setContentLocale(e){var r,n;let i=(n=this.store.getState().locales)!==null&&n!==void 0?n:[],a=this.store.getState().request.contentLocale;if(e!=a){if(i.length>0){let s=l=>i.some(u=>u.lang==l);s(e)||(e=s(a)?a:i[0].lang)}this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((r=Sr.store.getState().localesConfiguration)===null||r===void 0)&&r.searchLanguageSetsUiLanguage)&&e&&Sr.requestUiLocaleUpdate(e,e)}return e}forceContentLocale(e){this.updateSearchRequest({contentLocale:e})}setPageSize(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,perPage:isNaN(e)?20:_e(1,e,1e3)}})}setPageNumber(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,page:isNaN(e)?1:Math.max(1,e)}})}get sortOptions(){var e,r;return(r=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&r!==void 0?r:[]}setSort(e){this.updateSearchRequest({sort:e},!0)}setSortId(e,r=!1){var n;let i=r?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...i},!0),e;let a=(n=this.sortOptions.find(s=>s.id==e))!==null&&n!==void 0?n:this.sortOptions[0];return this.updateSearchRequest({sortId:a.id,...i},!0),a.id}setFilters(e){let r=e.filter(n=>!n.valueFilter||n.valueFilter.values.length>0);this.updateSearchRequest({metadataFilters:r},!0)}setClusterSortCriterion(e){this.updateSearchRequest({clusterSortCriterions:e})}setSearchInDocumentTitlesOnly(e){e?this.updateSearchRequest({virtualField:Je.TITLE_ONLY,scope:Et.DOCUMENTS},!0):this.updateSearchRequest({virtualField:Je.EVERYWHERE,scope:Et.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return qp(this.store.getState())}get keywordMatch(){return Zp(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new Cr)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,r){let n=this.facetIds.filter(i=>i!=e);r&&n.push(r),this.facetIds=n}get facetIds(){var e;let r=this.store.getState().request;return[...new Set([...r.facets.map(n=>n.id),...((e=r.metadataFilters)!==null&&e!==void 0?e:[]).map(n=>n.key)])]}set facetIds(e){let n=[...new Set(e)].map(i=>({id:i}));this.updateSearchRequest({facets:n})}addPropagatedFacet(e){let r=new Set(this.store.getState().propagatedFacets);r.add(e),this.store.actions.propagatedFacets([...r])}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let n=this.store.getState().request.metadataFilters,i={key:e,valueFilter:{values:r,negative:!1}},a=[...n.filter(s=>!s.valueFilter),...n.filter(s=>s.valueFilter&&s.key!==i.key),i];this.setFilters(a)}setDateFilter(e,r){let n=this.store.getState().request.metadataFilters,i={key:e,dateFilter:{type:r}},a=[...n.filter(s=>!s.dateFilter),...n.filter(s=>s.dateFilter&&s.key!==i.key),i];this.setFilters(a)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,n=[...r.filter(i=>!i.dateFilter),...r.filter(i=>i.dateFilter&&i.key!==e)];this.setFilters(n)}setRangeFilter(e,r,n){let i=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:r,to:n}},s=[...i.filter(l=>!l.rangeFilter),...i.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,n=[...r.filter(i=>!i.rangeFilter),...r.filter(i=>i.rangeFilter&&i.key!==e)];this.setFilters(n)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}setApplyStickyFilters(e){this.applyStickyFilters=e,this.launchSearch(),this.launchSuggest()}addRecentQuery(e){this.history.addRecentQuery(e)}removeRecentQuery(e){this.history.removeRecentQuery(e)}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var r,n,i,a,s;if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),!!this.isRequestNeeded(br.CLUSTERED_SEARCH))try{if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{!((n=this.store.getState().results)===null||n===void 0)&&n.length||this.store.actions.results(void 0),this.cancelableSearch=vt(this.service.launchSearch(e));let l=await this.cancelableSearch;if(this.store.actions.announcements(l.announcements),l.paging.currentPage<=1)this.store.actions.results(l.results),this.store.actions.facets(l.facets),this.store.actions.spellcheck(l.spellcheck);else{let u=((a=this.store.getState().results)!==null&&a!==void 0?a:[]).concat(l.results);this.store.actions.results(u),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(l.paging.currentPage-1)*((s=e.paging.perPage)!==null&&s!==void 0?s:20)+1}`})}this.store.actions.paging(l.paging)}}catch(l){l instanceof be||(console.error(l),(i=this.errorHandler)===null||i===void 0||i.call(this,l))}}async fetchSuggestData(e){var r;try{if((r=this.cancelableSuggest)===null||r===void 0||r.cancel(),e.input.length<3){this.store.actions.suggestResults([]);return}this.cancelableSuggest=vt(this.service.launchSuggest(e));let n=await this.cancelableSuggest;this.store.actions.suggestResults(n.suggestions)}catch(n){!(n instanceof be)&&this.errorHandler&&this.errorHandler(n)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}};var $i=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Vi=class extends CustomEvent{constructor(e){super("register-ft-search-component",{bubbles:!0,composed:!0,detail:{registrationId:e}})}},ll=Symbol("registerInterval"),zi=Symbol("registerAttempts"),Qp=40,Yp=W(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(n){var i,a,s;super.willUpdate(n),n.has("neededSearchRequests")&&((i=this.stateManager)===null||i===void 0||i.unregisterComponent(this,(s=n.get("neededSearchRequests"))!==null&&s!==void 0?s:[]),(a=this.stateManager)===null||a===void 0||a.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[zi]=0,this.tryToRegisterToContext(),this[ll]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[zi]>Qp?window.clearInterval(this[ll]):(this[zi]++,this.dispatchEvent(new Vi(this.searchRegistrationId)))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return $i([K()],e.prototype,"stateManager",void 0),$i([K({hasChanged:xe})],e.prototype,"neededSearchRequests",void 0),$i([E()],e.prototype,"searchRegistrationId",void 0),e}),dl=class extends Yp(Ne){};function ko(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function To(t){var e,r;return t.dateFilter?{key:t.key,type:"DATE",dateValue:t.dateFilter.type}:t.rangeFilter?{key:t.key,type:"RANGE",from:t.rangeFilter.from,to:t.rangeFilter.to}:{key:t.key,values:(e=t.valueFilter)===null||e===void 0?void 0:e.values,negative:(r=t.valueFilter)===null||r===void 0?void 0:r.negative}}var Lo=class{constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=([n,i])=>{if(!this.canSendEvent()||!n||!i)return;let a=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(a,n,i):this.sendDocumentSearchEvent(a,n,i)},this.eventsService=r??new Co,this.resultsWatcher=ci(e,n=>[n.results,n.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:r}=A.getState();this.setAppName(e??"unknown"),this.setAppVersion(r??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=A.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r,n){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ye.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:n.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:ko(e.metadataFilters),facets:e.metadataFilters.map(a=>To(a))}};this.eventsService.sendKhubSearchEvent(i)}sendDocumentSearchEvent(e,r,n){if(e.metadataFilters.find(a=>{var s;return a.key==="ft:publicationId"&&((s=a.valueFilter)===null||s===void 0?void 0:s.values[0])===this.document.id})!==void 0){let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ye.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:n.totalClustersCount},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(a)}}sendResultClickedEvent(e,r){if(!this.canSendEvent())return;let n=this.store.getState().request,i;e.type==Se.TOPIC&&(i={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ye.SEARCH_PAGE__SELECT,searchQuery:{terms:n.query,searchType:n.virtualField,lastUpdate:ko(n.metadataFilters),facets:n.metadataFilters.map(s=>To(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:i},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,r){if(!this.canSendEvent())return;let n=this.store.getState().request,i;e.type==Se.TOPIC&&(i={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ye.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:n.query,searchType:n.virtualField,lastUpdate:ko(n.metadataFilters),facets:n.metadataFilters.map(s=>To(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:i},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case Se.MAP:return{id:e.map.mapId,title:e.map.title,type:Ue.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case Se.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Ue.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case Se.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Ue.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case Se.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:Ue.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case Se.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:Ue.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r;return(r=Jt(e))===null||r===void 0?void 0:r.originUrl}};var H=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},P=class extends Ne{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=wr.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new Lo(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.applyStickyFilters=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.addStore(A)}render(){return me`
88
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),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("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>il.addContext(n)),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())}};M.elementDefinitions={};M.styles=sl;G([E()],M.prototype,"baseUrl",void 0);G([E()],M.prototype,"tenantId",void 0);G([E()],M.prototype,"apiIntegrationIdentifier",void 0);G([E()],M.prototype,"apiIntegrationAppVersion",void 0);G([E()],M.prototype,"uiLocale",void 0);G([te(null)],M.prototype,"availableUiLocales",void 0);G([te(null)],M.prototype,"metadataConfiguration",void 0);G([E({type:Boolean})],M.prototype,"editorMode",void 0);G([E({type:Boolean})],M.prototype,"noCustom",void 0);G([E({type:Boolean})],M.prototype,"openExternalDocumentInNewTab",void 0);G([E({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],M.prototype,"noCustomComponent",void 0);G([E({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],M.prototype,"noCustomCode",void 0);G([E({type:Boolean})],M.prototype,"withManualResources",void 0);G([E({type:Boolean})],M.prototype,"navigatorOnline",void 0);G([E({type:Boolean})],M.prototype,"forcedOffline",void 0);G([E({type:Boolean})],M.prototype,"authenticationRequired",void 0);G([te([])],M.prototype,"messageContexts",void 0);G([te(void 0)],M.prototype,"session",void 0);var ll={"ft-app-context":M};qt(ll);var Ao=class extends Z{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((n,i)=>n.id.localeCompare(i.id))};return this.cache.get("search-"+this.hash(r),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let r={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(r),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(r=>r.valueFilter==null?r:{...r,valueFilter:{...r.valueFilter,values:[...r.valueFilter.values].sort((n,i)=>n.localeCompare(i))}}).sort((r,n)=>r.key.localeCompare(n.key))}};var Ro=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e,composed:!0,bubbles:!0})}},_o=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},Io=class extends CustomEvent{constructor(e,r,n){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:n},composed:!0,bubbles:!0})}},Cr=class t extends Event{constructor(){super(t.eventName)}};Cr.eventName="search-context-clear-all-filters";var Qp=t=>t.request.virtualField===Je.TITLE_ONLY&&t.request.scope===Et.DOCUMENTS,Yp=t=>t.request.keywordMatch==Be.MANDATORY,wr=class t extends ct{static build(e,r){return new t(el(e.trim()||"context"),r)}constructor(e,r){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.applyStickyFilters=!1,this.history=new go(this.store.actions.recentQueries),this.onNewNeededRequest=n=>{n==br.CLUSTERED_SEARCH&&this.launchSearch()},this.onStorageEvent=n=>{n.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var n;let i;if(Yt(A.getState().session,B.DEBUG_USER)){let a=JSON.parse((n=window.localStorage.getItem(this.taruqaConfigStorageKey))!==null&&n!==void 0?n:"{}");i=a.overrideEnabled?a.template:void 0}this.updateSearchRequest({taruqaTemplateOverride:i,changedByConfiguration:!0})},this.localesDebouncer=new ce(10),this.searchDebouncer=new ce(100),this.launchSearch=n=>this.searchDebouncer.run(()=>this.fetchSearchData(n??this.buildSearchRequest())),this.buildSearchRequest=(n=this.store.getState())=>{var i;return{...n.request,facets:this.facetIds.map(a=>({id:a})),stickyFiltersId:this.applyStickyFilters?(i=A.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.suggestDebouncer=new ce(1e3),this.launchSuggest=n=>this.suggestDebouncer.run(()=>this.fetchSuggestData(n??this.buildSuggestRequest())),this.buildSuggestRequest=(n=this.store.getState())=>{var i,a;return{input:n.liveQuery,metadataFilters:n.request.metadataFilters,sort:(a=n.request.sort)!==null&&a!==void 0?a:[],sortId:n.request.sortId,contentLocale:n.request.contentLocale,scope:n.request.scope,keywordMatch:n.request.keywordMatch,stickyFiltersId:this.applyStickyFilters?(i=A.getState().stickyFilters)===null||i===void 0?void 0:i.id:void 0}},this.service=r??new Ao,this.service.cache.addEventListener("clear-cache",n=>{n.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=new Ge(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=new Ge(e,this.buildSuggestRequest,this.launchSuggest),this.stickyFiltersIdWatcher=new Ge(A,n=>{var i;return(i=n.stickyFilters)===null||i===void 0?void 0:i.id},()=>{this.applyStickyFilters&&(this.launchSearch(),this.launchSuggest())})}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.loadTaruqaTemplate(),this.launchSearch()}addListeners(){window.addEventListener("storage",this.onStorageEvent),A.addEventListener(Oe.eventName,this.loadTaruqaTemplate),this.searchWatcher.watch(),this.suggestWatcher.watch(),this.stickyFiltersIdWatcher.watch(),this.history.enable(A.getState().tenantId+"-ft-recent-queries")}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),A.removeEventListener(Oe.eventName,this.loadTaruqaTemplate),this.searchWatcher.stop(),this.suggestWatcher.stop(),this.stickyFiltersIdWatcher.stop(),this.history.disable()}get taruqaConfigStorageKey(){return A.getState().tenantId+"-taruqa-experiment-conf"}updateSearchRequest(e,r=!1){let n=ee(this.store.getState().request);delete n.changedByConfiguration,this.store.actions.setRequest({...n,paging:{perPage:n.paging.perPage,page:r?1:n.paging.page},...e})}setQuery(e){this.updateSearchRequest({query:e},!0),this.setLiveQuery(e)}setContentLocale(e){var r,n;let i=(n=this.store.getState().locales)!==null&&n!==void 0?n:[],a=this.store.getState().request.contentLocale;if(e!=a){if(i.length>0){let s=l=>i.some(u=>u.lang==l);s(e)||(e=s(a)?a:i[0].lang)}this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((r=Sr.store.getState().localesConfiguration)===null||r===void 0)&&r.searchLanguageSetsUiLanguage)&&e&&Sr.requestUiLocaleUpdate(e,e)}return e}forceContentLocale(e){this.updateSearchRequest({contentLocale:e})}setPageSize(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,perPage:isNaN(e)?20:_e(1,e,1e3)}})}setPageNumber(e){let r=this.store.getState().request;this.updateSearchRequest({paging:{...r.paging,page:isNaN(e)?1:Math.max(1,e)}})}get sortOptions(){var e,r;return(r=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&r!==void 0?r:[]}setSort(e){this.updateSearchRequest({sort:e},!0)}setSortId(e,r=!1){var n;let i=r?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...i},!0),e;let a=(n=this.sortOptions.find(s=>s.id==e))!==null&&n!==void 0?n:this.sortOptions[0];return this.updateSearchRequest({sortId:a.id,...i},!0),a.id}setFilters(e){let r=e.filter(n=>!n.valueFilter||n.valueFilter.values.length>0);this.updateSearchRequest({metadataFilters:r},!0)}setClusterSortCriterion(e){this.updateSearchRequest({clusterSortCriterions:e})}setSearchInDocumentTitlesOnly(e){e?this.updateSearchRequest({virtualField:Je.TITLE_ONLY,scope:Et.DOCUMENTS},!0):this.updateSearchRequest({virtualField:Je.EVERYWHERE,scope:Et.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return Qp(this.store.getState())}get keywordMatch(){return Yp(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new Cr)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,r){let n=this.facetIds.filter(i=>i!=e);r&&n.push(r),this.facetIds=n}get facetIds(){var e;let r=this.store.getState().request;return[...new Set([...r.facets.map(n=>n.id),...((e=r.metadataFilters)!==null&&e!==void 0?e:[]).map(n=>n.key)])]}set facetIds(e){let n=[...new Set(e)].map(i=>({id:i}));this.updateSearchRequest({facets:n})}addPropagatedFacet(e){let r=new Set(this.store.getState().propagatedFacets);r.add(e),this.store.actions.propagatedFacets([...r])}setFilter(e,r){this.setValueFilter(e,r)}setValueFilter(e,r){let n=this.store.getState().request.metadataFilters,i={key:e,valueFilter:{values:r,negative:!1}},a=[...n.filter(s=>!s.valueFilter),...n.filter(s=>s.valueFilter&&s.key!==i.key),i];this.setFilters(a)}setDateFilter(e,r){let n=this.store.getState().request.metadataFilters,i={key:e,dateFilter:{type:r}},a=[...n.filter(s=>!s.dateFilter),...n.filter(s=>s.dateFilter&&s.key!==i.key),i];this.setFilters(a)}removeDateFilter(e){let r=this.store.getState().request.metadataFilters,n=[...r.filter(i=>!i.dateFilter),...r.filter(i=>i.dateFilter&&i.key!==e)];this.setFilters(n)}setRangeFilter(e,r,n){let i=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:r,to:n}},s=[...i.filter(l=>!l.rangeFilter),...i.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let r=this.store.getState().request.metadataFilters,n=[...r.filter(i=>!i.rangeFilter),...r.filter(i=>i.rangeFilter&&i.key!==e)];this.setFilters(n)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}setApplyStickyFilters(e){this.applyStickyFilters=e,this.launchSearch(),this.launchSuggest()}addRecentQuery(e){this.history.addRecentQuery(e)}removeRecentQuery(e){this.history.removeRecentQuery(e)}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var r,n,i,a,s;if((r=this.cancelableSearch)===null||r===void 0||r.cancel(),!!this.isRequestNeeded(br.CLUSTERED_SEARCH))try{if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{!((n=this.store.getState().results)===null||n===void 0)&&n.length||this.store.actions.results(void 0),this.cancelableSearch=vt(this.service.launchSearch(e));let l=await this.cancelableSearch;if(this.store.actions.announcements(l.announcements),l.paging.currentPage<=1)this.store.actions.results(l.results),this.store.actions.facets(l.facets),this.store.actions.spellcheck(l.spellcheck);else{let u=((a=this.store.getState().results)!==null&&a!==void 0?a:[]).concat(l.results);this.store.actions.results(u),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(l.paging.currentPage-1)*((s=e.paging.perPage)!==null&&s!==void 0?s:20)+1}`})}this.store.actions.paging(l.paging)}}catch(l){l instanceof ye||(console.error(l),(i=this.errorHandler)===null||i===void 0||i.call(this,l))}}async fetchSuggestData(e){var r;try{if((r=this.cancelableSuggest)===null||r===void 0||r.cancel(),e.input.length<3){this.store.actions.suggestResults([]);return}this.cancelableSuggest=vt(this.service.launchSuggest(e));let n=await this.cancelableSuggest;this.store.actions.suggestResults(n.suggestions)}catch(n){!(n instanceof ye)&&this.errorHandler&&this.errorHandler(n)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}};var Vi=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Wi=class extends CustomEvent{constructor(e){super("register-ft-search-component",{bubbles:!0,composed:!0,detail:{registrationId:e}})}},dl=Symbol("registerInterval"),Gi=Symbol("registerAttempts"),Jp=40,Xp=W(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(n){var i,a,s;super.willUpdate(n),n.has("neededSearchRequests")&&((i=this.stateManager)===null||i===void 0||i.unregisterComponent(this,(s=n.get("neededSearchRequests"))!==null&&s!==void 0?s:[]),(a=this.stateManager)===null||a===void 0||a.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(n){this.clearStateManager(),this.stateManager=n,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(n.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Gi]=0,this.tryToRegisterToContext(),this[dl]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Gi]>Jp?window.clearInterval(this[dl]):(this[Gi]++,this.dispatchEvent(new Wi(this.searchRegistrationId)))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Vi([K()],e.prototype,"stateManager",void 0),Vi([K({hasChanged:be})],e.prototype,"neededSearchRequests",void 0),Vi([E()],e.prototype,"searchRegistrationId",void 0),e}),ul=class extends Xp(Ne){};function To(t){return t.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function Lo(t){var e,r;return t.dateFilter?{key:t.key,type:"DATE",dateValue:t.dateFilter.type}:t.rangeFilter?{key:t.key,type:"RANGE",from:t.rangeFilter.from,to:t.rangeFilter.to}:{key:t.key,values:(e=t.valueFilter)===null||e===void 0?void 0:e.values,negative:(r=t.valueFilter)===null||r===void 0?void 0:r.negative}}var ko=class{constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=([n,i])=>{if(!this.canSendEvent()||!n||!i)return;let a=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(a,n,i):this.sendDocumentSearchEvent(a,n,i)},this.eventsService=r??new Co,this.resultsWatcher=ci(e,n=>[n.results,n.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:r}=A.getState();this.setAppName(e??"unknown"),this.setAppVersion(r??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=A.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,r,n){let i={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ye.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:n.totalClustersCount},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:To(e.metadataFilters),facets:e.metadataFilters.map(a=>Lo(a))}};this.eventsService.sendKhubSearchEvent(i)}sendDocumentSearchEvent(e,r,n){if(e.metadataFilters.find(a=>{var s;return a.key==="ft:publicationId"&&((s=a.valueFilter)===null||s===void 0?void 0:s.values[0])===this.document.id})!==void 0){let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ye.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:n.totalClustersCount},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(a)}}sendResultClickedEvent(e,r){if(!this.canSendEvent())return;let n=this.store.getState().request,i;e.type==ve.TOPIC&&(i={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ye.SEARCH_PAGE__SELECT,searchQuery:{terms:n.query,searchType:n.virtualField,lastUpdate:To(n.metadataFilters),facets:n.metadataFilters.map(s=>Lo(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:i},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,r){if(!this.canSendEvent())return;let n=this.store.getState().request,i;e.type==ve.TOPIC&&(i={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Ye.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:n.query,searchType:n.virtualField,lastUpdate:To(n.metadataFilters),facets:n.metadataFilters.map(s=>Lo(s))},searchResult:{rank:r,type:e.type,document:this.convertDocument(e),topic:i},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case ve.MAP:return{id:e.map.mapId,title:e.map.title,type:Ue.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case ve.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Ue.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case ve.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Ue.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case ve.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:Ue.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case ve.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:Ue.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var r;return(r=Jt(e))===null||r===void 0?void 0:r.originUrl}};var $=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},P=class extends Ne{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=wr.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new ko(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.applyStickyFilters=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.addStore(A)}render(){return me`
89
89
  <slot @register-ft-search-component=${this.registerComponent} @ft-search-result-click=${this.onResultClicked}
90
90
  @ft-search-result-open-context-menu=${this.onResultContextMenuOpened}></slot>
91
- `}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("applyStickyFilters")&&this.stateManager.setApplyStickyFilters(this.applyStickyFilters),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams),this.stateManager.addListeners()}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new _o(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new Io(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){var r;if(e.stopPropagation(),((r=e.detail)===null||r===void 0?void 0:r.registrationId)==this.registrationId){let n=e.composedPath()[0];this.register(n)}}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new Ro(e))}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};P.elementDefinitions={};P.styles=Jc;H([pe({store:A.name})],P.prototype,"session",void 0);H([E()],P.prototype,"query",void 0);H([E()],P.prototype,"contentLocale",void 0);H([Dr()],P.prototype,"pageSize",void 0);H([E({type:Boolean})],P.prototype,"searchInDocumentTitlesOnly",void 0);H([E()],P.prototype,"keywordMatch",void 0);H([E()],P.prototype,"scope",void 0);H([E()],P.prototype,"virtualField",void 0);H([E()],P.prototype,"registrationId",void 0);H([E({type:Boolean})],P.prototype,"ignoreEmptyQuery",void 0);H([E({type:Boolean})],P.prototype,"applyStickyFilters",void 0);H([pe({store:A.name})],P.prototype,"openExternalDocumentInNewTab",void 0);H([te([])],P.prototype,"filters",void 0);H([E()],P.prototype,"sortId",void 0);H([te([])],P.prototype,"sort",void 0);H([te({})],P.prototype,"otherQueryParams",void 0);H([pe({store:"search"})],P.prototype,"request",void 0);H([pe({store:"search"})],P.prototype,"paging",void 0);H([pe({store:"search",selector:t=>t.spellcheck})],P.prototype,"spellcheckAutocorrect",void 0);H([pe({store:A.name,selector:t=>t.apiIntegrationIdentifier!==void 0&&t.apiIntegrationAppVersion!==void 0})],P.prototype,"_appIntegrationInfoReady",void 0);H([E({attribute:!1})],P.prototype,"searchServiceProvider",void 0);var ul={"ft-search-context":P};qt(ul);})();
91
+ `}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("applyStickyFilters")&&this.stateManager.setApplyStickyFilters(this.applyStickyFilters),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams),this.stateManager.addListeners()}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new _o(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new Io(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){var r;if(e.stopPropagation(),((r=e.detail)===null||r===void 0?void 0:r.registrationId)==this.registrationId){let n=e.composedPath()[0];this.register(n)}}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new Ro(e))}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};P.elementDefinitions={};P.styles=Xc;$([pe({store:A.name})],P.prototype,"session",void 0);$([E()],P.prototype,"query",void 0);$([E()],P.prototype,"contentLocale",void 0);$([Dr()],P.prototype,"pageSize",void 0);$([E({type:Boolean})],P.prototype,"searchInDocumentTitlesOnly",void 0);$([E()],P.prototype,"keywordMatch",void 0);$([E()],P.prototype,"scope",void 0);$([E()],P.prototype,"virtualField",void 0);$([E()],P.prototype,"registrationId",void 0);$([E({type:Boolean})],P.prototype,"ignoreEmptyQuery",void 0);$([E({type:Boolean})],P.prototype,"applyStickyFilters",void 0);$([pe({store:A.name})],P.prototype,"openExternalDocumentInNewTab",void 0);$([te([])],P.prototype,"filters",void 0);$([E()],P.prototype,"sortId",void 0);$([te([])],P.prototype,"sort",void 0);$([te({})],P.prototype,"otherQueryParams",void 0);$([pe({store:"search"})],P.prototype,"request",void 0);$([pe({store:"search"})],P.prototype,"paging",void 0);$([pe({store:"search",selector:t=>t.spellcheck})],P.prototype,"spellcheckAutocorrect",void 0);$([pe({store:A.name,selector:t=>t.apiIntegrationIdentifier!==void 0&&t.apiIntegrationAppVersion!==void 0})],P.prototype,"_appIntegrationInfoReady",void 0);$([E({attribute:!1})],P.prototype,"searchServiceProvider",void 0);var pl={"ft-search-context":P};qt(pl);})();
92
92
  /*! Bundled license information:
93
93
 
94
- @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
94
+ .store/@webcomponents-scoped-custom-element-registry-npm-0.0.9-2bdd05710b/package/src/scoped-custom-element-registry.js:
95
95
  (**
96
96
  * @license
97
97
  * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
@@ -106,67 +106,67 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
106
106
  * http://polymer.github.io/PATENTS.txt
107
107
  *)
108
108
 
109
- @lit/reactive-element/css-tag.js:
109
+ .store/@lit-reactive-element-npm-2.1.2-2c713bebce/package/css-tag.js:
110
110
  (**
111
111
  * @license
112
112
  * Copyright 2019 Google LLC
113
113
  * SPDX-License-Identifier: BSD-3-Clause
114
114
  *)
115
115
 
116
- @lit/reactive-element/reactive-element.js:
117
- lit-html/lit-html.js:
118
- lit-element/lit-element.js:
119
- @lit/reactive-element/decorators/custom-element.js:
120
- @lit/reactive-element/decorators/property.js:
121
- @lit/reactive-element/decorators/state.js:
122
- @lit/reactive-element/decorators/event-options.js:
123
- @lit/reactive-element/decorators/base.js:
124
- @lit/reactive-element/decorators/query.js:
125
- @lit/reactive-element/decorators/query-all.js:
126
- @lit/reactive-element/decorators/query-async.js:
127
- @lit/reactive-element/decorators/query-assigned-nodes.js:
128
- lit-html/directive.js:
129
- lit-html/directives/repeat.js:
130
- lit-html/directives/unsafe-html.js:
131
- lit-html/async-directive.js:
132
- @lit/context/lib/decorators/provide.js:
116
+ .store/@lit-reactive-element-npm-2.1.2-2c713bebce/package/reactive-element.js:
117
+ .store/lit-html-npm-3.3.3-0f054b825a/package/lit-html.js:
118
+ .store/lit-element-npm-4.2.2-70d4af2233/package/lit-element.js:
119
+ .store/@lit-reactive-element-npm-2.1.2-2c713bebce/package/decorators/custom-element.js:
120
+ .store/@lit-reactive-element-npm-2.1.2-2c713bebce/package/decorators/property.js:
121
+ .store/@lit-reactive-element-npm-2.1.2-2c713bebce/package/decorators/state.js:
122
+ .store/@lit-reactive-element-npm-2.1.2-2c713bebce/package/decorators/event-options.js:
123
+ .store/@lit-reactive-element-npm-2.1.2-2c713bebce/package/decorators/base.js:
124
+ .store/@lit-reactive-element-npm-2.1.2-2c713bebce/package/decorators/query.js:
125
+ .store/@lit-reactive-element-npm-2.1.2-2c713bebce/package/decorators/query-all.js:
126
+ .store/@lit-reactive-element-npm-2.1.2-2c713bebce/package/decorators/query-async.js:
127
+ .store/@lit-reactive-element-npm-2.1.2-2c713bebce/package/decorators/query-assigned-nodes.js:
128
+ .store/lit-html-npm-3.3.3-0f054b825a/package/directive.js:
129
+ .store/lit-html-npm-3.3.3-0f054b825a/package/directives/repeat.js:
130
+ .store/lit-html-npm-3.3.3-0f054b825a/package/directives/unsafe-html.js:
131
+ .store/lit-html-npm-3.3.3-0f054b825a/package/async-directive.js:
132
+ .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/decorators/provide.js:
133
133
  (**
134
134
  * @license
135
135
  * Copyright 2017 Google LLC
136
136
  * SPDX-License-Identifier: BSD-3-Clause
137
137
  *)
138
138
 
139
- lit-html/is-server.js:
140
- @lit/context/lib/decorators/consume.js:
139
+ .store/lit-html-npm-3.3.3-0f054b825a/package/is-server.js:
140
+ .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/decorators/consume.js:
141
141
  (**
142
142
  * @license
143
143
  * Copyright 2022 Google LLC
144
144
  * SPDX-License-Identifier: BSD-3-Clause
145
145
  *)
146
146
 
147
- @lit/reactive-element/decorators/query-assigned-elements.js:
148
- lit-html/directives/when.js:
149
- @lit/context/lib/context-request-event.js:
150
- @lit/context/lib/create-context.js:
151
- @lit/context/lib/controllers/context-consumer.js:
152
- @lit/context/lib/value-notifier.js:
153
- @lit/context/lib/controllers/context-provider.js:
154
- @lit/context/lib/context-root.js:
147
+ .store/@lit-reactive-element-npm-2.1.2-2c713bebce/package/decorators/query-assigned-elements.js:
148
+ .store/lit-html-npm-3.3.3-0f054b825a/package/directives/when.js:
149
+ .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/context-request-event.js:
150
+ .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/create-context.js:
151
+ .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/controllers/context-consumer.js:
152
+ .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/value-notifier.js:
153
+ .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/controllers/context-provider.js:
154
+ .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/context-root.js:
155
155
  (**
156
156
  * @license
157
157
  * Copyright 2021 Google LLC
158
158
  * SPDX-License-Identifier: BSD-3-Clause
159
159
  *)
160
160
 
161
- lit-html/directive-helpers.js:
161
+ .store/lit-html-npm-3.3.3-0f054b825a/package/directive-helpers.js:
162
162
  (**
163
163
  * @license
164
164
  * Copyright 2020 Google LLC
165
165
  * SPDX-License-Identifier: BSD-3-Clause
166
166
  *)
167
167
 
168
- lit-html/directives/class-map.js:
169
- lit-html/directives/style-map.js:
168
+ .store/lit-html-npm-3.3.3-0f054b825a/package/directives/class-map.js:
169
+ .store/lit-html-npm-3.3.3-0f054b825a/package/directives/style-map.js:
170
170
  (**
171
171
  * @license
172
172
  * Copyright 2018 Google LLC