@fluid-topics/ft-reader-context 1.2.69 → 1.2.70
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.
- package/build/ft-reader-context.min.js +15 -15
- package/package.json +4 -4
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
`)===0?F.substr(1,F.length):F}).forEach(function(F){var B=F.split(":"),k=B.shift().trim();if(k){var ar=B.join(":").trim();try{v.append(k,ar)}catch(Jr){console.warn("Response "+Jr.message)}}}),v}A.call(S.prototype);function P(g,v){if(!(this instanceof P))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=v.statusText===void 0?"":""+v.statusText,this.headers=new f(v.headers),this.url=v.url||"",this._initBody(g)}A.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},P.error=function(){var g=new P(null,{status:200,statusText:""});return g.ok=!1,g.status=0,g.type="error",g};var D=[301,302,303,307,308];P.redirect=function(g,v){if(D.indexOf(v)===-1)throw new RangeError("Invalid status code");return new P(null,{status:v,headers:{location:g}})},t.DOMException=n.DOMException;try{new t.DOMException}catch{t.DOMException=function(v,T){this.message=v,this.name=T;var F=Error(v);this.stack=F.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function I(g,v){return new Promise(function(T,F){var B=new S(g,v);if(B.signal&&B.signal.aborted)return F(new t.DOMException("Aborted","AbortError"));var k=new XMLHttpRequest;function ar(){k.abort()}k.onload=function(){var K={statusText:k.statusText,headers:_(k.getAllResponseHeaders()||"")};B.url.indexOf("file://")===0&&(k.status<200||k.status>599)?K.status=200:K.status=k.status,K.url="responseURL"in k?k.responseURL:K.headers.get("X-Request-URL");var We="response"in k?k.response:k.responseText;setTimeout(function(){T(new P(We,K))},0)},k.onerror=function(){setTimeout(function(){F(new TypeError("Network request failed"))},0)},k.ontimeout=function(){setTimeout(function(){F(new TypeError("Network request timed out"))},0)},k.onabort=function(){setTimeout(function(){F(new t.DOMException("Aborted","AbortError"))},0)};function Jr(K){try{return K===""&&n.location.href?n.location.href:K}catch{return K}}if(k.open(B.method,Jr(B.url),!0),B.credentials==="include"?k.withCredentials=!0:B.credentials==="omit"&&(k.withCredentials=!1),"responseType"in k&&(a.blob?k.responseType="blob":a.arrayBuffer&&(k.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof f||n.Headers&&v.headers instanceof n.Headers)){var ea=[];Object.getOwnPropertyNames(v.headers).forEach(function(K){ea.push(d(K)),k.setRequestHeader(K,p(v.headers[K]))}),B.headers.forEach(function(K,We){ea.indexOf(We)===-1&&k.setRequestHeader(We,K)})}else B.headers.forEach(function(K,We){k.setRequestHeader(We,K)});B.signal&&(B.signal.addEventListener("abort",ar),k.onreadystatechange=function(){k.readyState===4&&B.signal.removeEventListener("abort",ar)}),k.send(typeof B._bodyInit>"u"?null:B._bodyInit)})}return I.polyfill=!0,n.fetch||(n.fetch=I,n.Headers=f,n.Request=S,n.Response=P),t.Headers=f,t.Request=S,t.Response=P,t.fetch=I,t}({})})(Pr);Pr.fetch.ponyfill=!0;delete Pr.fetch.polyfill;var xt=_r.fetch?_r:Pr;Be=xt.fetch;Be.default=xt.fetch;Be.fetch=xt.fetch;Be.Headers=xt.Headers;Be.Request=xt.Request;Be.Response=xt.Response;cs.exports=Be});if(!ShadowRoot.prototype.createElement){let o=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,n=window.customElements,a=new WeakMap,i=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(O,E){if(O=O.toLowerCase(),this._getDefinition(O)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${O}" has already been used with this registry`);if(this._definitionsByClass.get(E)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let S=E.prototype.attributeChangedCallback,R=new Set(E.observedAttributes||[]);m(E,R,S);let _={elementClass:E,connectedCallback:E.prototype.connectedCallback,disconnectedCallback:E.prototype.disconnectedCallback,adoptedCallback:E.prototype.adoptedCallback,attributeChangedCallback:S,formAssociated:E.formAssociated,formAssociatedCallback:E.prototype.formAssociatedCallback,formDisabledCallback:E.prototype.formDisabledCallback,formResetCallback:E.prototype.formResetCallback,formStateRestoreCallback:E.prototype.formStateRestoreCallback,observedAttributes:R};this._definitionsByTag.set(O,_),this._definitionsByClass.set(E,_);let P=t.call(n,O);P||(P=f(O),e.call(n,O,P)),this===window.customElements&&(s.set(E,_),_.standInClass=P);let D=this._awaitingUpgrade.get(O);if(D){this._awaitingUpgrade.delete(O);for(let g of D)i.delete(g),b(g,_,!0)}let I=this._whenDefinedPromises.get(O);return I!==void 0&&(I.resolve(E),this._whenDefinedPromises.delete(O)),E}upgrade(){C.push(this),n.upgrade.apply(n,arguments),C.pop()}get(O){return this._definitionsByTag.get(O)?.elementClass}_getDefinition(O){return this._definitionsByTag.get(O)}whenDefined(O){let E=this._getDefinition(O);if(E!==void 0)return Promise.resolve(E.elementClass);let S=this._whenDefinedPromises.get(O);return S===void 0&&(S={},S.promise=new Promise(R=>S.resolve=R),this._whenDefinedPromises.set(O,S)),S.promise}_upgradeWhenDefined(O,E,S){let R=this._awaitingUpgrade.get(E);R||this._awaitingUpgrade.set(E,R=new Set),S?R.add(O):R.delete(O)}};let d;window.HTMLElement=function(){let E=d;if(E)return d=void 0,E;let S=s.get(this.constructor);if(!S)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return E=Reflect.construct(o,[],S.standInClass),Object.setPrototypeOf(E,this.constructor.prototype),a.set(E,S),E},window.HTMLElement.prototype=o.prototype;let p=O=>O===document||O instanceof ShadowRoot,h=O=>{let E=O.getRootNode();if(!p(E)){let S=C[C.length-1];if(S instanceof CustomElementRegistry)return S;E=S.getRootNode(),p(E)||(E=l.get(E)?.getRootNode()||document)}return E.customElements},f=O=>class{static get formAssociated(){return!0}constructor(){let S=Reflect.construct(o,[],this.constructor);Object.setPrototypeOf(S,HTMLElement.prototype);let R=h(S)||window.customElements,_=R._getDefinition(O);return _?b(S,_):i.set(S,R),S}connectedCallback(){let S=a.get(this);S?S.connectedCallback&&S.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,O,!0)}disconnectedCallback(){let S=a.get(this);S?S.disconnectedCallback&&S.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,O,!1)}adoptedCallback(){a.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let S=a.get(this);S&&S.formAssociated&&S?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let S=a.get(this);S?.formAssociated&&S?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let S=a.get(this);S?.formAssociated&&S?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let S=a.get(this);S?.formAssociated&&S?.formStateRestoreCallback?.apply(this,arguments)}},m=(O,E,S)=>{if(E.size===0||S===void 0)return;let R=O.prototype.setAttribute;R&&(O.prototype.setAttribute=function(D,I){let g=D.toLowerCase();if(E.has(g)){let v=this.getAttribute(g);R.call(this,g,I),S.call(this,g,v,I)}else R.call(this,g,I)});let _=O.prototype.removeAttribute;_&&(O.prototype.removeAttribute=function(D){let I=D.toLowerCase();if(E.has(I)){let g=this.getAttribute(I);_.call(this,I),S.call(this,I,g,null)}else _.call(this,I)});let P=O.prototype.toggleAttribute;P&&(O.prototype.toggleAttribute=function(D,I){let g=D.toLowerCase();if(E.has(g)){let v=this.getAttribute(g);P.call(this,g,I);let T=this.getAttribute(g);S.call(this,g,v,T)}else P.call(this,g,I)})},y=O=>{let E=Object.getPrototypeOf(O);if(E!==window.HTMLElement)return E===o?Object.setPrototypeOf(O,window.HTMLElement):y(E)},b=(O,E,S=!1)=>{Object.setPrototypeOf(O,E.elementClass.prototype),a.set(O,E),d=O;try{new E.elementClass}catch{y(E.elementClass),new E.elementClass}E.attributeChangedCallback&&E.observedAttributes.forEach(R=>{O.hasAttribute(R)&&E.attributeChangedCallback.call(O,R,null,O.getAttribute(R))}),S&&E.connectedCallback&&O.isConnected&&E.connectedCallback.call(O)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(O){let E=x.apply(this,arguments);return O.customElements&&(E.customElements=O.customElements),E};let C=[document],w=(O,E,S=void 0)=>{let R=(S?Object.getPrototypeOf(S):O.prototype)[E];O.prototype[E]=function(){C.push(this);let _=R.apply(S||this,arguments);return _!==void 0&&l.set(_,this),C.pop(),_}};w(ShadowRoot,"createElement",document),w(ShadowRoot,"importNode",document),w(Element,"insertAdjacentHTML");let A=(O,E)=>{let S=Object.getOwnPropertyDescriptor(O.prototype,E);Object.defineProperty(O.prototype,E,{...S,set(R){C.push(this),S.set.call(this,R),C.pop()}})};if(A(Element,"innerHTML"),A(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let O=new WeakMap,E=HTMLElement.prototype.attachInternals,S=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...D){let I=E.call(this,...D);return O.set(I,this),I},S.forEach(D=>{let I=window.ElementInternals.prototype,g=I[D];I[D]=function(...v){let T=O.get(this);if(a.get(T).formAssociated===!0)return g?.call(this,...v);throw new DOMException(`Failed to execute ${g} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class R extends Array{constructor(I){super(...I),this._elements=I}get value(){return this._elements.find(I=>I.checked===!0)?.value||""}}class _{constructor(I){let g=new Map;I.forEach((v,T)=>{let F=v.getAttribute("name"),B=g.get(F)||[];this[+T]=v,B.push(v),g.set(F,B)}),this.length=I.length,g.forEach((v,T)=>{v&&(v.length===1?this[T]=v[0]:this[T]=new R(v))})}namedItem(I){return this[I]}}let P=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let D=P.get.call(this,[]),I=[];for(let g of D){let v=a.get(g);(!v||v.formAssociated===!0)&&I.push(g)}return new _(I)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,n,a)=>{if(n!==null)try{e.bind(window.customElements)(t,n,a)}catch(i){console.info(t,n,a,i)}}}var lo={};U(lo,{CSSResult:()=>rt,LitElement:()=>me,ReactiveElement:()=>se,_$LE:()=>gc,_$LH:()=>io,adoptStyles:()=>Rt,css:()=>z,defaultConverter:()=>ot,getCompatibleStyle:()=>sr,html:()=>at,isServer:()=>lu,mathml:()=>pc,noChange:()=>V,notEqual:()=>Tt,nothing:()=>H,render:()=>so,supportsAdoptingStyleSheets:()=>Ct,svg:()=>uc,unsafeCSS:()=>At});var ir=globalThis,Ct=ir.ShadowRoot&&(ir.ShadyCSS===void 0||ir.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xr=Symbol(),ta=new WeakMap,rt=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==Xr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Ct&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=ta.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&ta.set(t,e))}return e}toString(){return this.cssText}},At=o=>new rt(typeof o=="string"?o:o+"",void 0,Xr),z=(o,...e)=>{let t=o.length===1?o[0]:e.reduce((n,a,i)=>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.")})(a)+o[i+1],o[0]);return new rt(t,o,Xr)},Rt=(o,e)=>{if(Ct)o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let n=document.createElement("style"),a=ir.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=t.cssText,o.appendChild(n)}},sr=Ct?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return At(t)})(o):o;var{is:rc,defineProperty:oc,getOwnPropertyDescriptor:nc,getOwnPropertyNames:ac,getOwnPropertySymbols:ic,getPrototypeOf:sc}=Object,cr=globalThis,ra=cr.trustedTypes,cc=ra?ra.emptyScript:"",lc=cr.reactiveElementPolyfillSupport,It=(o,e)=>o,ot={toAttribute(o,e){switch(e){case Boolean:o=o?cc:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch{t=null}}return t}},Tt=(o,e)=>!rc(o,e),oa={attribute:!0,type:String,converter:ot,reflect:!1,useDefault:!1,hasChanged:Tt};Symbol.metadata??=Symbol("metadata"),cr.litPropertyMetadata??=new WeakMap;var se=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=oa){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),a=this.getPropertyDescriptor(e,n,t);a!==void 0&&oc(this.prototype,e,a)}}static getPropertyDescriptor(e,t,n){let{get:a,set:i}=nc(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:a,set(s){let l=a?.call(this);i?.call(this,s),this.requestUpdate(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??oa}static _$Ei(){if(this.hasOwnProperty(It("elementProperties")))return;let e=sc(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(It("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(It("properties"))){let t=this.properties,n=[...ac(t),...ic(t)];for(let a of n)this.createProperty(a,t[a])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[n,a]of t)this.elementProperties.set(n,a)}this._$Eh=new Map;for(let[t,n]of this.elementProperties){let a=this._$Eu(t,n);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let a of n)t.unshift(sr(a))}else e!==void 0&&t.push(sr(e));return t}static _$Eu(e,t){let n=t.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,t=this.constructor.elementProperties;for(let n of t.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 Rt(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),a=this.constructor._$Eu(e,n);if(a!==void 0&&n.reflect===!0){let i=(n.converter?.toAttribute!==void 0?n.converter:ot).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(a):this.setAttribute(a,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,a=n._$Eh.get(e);if(a!==void 0&&this._$Em!==a){let i=n.getPropertyOptions(a),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:ot;this._$Em=a,this[a]=s.fromAttribute(t,i.type)??this._$Ej?.get(a)??null,this._$Em=null}}requestUpdate(e,t,n){if(e!==void 0){let a=this.constructor,i=this[e];if(n??=a.getPropertyOptions(e),!((n.hasChanged??Tt)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,t,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:a,wrapped:i},s){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),i!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),a===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[a,i]of this._$Ep)this[a]=i;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[a,i]of n){let{wrapped:s}=i,l=this[a];s!==!0||this._$AL.has(a)||l===void 0||this.C(a,void 0,i,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(t)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};se.elementStyles=[],se.shadowRootOptions={mode:"open"},se[It("elementProperties")]=new Map,se[It("finalized")]=new Map,lc?.({ReactiveElement:se}),(cr.reactiveElementVersions??=[]).push("2.1.0");var to=globalThis,lr=to.trustedTypes,na=lr?lr.createPolicy("lit-html",{createHTML:o=>o}):void 0,ro="$lit$",ge=`lit$${Math.random().toFixed(9).slice(2)}$`,oo="?"+ge,dc=`<${oo}>`,ze=document,_t=()=>ze.createComment(""),Pt=o=>o===null||typeof o!="object"&&typeof o!="function",no=Array.isArray,da=o=>no(o)||typeof o?.[Symbol.iterator]=="function",eo=`[
|
|
3
|
-
\f\r]`,
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),sa=/'/g,ca=/"/g,ua=/^(?:script|style|textarea|title)$/i,ao=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),at=ao(1),uc=ao(2),pc=ao(3),V=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),la=new WeakMap,$e=ze.createTreeWalker(ze,129);function pa(o,e){if(!no(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return na!==void 0?na.createHTML(e):e}var fa=(o,e)=>{let t=o.length-1,n=[],a,i=e===2?"<svg>":e===3?"<math>":"",s=Nt;for(let l=0;l<t;l++){let d=o[l],p,h,f=-1,m=0;for(;m<d.length&&(s.lastIndex=m,h=s.exec(d),h!==null);)m=s.lastIndex,s===Nt?h[1]==="!--"?s=aa:h[1]!==void 0?s=ia:h[2]!==void 0?(ua.test(h[2])&&(a=RegExp("</"+h[2],"g")),s=He):h[3]!==void 0&&(s=He):s===He?h[0]===">"?(s=a??Nt,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?He:h[3]==='"'?ca:sa):s===ca||s===sa?s=He:s===aa||s===ia?s=Nt:(s=He,a=void 0);let y=s===He&&o[l+1].startsWith("/>")?" ":"";i+=s===Nt?d+dc:f>=0?(n.push(p),d.slice(0,f)+ro+d.slice(f)+ge+y):d+ge+(f===-2?l:y)}return[pa(o,i+(o[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},Lt=class o{constructor({strings:e,_$litType$:t},n){let a;this.parts=[];let i=0,s=0,l=e.length-1,d=this.parts,[p,h]=fa(e,t);if(this.el=o.createElement(p,n),$e.currentNode=this.el.content,t===2||t===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(a=$e.nextNode())!==null&&d.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let f of a.getAttributeNames())if(f.endsWith(ro)){let m=h[s++],y=a.getAttribute(f).split(ge),b=/([.?@])?(.*)/.exec(m);d.push({type:1,index:i,name:b[2],strings:y,ctor:b[1]==="."?ur:b[1]==="?"?pr:b[1]==="@"?fr:Ge}),a.removeAttribute(f)}else f.startsWith(ge)&&(d.push({type:6,index:i}),a.removeAttribute(f));if(ua.test(a.tagName)){let f=a.textContent.split(ge),m=f.length-1;if(m>0){a.textContent=lr?lr.emptyScript:"";for(let y=0;y<m;y++)a.append(f[y],_t()),$e.nextNode(),d.push({type:2,index:++i});a.append(f[m],_t())}}}else if(a.nodeType===8)if(a.data===oo)d.push({type:2,index:i});else{let f=-1;for(;(f=a.data.indexOf(ge,f+1))!==-1;)d.push({type:7,index:i}),f+=ge.length-1}i++}}static createElement(e,t){let n=ze.createElement("template");return n.innerHTML=e,n}};function je(o,e,t=o,n){if(e===V)return e;let a=n!==void 0?t._$Co?.[n]:t._$Cl,i=Pt(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(o),a._$AT(o,t,n)),n!==void 0?(t._$Co??=[])[n]=a:t._$Cl=a),a!==void 0&&(e=je(o,a._$AS(o,e.values),a,n)),e}var dr=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,a=(e?.creationScope??ze).importNode(t,!0);$e.currentNode=a;let i=$e.nextNode(),s=0,l=0,d=n[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new nt(i,i.nextSibling,this,e):d.type===1?p=new d.ctor(i,d.name,d.strings,this,e):d.type===6&&(p=new hr(i,this,e)),this._$AV.push(p),d=n[++l]}s!==d?.index&&(i=$e.nextNode(),s++)}return $e.currentNode=ze,a}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}},nt=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,a){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=je(this,e,t),Pt(e)?e===H||e==null||e===""?(this._$AH!==H&&this._$AR(),this._$AH=H):e!==this._$AH&&e!==V&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):da(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!==H&&Pt(this._$AH)?this._$AA.nextSibling.data=e:this.T(ze.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Lt.createElement(pa(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(t);else{let i=new dr(a,this),s=i.u(this.options);i.p(t),this.T(s),this._$AH=i}}_$AC(e){let t=la.get(e.strings);return t===void 0&&la.set(e.strings,t=new Lt(e)),t}k(e){no(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,n,a=0;for(let i of e)a===t.length?t.push(n=new o(this.O(_t()),this.O(_t()),this,this.options)):n=t[a],n._$AI(i),a++;a<t.length&&(this._$AR(n&&n._$AB.nextSibling,a),t.length=a)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ge=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,a,i){this.type=1,this._$AH=H,this._$AN=void 0,this.element=e,this.name=t,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=H}_$AI(e,t=this,n,a){let i=this.strings,s=!1;if(i===void 0)e=je(this,e,t,0),s=!Pt(e)||e!==this._$AH&&e!==V,s&&(this._$AH=e);else{let l=e,d,p;for(e=i[0],d=0;d<i.length-1;d++)p=je(this,l[n+d],t,d),p===V&&(p=this._$AH[d]),s||=!Pt(p)||p!==this._$AH[d],p===H?e=H:e!==H&&(e+=(p??"")+i[d+1]),this._$AH[d]=p}s&&!a&&this.j(e)}j(e){e===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ur=class extends Ge{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===H?void 0:e}},pr=class extends Ge{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==H)}},fr=class extends Ge{constructor(e,t,n,a,i){super(e,t,n,a,i),this.type=5}_$AI(e,t=this){if((e=je(this,e,t,0)??H)===V)return;let n=this._$AH,a=e===H&&n!==H||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==H&&(n===H||a);a&&this.element.removeEventListener(this.name,this,n),i&&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)}},hr=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){je(this,e)}},io={M:ro,P:ge,A:oo,C:1,L:fa,R:dr,D:da,V:je,I:nt,H:Ge,N:pr,U:fr,B:ur,F:hr},fc=to.litHtmlPolyfillSupport;fc?.(Lt,nt),(to.litHtmlVersions??=[]).push("3.3.0");var so=(o,e,t)=>{let n=t?.renderBefore??e,a=n._$litPart$;if(a===void 0){let i=t?.renderBefore??null;n._$litPart$=a=new nt(e.insertBefore(_t(),i),i,void 0,t??{})}return a._$AI(o),a};var co=globalThis,me=class extends se{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=so(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return V}};me._$litElement$=!0,me.finalized=!0,co.litElementHydrateSupport?.({LitElement:me});var hc=co.litElementPolyfillSupport;hc?.({LitElement:me});var gc={_$AK:(o,e,t)=>{o._$AK(e,t)},_$AL:o=>o._$AL};(co.litElementVersions??=[]).push("4.2.0");var lu=!1;var uo={};U(uo,{customElement:()=>mc,eventOptions:()=>bc,property:()=>L,query:()=>vc,queryAll:()=>Sc,queryAssignedElements:()=>Ec,queryAssignedNodes:()=>wc,queryAsync:()=>Oc,standardProperty:()=>ha,state:()=>kt});var mc=o=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(o,e)}):customElements.define(o,e)};var yc={attribute:!0,type:String,converter:ot,reflect:!1,hasChanged:Tt},ha=(o=yc,e,t)=>{let{kind:n,metadata:a}=t,i=globalThis.litPropertyMetadata.get(a);if(i===void 0&&globalThis.litPropertyMetadata.set(a,i=new Map),n==="setter"&&((o=Object.create(o)).wrapped=!0),i.set(t.name,o),n==="accessor"){let{name:s}=t;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,o)},init(l){return l!==void 0&&this.C(s,void 0,o,l),l}}}if(n==="setter"){let{name:s}=t;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,o)}}throw Error("Unsupported decorator location: "+n)};function L(o){return(e,t)=>typeof t=="object"?ha(o,e,t):((n,a,i)=>{let s=a.hasOwnProperty(i);return a.constructor.createProperty(i,n),s?Object.getOwnPropertyDescriptor(a,i):void 0})(o,e,t)}function kt(o){return L({...o,state:!0,attribute:!1})}function bc(o){return(e,t)=>{let n=typeof e=="function"?e:e[t];Object.assign(n,o)}}var ne=(o,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(o,e,t),t);function vc(o,e){return(t,n,a)=>{let i=s=>s.renderRoot?.querySelector(o)??null;if(e){let{get:s,set:l}=typeof n=="object"?t:a??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return ne(t,n,{get(){let d=s.call(this);return d===void 0&&(d=i(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return ne(t,n,{get(){return i(this)}})}}var xc;function Sc(o){return(e,t)=>ne(e,t,{get(){return(this.renderRoot??(xc??=document.createDocumentFragment())).querySelectorAll(o)}})}function Oc(o){return(e,t)=>ne(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(o)??null}})}function Ec(o){return(e,t)=>{let{slot:n,selector:a}=o??{},i="slot"+(n?`[name=${n}]`:":not([name])");return ne(e,t,{get(){let s=this.renderRoot?.querySelector(i),l=s?.assignedElements(o)??[];return a===void 0?l:l.filter(d=>d.matches(a))}})}}function wc(o){return(e,t)=>{let{slot:n}=o??{},a="slot"+(n?`[name=${n}]`:":not([name])");return ne(e,t,{get(){return this.renderRoot?.querySelector(a)?.assignedNodes(o)??[]}})}}var po={};U(po,{repeat:()=>Rc});var Re={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ie=o=>(...e)=>({_$litDirective$:o,values:e}),ce=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{I:Cc}=io;var ga=()=>document.createComment(""),it=(o,e,t)=>{let n=o._$AA.parentNode,a=e===void 0?o._$AB:e._$AA;if(t===void 0){let i=n.insertBefore(ga(),a),s=n.insertBefore(ga(),a);t=new Cc(i,s,o,o.options)}else{let i=t._$AB.nextSibling,s=t._$AM,l=s!==o;if(l){let d;t._$AQ?.(o),t._$AM=o,t._$AP!==void 0&&(d=o._$AU)!==s._$AU&&t._$AP(d)}if(i!==a||l){let d=t._$AA;for(;d!==i;){let p=d.nextSibling;n.insertBefore(d,a),d=p}}}return t},Te=(o,e,t=o)=>(o._$AI(e,t),o),Ac={},ma=(o,e=Ac)=>o._$AH=e,ya=o=>o._$AH,gr=o=>{o._$AP?.(!1,!0);let e=o._$AA,t=o._$AB.nextSibling;for(;e!==t;){let n=e.nextSibling;e.remove(),e=n}};var ba=(o,e,t)=>{let n=new Map;for(let a=e;a<=t;a++)n.set(o[a],a);return n},Rc=Ie(class extends ce{constructor(o){if(super(o),o.type!==Re.CHILD)throw Error("repeat() can only be used in text expressions")}dt(o,e,t){let n;t===void 0?t=e:e!==void 0&&(n=e);let a=[],i=[],s=0;for(let l of o)a[s]=n?n(l,s):s,i[s]=t(l,s),s++;return{values:i,keys:a}}render(o,e,t){return this.dt(o,e,t).values}update(o,[e,t,n]){let a=ya(o),{values:i,keys:s}=this.dt(e,t,n);if(!Array.isArray(a))return this.ut=s,i;let l=this.ut??=[],d=[],p,h,f=0,m=a.length-1,y=0,b=i.length-1;for(;f<=m&&y<=b;)if(a[f]===null)f++;else if(a[m]===null)m--;else if(l[f]===s[y])d[y]=Te(a[f],i[y]),f++,y++;else if(l[m]===s[b])d[b]=Te(a[m],i[b]),m--,b--;else if(l[f]===s[b])d[b]=Te(a[f],i[b]),it(o,d[b+1],a[f]),f++,b--;else if(l[m]===s[y])d[y]=Te(a[m],i[y]),it(o,a[f],a[m]),m--,y++;else if(p===void 0&&(p=ba(s,y,b),h=ba(l,f,m)),p.has(l[f]))if(p.has(l[m])){let x=h.get(s[y]),C=x!==void 0?a[x]:null;if(C===null){let w=it(o,a[f]);Te(w,i[y]),d[y]=w}else d[y]=Te(C,i[y]),it(o,a[f],C),a[x]=null;y++}else gr(a[m]),m--;else gr(a[f]),f++;for(;y<=b;){let x=it(o,d[b+1]);Te(x,i[y]),d[y++]=x}for(;f<=m;){let x=a[f++];x!==null&&gr(x)}return this.ut=s,ma(o,d),V}});var fo={};U(fo,{classMap:()=>Ic});var Ic=Ie(class extends ce{constructor(o){if(super(o),o.type!==Re.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(e=>o[e]).join(" ")+" "}update(o,[e]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.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 t=o.element.classList;for(let n of this.st)n in e||(t.remove(n),this.st.delete(n));for(let n in e){let a=!!e[n];a===this.st.has(n)||this.nt?.has(n)||(a?(t.add(n),this.st.add(n)):(t.remove(n),this.st.delete(n)))}return V}});var ho={};U(ho,{styleMap:()=>Nc});var va="important",Tc=" !"+va,Nc=Ie(class extends ce{constructor(o){if(super(o),o.type!==Re.ATTRIBUTE||o.name!=="style"||o.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(o){return Object.keys(o).reduce((e,t)=>{let n=o[t];return n==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(o,[e]){let{style:t}=o.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("-")?t.removeProperty(n):t[n]=null);for(let n in e){let a=e[n];if(a!=null){this.ft.add(n);let i=typeof a=="string"&&a.endsWith(Tc);n.includes("-")||i?t.setProperty(n,i?a.slice(0,-11):a,i?va:""):t[n]=a}}return V}});var go={};U(go,{UnsafeHTMLDirective:()=>st,unsafeHTML:()=>_c});var st=class extends ce{constructor(e){if(super(e),this.it=H,e.type!==Re.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===H||e==null)return this._t=void 0,this.it=e;if(e===V)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};st.directiveName="unsafeHTML",st.resultType=1;var _c=Ie(st);var Oo={};U(Oo,{CacheRegistry:()=>le,ClearCacheEvent:()=>Dt});var yo={};U(yo,{CancelablePromise:()=>ct,CanceledPromiseError:()=>ye,cancelable:()=>mo});var ye=class extends Error{constructor(e,t,n){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=n}},ct=class extends Promise{constructor(e){super((t,n)=>e(a=>{this.isCanceled?n(new ye("Promise has been canceled",a)):t(a)},a=>{this.isCanceled?n(new ye("Promise has been canceled",void 0,a)):n(a)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},mo=o=>new ct((e,t)=>o.then(e).catch(t));var So={};U(So,{FtNotificationEvent:()=>bo,PostResizeEvent:()=>xo,PreResizeEvent:()=>vo,WithEventBus:()=>be,withEventBus:()=>xa});var bo=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},vo=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},xo=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function xa(o,e){return class extends o{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(t,n,a){this.eventBus.addEventListener(t,n,a)}dispatchEvent(t){return this.eventBus.dispatchEvent(t)}removeEventListener(t,n,a){this.eventBus.removeEventListener(t,n,a)}}}var be=class extends xa(Object){};var Dt=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},le=class extends be{constructor(){super(...arguments),this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(e,t){this.loaders[e]=t,this.finalContent.delete(e)}registerFinal(e,t){this.loaders[e]=t,this.finalContent.add(e)}clearAll(e=!0){let t=[];for(let n in this.content)this.clear(n,!1)!=null&&t.push(n);e&&t.length>0&&this.dispatchEvent(new Dt(t))}clear(e,t=!0){if(!this.finalContent.has(e))return this.forceClear(e),t&&this.dispatchEvent(new Dt([e])),e}forceClear(e){this.clearClearTimeout(e),this.content[e]instanceof ct&&this.content[e].cancel(),delete this.content[e]}clearClearTimeout(e){this.clearTimeouts[e]!=null&&(window.clearTimeout(this.clearTimeouts[e]),delete this.clearTimeouts[e])}set(e,t){this.forceClear(e),this.register(e,async()=>t),this.content[e]=t}setFinal(e,t){this.forceClear(e),this.registerFinal(e,async()=>t),this.content[e]=t}async get(e,t,n){if(this.content[e]===void 0){if(t=t??this.loaders[e],t==null)throw new Error("Unknown cache key "+e);let a=mo(t());return this.content[e]=a,a.then(i=>(this.content[e]=i,n!=null&&(this.clearClearTimeout(e),this.clearTimeouts[e]=window.setTimeout(()=>this.clear(e),n)),i))}if(this.content[e]instanceof Error)throw this.content[e];return this.content[e]}isResolvedValue(e){return e!=null&&!(e instanceof Promise)&&!(e instanceof Error)}getNow(e){if(this.isResolvedValue(this.content[e]))return this.content[e]}has(e){return this.content[e]!=null}resolvedKeys(){return Object.keys(this.content).filter(e=>this.isResolvedValue(this.content[e]))}resolvedValues(){return Object.values(this.content).filter(e=>this.isResolvedValue(e))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var wo={};U(wo,{ClusteringHelper:()=>Ft,formatHierarchicalValues:()=>Eo});function Eo(o,e){return e&&e>1&&o.length>=e?`... > ${o[o.length-1]}`:o.join(" > ")}var Ft=class o{constructor(e,t,n,a){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=n,this.metadataDescriptors=a}static extractResultMetadata(e){var t,n,a,i,s;let l=((i=(n=(t=e.result)===null||t===void 0?void 0:t.map)!==null&&n!==void 0?n:(a=e.result)===null||a===void 0?void 0:a.document)!==null&&i!==void 0?i:(s=e.result)===null||s===void 0?void 0:s.topic).metadata;return e.key==null?o.flattenMetadata(l,e.hierarchicalValueTruncatingLevel,e.dateFormatter):o.flattenMetadata(l.find(d=>d.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,t,n){if(Array.isArray(e))return e.map(i=>o.flattenMetadata(i,t,n)).filter(i=>i!=null);let a=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!a))if(a){let i=[],s=[];return e.hierarchicalValues.forEach(l=>{i.push(Eo(l)),s.push(Eo(l,t))}),{key:e.key,label:e.label,value:i.join(", "),displayValue:s.join(", "),displayTooltipValue:i.join(", ")}}else{let i=e.values.join(", "),s=e.values.map(l=>n?n(l):l).join(", ");return{key:e.key,label:e.label,value:i,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,t,n="No value",a,i){var s,l;let d=o.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:i}),p=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(f=>o.extractResultMetadata({result:f,key:e,hierarchicalValueTruncatingLevel:a,dateFormatter:i})).map(f=>f??{key:e,label:p,value:void 0,displayValue:n}).filter(f=>f.value!=d?.value).filter((f,m,y)=>y.findIndex(b=>b.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,t))}compareMetadata(e,t,n,a){if(e==null)return-1;if(t==null)return 1;let i=this.getMetadataDescriptor(n),s=i?.sortRule||"NONE",l=i?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(t,a,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let n=this.allResults.filter(d=>{var p;return((p=o.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==t}),i=[...o.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of n){let p=this.countMatchingMetadata(d,i);if(p>l&&(l=p,s=d,p===i.length))break}return s}countMatchingMetadata(e,t){return o.extractResultMetadata({result:e}).filter(n=>t.some(a=>a.key===n.key&&a.value===n.value)).length}};var Co={};U(Co,{Debouncer:()=>X});var X=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,n)=>{this.resolvePromise=t,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(t=this.resolvePromise)!==null&&t!==void 0?t:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var To={};U(To,{customElement:()=>Wt,isNumber:()=>wa,jsonProperty:()=>Ne,optionalNumberProperty:()=>Fc});var Io={};U(Io,{dateReviver:()=>Pc,deepCopy:()=>Bt,deepEqual:()=>ee,delay:()=>mr,eventPathContainsMatchingElement:()=>kc,flatDeep:()=>Sa,getComposedPathTo:()=>Ro,hasChanged:()=>Ke,last:()=>Dc,minmax:()=>Mt,parseDate:()=>Oa,unslotText:()=>Ea,waitFor:()=>Ut,waitUntil:()=>Ao});var mr=o=>new Promise(e=>setTimeout(e,o));async function Ao(o,e=10,t=2e4){await Ut(async()=>await o()||void 0,e,t)}async function Ut(o,e=10,t=2e4){let n=await o(),a,i;for(a=i=performance.now();n==null&&(!t||i-a<t);)await mr(e),n=await o(),i=performance.now();if(n==null)throw new Error("Timeout exceeded");return n}function Sa(o,e){return o.flatMap(t=>[t,...Sa(e(t),e)])}function Pc(...o){return(e,t)=>o.includes(e)?Oa(t):t}function Oa(o){return o.match(/^\d{4}-\d{2}-\d{2}$/)&&(o=o.replace(/-/g,"/")),o=o.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,n,a)=>t+n+":"+a),new Date(o)}function Lc(o,e){if(o===e)return!0;if(o&&e&&typeof o=="object"&&typeof e=="object"){if(o.constructor!==e.constructor)return!1;var t,n,a;if(Array.isArray(o)){if(t=o.length,t!=e.length)return!1;for(n=t;n--!==0;)if(!ee(o[n],e[n]))return!1;return!0}if(o instanceof Map&&e instanceof Map){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;for(n of o.entries())if(!ee(n[1],e.get(n[0])))return!1;return!0}if(o instanceof Set&&e instanceof Set){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;return!0}if(o.constructor===RegExp)return o.source===e.source&&o.flags===e.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(a=i(o),t=a.length,t!==i(e).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=t;n--!==0;){let s=a[n];if(!ee(o[s],e[s]))return!1}return!0}return o!==o&&e!==e||o==null&&e==null}function ee(o,e){try{return Lc(o,e)}catch{return!1}}function Ke(o,e){return!ee(o,e)}function kc(o,e,t=window.document.body){if(e.length>0){let n=o.composedPath();for(let a of n){if(a===t)return!1;if(a.matches&&e.some(i=>a.matches(i)))return!0}}return!1}function Mt(o,e,t){return Math.min(Math.max(o,e),t)}function Dc(o){return o[o.length-1]}function Ea(o){return o instanceof HTMLSlotElement?o.assignedNodes().map(e=>Ea(e)).join(""):o?.textContent||""}function Ro(o){let e=[],t=n=>{n.stopPropagation(),e=n.composedPath()};return o.addEventListener("get-composed-path",t),o.dispatchEvent(new Event("get-composed-path",{composed:!0})),o.removeEventListener("get-composed-path",t),e}function Bt(o){return typeof window.structuredClone=="function"?structuredClone(o):o!=null?JSON.parse(JSON.stringify(o)):o}var Wt=o=>e=>{window.customElements.get(o)||window.customElements.define(o,e)};function Ne(o,e){let t=()=>JSON.parse(JSON.stringify(o));return L({type:Object,converter:{fromAttribute:n=>{if(n==null)return t();try{return JSON.parse(n)}catch{return t()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Ke,...e??{}})}function Fc(o){return L({type:Object,converter:{fromAttribute:e=>{if(e!=null)return wa(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...o??{}})}function wa(o){return!isNaN(parseFloat(o))}var Lo={};U(Lo,{designSystemVariables:()=>yl});var Po={};U(Po,{DesignSystemFamily:()=>Ht,DesignSystemSize:()=>$t,FtCssVariableFactory:()=>r,badge:()=>Kc,banner:()=>Gc,button:()=>Bc,chart:()=>cl,checkbox:()=>Wc,chip:()=>zc,chipChoice:()=>$c,collapsible:()=>il,comboboxMultiSelect:()=>nl,comboboxSingleSelect:()=>ol,drawer:()=>Qc,floatingMenu:()=>rl,foundation:()=>c,link:()=>jc,modal:()=>Jc,notice:()=>dl,notification:()=>fl,pageDesigner:()=>ll,pageFooter:()=>qc,pageHeader:()=>Zc,pageLayout:()=>Yc,popover:()=>al,radio:()=>pl,reorderableList:()=>gl,resolveFamilyClass:()=>No,resolveSizeClass:()=>_o,semantic:()=>u,setVariable:()=>yr,switch_:()=>sl,table:()=>Hc,tabs:()=>Xc,textArea:()=>tl,textInput:()=>el,titleBreadcrumb:()=>Vc,toggle:()=>ul,tooltip:()=>hl,treeList:()=>ml,typographies:()=>Uc,typographyBody1Medium:()=>Na,typographyBody1Regular:()=>Ta,typographyBody1Semibold:()=>_a,typographyBody2Medium:()=>La,typographyBody2MediumUnderline:()=>ka,typographyBody2Regular:()=>Pa,typographyBody2Semibold:()=>Da,typographyCaption1Bold:()=>ja,typographyCaption1Medium:()=>$a,typographyCaption1Semibold:()=>za,typographyCaption2Bold:()=>Va,typographyCaption2Medium:()=>Ga,typographyCaption2Semibold:()=>Ka,typographyCaption3Bold:()=>Ya,typographyCaption3Medium:()=>Za,typographyCaption3Semibold:()=>qa,typographyDisplay:()=>Ca,typographyLabel1Bold:()=>Ma,typographyLabel1Medium:()=>Fa,typographyLabel1Semibold:()=>Ua,typographyLabel2Bold:()=>Ha,typographyLabel2Medium:()=>Ba,typographyLabel2Semibold:()=>Wa,typographyTitle1:()=>Aa,typographyTitle2:()=>Ra,typographyTitle3:()=>Ia,typographyVariants:()=>Mc});var ve=o=>typeof o=="string"?At(o):o,r=class{static create(e,t,n,a){let i=l=>ve(l??a),s=z`var(${ve(e)}, ${i(a)})`;return s.name=e,s.description=t,s.category=n,s.defaultValue=a,s.defaultCssValue=i,s.get=l=>z`var(${ve(e)}, ${i(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>a,s}static extend(e,t,n,a){let i=l=>n.get(l??a),s=z`var(${ve(e)}, ${i(a)})`;return s.name=e,s.description=t,s.category=n.category,s.fallbackVariable=n,s.defaultValue=a,s.defaultCssValue=i,s.get=l=>z`var(${ve(e)}, ${i(l)})`,s.breadcrumb=()=>[n.name,...n.breadcrumb()],s.lastResortDefaultValue=()=>a??n.lastResortDefaultValue(),s}static external(e,t){let n=i=>e.fallbackVariable?e.fallbackVariable.get(i??e.defaultValue):ve(i??e.lastResortDefaultValue()),a=z`var(${ve(e.name)}, ${n(e.defaultValue)})`;return a.name=e.name,a.category=e.category,a.fallbackVariable=e.fallbackVariable,a.defaultValue=e.defaultValue,a.context=t,a.defaultCssValue=n,a.get=i=>z`var(${ve(e.name)}, ${n(i)})`,a.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],a.lastResortDefaultValue=()=>e.lastResortDefaultValue(),a}};function yr(o,e){return ve(`${o.name}: ${e}`)}var c={colorWhite:r.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:r.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:r.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:r.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:r.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:r.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:r.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:r.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:r.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:r.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:r.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:r.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:r.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:r.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:r.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:r.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:r.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:r.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:r.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:r.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:r.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:r.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:r.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:r.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:r.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:r.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:r.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:r.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:r.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:r.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:r.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:r.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:r.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:r.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:r.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:r.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:r.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:r.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:r.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:r.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:r.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:r.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:r.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:r.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:r.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:r.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:r.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:r.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:r.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:r.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:r.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:r.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:r.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:r.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:r.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:r.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:r.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:r.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:r.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:r.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:r.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:r.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:r.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:r.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:r.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:r.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:r.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:r.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:r.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:r.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:r.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:r.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:r.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:r.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:r.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:r.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:r.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:r.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:r.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:r.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:r.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:r.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:r.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:r.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:r.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:r.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:r.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:r.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:r.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:r.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:r.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:r.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:r.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:r.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:r.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:r.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:r.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:r.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:r.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:r.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:r.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:r.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:r.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:r.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:r.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:r.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:r.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:r.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:r.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:r.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:r.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:r.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:r.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:r.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:r.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:r.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:r.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:r.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:r.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:r.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:r.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:r.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:r.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:r.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:r.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:r.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:r.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:r.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:r.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:r.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:r.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:r.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:r.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:r.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:r.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:r.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:r.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:r.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:r.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:r.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:r.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:r.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:r.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:r.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:r.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:r.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:r.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:r.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:r.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:r.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:r.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:r.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:r.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:r.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:r.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:r.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:r.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:r.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:r.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:r.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:r.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:r.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:r.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:r.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:r.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:r.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:r.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:r.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:r.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:r.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:r.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:r.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:r.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:r.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:r.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:r.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:r.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:r.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:r.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:r.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:r.create("--ft-opacity-0","","NUMBER","0"),opacity8:r.create("--ft-opacity-8","","NUMBER","0.08"),opacity12:r.create("--ft-opacity-12","","NUMBER","0.12"),opacity16:r.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:r.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:r.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:r.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:r.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:r.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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)")},Ca={fontFamily:r.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-display-lineHeight","","SIZE","1.2"),fontSize:r.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:r.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-display-textCase","","UNKNOWN","none")},Aa={fontFamily:r.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-title-1-lineHeight","","SIZE","1.2"),fontSize:r.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:r.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Ra={fontFamily:r.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-2-lineHeight","","SIZE","1.2"),fontSize:r.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:r.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Ia={fontFamily:r.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-3-lineHeight","","SIZE","1.2"),fontSize:r.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:r.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:r.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Ta={fontFamily:r.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-1-regular-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},Na={fontFamily:r.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-1-medium-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},_a={fontFamily:r.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Pa={fontFamily:r.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-2-regular-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},La={fontFamily:r.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},ka={fontFamily:r.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:r.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:r.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Da={fontFamily:r.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Fa={fontFamily:r.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Ua={fontFamily:r.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Ma={fontFamily:r.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Ba={fontFamily:r.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Wa={fontFamily:r.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Ha={fontFamily:r.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},$a={fontFamily:r.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},za={fontFamily:r.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},ja={fontFamily:r.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},Ga={fontFamily:r.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Ka={fontFamily:r.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Va={fontFamily:r.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Za={fontFamily:r.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},qa={fontFamily:r.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},Ya={fontFamily:r.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Uc={display:Ca,"title-1":Aa,"title-2":Ra,"title-3":Ia,"body-1-regular":Ta,"body-1-medium":Na,"body-1-semibold":_a,"body-2-regular":Pa,"body-2-medium":La,"body-2-medium-underline":ka,"body-2-semibold":Da,"label-1-medium":Fa,"label-1-semibold":Ua,"label-1-bold":Ma,"label-2-medium":Ba,"label-2-semibold":Wa,"label-2-bold":Ha,"caption-1-medium":$a,"caption-1-semibold":za,"caption-1-bold":ja,"caption-2-medium":Ga,"caption-2-semibold":Ka,"caption-2-bold":Va,"caption-3-medium":Za,"caption-3-semibold":qa,"caption-3-bold":Ya},Mc=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var u={backgroundActionPrimary:r.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:r.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:r.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:r.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:r.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:r.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:r.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:r.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:r.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:r.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:r.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:r.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:r.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:r.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:r.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:r.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:r.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:r.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:r.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
5
|
-
Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:r.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:r.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:r.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:r.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:r.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:r.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:r.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:r.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:r.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:r.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:r.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:r.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:r.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:r.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:r.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var Bc={largeHeight:r.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:r.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:r.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:r.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:r.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:r.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:r.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:r.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:r.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:r.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:r.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:r.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:r.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:r.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:r.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:r.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:r.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:r.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:r.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:r.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:r.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:r.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:r.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:r.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:r.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:r.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:r.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:r.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:r.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:r.extend("--ft-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:r.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:r.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:r.extend("--ft-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:r.extend("--ft-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:r.extend("--ft-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:r.extend("--ft-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:r.extend("--ft-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:r.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:r.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:r.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:r.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:r.extend("--ft-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:r.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:r.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:r.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:r.extend("--ft-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:r.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:r.extend("--ft-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:r.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:r.extend("--ft-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:r.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:r.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:r.extend("--ft-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:r.extend("--ft-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:r.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:r.extend("--ft-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:r.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:r.extend("--ft-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:r.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:r.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:r.extend("--ft-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:r.extend("--ft-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:r.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:r.extend("--ft-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:r.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:r.extend("--ft-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:r.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:r.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:r.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:r.extend("--ft-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:r.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:r.extend("--ft-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:r.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:r.extend("--ft-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:r.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:r.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:r.extend("--ft-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:r.extend("--ft-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:r.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:r.extend("--ft-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:r.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:r.extend("--ft-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:r.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:r.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:r.extend("--ft-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:r.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:r.extend("--ft-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:r.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:r.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:r.extend("--ft-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:r.extend("--ft-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:r.extend("--ft-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:r.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:r.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:r.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:r.extend("--ft-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:r.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:r.extend("--ft-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:r.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:r.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:r.extend("--ft-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:r.extend("--ft-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:r.extend("--ft-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:r.extend("--ft-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:r.extend("--ft-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:r.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:r.extend("--ft-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:r.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:r.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:r.extend("--ft-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:r.extend("--ft-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:r.extend("--ft-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:r.extend("--ft-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:r.extend("--ft-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:r.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:r.extend("--ft-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:r.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:r.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:r.extend("--ft-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:r.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:r.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:r.extend("--ft-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:r.extend("--ft-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:r.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:r.extend("--ft-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:r.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:r.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:r.extend("--ft-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:r.extend("--ft-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:r.extend("--ft-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:r.extend("--ft-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:r.extend("--ft-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:r.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:r.extend("--ft-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:r.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:r.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:r.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var Wc={iconSize:r.extend("--ft-checkbox-icon-size","",c.iconSize2),boxSize:r.create("--ft-checkbox-box-size","","SIZE","18px"),colorLegendSize:r.create("--ft-checkbox-color-legend-size","","SIZE","16px"),borderRadius:r.create("--ft-checkbox-border-radius","","SIZE","1px"),color:r.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:r.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:r.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:r.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:r.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:r.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:r.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:r.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:r.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:r.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:r.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:r.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:r.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:r.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:r.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:r.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:r.create("--ft-checkbox-border-width","","SIZE","2px"),horizontalGap:r.extend("--ft-checkbox-horizontal-gap","",c.spacing3),leftPadding:r.extend("--ft-checkbox-left-padding","",c.spacing2)};var Hc={headerRowBorderWidth:r.create("--ft-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:r.extend("--ft-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:r.extend("--ft-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:r.extend("--ft-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:r.create("--ft-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:r.extend("--ft-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:r.extend("--ft-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:r.extend("--ft-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:r.extend("--ft-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:r.extend("--ft-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:r.extend("--ft-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:r.extend("--ft-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:r.extend("--ft-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:r.extend("--ft-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:r.extend("--ft-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:r.extend("--ft-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:r.extend("--ft-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:r.extend("--ft-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:r.extend("--ft-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:r.extend("--ft-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:r.extend("--ft-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:r.extend("--ft-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:r.extend("--ft-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:r.extend("--ft-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:r.extend("--ft-table-data-cell-vertical-gap","",c.spacing1)};var $c={neutralOffHoverStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:r.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:r.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:r.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:r.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:r.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:r.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:r.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:r.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:r.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:r.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:r.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:r.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ft-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:r.extend("--ft-chip-choice-large-gap","",c.spacing1),largeBorderRadius:r.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:r.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:r.extend("--ft-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:r.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:r.extend("--ft-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:r.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:r.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:r.extend("--ft-chip-choice-medium-icon-size","",c.iconSize2)};var zc={largeMinHeight:r.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:r.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:r.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:r.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:r.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:r.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:r.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:r.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:r.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:r.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:r.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:r.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:r.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:r.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:r.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:r.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:r.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:r.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:r.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:r.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:r.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:r.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:r.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:r.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:r.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:r.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:r.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:r.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:r.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:r.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:r.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:r.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:r.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:r.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:r.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:r.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:r.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:r.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:r.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:r.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:r.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)};var jc={brandHoverOpacity:r.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:r.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:r.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:r.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:r.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:r.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:r.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:r.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:r.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:r.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:r.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:r.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:r.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:r.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:r.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:r.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:r.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:r.extend("--ft-link-neutral-visited-color","",c.colorBrand100)};var Gc={iconSize:r.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:r.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:r.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:r.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:r.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:r.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:r.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:r.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:r.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:r.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:r.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:r.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:r.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)};var Kc={horizontalPadding:r.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:r.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:r.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:r.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:r.extend("--ft-badge-background-color","",u.contentActionPrimary)};var Vc={horizontalGap:r.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:r.extend("--ft-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:r.extend("--ft-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:r.extend("--ft-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var Zc={parentHorizontalPadding:r.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:r.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:r.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:r.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:r.extend("--ft-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:r.extend("--ft-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:r.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:r.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:r.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:r.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:r.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:r.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:r.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:r.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:r.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:r.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:r.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:r.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:r.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:r.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:r.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:r.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:r.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:r.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:r.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:r.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var qc={horizontalPadding:r.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:r.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:r.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:r.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:r.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:r.extend("--ft-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:r.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:r.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)};var Yc={contentHorizontalPadding:r.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:r.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var Jc={smallContainerTargetWidth:r.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:r.extend("--ft-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:r.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:r.extend("--ft-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:r.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:r.extend("--ft-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:r.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:r.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:r.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:r.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:r.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:r.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:r.extend("--ft-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:r.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:r.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:r.extend("--ft-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:r.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:r.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:r.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:r.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottomWidth:r.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:r.extend("--ft-modal-border-radius","",c.borderRadiusM)};var Qc={overlayOpacity:r.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:r.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:r.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:r.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:r.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:r.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:r.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:r.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:r.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:r.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:r.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:r.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:r.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:r.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:r.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:r.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:r.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:r.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:r.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:r.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:r.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:r.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:r.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:r.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:r.extend("--ft-drawer-overlay-background-color","",c.colorGray700)};var Xc={offBorderBottomWidth:r.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:r.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:r.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:r.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:r.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:r.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:r.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:r.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:r.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:r.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:r.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:r.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:r.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:r.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:r.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:r.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:r.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:r.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:r.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:r.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:r.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:r.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:r.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:r.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:r.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:r.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)};var el={largeFieldHorizontalPadding:r.extend("--ft-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:r.extend("--ft-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:r.extend("--ft-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:r.create("--ft-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:r.extend("--ft-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:r.extend("--ft-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:r.extend("--ft-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:r.create("--ft-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:r.create("--ft-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:r.extend("--ft-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:r.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:r.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:r.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:r.extend("--ft-text-input-border-radius","",c.borderRadiusS),backgroundColor:r.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:r.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:r.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:r.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:r.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:r.extend("--ft-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:r.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:r.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:r.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var tl={backgroundColor:r.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:r.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:r.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:r.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:r.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:r.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:r.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:r.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:r.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:r.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:r.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:r.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:r.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:r.extend("--ft-text-area-border-radius","",c.borderRadiusS)};var rl={height:r.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:r.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:r.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:r.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:r.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:r.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:r.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:r.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:r.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:r.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:r.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:r.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:r.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:r.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:r.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:r.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var ol={largeFieldHorizontalPadding:r.extend("--ft-combobox-single-select-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:r.extend("--ft-combobox-single-select-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:r.extend("--ft-combobox-single-select-large-field-vertical-gap","",c.spacing05),largeFieldHeight:r.create("--ft-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:r.extend("--ft-combobox-single-select-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:r.extend("--ft-combobox-single-select-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:r.extend("--ft-combobox-single-select-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:r.create("--ft-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:r.create("--ft-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:r.extend("--ft-combobox-single-select-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:r.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:r.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:r.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:r.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:r.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:r.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusS),backgroundColor:r.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:r.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:r.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:r.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:r.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:r.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:r.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)};var nl={backgroundColor:r.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:r.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:r.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:r.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:r.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:r.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:r.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:r.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:r.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:r.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:r.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:r.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:r.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:r.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:r.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:r.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:r.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:r.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:r.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:r.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusS)};var al={backgroundColor:r.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:r.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:r.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:r.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:r.extend("--ft-popover-body-color","",u.contentGlobalSecondary),gap:r.extend("--ft-popover-gap","",c.spacing2),borderRadius:r.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:r.extend("--ft-popover-shadow","",c.shadowElevation02),maxWidth:r.create("--ft-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:r.extend("--ft-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:r.extend("--ft-popover-multi-section-vertical-gap","",c.spacing6)};var il={hoverStateLayerOpacity:r.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:r.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:r.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:r.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:r.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:r.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:r.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:r.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:r.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:r.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:r.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:r.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:r.extend("--ft-collapsible-icon-size","",c.iconSize3)};var sl={groupHorizontalPadding:r.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:r.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:r.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:r.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:r.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:r.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:r.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:r.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:r.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:r.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:r.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:r.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:r.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:r.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:r.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:r.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:r.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:r.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:r.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:r.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:r.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:r.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var cl={color1Light:r.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:r.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:r.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:r.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:r.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:r.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:r.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:r.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:r.extend("--ft-chart-5-light","",c.colorRed40),color5Base:r.extend("--ft-chart-5-base","",c.colorRed60),color6Light:r.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:r.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:r.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:r.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:r.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:r.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:r.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:r.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:r.extend("--ft-chart-10-light","",c.colorGray50),color10Base:r.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:r.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:r.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:r.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:r.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:r.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:r.extend("--ft-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:r.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:r.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:r.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var ll={color1IconColor:r.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:r.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:r.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:r.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:r.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:r.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:r.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:r.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:r.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:r.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:r.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:r.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:r.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:r.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:r.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:r.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var dl={borderWidth:r.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:r.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:r.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:r.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:r.extend("--ft-notice-gap","",c.spacing2),iconSize:r.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:r.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:r.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:r.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:r.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:r.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:r.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:r.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:r.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:r.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:r.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:r.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:r.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:r.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:r.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:r.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:r.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:r.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:r.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:r.extend("--ft-notice-dense-gap","",c.spacing1),denseIconSize:r.extend("--ft-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:r.create("--ft-notice-dense-border-width","","SIZE","0")};var ul={offHoverStateLayerOpacity:r.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:r.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:r.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:r.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:r.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:r.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:r.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:r.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:r.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:r.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:r.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:r.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:r.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:r.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:r.extend("--ft-toggle-gap","",c.spacing3)};var pl={color:r.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:r.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:r.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:r.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:r.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:r.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:r.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:r.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:r.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:r.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:r.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:r.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:r.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:r.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:r.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:r.extend("--ft-radio-gap","",c.spacing3)};var fl={iconSize:r.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:r.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:r.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:r.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:r.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:r.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:r.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:r.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:r.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:r.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:r.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:r.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:r.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:r.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:r.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:r.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:r.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:r.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:r.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:r.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:r.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:r.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:r.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:r.extend("--ft-notification-trailing-gap","",c.spacing8)};var hl={horizontalPadding:r.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:r.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:r.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:r.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:r.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:r.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:r.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","256px"),gap:r.extend("--ft-tooltip-gap","",c.spacing05)};var gl={verticalPadding:r.extend("--ft-reorderable-list-vertical-padding","",c.spacing4),gap:r.extend("--ft-reorderable-list-gap","",c.spacing1),borderRadius:r.extend("--ft-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:r.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:r.extend("--ft-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:r.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:r.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:r.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:r.extend("--ft-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:r.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:r.extend("--ft-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:r.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:r.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:r.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:r.extend("--ft-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:r.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:r.extend("--ft-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:r.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:r.extend("--ft-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:r.extend("--ft-reorderable-list-left-padding","",c.spacing2),rightPadding:r.extend("--ft-reorderable-list-right-padding","",c.spacing6),borderColor:r.extend("--ft-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:r.extend("--ft-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var ml={nodeHeight:r.create("--ft-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:r.extend("--ft-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:r.extend("--ft-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:r.extend("--ft-tree-list-node-root-padding-left","",c.spacing3),nodeChildPaddingLeft:r.extend("--ft-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:r.extend("--ft-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:r.extend("--ft-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:r.extend("--ft-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:r.extend("--ft-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:r.extend("--ft-tree-list-node-unselected-counter-color","",u.contentInfoPrimary),nodeHoverBorderColor:r.extend("--ft-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:r.extend("--ft-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:r.create("--ft-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:r.extend("--ft-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:r.extend("--ft-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:r.extend("--ft-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:r.extend("--ft-tree-list-node-selected-counter-color","",u.contentInfoPrimary),nodeSelectedBackgroundColor:r.create("--ft-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:r.extend("--ft-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:r.extend("--ft-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:r.extend("--ft-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:r.extend("--ft-tree-list-node-descendant-of-selected-counter-color","",u.contentInfoPrimary),nodeDescendantOfSelectedBackgroundColor:r.create("--ft-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:r.create("--ft-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:r.extend("--ft-tree-list-header-section-padding-left","",c.spacing3),headerSectionPaddingRight:r.extend("--ft-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:r.extend("--ft-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:r.extend("--ft-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:r.extend("--ft-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:r.extend("--ft-tree-list-header-section-counter-color","",u.contentInfoPrimary),listContainerBorderWidth:r.create("--ft-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:r.extend("--ft-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:r.extend("--ft-tree-list-list-container-border-color","",u.borderGlobalSubtle),loadMorePaddingLeft:r.extend("--ft-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:r.extend("--ft-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:r.extend("--ft-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:r.extend("--ft-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:r.extend("--ft-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:r.create("--ft-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:r.extend("--ft-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:r.create("--ft-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:r.create("--ft-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:r.create("--ft-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:r.extend("--ft-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary)};var Ht;(function(o){o.brand="brand",o.neutral="neutral",o.info="info",o.success="success",o.warning="warning",o.error="error"})(Ht||(Ht={}));var $t;(function(o){o.large="large",o.medium="medium",o.small="small"})($t||($t={}));function No(o){return`ftds--family-${o}`}function _o(o){return`ftds--size-${o}`}var yl={colorPrimary:r.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:r.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:r.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:r.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:r.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:r.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:r.create("--ft-color-error","","COLOR","#B00020"),colorOutline:r.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:r.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:r.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:r.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:r.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:r.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:r.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:r.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:r.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:r.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:r.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:r.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:r.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:r.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:r.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:r.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:r.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:r.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:r.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:r.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:r.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:r.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:r.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:r.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:r.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:r.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:r.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:r.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:r.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:r.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:r.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:r.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:r.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:r.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:r.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:r.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:r.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:r.create("--ft-elevation-00","","UNKNOWN","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:r.create("--ft-elevation-01","","UNKNOWN","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:r.create("--ft-elevation-02","","UNKNOWN","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:r.create("--ft-elevation-03","","UNKNOWN","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:r.create("--ft-elevation-04","","UNKNOWN","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:r.create("--ft-elevation-06","","UNKNOWN","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:r.create("--ft-elevation-08","","UNKNOWN","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:r.create("--ft-elevation-12","","UNKNOWN","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:r.create("--ft-elevation-16","","UNKNOWN","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:r.create("--ft-elevation-24","","UNKNOWN","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:r.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:r.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:r.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:r.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:r.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:r.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:r.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:r.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Vo={};U(Vo,{computeOffsetAutoPosition:()=>Ml,computeOffsetPosition:()=>Ul});var Qa=["top","right","bottom","left"],Ja=["start","end"],Do=Qa.reduce((o,e)=>o.concat(e,e+"-"+Ja[0],e+"-"+Ja[1]),[]),br=Math.min,_e=Math.max;var bl={left:"right",right:"left",bottom:"top",top:"bottom"},vl={start:"end",end:"start"};function Fo(o,e,t){return _e(o,br(e,t))}function lt(o,e){return typeof o=="function"?o(e):o}function Pe(o){return o.split("-")[0]}function de(o){return o.split("-")[1]}function Uo(o){return o==="x"?"y":"x"}function Mo(o){return o==="y"?"height":"width"}function dt(o){return["top","bottom"].includes(Pe(o))?"y":"x"}function Bo(o){return Uo(dt(o))}function Xa(o,e,t){t===void 0&&(t=!1);let n=de(o),a=Bo(o),i=Mo(a),s=a==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=ko(s)),[s,ko(s)]}function ei(o){return o.replace(/start|end/g,e=>vl[e])}function ko(o){return o.replace(/left|right|bottom|top/g,e=>bl[e])}function xl(o){return{top:0,right:0,bottom:0,left:0,...o}}function ti(o){return typeof o!="number"?xl(o):{top:o,right:o,bottom:o,left:o}}function Ve(o){let{x:e,y:t,width:n,height:a}=o;return{width:n,height:a,top:t,left:e,right:e+n,bottom:t+a,x:e,y:t}}function ri(o,e,t){let{reference:n,floating:a}=o,i=dt(e),s=Bo(e),l=Mo(s),d=Pe(e),p=i==="y",h=n.x+n.width/2-a.width/2,f=n.y+n.height/2-a.height/2,m=n[l]/2-a[l]/2,y;switch(d){case"top":y={x:h,y:n.y-a.height};break;case"bottom":y={x:h,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:f};break;case"left":y={x:n.x-a.width,y:f};break;default:y={x:n.x,y:n.y}}switch(de(e)){case"start":y[s]-=m*(t&&p?-1:1);break;case"end":y[s]+=m*(t&&p?-1:1);break}return y}var oi=async(o,e,t)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=t,l=i.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:o,floating:e,strategy:a}),{x:h,y:f}=ri(p,n,d),m=n,y={},b=0;for(let x=0;x<l.length;x++){let{name:C,fn:w}=l[x],{x:A,y:O,data:E,reset:S}=await w({x:h,y:f,initialPlacement:n,placement:m,strategy:a,middlewareData:y,rects:p,platform:s,elements:{reference:o,floating:e}});h=A??h,f=O??f,y={...y,[C]:{...y[C],...E}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(m=S.placement),S.rects&&(p=S.rects===!0?await s.getElementRects({reference:o,floating:e,strategy:a}):S.rects),{x:h,y:f}=ri(p,m,d)),x=-1)}return{x:h,y:f,placement:m,strategy:a,middlewareData:y}};async function vr(o,e){var t;e===void 0&&(e={});let{x:n,y:a,platform:i,rects:s,elements:l,strategy:d}=o,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:m=!1,padding:y=0}=lt(e,o),b=ti(y),C=l[m?f==="floating"?"reference":"floating":f],w=Ve(await i.getClippingRect({element:(t=await(i.isElement==null?void 0:i.isElement(C)))==null||t?C:C.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),A=f==="floating"?{x:n,y:a,width:s.floating.width,height:s.floating.height}:s.reference,O=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),E=await(i.isElement==null?void 0:i.isElement(O))?await(i.getScale==null?void 0:i.getScale(O))||{x:1,y:1}:{x:1,y:1},S=Ve(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:A,offsetParent:O,strategy:d}):A);return{top:(w.top-S.top+b.top)/E.y,bottom:(S.bottom-w.bottom+b.bottom)/E.y,left:(w.left-S.left+b.left)/E.x,right:(S.right-w.right+b.right)/E.x}}function Sl(o,e,t){return(o?[...t.filter(a=>de(a)===o),...t.filter(a=>de(a)!==o)]:t.filter(a=>Pe(a)===a)).filter(a=>o?de(a)===o||(e?ei(a)!==a:!1):!0)}var xr=function(o){return o===void 0&&(o={}),{name:"autoPlacement",options:o,async fn(e){var t,n,a;let{rects:i,middlewareData:s,placement:l,platform:d,elements:p}=e,{crossAxis:h=!1,alignment:f,allowedPlacements:m=Do,autoAlignment:y=!0,...b}=lt(o,e),x=f!==void 0||m===Do?Sl(f||null,y,m):m,C=await vr(e,b),w=((t=s.autoPlacement)==null?void 0:t.index)||0,A=x[w];if(A==null)return{};let O=Xa(A,i,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==A)return{reset:{placement:x[0]}};let E=[C[Pe(A)],C[O[0]],C[O[1]]],S=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:A,overflows:E}],R=x[w+1];if(R)return{data:{index:w+1,overflows:S},reset:{placement:R}};let _=S.map(I=>{let g=de(I.placement);return[I.placement,g&&h?I.overflows.slice(0,2).reduce((v,T)=>v+T,0):I.overflows[0],I.overflows]}).sort((I,g)=>I[1]-g[1]),D=((a=_.filter(I=>I[2].slice(0,de(I[0])?2:3).every(g=>g<=0))[0])==null?void 0:a[0])||_[0][0];return D!==l?{data:{index:w+1,overflows:S},reset:{placement:D}}:{}}}};async function Ol(o,e){let{placement:t,platform:n,elements:a}=o,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),s=Pe(t),l=de(t),d=dt(t)==="y",p=["left","top"].includes(s)?-1:1,h=i&&d?-1:1,f=lt(e,o),{mainAxis:m,crossAxis:y,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof b=="number"&&(y=l==="end"?b*-1:b),d?{x:y*h,y:m*p}:{x:m*p,y:y*h}}var Wo=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(e){var t,n;let{x:a,y:i,placement:s,middlewareData:l}=e,d=await Ol(e,o);return s===((t=l.offset)==null?void 0:t.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:a+d.x,y:i+d.y,data:{...d,placement:s}}}}},Ho=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(e){let{x:t,y:n,placement:a}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:C=>{let{x:w,y:A}=C;return{x:w,y:A}}},...d}=lt(o,e),p={x:t,y:n},h=await vr(e,d),f=dt(Pe(a)),m=Uo(f),y=p[m],b=p[f];if(i){let C=m==="y"?"top":"left",w=m==="y"?"bottom":"right",A=y+h[C],O=y-h[w];y=Fo(A,y,O)}if(s){let C=f==="y"?"top":"left",w=f==="y"?"bottom":"right",A=b+h[C],O=b-h[w];b=Fo(A,b,O)}let x=l.fn({...e,[m]:y,[f]:b});return{...x,data:{x:x.x-t,y:x.y-n,enabled:{[m]:i,[f]:s}}}}}};var $o=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(e){var t,n;let{placement:a,rects:i,platform:s,elements:l}=e,{apply:d=()=>{},...p}=lt(o,e),h=await vr(e,p),f=Pe(a),m=de(a),y=dt(a)==="y",{width:b,height:x}=i.floating,C,w;f==="top"||f==="bottom"?(C=f,w=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(w=f,C=m==="end"?"top":"bottom");let A=x-h.top-h.bottom,O=b-h.left-h.right,E=br(x-h[C],A),S=br(b-h[w],O),R=!e.middlewareData.shift,_=E,P=S;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(P=O),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(_=A),R&&!m){let I=_e(h.left,0),g=_e(h.right,0),v=_e(h.top,0),T=_e(h.bottom,0);y?P=b-2*(I!==0||g!==0?I+g:_e(h.left,h.right)):_=x-2*(v!==0||T!==0?v+T:_e(h.top,h.bottom))}await d({...e,availableWidth:P,availableHeight:_});let D=await s.getDimensions(l.floating);return b!==D.width||x!==D.height?{reset:{rects:!0}}:{}}}};var zo=Math.min,ut=Math.max,zt=Math.round;var xe=o=>({x:o,y:o});function Se(o){return ai(o)?(o.nodeName||"").toLowerCase():"#document"}function Y(o){var e;return(o==null||(e=o.ownerDocument)==null?void 0:e.defaultView)||window}function Oe(o){var e;return(e=(ai(o)?o.ownerDocument:o.document)||window.document)==null?void 0:e.documentElement}function ai(o){return o instanceof Node||o instanceof Y(o).Node}function ue(o){return o instanceof Element||o instanceof Y(o).Element}function ae(o){return o instanceof HTMLElement||o instanceof Y(o).HTMLElement}function ni(o){return typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof Y(o).ShadowRoot}function pt(o){let{overflow:e,overflowX:t,overflowY:n,display:a}=te(o);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(a)}function ii(o){return["table","td","th"].includes(Se(o))}function Or(o){let e=Er(),t=te(o);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function si(o){let e=Ze(o);for(;ae(e)&&!jt(e);){if(Or(e))return e;e=Ze(e)}return null}function Er(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function jt(o){return["html","body","#document"].includes(Se(o))}function te(o){return Y(o).getComputedStyle(o)}function Gt(o){return ue(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function Ze(o){if(Se(o)==="html")return o;let e=o.assignedSlot||o.parentNode||ni(o)&&o.host||Oe(o);return ni(e)?e.host:e}function ci(o){let e=Ze(o);return jt(e)?o.ownerDocument?o.ownerDocument.body:o.body:ae(e)&&pt(e)?e:ci(e)}function Sr(o,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);let a=ci(o),i=a===((n=o.ownerDocument)==null?void 0:n.body),s=Y(a);return i?e.concat(s,s.visualViewport||[],pt(a)?a:[],s.frameElement&&t?Sr(s.frameElement):[]):e.concat(a,Sr(a,[],t))}function ui(o){let e=te(o),t=parseFloat(e.width)||0,n=parseFloat(e.height)||0,a=ae(o),i=a?o.offsetWidth:t,s=a?o.offsetHeight:n,l=zt(t)!==i||zt(n)!==s;return l&&(t=i,n=s),{width:t,height:n,$:l}}function pi(o){return ue(o)?o:o.contextElement}function ft(o){let e=pi(o);if(!ae(e))return xe(1);let t=e.getBoundingClientRect(),{width:n,height:a,$:i}=ui(e),s=(i?zt(t.width):t.width)/n,l=(i?zt(t.height):t.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var El=xe(0);function fi(o){let e=Y(o);return!Er()||!e.visualViewport?El:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function wl(o,e,t){return e===void 0&&(e=!1),!t||e&&t!==Y(o)?!1:e}function Kt(o,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);let a=o.getBoundingClientRect(),i=pi(o),s=xe(1);e&&(n?ue(n)&&(s=ft(n)):s=ft(o));let l=wl(i,t,n)?fi(i):xe(0),d=(a.left+l.x)/s.x,p=(a.top+l.y)/s.y,h=a.width/s.x,f=a.height/s.y;if(i){let m=Y(i),y=n&&ue(n)?Y(n):n,b=m.frameElement;for(;b&&n&&y!==m;){let x=ft(b),C=b.getBoundingClientRect(),w=te(b),A=C.left+(b.clientLeft+parseFloat(w.paddingLeft))*x.x,O=C.top+(b.clientTop+parseFloat(w.paddingTop))*x.y;d*=x.x,p*=x.y,h*=x.x,f*=x.y,d+=A,p+=O,b=Y(b).frameElement}}return Ve({width:h,height:f,x:d,y:p})}function Cl(o){let{rect:e,offsetParent:t,strategy:n}=o,a=ae(t),i=Oe(t);if(t===i)return e;let s={scrollLeft:0,scrollTop:0},l=xe(1),d=xe(0);if((a||!a&&n!=="fixed")&&((Se(t)!=="body"||pt(i))&&(s=Gt(t)),ae(t))){let p=Kt(t);l=ft(t),d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+d.x,y:e.y*l.y-s.scrollTop*l.y+d.y}}function Al(o){return Array.from(o.getClientRects())}function hi(o){return Kt(Oe(o)).left+Gt(o).scrollLeft}function Rl(o){let e=Oe(o),t=Gt(o),n=o.ownerDocument.body,a=ut(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=ut(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-t.scrollLeft+hi(o),l=-t.scrollTop;return te(n).direction==="rtl"&&(s+=ut(e.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:l}}function Il(o,e){let t=Y(o),n=Oe(o),a=t.visualViewport,i=n.clientWidth,s=n.clientHeight,l=0,d=0;if(a){i=a.width,s=a.height;let p=Er();(!p||p&&e==="fixed")&&(l=a.offsetLeft,d=a.offsetTop)}return{width:i,height:s,x:l,y:d}}function Tl(o,e){let t=Kt(o,!0,e==="fixed"),n=t.top+o.clientTop,a=t.left+o.clientLeft,i=ae(o)?ft(o):xe(1),s=o.clientWidth*i.x,l=o.clientHeight*i.y,d=a*i.x,p=n*i.y;return{width:s,height:l,x:d,y:p}}function li(o,e,t){let n;if(e==="viewport")n=Il(o,t);else if(e==="document")n=Rl(Oe(o));else if(ue(e))n=Tl(e,t);else{let a=fi(o);n={...e,x:e.x-a.x,y:e.y-a.y}}return Ve(n)}function gi(o,e){let t=Ze(o);return t===e||!ue(t)||jt(t)?!1:te(t).position==="fixed"||gi(t,e)}function Nl(o,e){let t=e.get(o);if(t)return t;let n=Sr(o,[],!1).filter(l=>ue(l)&&Se(l)!=="body"),a=null,i=te(o).position==="fixed",s=i?Ze(o):o;for(;ue(s)&&!jt(s);){let l=te(s),d=Or(s);!d&&l.position==="fixed"&&(a=null),(i?!d&&!a:!d&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||pt(s)&&!d&&gi(o,s))?n=n.filter(h=>h!==s):a=l,s=Ze(s)}return e.set(o,n),n}function _l(o){let{element:e,boundary:t,rootBoundary:n,strategy:a}=o,s=[...t==="clippingAncestors"?Nl(e,this._c):[].concat(t),n],l=s[0],d=s.reduce((p,h)=>{let f=li(e,h,a);return p.top=ut(f.top,p.top),p.right=zo(f.right,p.right),p.bottom=zo(f.bottom,p.bottom),p.left=ut(f.left,p.left),p},li(e,l,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Pl(o){return ui(o)}function Ll(o,e,t){let n=ae(e),a=Oe(e),i=t==="fixed",s=Kt(o,!0,i,e),l={scrollLeft:0,scrollTop:0},d=xe(0);if(n||!n&&!i)if((Se(e)!=="body"||pt(a))&&(l=Gt(e)),n){let p=Kt(e,!0,i,e);d.x=p.x+e.clientLeft,d.y=p.y+e.clientTop}else a&&(d.x=hi(a));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function di(o,e){return!ae(o)||te(o).position==="fixed"?null:e?e(o):o.offsetParent}function mi(o,e){let t=Y(o);if(!ae(o))return t;let n=di(o,e);for(;n&&ii(n)&&te(n).position==="static";)n=di(n,e);return n&&(Se(n)==="html"||Se(n)==="body"&&te(n).position==="static"&&!Or(n))?t:n||si(o)||t}var kl=async function(o){let{reference:e,floating:t,strategy:n}=o,a=this.getOffsetParent||mi,i=this.getDimensions;return{reference:Ll(e,await a(t),n),floating:{x:0,y:0,...await i(t)}}};function Dl(o){return te(o).direction==="rtl"}var ht={convertOffsetParentRelativeRectToViewportRelativeRect:Cl,getDocumentElement:Oe,getClippingRect:_l,getOffsetParent:mi,getElementRects:kl,getClientRects:Al,getDimensions:Pl,getScale:ft,isElement:ue,isRTL:Dl};var jo=(o,e,t)=>{let n=new Map,a={platform:ht,...t},i={...a.platform,_c:n};return oi(o,e,{...a,platform:i})};function Ko(o){return Fl(o)}function Go(o){return o.assignedSlot?o.assignedSlot:o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}function Fl(o){for(let e=o;e;e=Go(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Go(o);e;e=Go(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||t.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Ul(o,e,t){return jo(o,e,{platform:{...ht,getOffsetParent:n=>ht.getOffsetParent(n,Ko)},middleware:[Ho({crossAxis:!0}),xr({allowedPlacements:[t]})]})}async function Ml(o,e,t,n,a,i,s=4){return jo(o,e,{placement:t,strategy:a,platform:{...ht,getOffsetParent:l=>ht.getOffsetParent(l,Ko)},middleware:[Wo(s),xr({allowedPlacements:n}),$o({apply({availableHeight:l,elements:d}){i?d.floating.style.maxHeight=`min(${Math.max(0,l)}px, var(${i}))`:d.floating.style.maxHeight=`${Math.max(0,l)}px`}})]})}var Xo={};U(Xo,{FtdsBase:()=>Qo,toFtdsBase:()=>Ei});var Jo={};U(Jo,{FtLitElement:()=>J});var Zo={};U(Zo,{ScopedRegistryLitElement:()=>Vt});var Vt=class extends me{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let t={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(t);return Rt(n,e.elementStyles),n}};var Yo={};U(Yo,{shadowQuerySelector:()=>qo,shadowQuerySelectorAll:()=>Bl});function qo(o,e,...t){var n;let a=o.querySelector(e);for(let i of t)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}function Bl(o,e,...t){let n=[...o.querySelectorAll(e)];for(let a of t)n=n.flatMap(i=>{var s,l;return[...(l=(s=i.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(a))!==null&&l!==void 0?l:[]]});return n}var Zt=function(o,e,t,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(i=(a<3?s(i):a>3?s(e,t,i):s(e,t))||i);return a>3&&i&&Object.defineProperty(e,t,i),i},xi,yi=Symbol("constructorPrototype"),bi=Symbol("constructorName"),Si=Symbol("exportpartsDebouncer"),vi=Symbol("dynamicDependenciesLoaded"),J=class extends Vt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[xi]=new X(5),this[bi]=this.constructor.name,this[yi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[bi]&&Object.setPrototypeOf(this,this[yi])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}let e=this.constructor;e[vi]||(e[vi]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:t,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];t=qo(this.shadowRoot,...i)}t?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||t?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var t,n,a;if(((n=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var e,t,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&n!==void 0&&n)&&this[Si].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var t,n,a,i,s,l;let d=m=>m!=null&&m.trim().length>0,p=e.filter(d).map(m=>m.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let m of(n=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let y=(i=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],b=(l=(s=m.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(x=>x.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...y,...b).filter(d).map(x=>x.trim()).forEach(x=>h.add(x))}if(h.size===0){this.removeAttribute("exportparts");return}let f=[...h.values()].flatMap(m=>p.map(y=>`${m}:${y}--${m}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};xi=Si;Zt([L()],J.prototype,"exportpartsPrefix",void 0);Zt([Ne([])],J.prototype,"exportpartsPrefixes",void 0);Zt([L()],J.prototype,"customStylesheet",void 0);Zt([L()],J.prototype,"elementToFocus",void 0);Zt([kt()],J.prototype,"useAdoptedStyleSheets",void 0);var Oi=function(o,e,t,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(i=(a<3?s(i):a>3?s(e,t,i):s(e,t))||i);return a>3&&i&&Object.defineProperty(e,t,i),i};function Ei(o){class e extends o{constructor(){super(...arguments),this.size=$t.medium,this.family=Ht.neutral}getDesignSystemBaseClasses(){return{[No(this.family)]:!0,[_o(this.size)]:!0}}}return Oi([L()],e.prototype,"size",void 0),Oi([L()],e.prototype,"family",void 0),e}var Qo=class extends Ei(J){};var wi={};var rn={};U(rn,{highlightHtml:()=>tn,highlightHtmlColorCssVariable:()=>Ci,highlightHtmlStyles:()=>Hl});var qe=class o{constructor(e,t=!0,n=[],a=5e3){this.ctx=e,this.iframes=t,this.exclude=n,this.iframesTimeout=a}static matches(e,t){let n=typeof t=="string"?[t]:t,a=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(a){let i=!1;return n.every(s=>a.call(e,s)?(i=!0,!1):!0),i}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(n=>{let a=t.filter(i=>i.contains(n)).length>0;t.indexOf(n)===-1&&!a&&t.push(n)}),t}getIframeContents(e,t,n=()=>{}){let a;try{let i=e.contentWindow;if(a=i.document,!i||!a)throw new Error("iframe inaccessible")}catch{n()}a&&t(a)}isIframeBlank(e){let t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}observeIframeLoad(e,t,n){let a=!1,i=null,s=()=>{if(!a){a=!0,clearTimeout(i);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener("load",s),i=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,n){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch{n()}}waitForIframes(e,t){let n=0;this.forEachIframe(e,()=>!0,a=>{n++,this.waitForIframes(a.querySelector("html"),()=>{--n||t()})},a=>{a||t()})}forEachIframe(e,t,n,a=()=>{}){let i=e.querySelectorAll("iframe"),s=i.length,l=0;i=Array.prototype.slice.call(i);let d=()=>{--s<=0&&a(l)};s||d(),i.forEach(p=>{o.matches(p,this.exclude)?d():this.onIframeReady(p,h=>{t(p)&&(l++,n(h)),d()},d)})}createIterator(e,t,n){return document.createNodeIterator(e,t,n,!1)}createInstanceOnIframe(e){return new o(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,n){let a=e.compareDocumentPosition(n),i=Node.DOCUMENT_POSITION_PRECEDING;if(a&i)if(t!==null){let s=t.compareDocumentPosition(n),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),n;return t===null?n=e.nextNode():n=e.nextNode()&&e.nextNode(),{prevNode:t,node:n}}checkIframeFilter(e,t,n,a){let i=!1,s=!1;return a.forEach((l,d)=>{l.val===n&&(i=d,s=l.handled)}),this.compareNodeIframe(e,t,n)?(i===!1&&!s?a.push({val:n,handled:!0}):i!==!1&&!s&&(a[i].handled=!0),!0):(i===!1&&a.push({val:n,handled:!1}),!1)}handleOpenIframes(e,t,n,a){e.forEach(i=>{i.handled||this.getIframeContents(i.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,n,a)})})}iterateThroughNodes(e,t,n,a,i){let s=this.createIterator(t,e,a),l=[],d=[],p,h,f=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;f();)this.iframes&&this.forEachIframe(t,m=>this.checkIframeFilter(p,h,m,l),m=>{this.createInstanceOnIframe(m).forEachNode(e,y=>d.push(y),a)}),d.push(p);d.forEach(m=>{n(m)}),this.iframes&&this.handleOpenIframes(l,e,n,a),i()}forEachNode(e,t,n,a=()=>{}){let i=this.getContexts(),s=i.length;s||a(),i.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,t,n,()=>{--s<=0&&a()})};this.iframes?this.waitForIframes(l,d):d()})}};var qt=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new qe(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[t]=="function"&&n[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",a=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let i in t)if(t.hasOwnProperty(i)){let s=t[i],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${n}`),a+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+a))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,n,a)=>{let i=a.charAt(n+1);return/[(|)\\]/.test(i)||i===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",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"],a=[];return e.split("").forEach(i=>{n.every(s=>{if(s.indexOf(i)!==-1){if(a.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),a.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",n=this.opt.accuracy,a=typeof n=="string"?n:n.value,i=typeof n=="string"?[]:n.limiters,s="";switch(i.forEach(l=>{s+=`|${this.escapeStr(l)}`}),a){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(n=>{this.opt.separateWordSearch?n.split(" ").forEach(a=>{a.trim()&&t.indexOf(a)===-1&&t.push(a)}):n.trim()&&t.indexOf(n)===-1&&t.push(n)}),{keywords:t.sort((n,a)=>a.length-n.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],n=0;return e.sort((a,i)=>a.start-i.start).forEach(a=>{let{start:i,end:s,valid:l}=this.callNoMatchOnInvalidRanges(a,n);l&&(a.start=i,a.length=s-i,t.push(a),n=s)}),t}callNoMatchOnInvalidRanges(e,t){let n,a,i=!1;return e&&typeof e.start<"u"?(n=parseInt(e.start,10),a=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&a-t>0&&a-n>0?i=!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:a,valid:i}}checkWhitespaceRanges(e,t,n){let a,i=!0,s=n.length,l=t-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,a=d+parseInt(e.length,10),a>s&&(a=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||a-d<0||d>s||a>s?(i=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(d,a).replace(/\s+/g,"")===""&&(i=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:a,valid:i}}getTextNodes(e){let t="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,a=>{n.push({start:t.length,end:(t+=a.textContent).length,node:a})},a=>this.matchesExclude(a.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:n})})}matchesExclude(e){return qe.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,n){let a=this.opt.element?this.opt.element:"mark",i=e.splitText(t),s=i.splitText(n-t),l=document.createElement(a);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=i.textContent,i.parentNode.replaceChild(l,i),s}wrapRangeInMappedTextNode(e,t,n,a,i){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>t){if(!a(s.node))return!1;let p=t-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((y,b)=>{b>=l&&(e.nodes[b].start>0&&b!==l&&(e.nodes[b].start-=h),e.nodes[b].end-=h)}),n-=h,i(s.node.previousSibling,s.start),n>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,n,a,i){let s=t===0?0:t+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=e.exec(d.textContent))!==null&&p[s]!=="";){if(!n(p[s],d))continue;let h=p.index;if(s!==0)for(let f=1;f<s;f++)h+=p[f].length;d=this.wrapRangeInTextNode(d,h,h+p[s].length),a(d.previousSibling),e.lastIndex=0}}),i()})}wrapMatchesAcrossElements(e,t,n,a,i){let s=t===0?0:t+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let f=1;f<s;f++)p+=d[f].length;let h=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,h,f=>n(d[s],f),(f,m)=>{e.lastIndex=m,a(f)})}i()})}wrapRangeFromIndex(e,t,n,a){this.getTextNodes(i=>{let s=i.value.length;e.forEach((l,d)=>{let{start:p,end:h,valid:f}=this.checkWhitespaceRanges(l,s,i.value);f&&this.wrapRangeInMappedTextNode(i,p,h,m=>t(m,l,i.value.substring(p,h),d),m=>{n(m,l)})}),a()})}unwrapMatches(e){let t=e.parentNode,n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let n=0,a="wrapMatches",i=s=>{n++,this.opt.each(s)};this.opt.acrossElements&&(a="wrapMatchesAcrossElements"),this[a](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,n),i,()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,t){this.opt=t;let n=0,a="wrapMatches",{keywords:i,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=p=>{let h=new RegExp(this.createRegExp(p),`gm${l}`),f=0;this.log(`Searching with expression "${h}"`),this[a](h,1,(m,y)=>this.opt.filter(y,p,n,f),m=>{f++,n++,this.opt.each(m)},()=>{f===0&&this.opt.noMatch(p),i[s-1]===p?this.opt.done(n):d(i[i.indexOf(p)+1])})};this.opt.acrossElements&&(a="wrapMatchesAcrossElements"),s===0?this.opt.done(n):d(i[0])}markRanges(e,t){this.opt=t;let n=0,a=this.checkRanges(e);a&&a.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(a)),this.wrapRangeFromIndex(a,(i,s,l,d)=>this.opt.filter(i,s,l,d),(i,s)=>{n++,this.opt.each(i,s)},()=>{this.opt.done(n)})):this.opt.done(n)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,n=>{this.unwrapMatches(n)},n=>{let a=qe.matches(n,t),i=this.matchesExclude(n);return!a||i?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function en(o){let e=new qt(o);return this.mark=(t,n)=>(e.mark(t,n),this),this.markRegExp=(t,n)=>(e.markRegExp(t,n),this),this.markRanges=(t,n)=>(e.markRanges(t,n),this),this.unmark=t=>(e.unmark(t),this),this}var Wl=en,Ci=r.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Hl=z`
|
|
1
|
+
"use strict";(()=>{var Ys=Object.create;var Xr=Object.defineProperty;var Js=Object.getOwnPropertyDescriptor;var Xs=Object.getOwnPropertyNames;var Qs=Object.getPrototypeOf,ec=Object.prototype.hasOwnProperty;var tc=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports),M=(o,e)=>{for(var t in e)Xr(o,t,{get:e[t],enumerable:!0})},rc=(o,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Xs(e))!ec.call(o,a)&&a!==t&&Xr(o,a,{get:()=>e[a],enumerable:!(n=Js(e,a))||n.enumerable});return o};var oc=(o,e,t)=>(t=o!=null?Ys(Qs(o)):{},rc(e||!o||!o.__esModule?Xr(t,"default",{value:o,enumerable:!0}):t,o));var ls=tc((Be,cs)=>{var _r=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Pr=function(){function o(){this.fetch=!1,this.DOMException=_r.DOMException}return o.prototype=_r,new o}();(function(o){var e=function(t){var n=typeof o<"u"&&o||typeof self<"u"&&self||typeof global<"u"&&global||{},a={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function i(g){return g&&DataView.prototype.isPrototypeOf(g)}if(a.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(g){return g&&s.indexOf(Object.prototype.toString.call(g))>-1};function d(g){if(typeof g!="string"&&(g=String(g)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(g)||g==="")throw new TypeError('Invalid character in header field name: "'+g+'"');return g.toLowerCase()}function p(g){return typeof g!="string"&&(g=String(g)),g}function h(g){var v={next:function(){var T=g.shift();return{done:T===void 0,value:T}}};return a.iterable&&(v[Symbol.iterator]=function(){return v}),v}function f(g){this.map={},g instanceof f?g.forEach(function(v,T){this.append(T,v)},this):Array.isArray(g)?g.forEach(function(v){if(v.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+v.length);this.append(v[0],v[1])},this):g&&Object.getOwnPropertyNames(g).forEach(function(v){this.append(v,g[v])},this)}f.prototype.append=function(g,v){g=d(g),v=p(v);var T=this.map[g];this.map[g]=T?T+", "+v:v},f.prototype.delete=function(g){delete this.map[d(g)]},f.prototype.get=function(g){return g=d(g),this.has(g)?this.map[g]:null},f.prototype.has=function(g){return this.map.hasOwnProperty(d(g))},f.prototype.set=function(g,v){this.map[d(g)]=p(v)},f.prototype.forEach=function(g,v){for(var T in this.map)this.map.hasOwnProperty(T)&&g.call(v,this.map[T],T,this)},f.prototype.keys=function(){var g=[];return this.forEach(function(v,T){g.push(T)}),h(g)},f.prototype.values=function(){var g=[];return this.forEach(function(v){g.push(v)}),h(g)},f.prototype.entries=function(){var g=[];return this.forEach(function(v,T){g.push([T,v])}),h(g)},a.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function m(g){if(!g._noBody){if(g.bodyUsed)return Promise.reject(new TypeError("Already read"));g.bodyUsed=!0}}function y(g){return new Promise(function(v,T){g.onload=function(){v(g.result)},g.onerror=function(){T(g.error)}})}function b(g){var v=new FileReader,T=y(v);return v.readAsArrayBuffer(g),T}function x(g){var v=new FileReader,T=y(v),F=/charset=([A-Za-z0-9_-]+)/.exec(g.type),B=F?F[1]:"utf-8";return v.readAsText(g,B),T}function C(g){for(var v=new Uint8Array(g),T=new Array(v.length),F=0;F<v.length;F++)T[F]=String.fromCharCode(v[F]);return T.join("")}function w(g){if(g.slice)return g.slice(0);var v=new Uint8Array(g.byteLength);return v.set(new Uint8Array(g)),v.buffer}function A(){return this.bodyUsed=!1,this._initBody=function(g){this.bodyUsed=this.bodyUsed,this._bodyInit=g,g?typeof g=="string"?this._bodyText=g:a.blob&&Blob.prototype.isPrototypeOf(g)?this._bodyBlob=g:a.formData&&FormData.prototype.isPrototypeOf(g)?this._bodyFormData=g:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(g)?this._bodyText=g.toString():a.arrayBuffer&&a.blob&&i(g)?(this._bodyArrayBuffer=w(g.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(g)||l(g))?this._bodyArrayBuffer=w(g):this._bodyText=g=Object.prototype.toString.call(g):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof g=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(g)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var g=m(this);if(g)return g;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var g=m(this);return g||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(a.blob)return this.blob().then(b);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var g=m(this);if(g)return g;if(this._bodyBlob)return x(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(C(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(R)}),this.json=function(){return this.text().then(JSON.parse)},this}var O=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function E(g){var v=g.toUpperCase();return O.indexOf(v)>-1?v:g}function S(g,v){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var T=v.body;if(g instanceof S){if(g.bodyUsed)throw new TypeError("Already read");this.url=g.url,this.credentials=g.credentials,v.headers||(this.headers=new f(g.headers)),this.method=g.method,this.mode=g.mode,this.signal=g.signal,!T&&g._bodyInit!=null&&(T=g._bodyInit,g.bodyUsed=!0)}else this.url=String(g);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new f(v.headers)),this.method=E(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in n){var k=new AbortController;return k.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&T)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(T),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var F=/([?&])_=[^&]*/;if(F.test(this.url))this.url=this.url.replace(F,"$1_="+new Date().getTime());else{var B=/\?/;this.url+=(B.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})};function R(g){var v=new FormData;return g.trim().split("&").forEach(function(T){if(T){var F=T.split("="),B=F.shift().replace(/\+/g," "),k=F.join("=").replace(/\+/g," ");v.append(decodeURIComponent(B),decodeURIComponent(k))}}),v}function _(g){var v=new f,T=g.replace(/\r?\n[\t ]+/g," ");return T.split("\r").map(function(F){return F.indexOf(`
|
|
2
|
+
`)===0?F.substr(1,F.length):F}).forEach(function(F){var B=F.split(":"),k=B.shift().trim();if(k){var ar=B.join(":").trim();try{v.append(k,ar)}catch(Jr){console.warn("Response "+Jr.message)}}}),v}A.call(S.prototype);function P(g,v){if(!(this instanceof P))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=v.statusText===void 0?"":""+v.statusText,this.headers=new f(v.headers),this.url=v.url||"",this._initBody(g)}A.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},P.error=function(){var g=new P(null,{status:200,statusText:""});return g.ok=!1,g.status=0,g.type="error",g};var D=[301,302,303,307,308];P.redirect=function(g,v){if(D.indexOf(v)===-1)throw new RangeError("Invalid status code");return new P(null,{status:v,headers:{location:g}})},t.DOMException=n.DOMException;try{new t.DOMException}catch{t.DOMException=function(v,T){this.message=v,this.name=T;var F=Error(v);this.stack=F.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function I(g,v){return new Promise(function(T,F){var B=new S(g,v);if(B.signal&&B.signal.aborted)return F(new t.DOMException("Aborted","AbortError"));var k=new XMLHttpRequest;function ar(){k.abort()}k.onload=function(){var V={statusText:k.statusText,headers:_(k.getAllResponseHeaders()||"")};B.url.indexOf("file://")===0&&(k.status<200||k.status>599)?V.status=200:V.status=k.status,V.url="responseURL"in k?k.responseURL:V.headers.get("X-Request-URL");var We="response"in k?k.response:k.responseText;setTimeout(function(){T(new P(We,V))},0)},k.onerror=function(){setTimeout(function(){F(new TypeError("Network request failed"))},0)},k.ontimeout=function(){setTimeout(function(){F(new TypeError("Network request timed out"))},0)},k.onabort=function(){setTimeout(function(){F(new t.DOMException("Aborted","AbortError"))},0)};function Jr(V){try{return V===""&&n.location.href?n.location.href:V}catch{return V}}if(k.open(B.method,Jr(B.url),!0),B.credentials==="include"?k.withCredentials=!0:B.credentials==="omit"&&(k.withCredentials=!1),"responseType"in k&&(a.blob?k.responseType="blob":a.arrayBuffer&&(k.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof f||n.Headers&&v.headers instanceof n.Headers)){var ea=[];Object.getOwnPropertyNames(v.headers).forEach(function(V){ea.push(d(V)),k.setRequestHeader(V,p(v.headers[V]))}),B.headers.forEach(function(V,We){ea.indexOf(We)===-1&&k.setRequestHeader(We,V)})}else B.headers.forEach(function(V,We){k.setRequestHeader(We,V)});B.signal&&(B.signal.addEventListener("abort",ar),k.onreadystatechange=function(){k.readyState===4&&B.signal.removeEventListener("abort",ar)}),k.send(typeof B._bodyInit>"u"?null:B._bodyInit)})}return I.polyfill=!0,n.fetch||(n.fetch=I,n.Headers=f,n.Request=S,n.Response=P),t.Headers=f,t.Request=S,t.Response=P,t.fetch=I,t}({})})(Pr);Pr.fetch.ponyfill=!0;delete Pr.fetch.polyfill;var St=_r.fetch?_r:Pr;Be=St.fetch;Be.default=St.fetch;Be.fetch=St.fetch;Be.Headers=St.Headers;Be.Request=St.Request;Be.Response=St.Response;cs.exports=Be});if(!ShadowRoot.prototype.createElement){let o=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,n=window.customElements,a=new WeakMap,i=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(O,E){if(O=O.toLowerCase(),this._getDefinition(O)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${O}" has already been used with this registry`);if(this._definitionsByClass.get(E)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let S=E.prototype.attributeChangedCallback,R=new Set(E.observedAttributes||[]);m(E,R,S);let _={elementClass:E,connectedCallback:E.prototype.connectedCallback,disconnectedCallback:E.prototype.disconnectedCallback,adoptedCallback:E.prototype.adoptedCallback,attributeChangedCallback:S,formAssociated:E.formAssociated,formAssociatedCallback:E.prototype.formAssociatedCallback,formDisabledCallback:E.prototype.formDisabledCallback,formResetCallback:E.prototype.formResetCallback,formStateRestoreCallback:E.prototype.formStateRestoreCallback,observedAttributes:R};this._definitionsByTag.set(O,_),this._definitionsByClass.set(E,_);let P=t.call(n,O);P||(P=f(O),e.call(n,O,P)),this===window.customElements&&(s.set(E,_),_.standInClass=P);let D=this._awaitingUpgrade.get(O);if(D){this._awaitingUpgrade.delete(O);for(let g of D)i.delete(g),b(g,_,!0)}let I=this._whenDefinedPromises.get(O);return I!==void 0&&(I.resolve(E),this._whenDefinedPromises.delete(O)),E}upgrade(){C.push(this),n.upgrade.apply(n,arguments),C.pop()}get(O){return this._definitionsByTag.get(O)?.elementClass}_getDefinition(O){return this._definitionsByTag.get(O)}whenDefined(O){let E=this._getDefinition(O);if(E!==void 0)return Promise.resolve(E.elementClass);let S=this._whenDefinedPromises.get(O);return S===void 0&&(S={},S.promise=new Promise(R=>S.resolve=R),this._whenDefinedPromises.set(O,S)),S.promise}_upgradeWhenDefined(O,E,S){let R=this._awaitingUpgrade.get(E);R||this._awaitingUpgrade.set(E,R=new Set),S?R.add(O):R.delete(O)}};let d;window.HTMLElement=function(){let E=d;if(E)return d=void 0,E;let S=s.get(this.constructor);if(!S)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return E=Reflect.construct(o,[],S.standInClass),Object.setPrototypeOf(E,this.constructor.prototype),a.set(E,S),E},window.HTMLElement.prototype=o.prototype;let p=O=>O===document||O instanceof ShadowRoot,h=O=>{let E=O.getRootNode();if(!p(E)){let S=C[C.length-1];if(S instanceof CustomElementRegistry)return S;E=S.getRootNode(),p(E)||(E=l.get(E)?.getRootNode()||document)}return E.customElements},f=O=>class{static get formAssociated(){return!0}constructor(){let S=Reflect.construct(o,[],this.constructor);Object.setPrototypeOf(S,HTMLElement.prototype);let R=h(S)||window.customElements,_=R._getDefinition(O);return _?b(S,_):i.set(S,R),S}connectedCallback(){let S=a.get(this);S?S.connectedCallback&&S.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,O,!0)}disconnectedCallback(){let S=a.get(this);S?S.disconnectedCallback&&S.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,O,!1)}adoptedCallback(){a.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let S=a.get(this);S&&S.formAssociated&&S?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let S=a.get(this);S?.formAssociated&&S?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let S=a.get(this);S?.formAssociated&&S?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let S=a.get(this);S?.formAssociated&&S?.formStateRestoreCallback?.apply(this,arguments)}},m=(O,E,S)=>{if(E.size===0||S===void 0)return;let R=O.prototype.setAttribute;R&&(O.prototype.setAttribute=function(D,I){let g=D.toLowerCase();if(E.has(g)){let v=this.getAttribute(g);R.call(this,g,I),S.call(this,g,v,I)}else R.call(this,g,I)});let _=O.prototype.removeAttribute;_&&(O.prototype.removeAttribute=function(D){let I=D.toLowerCase();if(E.has(I)){let g=this.getAttribute(I);_.call(this,I),S.call(this,I,g,null)}else _.call(this,I)});let P=O.prototype.toggleAttribute;P&&(O.prototype.toggleAttribute=function(D,I){let g=D.toLowerCase();if(E.has(g)){let v=this.getAttribute(g);P.call(this,g,I);let T=this.getAttribute(g);S.call(this,g,v,T)}else P.call(this,g,I)})},y=O=>{let E=Object.getPrototypeOf(O);if(E!==window.HTMLElement)return E===o?Object.setPrototypeOf(O,window.HTMLElement):y(E)},b=(O,E,S=!1)=>{Object.setPrototypeOf(O,E.elementClass.prototype),a.set(O,E),d=O;try{new E.elementClass}catch{y(E.elementClass),new E.elementClass}E.attributeChangedCallback&&E.observedAttributes.forEach(R=>{O.hasAttribute(R)&&E.attributeChangedCallback.call(O,R,null,O.getAttribute(R))}),S&&E.connectedCallback&&O.isConnected&&E.connectedCallback.call(O)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(O){let E=x.apply(this,arguments);return O.customElements&&(E.customElements=O.customElements),E};let C=[document],w=(O,E,S=void 0)=>{let R=(S?Object.getPrototypeOf(S):O.prototype)[E];O.prototype[E]=function(){C.push(this);let _=R.apply(S||this,arguments);return _!==void 0&&l.set(_,this),C.pop(),_}};w(ShadowRoot,"createElement",document),w(ShadowRoot,"importNode",document),w(Element,"insertAdjacentHTML");let A=(O,E)=>{let S=Object.getOwnPropertyDescriptor(O.prototype,E);Object.defineProperty(O.prototype,E,{...S,set(R){C.push(this),S.set.call(this,R),C.pop()}})};if(A(Element,"innerHTML"),A(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let O=new WeakMap,E=HTMLElement.prototype.attachInternals,S=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...D){let I=E.call(this,...D);return O.set(I,this),I},S.forEach(D=>{let I=window.ElementInternals.prototype,g=I[D];I[D]=function(...v){let T=O.get(this);if(a.get(T).formAssociated===!0)return g?.call(this,...v);throw new DOMException(`Failed to execute ${g} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class R extends Array{constructor(I){super(...I),this._elements=I}get value(){return this._elements.find(I=>I.checked===!0)?.value||""}}class _{constructor(I){let g=new Map;I.forEach((v,T)=>{let F=v.getAttribute("name"),B=g.get(F)||[];this[+T]=v,B.push(v),g.set(F,B)}),this.length=I.length,g.forEach((v,T)=>{v&&(v.length===1?this[T]=v[0]:this[T]=new R(v))})}namedItem(I){return this[I]}}let P=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let D=P.get.call(this,[]),I=[];for(let g of D){let v=a.get(g);(!v||v.formAssociated===!0)&&I.push(g)}return new _(I)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,n,a)=>{if(n!==null)try{e.bind(window.customElements)(t,n,a)}catch(i){console.info(t,n,a,i)}}}var lo={};M(lo,{CSSResult:()=>rt,LitElement:()=>me,ReactiveElement:()=>se,_$LE:()=>yc,_$LH:()=>io,adoptStyles:()=>It,css:()=>$,defaultConverter:()=>ot,getCompatibleStyle:()=>sr,html:()=>at,isServer:()=>uu,mathml:()=>hc,noChange:()=>K,notEqual:()=>Nt,nothing:()=>H,render:()=>so,supportsAdoptingStyleSheets:()=>At,svg:()=>fc,unsafeCSS:()=>Rt});var ir=globalThis,At=ir.ShadowRoot&&(ir.ShadyCSS===void 0||ir.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Qr=Symbol(),ta=new WeakMap,rt=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==Qr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(At&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=ta.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&ta.set(t,e))}return e}toString(){return this.cssText}},Rt=o=>new rt(typeof o=="string"?o:o+"",void 0,Qr),$=(o,...e)=>{let t=o.length===1?o[0]:e.reduce((n,a,i)=>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.")})(a)+o[i+1],o[0]);return new rt(t,o,Qr)},It=(o,e)=>{if(At)o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let n=document.createElement("style"),a=ir.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=t.cssText,o.appendChild(n)}},sr=At?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return Rt(t)})(o):o;var{is:nc,defineProperty:ac,getOwnPropertyDescriptor:ic,getOwnPropertyNames:sc,getOwnPropertySymbols:cc,getPrototypeOf:lc}=Object,cr=globalThis,ra=cr.trustedTypes,dc=ra?ra.emptyScript:"",uc=cr.reactiveElementPolyfillSupport,Tt=(o,e)=>o,ot={toAttribute(o,e){switch(e){case Boolean:o=o?dc:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch{t=null}}return t}},Nt=(o,e)=>!nc(o,e),oa={attribute:!0,type:String,converter:ot,reflect:!1,useDefault:!1,hasChanged:Nt};Symbol.metadata??=Symbol("metadata"),cr.litPropertyMetadata??=new WeakMap;var se=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=oa){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),a=this.getPropertyDescriptor(e,n,t);a!==void 0&&ac(this.prototype,e,a)}}static getPropertyDescriptor(e,t,n){let{get:a,set:i}=ic(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:a,set(s){let l=a?.call(this);i?.call(this,s),this.requestUpdate(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??oa}static _$Ei(){if(this.hasOwnProperty(Tt("elementProperties")))return;let e=lc(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Tt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Tt("properties"))){let t=this.properties,n=[...sc(t),...cc(t)];for(let a of n)this.createProperty(a,t[a])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[n,a]of t)this.elementProperties.set(n,a)}this._$Eh=new Map;for(let[t,n]of this.elementProperties){let a=this._$Eu(t,n);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let a of n)t.unshift(sr(a))}else e!==void 0&&t.push(sr(e));return t}static _$Eu(e,t){let n=t.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,t=this.constructor.elementProperties;for(let n of t.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 It(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),a=this.constructor._$Eu(e,n);if(a!==void 0&&n.reflect===!0){let i=(n.converter?.toAttribute!==void 0?n.converter:ot).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(a):this.setAttribute(a,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,a=n._$Eh.get(e);if(a!==void 0&&this._$Em!==a){let i=n.getPropertyOptions(a),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:ot;this._$Em=a,this[a]=s.fromAttribute(t,i.type)??this._$Ej?.get(a)??null,this._$Em=null}}requestUpdate(e,t,n){if(e!==void 0){let a=this.constructor,i=this[e];if(n??=a.getPropertyOptions(e),!((n.hasChanged??Nt)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,t,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:a,wrapped:i},s){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),i!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),a===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[a,i]of this._$Ep)this[a]=i;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[a,i]of n){let{wrapped:s}=i,l=this[a];s!==!0||this._$AL.has(a)||l===void 0||this.C(a,void 0,i,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(t)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};se.elementStyles=[],se.shadowRootOptions={mode:"open"},se[Tt("elementProperties")]=new Map,se[Tt("finalized")]=new Map,uc?.({ReactiveElement:se}),(cr.reactiveElementVersions??=[]).push("2.1.0");var to=globalThis,lr=to.trustedTypes,na=lr?lr.createPolicy("lit-html",{createHTML:o=>o}):void 0,ro="$lit$",ge=`lit$${Math.random().toFixed(9).slice(2)}$`,oo="?"+ge,pc=`<${oo}>`,$e=document,Pt=()=>$e.createComment(""),Lt=o=>o===null||typeof o!="object"&&typeof o!="function",no=Array.isArray,da=o=>no(o)||typeof o?.[Symbol.iterator]=="function",eo=`[
|
|
3
|
+
\f\r]`,_t=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,aa=/-->/g,ia=/>/g,He=RegExp(`>|${eo}(?:([^\\s"'>=/]+)(${eo}*=${eo}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),sa=/'/g,ca=/"/g,ua=/^(?:script|style|textarea|title)$/i,ao=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),at=ao(1),fc=ao(2),hc=ao(3),K=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),la=new WeakMap,ze=$e.createTreeWalker($e,129);function pa(o,e){if(!no(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return na!==void 0?na.createHTML(e):e}var fa=(o,e)=>{let t=o.length-1,n=[],a,i=e===2?"<svg>":e===3?"<math>":"",s=_t;for(let l=0;l<t;l++){let d=o[l],p,h,f=-1,m=0;for(;m<d.length&&(s.lastIndex=m,h=s.exec(d),h!==null);)m=s.lastIndex,s===_t?h[1]==="!--"?s=aa:h[1]!==void 0?s=ia:h[2]!==void 0?(ua.test(h[2])&&(a=RegExp("</"+h[2],"g")),s=He):h[3]!==void 0&&(s=He):s===He?h[0]===">"?(s=a??_t,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?He:h[3]==='"'?ca:sa):s===ca||s===sa?s=He:s===aa||s===ia?s=_t:(s=He,a=void 0);let y=s===He&&o[l+1].startsWith("/>")?" ":"";i+=s===_t?d+pc:f>=0?(n.push(p),d.slice(0,f)+ro+d.slice(f)+ge+y):d+ge+(f===-2?l:y)}return[pa(o,i+(o[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},kt=class o{constructor({strings:e,_$litType$:t},n){let a;this.parts=[];let i=0,s=0,l=e.length-1,d=this.parts,[p,h]=fa(e,t);if(this.el=o.createElement(p,n),ze.currentNode=this.el.content,t===2||t===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(a=ze.nextNode())!==null&&d.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let f of a.getAttributeNames())if(f.endsWith(ro)){let m=h[s++],y=a.getAttribute(f).split(ge),b=/([.?@])?(.*)/.exec(m);d.push({type:1,index:i,name:b[2],strings:y,ctor:b[1]==="."?ur:b[1]==="?"?pr:b[1]==="@"?fr:Ge}),a.removeAttribute(f)}else f.startsWith(ge)&&(d.push({type:6,index:i}),a.removeAttribute(f));if(ua.test(a.tagName)){let f=a.textContent.split(ge),m=f.length-1;if(m>0){a.textContent=lr?lr.emptyScript:"";for(let y=0;y<m;y++)a.append(f[y],Pt()),ze.nextNode(),d.push({type:2,index:++i});a.append(f[m],Pt())}}}else if(a.nodeType===8)if(a.data===oo)d.push({type:2,index:i});else{let f=-1;for(;(f=a.data.indexOf(ge,f+1))!==-1;)d.push({type:7,index:i}),f+=ge.length-1}i++}}static createElement(e,t){let n=$e.createElement("template");return n.innerHTML=e,n}};function je(o,e,t=o,n){if(e===K)return e;let a=n!==void 0?t._$Co?.[n]:t._$Cl,i=Lt(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(o),a._$AT(o,t,n)),n!==void 0?(t._$Co??=[])[n]=a:t._$Cl=a),a!==void 0&&(e=je(o,a._$AS(o,e.values),a,n)),e}var dr=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,a=(e?.creationScope??$e).importNode(t,!0);ze.currentNode=a;let i=ze.nextNode(),s=0,l=0,d=n[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new nt(i,i.nextSibling,this,e):d.type===1?p=new d.ctor(i,d.name,d.strings,this,e):d.type===6&&(p=new hr(i,this,e)),this._$AV.push(p),d=n[++l]}s!==d?.index&&(i=ze.nextNode(),s++)}return ze.currentNode=$e,a}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}},nt=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,a){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=je(this,e,t),Lt(e)?e===H||e==null||e===""?(this._$AH!==H&&this._$AR(),this._$AH=H):e!==this._$AH&&e!==K&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):da(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!==H&&Lt(this._$AH)?this._$AA.nextSibling.data=e:this.T($e.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=kt.createElement(pa(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(t);else{let i=new dr(a,this),s=i.u(this.options);i.p(t),this.T(s),this._$AH=i}}_$AC(e){let t=la.get(e.strings);return t===void 0&&la.set(e.strings,t=new kt(e)),t}k(e){no(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,n,a=0;for(let i of e)a===t.length?t.push(n=new o(this.O(Pt()),this.O(Pt()),this,this.options)):n=t[a],n._$AI(i),a++;a<t.length&&(this._$AR(n&&n._$AB.nextSibling,a),t.length=a)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ge=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,a,i){this.type=1,this._$AH=H,this._$AN=void 0,this.element=e,this.name=t,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=H}_$AI(e,t=this,n,a){let i=this.strings,s=!1;if(i===void 0)e=je(this,e,t,0),s=!Lt(e)||e!==this._$AH&&e!==K,s&&(this._$AH=e);else{let l=e,d,p;for(e=i[0],d=0;d<i.length-1;d++)p=je(this,l[n+d],t,d),p===K&&(p=this._$AH[d]),s||=!Lt(p)||p!==this._$AH[d],p===H?e=H:e!==H&&(e+=(p??"")+i[d+1]),this._$AH[d]=p}s&&!a&&this.j(e)}j(e){e===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ur=class extends Ge{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===H?void 0:e}},pr=class extends Ge{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==H)}},fr=class extends Ge{constructor(e,t,n,a,i){super(e,t,n,a,i),this.type=5}_$AI(e,t=this){if((e=je(this,e,t,0)??H)===K)return;let n=this._$AH,a=e===H&&n!==H||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==H&&(n===H||a);a&&this.element.removeEventListener(this.name,this,n),i&&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)}},hr=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){je(this,e)}},io={M:ro,P:ge,A:oo,C:1,L:fa,R:dr,D:da,V:je,I:nt,H:Ge,N:pr,U:fr,B:ur,F:hr},gc=to.litHtmlPolyfillSupport;gc?.(kt,nt),(to.litHtmlVersions??=[]).push("3.3.0");var so=(o,e,t)=>{let n=t?.renderBefore??e,a=n._$litPart$;if(a===void 0){let i=t?.renderBefore??null;n._$litPart$=a=new nt(e.insertBefore(Pt(),i),i,void 0,t??{})}return a._$AI(o),a};var co=globalThis,me=class extends se{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=so(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return K}};me._$litElement$=!0,me.finalized=!0,co.litElementHydrateSupport?.({LitElement:me});var mc=co.litElementPolyfillSupport;mc?.({LitElement:me});var yc={_$AK:(o,e,t)=>{o._$AK(e,t)},_$AL:o=>o._$AL};(co.litElementVersions??=[]).push("4.2.0");var uu=!1;var uo={};M(uo,{customElement:()=>bc,eventOptions:()=>xc,property:()=>L,query:()=>Sc,queryAll:()=>Ec,queryAssignedElements:()=>Cc,queryAssignedNodes:()=>Ac,queryAsync:()=>wc,standardProperty:()=>ha,state:()=>it});var bc=o=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(o,e)}):customElements.define(o,e)};var vc={attribute:!0,type:String,converter:ot,reflect:!1,hasChanged:Nt},ha=(o=vc,e,t)=>{let{kind:n,metadata:a}=t,i=globalThis.litPropertyMetadata.get(a);if(i===void 0&&globalThis.litPropertyMetadata.set(a,i=new Map),n==="setter"&&((o=Object.create(o)).wrapped=!0),i.set(t.name,o),n==="accessor"){let{name:s}=t;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,o)},init(l){return l!==void 0&&this.C(s,void 0,o,l),l}}}if(n==="setter"){let{name:s}=t;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,o)}}throw Error("Unsupported decorator location: "+n)};function L(o){return(e,t)=>typeof t=="object"?ha(o,e,t):((n,a,i)=>{let s=a.hasOwnProperty(i);return a.constructor.createProperty(i,n),s?Object.getOwnPropertyDescriptor(a,i):void 0})(o,e,t)}function it(o){return L({...o,state:!0,attribute:!1})}function xc(o){return(e,t)=>{let n=typeof e=="function"?e:e[t];Object.assign(n,o)}}var ne=(o,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(o,e,t),t);function Sc(o,e){return(t,n,a)=>{let i=s=>s.renderRoot?.querySelector(o)??null;if(e){let{get:s,set:l}=typeof n=="object"?t:a??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return ne(t,n,{get(){let d=s.call(this);return d===void 0&&(d=i(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return ne(t,n,{get(){return i(this)}})}}var Oc;function Ec(o){return(e,t)=>ne(e,t,{get(){return(this.renderRoot??(Oc??=document.createDocumentFragment())).querySelectorAll(o)}})}function wc(o){return(e,t)=>ne(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(o)??null}})}function Cc(o){return(e,t)=>{let{slot:n,selector:a}=o??{},i="slot"+(n?`[name=${n}]`:":not([name])");return ne(e,t,{get(){let s=this.renderRoot?.querySelector(i),l=s?.assignedElements(o)??[];return a===void 0?l:l.filter(d=>d.matches(a))}})}}function Ac(o){return(e,t)=>{let{slot:n}=o??{},a="slot"+(n?`[name=${n}]`:":not([name])");return ne(e,t,{get(){return this.renderRoot?.querySelector(a)?.assignedNodes(o)??[]}})}}var po={};M(po,{repeat:()=>Tc});var Re={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ie=o=>(...e)=>({_$litDirective$:o,values:e}),ce=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{I:Rc}=io;var ga=()=>document.createComment(""),st=(o,e,t)=>{let n=o._$AA.parentNode,a=e===void 0?o._$AB:e._$AA;if(t===void 0){let i=n.insertBefore(ga(),a),s=n.insertBefore(ga(),a);t=new Rc(i,s,o,o.options)}else{let i=t._$AB.nextSibling,s=t._$AM,l=s!==o;if(l){let d;t._$AQ?.(o),t._$AM=o,t._$AP!==void 0&&(d=o._$AU)!==s._$AU&&t._$AP(d)}if(i!==a||l){let d=t._$AA;for(;d!==i;){let p=d.nextSibling;n.insertBefore(d,a),d=p}}}return t},Te=(o,e,t=o)=>(o._$AI(e,t),o),Ic={},ma=(o,e=Ic)=>o._$AH=e,ya=o=>o._$AH,gr=o=>{o._$AP?.(!1,!0);let e=o._$AA,t=o._$AB.nextSibling;for(;e!==t;){let n=e.nextSibling;e.remove(),e=n}};var ba=(o,e,t)=>{let n=new Map;for(let a=e;a<=t;a++)n.set(o[a],a);return n},Tc=Ie(class extends ce{constructor(o){if(super(o),o.type!==Re.CHILD)throw Error("repeat() can only be used in text expressions")}dt(o,e,t){let n;t===void 0?t=e:e!==void 0&&(n=e);let a=[],i=[],s=0;for(let l of o)a[s]=n?n(l,s):s,i[s]=t(l,s),s++;return{values:i,keys:a}}render(o,e,t){return this.dt(o,e,t).values}update(o,[e,t,n]){let a=ya(o),{values:i,keys:s}=this.dt(e,t,n);if(!Array.isArray(a))return this.ut=s,i;let l=this.ut??=[],d=[],p,h,f=0,m=a.length-1,y=0,b=i.length-1;for(;f<=m&&y<=b;)if(a[f]===null)f++;else if(a[m]===null)m--;else if(l[f]===s[y])d[y]=Te(a[f],i[y]),f++,y++;else if(l[m]===s[b])d[b]=Te(a[m],i[b]),m--,b--;else if(l[f]===s[b])d[b]=Te(a[f],i[b]),st(o,d[b+1],a[f]),f++,b--;else if(l[m]===s[y])d[y]=Te(a[m],i[y]),st(o,a[f],a[m]),m--,y++;else if(p===void 0&&(p=ba(s,y,b),h=ba(l,f,m)),p.has(l[f]))if(p.has(l[m])){let x=h.get(s[y]),C=x!==void 0?a[x]:null;if(C===null){let w=st(o,a[f]);Te(w,i[y]),d[y]=w}else d[y]=Te(C,i[y]),st(o,a[f],C),a[x]=null;y++}else gr(a[m]),m--;else gr(a[f]),f++;for(;y<=b;){let x=st(o,d[b+1]);Te(x,i[y]),d[y++]=x}for(;f<=m;){let x=a[f++];x!==null&&gr(x)}return this.ut=s,ma(o,d),K}});var fo={};M(fo,{classMap:()=>Nc});var Nc=Ie(class extends ce{constructor(o){if(super(o),o.type!==Re.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(e=>o[e]).join(" ")+" "}update(o,[e]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.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 t=o.element.classList;for(let n of this.st)n in e||(t.remove(n),this.st.delete(n));for(let n in e){let a=!!e[n];a===this.st.has(n)||this.nt?.has(n)||(a?(t.add(n),this.st.add(n)):(t.remove(n),this.st.delete(n)))}return K}});var ho={};M(ho,{styleMap:()=>Pc});var va="important",_c=" !"+va,Pc=Ie(class extends ce{constructor(o){if(super(o),o.type!==Re.ATTRIBUTE||o.name!=="style"||o.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(o){return Object.keys(o).reduce((e,t)=>{let n=o[t];return n==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(o,[e]){let{style:t}=o.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("-")?t.removeProperty(n):t[n]=null);for(let n in e){let a=e[n];if(a!=null){this.ft.add(n);let i=typeof a=="string"&&a.endsWith(_c);n.includes("-")||i?t.setProperty(n,i?a.slice(0,-11):a,i?va:""):t[n]=a}}return K}});var go={};M(go,{UnsafeHTMLDirective:()=>ct,unsafeHTML:()=>Lc});var ct=class extends ce{constructor(e){if(super(e),this.it=H,e.type!==Re.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===H||e==null)return this._t=void 0,this.it=e;if(e===K)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};ct.directiveName="unsafeHTML",ct.resultType=1;var Lc=Ie(ct);var Oo={};M(Oo,{CacheRegistry:()=>le,ClearCacheEvent:()=>Dt});var yo={};M(yo,{CancelablePromise:()=>lt,CanceledPromiseError:()=>ye,cancelable:()=>mo});var ye=class extends Error{constructor(e,t,n){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=n}},lt=class extends Promise{constructor(e){super((t,n)=>e(a=>{this.isCanceled?n(new ye("Promise has been canceled",a)):t(a)},a=>{this.isCanceled?n(new ye("Promise has been canceled",void 0,a)):n(a)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},mo=o=>new lt((e,t)=>o.then(e).catch(t));var So={};M(So,{FtNotificationEvent:()=>bo,PostResizeEvent:()=>xo,PreResizeEvent:()=>vo,WithEventBus:()=>be,withEventBus:()=>xa});var bo=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},vo=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},xo=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function xa(o,e){return class extends o{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(t,n,a){this.eventBus.addEventListener(t,n,a)}dispatchEvent(t){return this.eventBus.dispatchEvent(t)}removeEventListener(t,n,a){this.eventBus.removeEventListener(t,n,a)}}}var be=class extends xa(Object){};var Dt=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},le=class extends be{constructor(){super(...arguments),this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(e,t){this.loaders[e]=t,this.finalContent.delete(e)}registerFinal(e,t){this.loaders[e]=t,this.finalContent.add(e)}clearAll(e=!0){let t=[];for(let n in this.content)this.clear(n,!1)!=null&&t.push(n);e&&t.length>0&&this.dispatchEvent(new Dt(t))}clear(e,t=!0){if(!this.finalContent.has(e))return this.forceClear(e),t&&this.dispatchEvent(new Dt([e])),e}forceClear(e){this.clearClearTimeout(e),this.content[e]instanceof lt&&this.content[e].cancel(),delete this.content[e]}clearClearTimeout(e){this.clearTimeouts[e]!=null&&(window.clearTimeout(this.clearTimeouts[e]),delete this.clearTimeouts[e])}set(e,t){this.forceClear(e),this.register(e,async()=>t),this.content[e]=t}setFinal(e,t){this.forceClear(e),this.registerFinal(e,async()=>t),this.content[e]=t}async get(e,t,n){if(this.content[e]===void 0){if(t=t??this.loaders[e],t==null)throw new Error("Unknown cache key "+e);let a=mo(t());return this.content[e]=a,a.then(i=>(this.content[e]=i,n!=null&&(this.clearClearTimeout(e),this.clearTimeouts[e]=window.setTimeout(()=>this.clear(e),n)),i))}if(this.content[e]instanceof Error)throw this.content[e];return this.content[e]}isResolvedValue(e){return e!=null&&!(e instanceof Promise)&&!(e instanceof Error)}getNow(e){if(this.isResolvedValue(this.content[e]))return this.content[e]}has(e){return this.content[e]!=null}resolvedKeys(){return Object.keys(this.content).filter(e=>this.isResolvedValue(this.content[e]))}resolvedValues(){return Object.values(this.content).filter(e=>this.isResolvedValue(e))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var wo={};M(wo,{ClusteringHelper:()=>Ft,formatHierarchicalValues:()=>Eo});function Eo(o,e){return e&&e>1&&o.length>=e?`... > ${o[o.length-1]}`:o.join(" > ")}var Ft=class o{constructor(e,t,n,a){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=n,this.metadataDescriptors=a}static extractResultMetadata(e){var t,n,a,i,s;let l=((i=(n=(t=e.result)===null||t===void 0?void 0:t.map)!==null&&n!==void 0?n:(a=e.result)===null||a===void 0?void 0:a.document)!==null&&i!==void 0?i:(s=e.result)===null||s===void 0?void 0:s.topic).metadata;return e.key==null?o.flattenMetadata(l,e.hierarchicalValueTruncatingLevel,e.dateFormatter):o.flattenMetadata(l.find(d=>d.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,t,n){if(Array.isArray(e))return e.map(i=>o.flattenMetadata(i,t,n)).filter(i=>i!=null);let a=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!a))if(a){let i=[],s=[];return e.hierarchicalValues.forEach(l=>{i.push(Eo(l)),s.push(Eo(l,t))}),{key:e.key,label:e.label,value:i.join(", "),displayValue:s.join(", "),displayTooltipValue:i.join(", ")}}else{let i=e.values.join(", "),s=e.values.map(l=>n?n(l):l).join(", ");return{key:e.key,label:e.label,value:i,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,t,n="No value",a,i){var s,l;let d=o.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:i}),p=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(f=>o.extractResultMetadata({result:f,key:e,hierarchicalValueTruncatingLevel:a,dateFormatter:i})).map(f=>f??{key:e,label:p,value:void 0,displayValue:n}).filter(f=>f.value!=d?.value).filter((f,m,y)=>y.findIndex(b=>b.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,t))}compareMetadata(e,t,n,a){if(e==null)return-1;if(t==null)return 1;let i=this.getMetadataDescriptor(n),s=i?.sortRule||"NONE",l=i?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(t,a,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let n=this.allResults.filter(d=>{var p;return((p=o.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==t}),i=[...o.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of n){let p=this.countMatchingMetadata(d,i);if(p>l&&(l=p,s=d,p===i.length))break}return s}countMatchingMetadata(e,t){return o.extractResultMetadata({result:e}).filter(n=>t.some(a=>a.key===n.key&&a.value===n.value)).length}};var Co={};M(Co,{Debouncer:()=>Q});var Q=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,n)=>{this.resolvePromise=t,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(t=this.resolvePromise)!==null&&t!==void 0?t:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var To={};M(To,{customElement:()=>Wt,isNumber:()=>wa,jsonProperty:()=>Ne,optionalNumberProperty:()=>Uc});var Io={};M(Io,{dateReviver:()=>kc,deepCopy:()=>Bt,deepEqual:()=>ee,delay:()=>mr,eventPathContainsMatchingElement:()=>Fc,flatDeep:()=>Sa,getComposedPathTo:()=>Ro,hasChanged:()=>Ve,last:()=>Mc,minmax:()=>Ut,parseDate:()=>Oa,unslotText:()=>Ea,waitFor:()=>Mt,waitUntil:()=>Ao});var mr=o=>new Promise(e=>setTimeout(e,o));async function Ao(o,e=10,t=2e4){await Mt(async()=>await o()||void 0,e,t)}async function Mt(o,e=10,t=2e4){let n=await o(),a,i;for(a=i=performance.now();n==null&&(!t||i-a<t);)await mr(e),n=await o(),i=performance.now();if(n==null)throw new Error("Timeout exceeded");return n}function Sa(o,e){return o.flatMap(t=>[t,...Sa(e(t),e)])}function kc(...o){return(e,t)=>o.includes(e)?Oa(t):t}function Oa(o){return o.match(/^\d{4}-\d{2}-\d{2}$/)&&(o=o.replace(/-/g,"/")),o=o.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,n,a)=>t+n+":"+a),new Date(o)}function Dc(o,e){if(o===e)return!0;if(o&&e&&typeof o=="object"&&typeof e=="object"){if(o.constructor!==e.constructor)return!1;var t,n,a;if(Array.isArray(o)){if(t=o.length,t!=e.length)return!1;for(n=t;n--!==0;)if(!ee(o[n],e[n]))return!1;return!0}if(o instanceof Map&&e instanceof Map){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;for(n of o.entries())if(!ee(n[1],e.get(n[0])))return!1;return!0}if(o instanceof Set&&e instanceof Set){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;return!0}if(o.constructor===RegExp)return o.source===e.source&&o.flags===e.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(a=i(o),t=a.length,t!==i(e).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=t;n--!==0;){let s=a[n];if(!ee(o[s],e[s]))return!1}return!0}return o!==o&&e!==e||o==null&&e==null}function ee(o,e){try{return Dc(o,e)}catch{return!1}}function Ve(o,e){return!ee(o,e)}function Fc(o,e,t=window.document.body){if(e.length>0){let n=o.composedPath();for(let a of n){if(a===t)return!1;if(a.matches&&e.some(i=>a.matches(i)))return!0}}return!1}function Ut(o,e,t){return Math.min(Math.max(o,e),t)}function Mc(o){return o[o.length-1]}function Ea(o){return o instanceof HTMLSlotElement?o.assignedNodes().map(e=>Ea(e)).join(""):o?.textContent||""}function Ro(o){let e=[],t=n=>{n.stopPropagation(),e=n.composedPath()};return o.addEventListener("get-composed-path",t),o.dispatchEvent(new Event("get-composed-path",{composed:!0})),o.removeEventListener("get-composed-path",t),e}function Bt(o){return typeof window.structuredClone=="function"?structuredClone(o):o!=null?JSON.parse(JSON.stringify(o)):o}var Wt=o=>e=>{window.customElements.get(o)||window.customElements.define(o,e)};function Ne(o,e){let t=()=>JSON.parse(JSON.stringify(o));return L({type:Object,converter:{fromAttribute:n=>{if(n==null)return t();try{return JSON.parse(n)}catch{return t()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Ve,...e??{}})}function Uc(o){return L({type:Object,converter:{fromAttribute:e=>{if(e!=null)return wa(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...o??{}})}function wa(o){return!isNaN(parseFloat(o))}var Lo={};M(Lo,{designSystemVariables:()=>vl});var Po={};M(Po,{DesignSystemFamily:()=>Ht,DesignSystemSize:()=>zt,FtCssVariableFactory:()=>r,badge:()=>Zc,banner:()=>Kc,button:()=>Hc,chart:()=>dl,checkbox:()=>zc,chip:()=>Gc,chipChoice:()=>jc,collapsible:()=>cl,comboboxMultiSelect:()=>il,comboboxSingleSelect:()=>al,drawer:()=>el,floatingMenu:()=>nl,foundation:()=>c,link:()=>Vc,modal:()=>Qc,notice:()=>pl,notification:()=>gl,pageDesigner:()=>ul,pageFooter:()=>Jc,pageHeader:()=>Yc,pageLayout:()=>Xc,popover:()=>sl,radio:()=>hl,reorderableList:()=>yl,resolveFamilyClass:()=>No,resolveSizeClass:()=>_o,semantic:()=>u,setVariable:()=>yr,switch_:()=>ll,table:()=>$c,tabs:()=>tl,textArea:()=>ol,textInput:()=>rl,titleBreadcrumb:()=>qc,toggle:()=>fl,tooltip:()=>ml,treeList:()=>bl,typographies:()=>Bc,typographyBody1Medium:()=>Na,typographyBody1Regular:()=>Ta,typographyBody1Semibold:()=>_a,typographyBody2Medium:()=>La,typographyBody2MediumUnderline:()=>ka,typographyBody2Regular:()=>Pa,typographyBody2Semibold:()=>Da,typographyCaption1Bold:()=>ja,typographyCaption1Medium:()=>za,typographyCaption1Semibold:()=>$a,typographyCaption2Bold:()=>Ka,typographyCaption2Medium:()=>Ga,typographyCaption2Semibold:()=>Va,typographyCaption3Bold:()=>Ya,typographyCaption3Medium:()=>Za,typographyCaption3Semibold:()=>qa,typographyDisplay:()=>Ca,typographyLabel1Bold:()=>Ua,typographyLabel1Medium:()=>Fa,typographyLabel1Semibold:()=>Ma,typographyLabel2Bold:()=>Ha,typographyLabel2Medium:()=>Ba,typographyLabel2Semibold:()=>Wa,typographyTitle1:()=>Aa,typographyTitle2:()=>Ra,typographyTitle3:()=>Ia,typographyVariants:()=>Wc});var ve=o=>typeof o=="string"?Rt(o):o,r=class{static create(e,t,n,a){let i=l=>ve(l??a),s=$`var(${ve(e)}, ${i(a)})`;return s.name=e,s.description=t,s.category=n,s.defaultValue=a,s.defaultCssValue=i,s.get=l=>$`var(${ve(e)}, ${i(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>a,s}static extend(e,t,n,a){let i=l=>n.get(l??a),s=$`var(${ve(e)}, ${i(a)})`;return s.name=e,s.description=t,s.category=n.category,s.fallbackVariable=n,s.defaultValue=a,s.defaultCssValue=i,s.get=l=>$`var(${ve(e)}, ${i(l)})`,s.breadcrumb=()=>[n.name,...n.breadcrumb()],s.lastResortDefaultValue=()=>a??n.lastResortDefaultValue(),s}static external(e,t){let n=i=>e.fallbackVariable?e.fallbackVariable.get(i??e.defaultValue):ve(i??e.lastResortDefaultValue()),a=$`var(${ve(e.name)}, ${n(e.defaultValue)})`;return a.name=e.name,a.category=e.category,a.fallbackVariable=e.fallbackVariable,a.defaultValue=e.defaultValue,a.context=t,a.defaultCssValue=n,a.get=i=>$`var(${ve(e.name)}, ${n(i)})`,a.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],a.lastResortDefaultValue=()=>e.lastResortDefaultValue(),a}};function yr(o,e){return ve(`${o.name}: ${e}`)}var c={colorWhite:r.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:r.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:r.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:r.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:r.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:r.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:r.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:r.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:r.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:r.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:r.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:r.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:r.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:r.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:r.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:r.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:r.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:r.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:r.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:r.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:r.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:r.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:r.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:r.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:r.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:r.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:r.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:r.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:r.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:r.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:r.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:r.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:r.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:r.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:r.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:r.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:r.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:r.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:r.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:r.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:r.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:r.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:r.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:r.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:r.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:r.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:r.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:r.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:r.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:r.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:r.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:r.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:r.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:r.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:r.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:r.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:r.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:r.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:r.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:r.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:r.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:r.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:r.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:r.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:r.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:r.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:r.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:r.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:r.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:r.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:r.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:r.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:r.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:r.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:r.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:r.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:r.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:r.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:r.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:r.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:r.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:r.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:r.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:r.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:r.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:r.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:r.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:r.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:r.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:r.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:r.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:r.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:r.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:r.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:r.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:r.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:r.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:r.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:r.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:r.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:r.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:r.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:r.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:r.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:r.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:r.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:r.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:r.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:r.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:r.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:r.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:r.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:r.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:r.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:r.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:r.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:r.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:r.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:r.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:r.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:r.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:r.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:r.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:r.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:r.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:r.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:r.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:r.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:r.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:r.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:r.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:r.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:r.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:r.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:r.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:r.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:r.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:r.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:r.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:r.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:r.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:r.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:r.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:r.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:r.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:r.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:r.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:r.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:r.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:r.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:r.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:r.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:r.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:r.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:r.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:r.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:r.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:r.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:r.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:r.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:r.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:r.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:r.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:r.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:r.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:r.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:r.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:r.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:r.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:r.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:r.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:r.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:r.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:r.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:r.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:r.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:r.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:r.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:r.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:r.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:r.create("--ft-opacity-0","","NUMBER","0"),opacity8:r.create("--ft-opacity-8","","NUMBER","0.08"),opacity12:r.create("--ft-opacity-12","","NUMBER","0.12"),opacity16:r.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:r.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:r.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:r.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:r.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:r.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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:r.create("--ft-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)")},Ca={fontFamily:r.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-display-lineHeight","","SIZE","1.2"),fontSize:r.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:r.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-display-textCase","","UNKNOWN","none")},Aa={fontFamily:r.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-title-1-lineHeight","","SIZE","1.2"),fontSize:r.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:r.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Ra={fontFamily:r.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-2-lineHeight","","SIZE","1.2"),fontSize:r.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:r.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Ia={fontFamily:r.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-3-lineHeight","","SIZE","1.2"),fontSize:r.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:r.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:r.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Ta={fontFamily:r.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-1-regular-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},Na={fontFamily:r.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-1-medium-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},_a={fontFamily:r.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Pa={fontFamily:r.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-2-regular-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},La={fontFamily:r.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},ka={fontFamily:r.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:r.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:r.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Da={fontFamily:r.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","1.35"),fontSize:r.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Fa={fontFamily:r.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Ma={fontFamily:r.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Ua={fontFamily:r.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Ba={fontFamily:r.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Wa={fontFamily:r.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Ha={fontFamily:r.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},za={fontFamily:r.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},$a={fontFamily:r.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},ja={fontFamily:r.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},Ga={fontFamily:r.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Va={fontFamily:r.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Ka={fontFamily:r.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Za={fontFamily:r.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},qa={fontFamily:r.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},Ya={fontFamily:r.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","1.3"),fontSize:r.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Bc={display:Ca,"title-1":Aa,"title-2":Ra,"title-3":Ia,"body-1-regular":Ta,"body-1-medium":Na,"body-1-semibold":_a,"body-2-regular":Pa,"body-2-medium":La,"body-2-medium-underline":ka,"body-2-semibold":Da,"label-1-medium":Fa,"label-1-semibold":Ma,"label-1-bold":Ua,"label-2-medium":Ba,"label-2-semibold":Wa,"label-2-bold":Ha,"caption-1-medium":za,"caption-1-semibold":$a,"caption-1-bold":ja,"caption-2-medium":Ga,"caption-2-semibold":Va,"caption-2-bold":Ka,"caption-3-medium":Za,"caption-3-semibold":qa,"caption-3-bold":Ya},Wc=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var u={backgroundActionPrimary:r.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:r.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:r.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:r.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:r.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:r.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:r.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:r.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:r.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:r.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:r.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:r.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:r.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:r.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:r.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:r.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:r.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:r.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:r.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
5
|
+
Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:r.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:r.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:r.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:r.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:r.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:r.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:r.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:r.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:r.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:r.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:r.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:r.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:r.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:r.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:r.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var Hc={largeHeight:r.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:r.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:r.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:r.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:r.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:r.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:r.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:r.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:r.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:r.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:r.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:r.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:r.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:r.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:r.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:r.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:r.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:r.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:r.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:r.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:r.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:r.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:r.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:r.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:r.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:r.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:r.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:r.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:r.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:r.extend("--ft-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:r.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:r.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:r.extend("--ft-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:r.extend("--ft-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:r.extend("--ft-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:r.extend("--ft-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:r.extend("--ft-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:r.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:r.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:r.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:r.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:r.extend("--ft-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:r.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:r.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:r.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:r.extend("--ft-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:r.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:r.extend("--ft-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:r.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:r.extend("--ft-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:r.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:r.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:r.extend("--ft-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:r.extend("--ft-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:r.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:r.extend("--ft-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:r.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:r.extend("--ft-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:r.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:r.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:r.extend("--ft-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:r.extend("--ft-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:r.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:r.extend("--ft-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:r.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:r.extend("--ft-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:r.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:r.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:r.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:r.extend("--ft-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:r.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:r.extend("--ft-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:r.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:r.extend("--ft-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:r.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:r.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:r.extend("--ft-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:r.extend("--ft-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:r.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:r.extend("--ft-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:r.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:r.extend("--ft-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:r.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:r.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:r.extend("--ft-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:r.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:r.extend("--ft-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:r.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:r.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:r.extend("--ft-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:r.extend("--ft-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:r.extend("--ft-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:r.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:r.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:r.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:r.extend("--ft-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:r.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:r.extend("--ft-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:r.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:r.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:r.extend("--ft-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:r.extend("--ft-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:r.extend("--ft-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:r.extend("--ft-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:r.extend("--ft-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:r.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:r.extend("--ft-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:r.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:r.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:r.extend("--ft-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:r.extend("--ft-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:r.extend("--ft-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:r.extend("--ft-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:r.extend("--ft-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:r.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:r.extend("--ft-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:r.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:r.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:r.extend("--ft-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:r.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:r.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:r.extend("--ft-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:r.extend("--ft-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:r.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:r.extend("--ft-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:r.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:r.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:r.extend("--ft-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:r.extend("--ft-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:r.extend("--ft-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:r.extend("--ft-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:r.extend("--ft-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:r.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:r.extend("--ft-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:r.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:r.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:r.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var zc={iconSize:r.extend("--ft-checkbox-icon-size","",c.iconSize2),boxSize:r.create("--ft-checkbox-box-size","","SIZE","18px"),colorLegendSize:r.create("--ft-checkbox-color-legend-size","","SIZE","16px"),borderRadius:r.create("--ft-checkbox-border-radius","","SIZE","1px"),color:r.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:r.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:r.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:r.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:r.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:r.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:r.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:r.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:r.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:r.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:r.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:r.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:r.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:r.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:r.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:r.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:r.create("--ft-checkbox-border-width","","SIZE","2px"),horizontalGap:r.extend("--ft-checkbox-horizontal-gap","",c.spacing3),leftPadding:r.extend("--ft-checkbox-left-padding","",c.spacing2)};var $c={headerRowBorderWidth:r.create("--ft-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:r.extend("--ft-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:r.extend("--ft-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:r.extend("--ft-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:r.create("--ft-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:r.extend("--ft-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:r.extend("--ft-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:r.extend("--ft-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:r.extend("--ft-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:r.extend("--ft-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:r.extend("--ft-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:r.extend("--ft-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:r.extend("--ft-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:r.extend("--ft-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:r.extend("--ft-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:r.extend("--ft-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:r.extend("--ft-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:r.extend("--ft-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:r.extend("--ft-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:r.extend("--ft-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:r.extend("--ft-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:r.extend("--ft-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:r.extend("--ft-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:r.extend("--ft-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:r.extend("--ft-table-data-cell-vertical-gap","",c.spacing1)};var jc={neutralOffHoverStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:r.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:r.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:r.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:r.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:r.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:r.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:r.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:r.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:r.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:r.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:r.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:r.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ft-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:r.extend("--ft-chip-choice-large-gap","",c.spacing1),largeBorderRadius:r.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:r.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:r.extend("--ft-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:r.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:r.extend("--ft-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:r.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:r.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:r.extend("--ft-chip-choice-medium-icon-size","",c.iconSize2)};var Gc={largeMinHeight:r.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:r.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:r.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:r.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:r.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:r.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:r.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:r.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:r.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:r.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:r.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:r.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:r.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:r.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:r.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:r.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:r.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:r.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:r.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:r.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:r.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:r.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:r.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:r.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:r.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:r.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:r.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:r.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:r.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:r.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:r.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:r.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:r.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:r.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:r.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:r.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:r.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:r.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:r.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:r.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:r.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)};var Vc={brandHoverOpacity:r.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:r.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:r.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:r.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:r.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:r.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:r.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:r.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:r.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:r.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:r.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:r.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:r.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:r.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:r.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:r.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:r.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:r.extend("--ft-link-neutral-visited-color","",c.colorBrand100)};var Kc={iconSize:r.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:r.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:r.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:r.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:r.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:r.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:r.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:r.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:r.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:r.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:r.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:r.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:r.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)};var Zc={horizontalPadding:r.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:r.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:r.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:r.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:r.extend("--ft-badge-background-color","",u.contentActionPrimary)};var qc={horizontalGap:r.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:r.extend("--ft-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:r.extend("--ft-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:r.extend("--ft-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var Yc={parentHorizontalPadding:r.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:r.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:r.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:r.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:r.extend("--ft-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:r.extend("--ft-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:r.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:r.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:r.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:r.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:r.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:r.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:r.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:r.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:r.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:r.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:r.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:r.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:r.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:r.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:r.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:r.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:r.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:r.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:r.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:r.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var Jc={horizontalPadding:r.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:r.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:r.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:r.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:r.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:r.extend("--ft-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:r.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:r.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)};var Xc={contentHorizontalPadding:r.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:r.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var Qc={smallContainerTargetWidth:r.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:r.extend("--ft-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:r.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:r.extend("--ft-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:r.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:r.extend("--ft-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:r.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:r.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:r.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:r.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:r.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:r.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:r.extend("--ft-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:r.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:r.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:r.extend("--ft-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:r.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:r.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:r.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:r.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottomWidth:r.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:r.extend("--ft-modal-border-radius","",c.borderRadiusM)};var el={overlayOpacity:r.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:r.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:r.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:r.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:r.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:r.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:r.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:r.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:r.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:r.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:r.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:r.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:r.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:r.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:r.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:r.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:r.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:r.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:r.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:r.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:r.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:r.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:r.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:r.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:r.extend("--ft-drawer-overlay-background-color","",c.colorGray700)};var tl={offBorderBottomWidth:r.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:r.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:r.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:r.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:r.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:r.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:r.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:r.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:r.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:r.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:r.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:r.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:r.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:r.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:r.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:r.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:r.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:r.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:r.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:r.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:r.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:r.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:r.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:r.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:r.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:r.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)};var rl={largeFieldHorizontalPadding:r.extend("--ft-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:r.extend("--ft-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:r.extend("--ft-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:r.create("--ft-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:r.extend("--ft-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:r.extend("--ft-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:r.extend("--ft-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:r.create("--ft-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:r.create("--ft-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:r.extend("--ft-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:r.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:r.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:r.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:r.extend("--ft-text-input-border-radius","",c.borderRadiusS),backgroundColor:r.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:r.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:r.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:r.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:r.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:r.extend("--ft-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:r.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:r.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:r.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var ol={backgroundColor:r.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:r.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:r.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:r.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:r.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:r.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:r.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:r.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:r.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:r.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:r.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:r.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:r.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:r.extend("--ft-text-area-border-radius","",c.borderRadiusS)};var nl={height:r.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:r.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:r.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:r.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:r.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:r.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:r.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:r.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:r.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:r.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:r.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:r.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:r.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:r.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:r.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:r.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var al={largeFieldHorizontalPadding:r.extend("--ft-combobox-single-select-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:r.extend("--ft-combobox-single-select-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:r.extend("--ft-combobox-single-select-large-field-vertical-gap","",c.spacing05),largeFieldHeight:r.create("--ft-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:r.extend("--ft-combobox-single-select-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:r.extend("--ft-combobox-single-select-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:r.extend("--ft-combobox-single-select-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:r.create("--ft-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:r.create("--ft-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:r.extend("--ft-combobox-single-select-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:r.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:r.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:r.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:r.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:r.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:r.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusS),backgroundColor:r.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:r.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:r.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:r.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:r.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:r.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:r.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)};var il={backgroundColor:r.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:r.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:r.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:r.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:r.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:r.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:r.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:r.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:r.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:r.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:r.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:r.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:r.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:r.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:r.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:r.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:r.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:r.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:r.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:r.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusS)};var sl={backgroundColor:r.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:r.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:r.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:r.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:r.extend("--ft-popover-body-color","",u.contentGlobalSecondary),gap:r.extend("--ft-popover-gap","",c.spacing2),borderRadius:r.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:r.extend("--ft-popover-shadow","",c.shadowElevation02),maxWidth:r.create("--ft-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:r.extend("--ft-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:r.extend("--ft-popover-multi-section-vertical-gap","",c.spacing6)};var cl={hoverStateLayerOpacity:r.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:r.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:r.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:r.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:r.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:r.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:r.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:r.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:r.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:r.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:r.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:r.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:r.extend("--ft-collapsible-icon-size","",c.iconSize3)};var ll={groupHorizontalPadding:r.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:r.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:r.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:r.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:r.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:r.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:r.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:r.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:r.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:r.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:r.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:r.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:r.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:r.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:r.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:r.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:r.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:r.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:r.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:r.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:r.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:r.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var dl={color1Light:r.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:r.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:r.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:r.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:r.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:r.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:r.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:r.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:r.extend("--ft-chart-5-light","",c.colorRed40),color5Base:r.extend("--ft-chart-5-base","",c.colorRed60),color6Light:r.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:r.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:r.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:r.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:r.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:r.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:r.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:r.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:r.extend("--ft-chart-10-light","",c.colorGray50),color10Base:r.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:r.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:r.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:r.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:r.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:r.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:r.extend("--ft-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:r.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:r.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:r.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var ul={color1IconColor:r.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:r.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:r.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:r.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:r.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:r.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:r.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:r.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:r.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:r.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:r.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:r.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:r.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:r.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:r.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:r.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var pl={borderWidth:r.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:r.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:r.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:r.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:r.extend("--ft-notice-gap","",c.spacing2),iconSize:r.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:r.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:r.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:r.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:r.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:r.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:r.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:r.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:r.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:r.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:r.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:r.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:r.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:r.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:r.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:r.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:r.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:r.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:r.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:r.extend("--ft-notice-dense-gap","",c.spacing1),denseIconSize:r.extend("--ft-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:r.create("--ft-notice-dense-border-width","","SIZE","0")};var fl={offHoverStateLayerOpacity:r.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:r.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:r.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:r.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:r.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:r.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:r.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:r.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:r.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:r.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:r.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:r.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:r.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:r.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:r.extend("--ft-toggle-gap","",c.spacing3)};var hl={color:r.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:r.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:r.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:r.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:r.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:r.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:r.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:r.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:r.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:r.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:r.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:r.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:r.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:r.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:r.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:r.extend("--ft-radio-gap","",c.spacing3)};var gl={iconSize:r.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:r.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:r.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:r.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:r.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:r.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:r.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:r.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:r.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:r.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:r.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:r.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:r.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:r.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:r.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:r.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:r.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:r.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:r.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:r.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:r.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:r.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:r.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:r.extend("--ft-notification-trailing-gap","",c.spacing8)};var ml={horizontalPadding:r.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:r.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:r.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:r.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:r.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:r.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:r.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","256px"),gap:r.extend("--ft-tooltip-gap","",c.spacing05)};var yl={verticalPadding:r.extend("--ft-reorderable-list-vertical-padding","",c.spacing4),gap:r.extend("--ft-reorderable-list-gap","",c.spacing1),borderRadius:r.extend("--ft-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:r.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:r.extend("--ft-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:r.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:r.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:r.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:r.extend("--ft-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:r.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:r.extend("--ft-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:r.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:r.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:r.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:r.extend("--ft-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:r.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:r.extend("--ft-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:r.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:r.extend("--ft-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:r.extend("--ft-reorderable-list-left-padding","",c.spacing2),rightPadding:r.extend("--ft-reorderable-list-right-padding","",c.spacing6),borderColor:r.extend("--ft-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:r.extend("--ft-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var bl={nodeHeight:r.create("--ft-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:r.extend("--ft-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:r.extend("--ft-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:r.extend("--ft-tree-list-node-root-padding-left","",c.spacing3),nodeChildPaddingLeft:r.extend("--ft-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:r.extend("--ft-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:r.extend("--ft-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:r.extend("--ft-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:r.extend("--ft-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:r.extend("--ft-tree-list-node-unselected-counter-color","",u.contentInfoPrimary),nodeHoverBorderColor:r.extend("--ft-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:r.extend("--ft-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:r.create("--ft-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:r.extend("--ft-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:r.extend("--ft-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:r.extend("--ft-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:r.extend("--ft-tree-list-node-selected-counter-color","",u.contentInfoPrimary),nodeSelectedBackgroundColor:r.create("--ft-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:r.extend("--ft-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:r.extend("--ft-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:r.extend("--ft-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:r.extend("--ft-tree-list-node-descendant-of-selected-counter-color","",u.contentInfoPrimary),nodeDescendantOfSelectedBackgroundColor:r.create("--ft-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:r.create("--ft-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:r.extend("--ft-tree-list-header-section-padding-left","",c.spacing3),headerSectionPaddingRight:r.extend("--ft-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:r.extend("--ft-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:r.extend("--ft-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:r.extend("--ft-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:r.extend("--ft-tree-list-header-section-counter-color","",u.contentInfoPrimary),listContainerBorderWidth:r.create("--ft-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:r.extend("--ft-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:r.extend("--ft-tree-list-list-container-border-color","",u.borderGlobalSubtle),loadMorePaddingLeft:r.extend("--ft-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:r.extend("--ft-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:r.extend("--ft-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:r.extend("--ft-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:r.extend("--ft-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:r.create("--ft-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:r.extend("--ft-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:r.create("--ft-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:r.create("--ft-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:r.create("--ft-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:r.extend("--ft-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary)};var Ht;(function(o){o.brand="brand",o.neutral="neutral",o.info="info",o.success="success",o.warning="warning",o.error="error"})(Ht||(Ht={}));var zt;(function(o){o.large="large",o.medium="medium",o.small="small"})(zt||(zt={}));function No(o){return`ftds--family-${o}`}function _o(o){return`ftds--size-${o}`}var vl={colorPrimary:r.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:r.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:r.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:r.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:r.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:r.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:r.create("--ft-color-error","","COLOR","#B00020"),colorOutline:r.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:r.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:r.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:r.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:r.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:r.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:r.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:r.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:r.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:r.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:r.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:r.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:r.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:r.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:r.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:r.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:r.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:r.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:r.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:r.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:r.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:r.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:r.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:r.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:r.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:r.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:r.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:r.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:r.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:r.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:r.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:r.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:r.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:r.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:r.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:r.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:r.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:r.create("--ft-elevation-00","","UNKNOWN","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:r.create("--ft-elevation-01","","UNKNOWN","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:r.create("--ft-elevation-02","","UNKNOWN","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:r.create("--ft-elevation-03","","UNKNOWN","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:r.create("--ft-elevation-04","","UNKNOWN","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:r.create("--ft-elevation-06","","UNKNOWN","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:r.create("--ft-elevation-08","","UNKNOWN","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:r.create("--ft-elevation-12","","UNKNOWN","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:r.create("--ft-elevation-16","","UNKNOWN","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:r.create("--ft-elevation-24","","UNKNOWN","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:r.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:r.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:r.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:r.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:r.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:r.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:r.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:r.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Ko={};M(Ko,{computeOffsetAutoPosition:()=>Wl,computeOffsetPosition:()=>Bl});var Xa=["top","right","bottom","left"],Ja=["start","end"],Do=Xa.reduce((o,e)=>o.concat(e,e+"-"+Ja[0],e+"-"+Ja[1]),[]),br=Math.min,_e=Math.max;var xl={left:"right",right:"left",bottom:"top",top:"bottom"},Sl={start:"end",end:"start"};function Fo(o,e,t){return _e(o,br(e,t))}function dt(o,e){return typeof o=="function"?o(e):o}function Pe(o){return o.split("-")[0]}function de(o){return o.split("-")[1]}function Mo(o){return o==="x"?"y":"x"}function Uo(o){return o==="y"?"height":"width"}function ut(o){return["top","bottom"].includes(Pe(o))?"y":"x"}function Bo(o){return Mo(ut(o))}function Qa(o,e,t){t===void 0&&(t=!1);let n=de(o),a=Bo(o),i=Uo(a),s=a==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=ko(s)),[s,ko(s)]}function ei(o){return o.replace(/start|end/g,e=>Sl[e])}function ko(o){return o.replace(/left|right|bottom|top/g,e=>xl[e])}function Ol(o){return{top:0,right:0,bottom:0,left:0,...o}}function ti(o){return typeof o!="number"?Ol(o):{top:o,right:o,bottom:o,left:o}}function Ke(o){let{x:e,y:t,width:n,height:a}=o;return{width:n,height:a,top:t,left:e,right:e+n,bottom:t+a,x:e,y:t}}function ri(o,e,t){let{reference:n,floating:a}=o,i=ut(e),s=Bo(e),l=Uo(s),d=Pe(e),p=i==="y",h=n.x+n.width/2-a.width/2,f=n.y+n.height/2-a.height/2,m=n[l]/2-a[l]/2,y;switch(d){case"top":y={x:h,y:n.y-a.height};break;case"bottom":y={x:h,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:f};break;case"left":y={x:n.x-a.width,y:f};break;default:y={x:n.x,y:n.y}}switch(de(e)){case"start":y[s]-=m*(t&&p?-1:1);break;case"end":y[s]+=m*(t&&p?-1:1);break}return y}var oi=async(o,e,t)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=t,l=i.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:o,floating:e,strategy:a}),{x:h,y:f}=ri(p,n,d),m=n,y={},b=0;for(let x=0;x<l.length;x++){let{name:C,fn:w}=l[x],{x:A,y:O,data:E,reset:S}=await w({x:h,y:f,initialPlacement:n,placement:m,strategy:a,middlewareData:y,rects:p,platform:s,elements:{reference:o,floating:e}});h=A??h,f=O??f,y={...y,[C]:{...y[C],...E}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(m=S.placement),S.rects&&(p=S.rects===!0?await s.getElementRects({reference:o,floating:e,strategy:a}):S.rects),{x:h,y:f}=ri(p,m,d)),x=-1)}return{x:h,y:f,placement:m,strategy:a,middlewareData:y}};async function vr(o,e){var t;e===void 0&&(e={});let{x:n,y:a,platform:i,rects:s,elements:l,strategy:d}=o,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:m=!1,padding:y=0}=dt(e,o),b=ti(y),C=l[m?f==="floating"?"reference":"floating":f],w=Ke(await i.getClippingRect({element:(t=await(i.isElement==null?void 0:i.isElement(C)))==null||t?C:C.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),A=f==="floating"?{x:n,y:a,width:s.floating.width,height:s.floating.height}:s.reference,O=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),E=await(i.isElement==null?void 0:i.isElement(O))?await(i.getScale==null?void 0:i.getScale(O))||{x:1,y:1}:{x:1,y:1},S=Ke(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:A,offsetParent:O,strategy:d}):A);return{top:(w.top-S.top+b.top)/E.y,bottom:(S.bottom-w.bottom+b.bottom)/E.y,left:(w.left-S.left+b.left)/E.x,right:(S.right-w.right+b.right)/E.x}}function El(o,e,t){return(o?[...t.filter(a=>de(a)===o),...t.filter(a=>de(a)!==o)]:t.filter(a=>Pe(a)===a)).filter(a=>o?de(a)===o||(e?ei(a)!==a:!1):!0)}var xr=function(o){return o===void 0&&(o={}),{name:"autoPlacement",options:o,async fn(e){var t,n,a;let{rects:i,middlewareData:s,placement:l,platform:d,elements:p}=e,{crossAxis:h=!1,alignment:f,allowedPlacements:m=Do,autoAlignment:y=!0,...b}=dt(o,e),x=f!==void 0||m===Do?El(f||null,y,m):m,C=await vr(e,b),w=((t=s.autoPlacement)==null?void 0:t.index)||0,A=x[w];if(A==null)return{};let O=Qa(A,i,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==A)return{reset:{placement:x[0]}};let E=[C[Pe(A)],C[O[0]],C[O[1]]],S=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:A,overflows:E}],R=x[w+1];if(R)return{data:{index:w+1,overflows:S},reset:{placement:R}};let _=S.map(I=>{let g=de(I.placement);return[I.placement,g&&h?I.overflows.slice(0,2).reduce((v,T)=>v+T,0):I.overflows[0],I.overflows]}).sort((I,g)=>I[1]-g[1]),D=((a=_.filter(I=>I[2].slice(0,de(I[0])?2:3).every(g=>g<=0))[0])==null?void 0:a[0])||_[0][0];return D!==l?{data:{index:w+1,overflows:S},reset:{placement:D}}:{}}}};async function wl(o,e){let{placement:t,platform:n,elements:a}=o,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),s=Pe(t),l=de(t),d=ut(t)==="y",p=["left","top"].includes(s)?-1:1,h=i&&d?-1:1,f=dt(e,o),{mainAxis:m,crossAxis:y,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof b=="number"&&(y=l==="end"?b*-1:b),d?{x:y*h,y:m*p}:{x:m*p,y:y*h}}var Wo=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(e){var t,n;let{x:a,y:i,placement:s,middlewareData:l}=e,d=await wl(e,o);return s===((t=l.offset)==null?void 0:t.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:a+d.x,y:i+d.y,data:{...d,placement:s}}}}},Ho=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(e){let{x:t,y:n,placement:a}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:C=>{let{x:w,y:A}=C;return{x:w,y:A}}},...d}=dt(o,e),p={x:t,y:n},h=await vr(e,d),f=ut(Pe(a)),m=Mo(f),y=p[m],b=p[f];if(i){let C=m==="y"?"top":"left",w=m==="y"?"bottom":"right",A=y+h[C],O=y-h[w];y=Fo(A,y,O)}if(s){let C=f==="y"?"top":"left",w=f==="y"?"bottom":"right",A=b+h[C],O=b-h[w];b=Fo(A,b,O)}let x=l.fn({...e,[m]:y,[f]:b});return{...x,data:{x:x.x-t,y:x.y-n,enabled:{[m]:i,[f]:s}}}}}};var zo=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(e){var t,n;let{placement:a,rects:i,platform:s,elements:l}=e,{apply:d=()=>{},...p}=dt(o,e),h=await vr(e,p),f=Pe(a),m=de(a),y=ut(a)==="y",{width:b,height:x}=i.floating,C,w;f==="top"||f==="bottom"?(C=f,w=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(w=f,C=m==="end"?"top":"bottom");let A=x-h.top-h.bottom,O=b-h.left-h.right,E=br(x-h[C],A),S=br(b-h[w],O),R=!e.middlewareData.shift,_=E,P=S;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(P=O),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(_=A),R&&!m){let I=_e(h.left,0),g=_e(h.right,0),v=_e(h.top,0),T=_e(h.bottom,0);y?P=b-2*(I!==0||g!==0?I+g:_e(h.left,h.right)):_=x-2*(v!==0||T!==0?v+T:_e(h.top,h.bottom))}await d({...e,availableWidth:P,availableHeight:_});let D=await s.getDimensions(l.floating);return b!==D.width||x!==D.height?{reset:{rects:!0}}:{}}}};var $o=Math.min,pt=Math.max,$t=Math.round;var xe=o=>({x:o,y:o});function Se(o){return ai(o)?(o.nodeName||"").toLowerCase():"#document"}function Y(o){var e;return(o==null||(e=o.ownerDocument)==null?void 0:e.defaultView)||window}function Oe(o){var e;return(e=(ai(o)?o.ownerDocument:o.document)||window.document)==null?void 0:e.documentElement}function ai(o){return o instanceof Node||o instanceof Y(o).Node}function ue(o){return o instanceof Element||o instanceof Y(o).Element}function ae(o){return o instanceof HTMLElement||o instanceof Y(o).HTMLElement}function ni(o){return typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof Y(o).ShadowRoot}function ft(o){let{overflow:e,overflowX:t,overflowY:n,display:a}=te(o);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(a)}function ii(o){return["table","td","th"].includes(Se(o))}function Or(o){let e=Er(),t=te(o);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function si(o){let e=Ze(o);for(;ae(e)&&!jt(e);){if(Or(e))return e;e=Ze(e)}return null}function Er(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function jt(o){return["html","body","#document"].includes(Se(o))}function te(o){return Y(o).getComputedStyle(o)}function Gt(o){return ue(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function Ze(o){if(Se(o)==="html")return o;let e=o.assignedSlot||o.parentNode||ni(o)&&o.host||Oe(o);return ni(e)?e.host:e}function ci(o){let e=Ze(o);return jt(e)?o.ownerDocument?o.ownerDocument.body:o.body:ae(e)&&ft(e)?e:ci(e)}function Sr(o,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);let a=ci(o),i=a===((n=o.ownerDocument)==null?void 0:n.body),s=Y(a);return i?e.concat(s,s.visualViewport||[],ft(a)?a:[],s.frameElement&&t?Sr(s.frameElement):[]):e.concat(a,Sr(a,[],t))}function ui(o){let e=te(o),t=parseFloat(e.width)||0,n=parseFloat(e.height)||0,a=ae(o),i=a?o.offsetWidth:t,s=a?o.offsetHeight:n,l=$t(t)!==i||$t(n)!==s;return l&&(t=i,n=s),{width:t,height:n,$:l}}function pi(o){return ue(o)?o:o.contextElement}function ht(o){let e=pi(o);if(!ae(e))return xe(1);let t=e.getBoundingClientRect(),{width:n,height:a,$:i}=ui(e),s=(i?$t(t.width):t.width)/n,l=(i?$t(t.height):t.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Cl=xe(0);function fi(o){let e=Y(o);return!Er()||!e.visualViewport?Cl:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Al(o,e,t){return e===void 0&&(e=!1),!t||e&&t!==Y(o)?!1:e}function Vt(o,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);let a=o.getBoundingClientRect(),i=pi(o),s=xe(1);e&&(n?ue(n)&&(s=ht(n)):s=ht(o));let l=Al(i,t,n)?fi(i):xe(0),d=(a.left+l.x)/s.x,p=(a.top+l.y)/s.y,h=a.width/s.x,f=a.height/s.y;if(i){let m=Y(i),y=n&&ue(n)?Y(n):n,b=m.frameElement;for(;b&&n&&y!==m;){let x=ht(b),C=b.getBoundingClientRect(),w=te(b),A=C.left+(b.clientLeft+parseFloat(w.paddingLeft))*x.x,O=C.top+(b.clientTop+parseFloat(w.paddingTop))*x.y;d*=x.x,p*=x.y,h*=x.x,f*=x.y,d+=A,p+=O,b=Y(b).frameElement}}return Ke({width:h,height:f,x:d,y:p})}function Rl(o){let{rect:e,offsetParent:t,strategy:n}=o,a=ae(t),i=Oe(t);if(t===i)return e;let s={scrollLeft:0,scrollTop:0},l=xe(1),d=xe(0);if((a||!a&&n!=="fixed")&&((Se(t)!=="body"||ft(i))&&(s=Gt(t)),ae(t))){let p=Vt(t);l=ht(t),d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+d.x,y:e.y*l.y-s.scrollTop*l.y+d.y}}function Il(o){return Array.from(o.getClientRects())}function hi(o){return Vt(Oe(o)).left+Gt(o).scrollLeft}function Tl(o){let e=Oe(o),t=Gt(o),n=o.ownerDocument.body,a=pt(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=pt(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-t.scrollLeft+hi(o),l=-t.scrollTop;return te(n).direction==="rtl"&&(s+=pt(e.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:l}}function Nl(o,e){let t=Y(o),n=Oe(o),a=t.visualViewport,i=n.clientWidth,s=n.clientHeight,l=0,d=0;if(a){i=a.width,s=a.height;let p=Er();(!p||p&&e==="fixed")&&(l=a.offsetLeft,d=a.offsetTop)}return{width:i,height:s,x:l,y:d}}function _l(o,e){let t=Vt(o,!0,e==="fixed"),n=t.top+o.clientTop,a=t.left+o.clientLeft,i=ae(o)?ht(o):xe(1),s=o.clientWidth*i.x,l=o.clientHeight*i.y,d=a*i.x,p=n*i.y;return{width:s,height:l,x:d,y:p}}function li(o,e,t){let n;if(e==="viewport")n=Nl(o,t);else if(e==="document")n=Tl(Oe(o));else if(ue(e))n=_l(e,t);else{let a=fi(o);n={...e,x:e.x-a.x,y:e.y-a.y}}return Ke(n)}function gi(o,e){let t=Ze(o);return t===e||!ue(t)||jt(t)?!1:te(t).position==="fixed"||gi(t,e)}function Pl(o,e){let t=e.get(o);if(t)return t;let n=Sr(o,[],!1).filter(l=>ue(l)&&Se(l)!=="body"),a=null,i=te(o).position==="fixed",s=i?Ze(o):o;for(;ue(s)&&!jt(s);){let l=te(s),d=Or(s);!d&&l.position==="fixed"&&(a=null),(i?!d&&!a:!d&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||ft(s)&&!d&&gi(o,s))?n=n.filter(h=>h!==s):a=l,s=Ze(s)}return e.set(o,n),n}function Ll(o){let{element:e,boundary:t,rootBoundary:n,strategy:a}=o,s=[...t==="clippingAncestors"?Pl(e,this._c):[].concat(t),n],l=s[0],d=s.reduce((p,h)=>{let f=li(e,h,a);return p.top=pt(f.top,p.top),p.right=$o(f.right,p.right),p.bottom=$o(f.bottom,p.bottom),p.left=pt(f.left,p.left),p},li(e,l,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function kl(o){return ui(o)}function Dl(o,e,t){let n=ae(e),a=Oe(e),i=t==="fixed",s=Vt(o,!0,i,e),l={scrollLeft:0,scrollTop:0},d=xe(0);if(n||!n&&!i)if((Se(e)!=="body"||ft(a))&&(l=Gt(e)),n){let p=Vt(e,!0,i,e);d.x=p.x+e.clientLeft,d.y=p.y+e.clientTop}else a&&(d.x=hi(a));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function di(o,e){return!ae(o)||te(o).position==="fixed"?null:e?e(o):o.offsetParent}function mi(o,e){let t=Y(o);if(!ae(o))return t;let n=di(o,e);for(;n&&ii(n)&&te(n).position==="static";)n=di(n,e);return n&&(Se(n)==="html"||Se(n)==="body"&&te(n).position==="static"&&!Or(n))?t:n||si(o)||t}var Fl=async function(o){let{reference:e,floating:t,strategy:n}=o,a=this.getOffsetParent||mi,i=this.getDimensions;return{reference:Dl(e,await a(t),n),floating:{x:0,y:0,...await i(t)}}};function Ml(o){return te(o).direction==="rtl"}var gt={convertOffsetParentRelativeRectToViewportRelativeRect:Rl,getDocumentElement:Oe,getClippingRect:Ll,getOffsetParent:mi,getElementRects:Fl,getClientRects:Il,getDimensions:kl,getScale:ht,isElement:ue,isRTL:Ml};var jo=(o,e,t)=>{let n=new Map,a={platform:gt,...t},i={...a.platform,_c:n};return oi(o,e,{...a,platform:i})};function Vo(o){return Ul(o)}function Go(o){return o.assignedSlot?o.assignedSlot:o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}function Ul(o){for(let e=o;e;e=Go(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Go(o);e;e=Go(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||t.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Bl(o,e,t){return jo(o,e,{platform:{...gt,getOffsetParent:n=>gt.getOffsetParent(n,Vo)},middleware:[Ho({crossAxis:!0}),xr({allowedPlacements:[t]})]})}async function Wl(o,e,t,n,a,i,s=4){return jo(o,e,{placement:t,strategy:a,platform:{...gt,getOffsetParent:l=>gt.getOffsetParent(l,Vo)},middleware:[Wo(s),xr({allowedPlacements:n}),zo({apply({availableHeight:l,elements:d}){i?d.floating.style.maxHeight=`min(${Math.max(0,l)}px, var(${i}))`:d.floating.style.maxHeight=`${Math.max(0,l)}px`}})]})}var Qo={};M(Qo,{FtdsBase:()=>Xo,toFtdsBase:()=>Ei});var Jo={};M(Jo,{FtLitElement:()=>J});var Zo={};M(Zo,{ScopedRegistryLitElement:()=>Kt});var Kt=class extends me{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([a,i])=>e.registry.define(a,i)));let t={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(t);return It(n,e.elementStyles),n}};var Yo={};M(Yo,{shadowQuerySelector:()=>qo,shadowQuerySelectorAll:()=>Hl});function qo(o,e,...t){var n;let a=o.querySelector(e);for(let i of t)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}function Hl(o,e,...t){let n=[...o.querySelectorAll(e)];for(let a of t)n=n.flatMap(i=>{var s,l;return[...(l=(s=i.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(a))!==null&&l!==void 0?l:[]]});return n}var Zt=function(o,e,t,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(i=(a<3?s(i):a>3?s(e,t,i):s(e,t))||i);return a>3&&i&&Object.defineProperty(e,t,i),i},xi,yi=Symbol("constructorPrototype"),bi=Symbol("constructorName"),Si=Symbol("exportpartsDebouncer"),vi=Symbol("dynamicDependenciesLoaded"),J=class extends Kt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[xi]=new Q(5),this[bi]=this.constructor.name,this[yi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[bi]&&Object.setPrototypeOf(this,this[yi])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}let e=this.constructor;e[vi]||(e[vi]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:t,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let i=[...a??[],n];t=qo(this.shadowRoot,...i)}t?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||t?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var t,n,a;if(((n=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(i=>i.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(i){console.error(i,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let i=document.createElement("style");i.classList.add("ft-lit-element--custom-stylesheet"),i.innerHTML=this.customStylesheet,this.shadowRoot.append(i)}}scheduleExportpartsUpdate(){var e,t,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&n!==void 0&&n)&&this[Si].run(()=>{var a,i;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var t,n,a,i,s,l;let d=m=>m!=null&&m.trim().length>0,p=e.filter(d).map(m=>m.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let m of(n=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let y=(i=(a=m.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],b=(l=(s=m.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(x=>x.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...y,...b).filter(d).map(x=>x.trim()).forEach(x=>h.add(x))}if(h.size===0){this.removeAttribute("exportparts");return}let f=[...h.values()].flatMap(m=>p.map(y=>`${m}:${y}--${m}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};xi=Si;Zt([L()],J.prototype,"exportpartsPrefix",void 0);Zt([Ne([])],J.prototype,"exportpartsPrefixes",void 0);Zt([L()],J.prototype,"customStylesheet",void 0);Zt([L()],J.prototype,"elementToFocus",void 0);Zt([it()],J.prototype,"useAdoptedStyleSheets",void 0);var Oi=function(o,e,t,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(i=(a<3?s(i):a>3?s(e,t,i):s(e,t))||i);return a>3&&i&&Object.defineProperty(e,t,i),i};function Ei(o){class e extends o{constructor(){super(...arguments),this.size=zt.medium,this.family=Ht.neutral}getDesignSystemBaseClasses(){return{[No(this.family)]:!0,[_o(this.size)]:!0}}}return Oi([L()],e.prototype,"size",void 0),Oi([L()],e.prototype,"family",void 0),e}var Xo=class extends Ei(J){};var wi={};var rn={};M(rn,{highlightHtml:()=>tn,highlightHtmlColorCssVariable:()=>Ci,highlightHtmlStyles:()=>$l});var qe=class o{constructor(e,t=!0,n=[],a=5e3){this.ctx=e,this.iframes=t,this.exclude=n,this.iframesTimeout=a}static matches(e,t){let n=typeof t=="string"?[t]:t,a=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(a){let i=!1;return n.every(s=>a.call(e,s)?(i=!0,!1):!0),i}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(n=>{let a=t.filter(i=>i.contains(n)).length>0;t.indexOf(n)===-1&&!a&&t.push(n)}),t}getIframeContents(e,t,n=()=>{}){let a;try{let i=e.contentWindow;if(a=i.document,!i||!a)throw new Error("iframe inaccessible")}catch{n()}a&&t(a)}isIframeBlank(e){let t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}observeIframeLoad(e,t,n){let a=!1,i=null,s=()=>{if(!a){a=!0,clearTimeout(i);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener("load",s),i=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,n){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch{n()}}waitForIframes(e,t){let n=0;this.forEachIframe(e,()=>!0,a=>{n++,this.waitForIframes(a.querySelector("html"),()=>{--n||t()})},a=>{a||t()})}forEachIframe(e,t,n,a=()=>{}){let i=e.querySelectorAll("iframe"),s=i.length,l=0;i=Array.prototype.slice.call(i);let d=()=>{--s<=0&&a(l)};s||d(),i.forEach(p=>{o.matches(p,this.exclude)?d():this.onIframeReady(p,h=>{t(p)&&(l++,n(h)),d()},d)})}createIterator(e,t,n){return document.createNodeIterator(e,t,n,!1)}createInstanceOnIframe(e){return new o(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,n){let a=e.compareDocumentPosition(n),i=Node.DOCUMENT_POSITION_PRECEDING;if(a&i)if(t!==null){let s=t.compareDocumentPosition(n),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),n;return t===null?n=e.nextNode():n=e.nextNode()&&e.nextNode(),{prevNode:t,node:n}}checkIframeFilter(e,t,n,a){let i=!1,s=!1;return a.forEach((l,d)=>{l.val===n&&(i=d,s=l.handled)}),this.compareNodeIframe(e,t,n)?(i===!1&&!s?a.push({val:n,handled:!0}):i!==!1&&!s&&(a[i].handled=!0),!0):(i===!1&&a.push({val:n,handled:!1}),!1)}handleOpenIframes(e,t,n,a){e.forEach(i=>{i.handled||this.getIframeContents(i.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,n,a)})})}iterateThroughNodes(e,t,n,a,i){let s=this.createIterator(t,e,a),l=[],d=[],p,h,f=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;f();)this.iframes&&this.forEachIframe(t,m=>this.checkIframeFilter(p,h,m,l),m=>{this.createInstanceOnIframe(m).forEachNode(e,y=>d.push(y),a)}),d.push(p);d.forEach(m=>{n(m)}),this.iframes&&this.handleOpenIframes(l,e,n,a),i()}forEachNode(e,t,n,a=()=>{}){let i=this.getContexts(),s=i.length;s||a(),i.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,t,n,()=>{--s<=0&&a()})};this.iframes?this.waitForIframes(l,d):d()})}};var qt=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new qe(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[t]=="function"&&n[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",a=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let i in t)if(t.hasOwnProperty(i)){let s=t[i],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${n}`),a+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+a))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,n,a)=>{let i=a.charAt(n+1);return/[(|)\\]/.test(i)||i===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",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"],a=[];return e.split("").forEach(i=>{n.every(s=>{if(s.indexOf(i)!==-1){if(a.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),a.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",n=this.opt.accuracy,a=typeof n=="string"?n:n.value,i=typeof n=="string"?[]:n.limiters,s="";switch(i.forEach(l=>{s+=`|${this.escapeStr(l)}`}),a){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(n=>{this.opt.separateWordSearch?n.split(" ").forEach(a=>{a.trim()&&t.indexOf(a)===-1&&t.push(a)}):n.trim()&&t.indexOf(n)===-1&&t.push(n)}),{keywords:t.sort((n,a)=>a.length-n.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],n=0;return e.sort((a,i)=>a.start-i.start).forEach(a=>{let{start:i,end:s,valid:l}=this.callNoMatchOnInvalidRanges(a,n);l&&(a.start=i,a.length=s-i,t.push(a),n=s)}),t}callNoMatchOnInvalidRanges(e,t){let n,a,i=!1;return e&&typeof e.start<"u"?(n=parseInt(e.start,10),a=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&a-t>0&&a-n>0?i=!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:a,valid:i}}checkWhitespaceRanges(e,t,n){let a,i=!0,s=n.length,l=t-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,a=d+parseInt(e.length,10),a>s&&(a=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||a-d<0||d>s||a>s?(i=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(d,a).replace(/\s+/g,"")===""&&(i=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:a,valid:i}}getTextNodes(e){let t="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,a=>{n.push({start:t.length,end:(t+=a.textContent).length,node:a})},a=>this.matchesExclude(a.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:n})})}matchesExclude(e){return qe.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,n){let a=this.opt.element?this.opt.element:"mark",i=e.splitText(t),s=i.splitText(n-t),l=document.createElement(a);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=i.textContent,i.parentNode.replaceChild(l,i),s}wrapRangeInMappedTextNode(e,t,n,a,i){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>t){if(!a(s.node))return!1;let p=t-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((y,b)=>{b>=l&&(e.nodes[b].start>0&&b!==l&&(e.nodes[b].start-=h),e.nodes[b].end-=h)}),n-=h,i(s.node.previousSibling,s.start),n>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,n,a,i){let s=t===0?0:t+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=e.exec(d.textContent))!==null&&p[s]!=="";){if(!n(p[s],d))continue;let h=p.index;if(s!==0)for(let f=1;f<s;f++)h+=p[f].length;d=this.wrapRangeInTextNode(d,h,h+p[s].length),a(d.previousSibling),e.lastIndex=0}}),i()})}wrapMatchesAcrossElements(e,t,n,a,i){let s=t===0?0:t+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let f=1;f<s;f++)p+=d[f].length;let h=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,h,f=>n(d[s],f),(f,m)=>{e.lastIndex=m,a(f)})}i()})}wrapRangeFromIndex(e,t,n,a){this.getTextNodes(i=>{let s=i.value.length;e.forEach((l,d)=>{let{start:p,end:h,valid:f}=this.checkWhitespaceRanges(l,s,i.value);f&&this.wrapRangeInMappedTextNode(i,p,h,m=>t(m,l,i.value.substring(p,h),d),m=>{n(m,l)})}),a()})}unwrapMatches(e){let t=e.parentNode,n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let n=0,a="wrapMatches",i=s=>{n++,this.opt.each(s)};this.opt.acrossElements&&(a="wrapMatchesAcrossElements"),this[a](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,n),i,()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,t){this.opt=t;let n=0,a="wrapMatches",{keywords:i,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=p=>{let h=new RegExp(this.createRegExp(p),`gm${l}`),f=0;this.log(`Searching with expression "${h}"`),this[a](h,1,(m,y)=>this.opt.filter(y,p,n,f),m=>{f++,n++,this.opt.each(m)},()=>{f===0&&this.opt.noMatch(p),i[s-1]===p?this.opt.done(n):d(i[i.indexOf(p)+1])})};this.opt.acrossElements&&(a="wrapMatchesAcrossElements"),s===0?this.opt.done(n):d(i[0])}markRanges(e,t){this.opt=t;let n=0,a=this.checkRanges(e);a&&a.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(a)),this.wrapRangeFromIndex(a,(i,s,l,d)=>this.opt.filter(i,s,l,d),(i,s)=>{n++,this.opt.each(i,s)},()=>{this.opt.done(n)})):this.opt.done(n)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,n=>{this.unwrapMatches(n)},n=>{let a=qe.matches(n,t),i=this.matchesExclude(n);return!a||i?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function en(o){let e=new qt(o);return this.mark=(t,n)=>(e.mark(t,n),this),this.markRegExp=(t,n)=>(e.markRegExp(t,n),this),this.markRanges=(t,n)=>(e.markRanges(t,n),this),this.unmark=t=>(e.unmark(t),this),this}var zl=en,Ci=r.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),$l=$`
|
|
6
6
|
.highlight-html-match {
|
|
7
7
|
background: ${Ci};
|
|
8
8
|
}
|
|
9
|
-
`;function tn(o,e,t){var n,a;let i=o.getAttribute("data-highlight-html-query");if((i??"")!==(e??"")){let s=new
|
|
9
|
+
`;function tn(o,e,t){var n,a;let i=o.getAttribute("data-highlight-html-query");if((i??"")!==(e??"")){let s=new zl(o);if(s.unmark(),e&&e.trim()){let l={className:(n=t?.className)!==null&&n!==void 0?n:"highlight-html-match",acrossElements:!0};t?.attributes!=null&&(l.each=p=>{for(let h in t.attributes)p.setAttribute(h,t.attributes[h])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((a=e.match(/"[^"]+"/g))!==null&&a!==void 0?a:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}o.setAttribute("data-highlight-html-query",e??"")}var on={};M(on,{noTextInputDefaultClearButton:()=>Kl,noTextSelect:()=>jl,safariEllipsisFix:()=>Vl,wordWrap:()=>Gl});var jl=$`
|
|
10
10
|
.ft-no-text-select {
|
|
11
11
|
-webkit-touch-callout: none;
|
|
12
12
|
-webkit-user-select: none;
|
|
@@ -15,7 +15,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
15
15
|
-ms-user-select: none;
|
|
16
16
|
user-select: none;
|
|
17
17
|
}
|
|
18
|
-
`,
|
|
18
|
+
`,Gl=$`
|
|
19
19
|
.ft-word-wrap {
|
|
20
20
|
white-space: normal;
|
|
21
21
|
word-wrap: break-word;
|
|
@@ -27,7 +27,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
27
27
|
-webkit-hyphens: auto;
|
|
28
28
|
hyphens: auto
|
|
29
29
|
}
|
|
30
|
-
`,
|
|
30
|
+
`,Vl=$`
|
|
31
31
|
.ft-safari-ellipsis-fix {
|
|
32
32
|
margin-right: 0;
|
|
33
33
|
|
|
@@ -38,14 +38,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
38
38
|
display: inline-block;
|
|
39
39
|
width: 0;
|
|
40
40
|
}
|
|
41
|
-
`,
|
|
41
|
+
`,Kl=$`
|
|
42
42
|
input::-webkit-search-cancel-button,
|
|
43
43
|
input::-webkit-search-decoration,
|
|
44
44
|
input::-webkit-search-results-button,
|
|
45
45
|
input::-webkit-search-results-decoration {
|
|
46
46
|
display: none;
|
|
47
47
|
}
|
|
48
|
-
`;var Ai={};var nn={};U(nn,{ParametrizedLabelResolver:()=>Yt});var Yt=class o{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var n,a;e=this.resolvePluralKey(e,t);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return o.replaceParameters(i,...t)}static replaceParameters(e,...t){return t.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>o.formatValue(n,s))),e}resolvePluralKey(e,t){for(let n of t)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,t){return e instanceof Date?o.formatDate(e,t):e??""}static formatDate(e,t){let n=a=>t?.includes("date")?e.toLocaleDateString(a):t?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var Tn={};U(Tn,{FtCommandQueue:()=>Jt,FtLitElementRedux:()=>ke,FtReduxStore:()=>we,ReduxWatcher:()=>Tr,clearAllStores:()=>Nd,isFtReduxStore:()=>Ye,redux:()=>pe,reduxEventListener:()=>Vl,reduxReactive:()=>Kl,watch:()=>_d});var Kl=()=>(o,e)=>{var t;let n=o.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(t=n.reduxReactiveProperties)===null||t===void 0||t.add(e)},pe=o=>{let e=o??{};return(t,n)=>{var a;let i={hasChanged:Ke,attribute:!1,...e};L(i)(t,n);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}},Vl=o=>(e,t)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(t,o)};var Jt=class{constructor(){this.queue=[]}add(e,t=!1){t&&this.clear(e.type),this.queue.push(e)}consume(e){let t=this.queue.find(n=>n.type===e);return t&&(this.queue=this.queue.filter(n=>n!==t)),t}clear(e){typeof e=="string"?this.queue=this.queue.filter(t=>t.type!==e):this.queue=this.queue.filter(t=>!e.test(t.type))}};function Ye(o){var e;return(e=o?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ri,Ii,Ti,Qt=Symbol("internalReduxEventsUnsubscribers"),Le=Symbol("internalStoresUnsubscribers"),Je=Symbol("internalStores"),ke=class extends J{constructor(){super(...arguments),this[Ri]=new Map,this[Ii]=new Map,this[Ti]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(t=>e.has(t))&&this.updateFromStores()}getUnnamedStore(){if(this[Je].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Je].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Je].get(e)}addStore(e,t){var n;t=(n=t??(Ye(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(t),this[Je].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}removeStore(e){let t=typeof e=="string"?e:e.name;this.unsubscribeFromStore(t),this[Je].delete(t)}setupStores(){this.unsubscribeFromStores(),this[Je].forEach((e,t)=>this.subscribeToStore(t,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,t)=>{let n=this.constructor.getPropertyOptions(t);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:t)){let a=this.getStore(e.store);a&&(e.store?this[Le].has(e.store):this[Le].size>0)&&(this[t]=e.selector(a.getState(),this))}})}subscribeToStore(e,t){var n;this[Le].set(e,t.subscribe(()=>this.updateFromStores())),this[Qt].set(e,[]),Ye(t)&&t.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||t.name===a.store)){let s=l=>this[i](l);t.addEventListener(a.eventName,s),this[Qt].get(e).push(()=>t.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Le].forEach((e,t)=>this.unsubscribeFromStore(t))}unsubscribeFromStore(e){var t;this[Le].has(e)&&this[Le].get(e)(),this[Le].delete(e),(t=this[Qt].get(e))===null||t===void 0||t.forEach(n=>n()),this[Qt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ri=Le,Ii=Je,Ti=Qt;ke.reduxProperties=new Map;ke.reduxReactiveProperties=new Set;ke.reduxEventListeners=new Map;function oe(o){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+o+(t.length?" "+t.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ee(o){return!!o&&!!o[$]}function ie(o){var e;return!!o&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===td}(o)||Array.isArray(o)||!!o[Fi]||!!(!((e=o.constructor)===null||e===void 0)&&e[Fi])||hn(o)||gn(o))}function Qe(o,e,t){t===void 0&&(t=!1),yt(o)===0?(t?Object.keys:mt)(o).forEach(function(n){t&&typeof n=="symbol"||e(n,o[n],o)}):o.forEach(function(n,a){return e(a,n,o)})}function yt(o){var e=o[$];return e?e.i>3?e.i-4:e.i:Array.isArray(o)?1:hn(o)?2:gn(o)?3:0}function gt(o,e){return yt(o)===2?o.has(e):Object.prototype.hasOwnProperty.call(o,e)}function Zl(o,e){return yt(o)===2?o.get(e):o[e]}function Ui(o,e,t){var n=yt(o);n===2?o.set(e,t):n===3?o.add(t):o[e]=t}function Mi(o,e){return o===e?o!==0||1/o==1/e:o!=o&&e!=e}function hn(o){return Xl&&o instanceof Map}function gn(o){return ed&&o instanceof Set}function De(o){return o.o||o.t}function mn(o){if(Array.isArray(o))return Array.prototype.slice.call(o);var e=Hi(o);delete e[$];for(var t=mt(e),n=0;n<t.length;n++){var a=t[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:o[a]})}return Object.create(Object.getPrototypeOf(o),e)}function yn(o,e){return e===void 0&&(e=!1),bn(o)||Ee(o)||!ie(o)||(yt(o)>1&&(o.set=o.add=o.clear=o.delete=ql),Object.freeze(o),e&&Qe(o,function(t,n){return yn(n,!0)},!0)),o}function ql(){oe(2)}function bn(o){return o==null||typeof o!="object"||Object.isFrozen(o)}function fe(o){var e=fn[o];return e||oe(18,o),e}function Yl(o,e){fn[o]||(fn[o]=e)}function dn(){return er}function an(o,e){e&&(fe("Patches"),o.u=[],o.s=[],o.v=e)}function wr(o){un(o),o.p.forEach(Jl),o.p=null}function un(o){o===er&&(er=o.l)}function Ni(o){return er={p:[],l:er,h:o,m:!0,_:0}}function Jl(o){var e=o[$];e.i===0||e.i===1?e.j():e.g=!0}function sn(o,e){e._=e.p.length;var t=e.p[0],n=o!==void 0&&o!==t;return e.h.O||fe("ES5").S(e,o,n),n?(t[$].P&&(wr(e),oe(4)),ie(o)&&(o=Cr(e,o),e.l||Ar(e,o)),e.u&&fe("Patches").M(t[$].t,o,e.u,e.s)):o=Cr(e,t,[]),wr(e),e.u&&e.v(e.u,e.s),o!==Wi?o:void 0}function Cr(o,e,t){if(bn(e))return e;var n=e[$];if(!n)return Qe(e,function(l,d){return _i(o,n,e,l,d,t)},!0),e;if(n.A!==o)return e;if(!n.P)return Ar(o,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=mn(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Qe(i,function(l,d){return _i(o,n,a,l,d,t,s)}),Ar(o,a,!1),t&&o.u&&fe("Patches").N(n,t,o.u,o.s)}return n.o}function _i(o,e,t,n,a,i,s){if(Ee(a)){var l=Cr(o,a,i&&e&&e.i!==3&&!gt(e.R,n)?i.concat(n):void 0);if(Ui(t,n,l),!Ee(l))return;o.m=!1}else s&&t.add(a);if(ie(a)&&!bn(a)){if(!o.h.D&&o._<1)return;Cr(o,a),e&&e.A.l||Ar(o,a)}}function Ar(o,e,t){t===void 0&&(t=!1),!o.l&&o.h.D&&o.m&&yn(e,t)}function cn(o,e){var t=o[$];return(t?De(t):o)[e]}function Pi(o,e){if(e in o)for(var t=Object.getPrototypeOf(o);t;){var n=Object.getOwnPropertyDescriptor(t,e);if(n)return n;t=Object.getPrototypeOf(t)}}function Fe(o){o.P||(o.P=!0,o.l&&Fe(o.l))}function ln(o){o.o||(o.o=mn(o.t))}function pn(o,e,t){var n=hn(e)?fe("MapSet").F(e,t):gn(e)?fe("MapSet").T(e,t):o.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:dn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,p=tr;s&&(d=[l],p=Xt);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(e,t):fe("ES5").J(e,t);return(t?t.A:dn()).p.push(n),n}function Ql(o){return Ee(o)||oe(22,o),function e(t){if(!ie(t))return t;var n,a=t[$],i=yt(t);if(a){if(!a.P&&(a.i<4||!fe("ES5").K(a)))return a.t;a.I=!0,n=Li(t,i),a.I=!1}else n=Li(t,i);return Qe(n,function(s,l){a&&Zl(a.t,s)===l||Ui(n,s,e(l))}),i===3?new Set(n):n}(o)}function Li(o,e){switch(e){case 2:return new Map(o);case 3:return Array.from(o)}return mn(o)}function Bi(){function o(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[$];return tr.get(p,s)},set:function(p){var h=this[$];tr.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][$];if(!d.P)switch(d.i){case 5:n(d)&&Fe(d);break;case 4:t(d)&&Fe(d)}}}function t(s){for(var l=s.t,d=s.k,p=mt(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==$){var m=l[f];if(m===void 0&&!gt(l,f))return!0;var y=d[f],b=y&&y[$];if(b?b.t!==m:!Mi(y,m))return!0}}var x=!!l[$];return p.length!==mt(l).length+(x?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&oe(3,JSON.stringify(De(s)))}var i={};Yl("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,m){if(f){for(var y=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(y,""+b,o(b,!0));return y}var x=Hi(m);delete x[$];for(var C=mt(x),w=0;w<C.length;w++){var A=C[w];x[A]=o(A,f||!!x[A].enumerable)}return Object.create(Object.getPrototypeOf(m),x)}(d,s),h={i:d?5:4,A:l?l.A:dn(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,$,{value:h,writable:!0}),p},S:function(s,l,d){d?Ee(l)&&l[$].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[$];if(f){var m=f.t,y=f.k,b=f.R,x=f.i;if(x===4)Qe(y,function(E){E!==$&&(m[E]!==void 0||gt(m,E)?b[E]||p(y[E]):(b[E]=!0,Fe(f)))}),Qe(m,function(E){y[E]!==void 0||gt(y,E)||(b[E]=!1,Fe(f))});else if(x===5){if(n(f)&&(Fe(f),b.length=!0),y.length<m.length)for(var C=y.length;C<m.length;C++)b[C]=!1;else for(var w=m.length;w<y.length;w++)b[w]=!0;for(var A=Math.min(y.length,m.length),O=0;O<A;O++)y.hasOwnProperty(O)||(b[O]=!0),b[O]===void 0&&p(y[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):n(s)}})}var ki,er,vn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Xl=typeof Map<"u",ed=typeof Set<"u",Di=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Wi=vn?Symbol.for("immer-nothing"):((ki={})["immer-nothing"]=!0,ki),Fi=vn?Symbol.for("immer-draftable"):"__$immer_draftable",$=vn?Symbol.for("immer-state"):"__$immer_state";var td=""+Object.prototype.constructor,mt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:Object.getOwnPropertyNames,Hi=Object.getOwnPropertyDescriptors||function(o){var e={};return mt(o).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(o,t)}),e},fn={},tr={get:function(o,e){if(e===$)return o;var t=De(o);if(!gt(t,e))return function(a,i,s){var l,d=Pi(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0}(o,t,e);var n=t[e];return o.I||!ie(n)?n:n===cn(o.t,e)?(ln(o),o.o[e]=pn(o.A.h,n,o)):n},has:function(o,e){return e in De(o)},ownKeys:function(o){return Reflect.ownKeys(De(o))},set:function(o,e,t){var n=Pi(De(o),e);if(n?.set)return n.set.call(o.k,t),!0;if(!o.P){var a=cn(De(o),e),i=a?.[$];if(i&&i.t===t)return o.o[e]=t,o.R[e]=!1,!0;if(Mi(t,a)&&(t!==void 0||gt(o.t,e)))return!0;ln(o),Fe(o)}return o.o[e]===t&&(t!==void 0||e in o.o)||Number.isNaN(t)&&Number.isNaN(o.o[e])||(o.o[e]=t,o.R[e]=!0),!0},deleteProperty:function(o,e){return cn(o.t,e)!==void 0||e in o.t?(o.R[e]=!1,ln(o),Fe(o)):delete o.R[e],o.o&&delete o.o[e],!0},getOwnPropertyDescriptor:function(o,e){var t=De(o),n=Reflect.getOwnPropertyDescriptor(t,e);return n&&{writable:!0,configurable:o.i!==1||e!=="length",enumerable:n.enumerable,value:t[e]}},defineProperty:function(){oe(11)},getPrototypeOf:function(o){return Object.getPrototypeOf(o.t)},setPrototypeOf:function(){oe(12)}},Xt={};Qe(tr,function(o,e){Xt[o]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Xt.deleteProperty=function(o,e){return Xt.set.call(this,o,e,void 0)},Xt.set=function(o,e,t){return tr.set.call(this,o[0],e,t,o[0])};var rd=function(){function o(t){var n=this;this.O=Di,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=n;return function(x){var C=this;x===void 0&&(x=l);for(var w=arguments.length,A=Array(w>1?w-1:0),O=1;O<w;O++)A[O-1]=arguments[O];return d.produce(x,function(E){var S;return(S=i).call.apply(S,[C,E].concat(A))})}}var p;if(typeof i!="function"&&oe(6),s!==void 0&&typeof s!="function"&&oe(7),ie(a)){var h=Ni(n),f=pn(n,a,void 0),m=!0;try{p=i(f),m=!1}finally{m?wr(h):un(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(x){return an(h,s),sn(x,h)},function(x){throw wr(h),x}):(an(h,s),sn(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Wi&&(p=void 0),n.D&&yn(p,!0),s){var y=[],b=[];fe("Patches").M(a,p,y,b),s(y,b)}return p}oe(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,function(y){return a.apply(void 0,[y].concat(f))})};var s,l,d=n.produce(a,i,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=o.prototype;return e.createDraft=function(t){ie(t)||oe(8),Ee(t)&&(t=Ql(t));var n=Ni(this),a=pn(this,t,void 0);return a[$].C=!0,un(n),a},e.finishDraft=function(t,n){var a=t&&t[$],i=a.A;return an(i,n),sn(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Di&&oe(20),this.O=t},e.applyPatches=function(t,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}a>-1&&(n=n.slice(a+1));var s=fe("Patches").$;return Ee(t)?s(t,n):this.produce(t,function(l){return s(l,n)})},o}(),re=new rd,od=re.produce,Em=re.produceWithPatches.bind(re),wm=re.setAutoFreeze.bind(re),Cm=re.setUseProxies.bind(re),Am=re.applyPatches.bind(re),Rm=re.createDraft.bind(re),Im=re.finishDraft.bind(re),Rr=od;function Xe(o){"@babel/helpers - typeof";return Xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xe(o)}function $i(o,e){if(Xe(o)!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var n=t.call(o,e||"default");if(Xe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function zi(o){var e=$i(o,"string");return Xe(e)=="symbol"?e:e+""}function ji(o,e,t){return(e=zi(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function Gi(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),t.push.apply(t,n)}return t}function xn(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Gi(Object(t),!0).forEach(function(n){ji(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Gi(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function Z(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var Ki=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Sn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ir={INIT:"@@redux/INIT"+Sn(),REPLACE:"@@redux/REPLACE"+Sn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Sn()}};function nd(o){if(typeof o!="object"||o===null)return!1;for(var e=o;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(o)===e}function On(o,e,t){var n;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(Z(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(Z(1));return t(On)(o,e)}if(typeof o!="function")throw new Error(Z(2));var a=o,i=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Z(3));return i}function f(x){if(typeof x!="function")throw new Error(Z(4));if(d)throw new Error(Z(5));var C=!0;return p(),l.push(x),function(){if(C){if(d)throw new Error(Z(6));C=!1,p();var A=l.indexOf(x);l.splice(A,1),s=null}}}function m(x){if(!nd(x))throw new Error(Z(7));if(typeof x.type>"u")throw new Error(Z(8));if(d)throw new Error(Z(9));try{d=!0,i=a(i,x)}finally{d=!1}for(var C=s=l,w=0;w<C.length;w++){var A=C[w];A()}return x}function y(x){if(typeof x!="function")throw new Error(Z(10));a=x,m({type:Ir.REPLACE})}function b(){var x,C=f;return x={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(Z(11));function O(){A.next&&A.next(h())}O();var E=C(O);return{unsubscribe:E}}},x[Ki]=function(){return this},x}return m({type:Ir.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:y},n[Ki]=b,n}function ad(o){Object.keys(o).forEach(function(e){var t=o[e],n=t(void 0,{type:Ir.INIT});if(typeof n>"u")throw new Error(Z(12));if(typeof t(void 0,{type:Ir.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Z(13))})}function Vi(o){for(var e=Object.keys(o),t={},n=0;n<e.length;n++){var a=e[n];typeof o[a]=="function"&&(t[a]=o[a])}var i=Object.keys(t),s,l;try{ad(t)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,y={},b=0;b<i.length;b++){var x=i[b],C=t[x],w=p[x],A=C(w,h);if(typeof A>"u"){var O=h&&h.type;throw new Error(Z(14))}y[x]=A,m=m||A!==w}return m=m||i.length!==Object.keys(p).length,m?y:p}}function bt(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Zi(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(Z(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=bt.apply(void 0,l)(a.dispatch),xn(xn({},a),{},{dispatch:i})}}}function qi(o){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,o):s(l)}}};return e}var Yi=qi();Yi.withExtraArgument=qi;var En=Yi;var ts=function(){var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},o(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");o(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),id=function(o,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return t.label++,{value:p[1],done:!1};case 5:t.label++,a=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){t.label=p[1];break}if(p[0]===6&&t.label<i[1]){t.label=i[1],i=p;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(p);break}i[2]&&t.ops.pop(),t.trys.pop();continue}p=e.call(o,t)}catch(h){p=[6,h],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},vt=function(o,e){for(var t=0,n=e.length,a=o.length;t<n;t++,a++)o[a]=e[t];return o},sd=Object.defineProperty,cd=Object.defineProperties,ld=Object.getOwnPropertyDescriptors,Ji=Object.getOwnPropertySymbols,dd=Object.prototype.hasOwnProperty,ud=Object.prototype.propertyIsEnumerable,Qi=function(o,e,t){return e in o?sd(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t},Ue=function(o,e){for(var t in e||(e={}))dd.call(e,t)&&Qi(o,t,e[t]);if(Ji)for(var n=0,a=Ji(e);n<a.length;n++){var t=a[n];ud.call(e,t)&&Qi(o,t,e[t])}return o},wn=function(o,e){return cd(o,ld(e))},pd=function(o,e,t){return new Promise(function(n,a){var i=function(d){try{l(t.next(d))}catch(p){a(p)}},s=function(d){try{l(t.throw(d))}catch(p){a(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((t=t.apply(o,e)).next())})};var fd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?bt:bt.apply(null,arguments)},Km=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(o){return o}};function hd(o){if(typeof o!="object"||o===null)return!1;var e=Object.getPrototypeOf(o);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}var gd=function(o){ts(e,o);function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=o.apply(this,t)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,vt([void 0],t[0].concat(this)))):new(e.bind.apply(e,vt([void 0],t.concat(this))))},e}(Array),md=function(o){ts(e,o);function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=o.apply(this,t)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,vt([void 0],t[0].concat(this)))):new(e.bind.apply(e,vt([void 0],t.concat(this))))},e}(Array);function Rn(o){return ie(o)?Rr(o,function(){}):o}function yd(o){return typeof o=="boolean"}function bd(){return function(e){return vd(e)}}function vd(o){o===void 0&&(o={});var e=o.thunk,t=e===void 0?!0:e,n=o.immutableCheck,a=n===void 0?!0:n,i=o.serializableCheck,s=i===void 0?!0:i,l=new gd;if(t&&(yd(t)?l.push(En):l.push(En.withExtraArgument(t.extraArgument))),0){if(a)var d;if(s)var p}return l}var Cn=!0;function rs(o){var e=bd(),t=o||{},n=t.reducer,a=n===void 0?void 0:n,i=t.middleware,s=i===void 0?e():i,l=t.devTools,d=l===void 0?!0:l,p=t.preloadedState,h=p===void 0?void 0:p,f=t.enhancers,m=f===void 0?void 0:f,y;if(typeof a=="function")y=a;else if(hd(a))y=Vi(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!Cn&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Cn&&b.some(function(E){return typeof E!="function"}))throw new Error("each middleware provided to configureStore must be a function");var x=Zi.apply(void 0,b),C=bt;d&&(C=fd(Ue({trace:!Cn},typeof d=="object"&&d)));var w=new md(x),A=w;Array.isArray(m)?A=vt([x],m):typeof m=="function"&&(A=m(w));var O=C.apply(void 0,A);return On(y,h,O)}function Me(o,e){function t(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Ue(Ue({type:o,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:o,payload:n[0]}}return t.toString=function(){return""+o},t.type=o,t.match=function(n){return n.type===o},t}function os(o){var e={},t=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return t.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return o(a),[e,t,n]}function xd(o){return typeof o=="function"}function Sd(o,e,t,n){t===void 0&&(t=[]);var a=typeof e=="function"?os(e):[e,t,n],i=a[0],s=a[1],l=a[2],d;if(xd(o))d=function(){return Rn(o())};else{var p=Rn(o);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var y=vt([i[m.type]],s.filter(function(b){var x=b.matcher;return x(m)}).map(function(b){var x=b.reducer;return x}));return y.filter(function(b){return!!b}).length===0&&(y=[l]),y.reduce(function(b,x){if(x)if(Ee(b)){var C=b,w=x(C,m);return w===void 0?b:w}else{if(ie(b))return Rr(b,function(A){return x(A,m)});var w=x(b,m);if(w===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}return b},f)}return h.getInitialState=d,h}function Od(o,e){return o+"/"+e}function ns(o){var e=o.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof o.initialState=="function"?o.initialState:Rn(o.initialState),n=o.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],m=Od(e,h),y,b;"reducer"in f?(y=f.reducer,b=f.prepare):y=f,i[h]=y,s[m]=y,l[h]=b?Me(m,b):Me(m)});function d(){var h=typeof o.extraReducers=="function"?os(o.extraReducers):[o.extraReducers],f=h[0],m=f===void 0?{}:f,y=h[1],b=y===void 0?[]:y,x=h[2],C=x===void 0?void 0:x,w=Ue(Ue({},m),s);return Sd(t,function(A){for(var O in w)A.addCase(O,w[O]);for(var E=0,S=b;E<S.length;E++){var R=S[E];A.addMatcher(R.matcher,R.reducer)}C&&A.addDefaultCase(C)})}var p;return{name:e,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Ed="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",wd=function(o){o===void 0&&(o=21);for(var e="",t=o;t--;)e+=Ed[Math.random()*64|0];return e},Cd=["name","message","stack","code"],An=function(){function o(e,t){this.payload=e,this.meta=t}return o}(),Xi=function(){function o(e,t){this.payload=e,this.meta=t}return o}(),Ad=function(o){if(typeof o=="object"&&o!==null){for(var e={},t=0,n=Cd;t<n.length;t++){var a=n[t];typeof o[a]=="string"&&(e[a]=o[a])}return e}return{message:String(o)}},Ym=function(){function o(e,t,n){var a=Me(e+"/fulfilled",function(h,f,m,y){return{payload:h,meta:wn(Ue({},y||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),i=Me(e+"/pending",function(h,f,m){return{payload:void 0,meta:wn(Ue({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Me(e+"/rejected",function(h,f,m,y,b){return{payload:y,error:(n&&n.serializeError||Ad)(h||"Rejected"),meta:wn(Ue({},b||{}),{arg:m,requestId:f,rejectedWithValue:!!y,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(f,m,y){var b=n?.idGenerator?n.idGenerator(h):wd(),x=new d,C,w=!1;function A(E){C=E,x.abort()}var O=function(){return pd(this,null,function(){var E,S,R,_,P,D,I;return id(this,function(g){switch(g.label){case 0:return g.trys.push([0,4,,5]),_=(E=n?.condition)==null?void 0:E.call(n,h,{getState:m,extra:y}),Id(_)?[4,_]:[3,2];case 1:_=g.sent(),g.label=2;case 2:if(_===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return w=!0,P=new Promise(function(v,T){return x.signal.addEventListener("abort",function(){return T({name:"AbortError",message:C||"Aborted"})})}),f(i(b,h,(S=n?.getPendingMeta)==null?void 0:S.call(n,{requestId:b,arg:h},{getState:m,extra:y}))),[4,Promise.race([P,Promise.resolve(t(h,{dispatch:f,getState:m,extra:y,requestId:b,signal:x.signal,abort:A,rejectWithValue:function(v,T){return new An(v,T)},fulfillWithValue:function(v,T){return new Xi(v,T)}})).then(function(v){if(v instanceof An)throw v;return v instanceof Xi?a(v.payload,b,h,v.meta):a(v,b,h)})])];case 3:return R=g.sent(),[3,5];case 4:return D=g.sent(),R=D instanceof An?s(null,b,h,D.payload,D.meta):s(D,b,h),[3,5];case 5:return I=n&&!n.dispatchConditionRejection&&s.match(R)&&R.meta.condition,I||f(R),[2,R]}})})}();return Object.assign(O,{abort:A,requestId:b,arg:h,unwrap:function(){return O.then(Rd)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return o.withTypes=function(){return o},o}();function Rd(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function Id(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var as="listener",is="completed",ss="cancelled",Jm="task-"+ss,Qm="task-"+is,Xm=as+"-"+ss,ey=as+"-"+is;var In="listenerMiddleware";var ty=Me(In+"/add"),ry=Me(In+"/removeAll"),oy=Me(In+"/remove");var es,ny=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(o){return(es||(es=Promise.resolve())).then(o).catch(function(e){return setTimeout(function(){throw e},0)})},Td=function(o){return function(e){setTimeout(e,o)}},ay=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Td(10);Bi();window.ftReduxStores||(window.ftReduxStores={});var we=class o extends be{static get(e){var t;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Ye(i))return i;if(a==null)return;let s=ns({...a,reducers:(t=a.reducers)!==null&&t!==void 0?t:{}}),l=rs({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[a.name]=new o(s,l,a.eventBus)}constructor(e,t,n){super(),this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.commands=new Jt;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let d=s,p=i[d];return p?(...h)=>{let f=p(...h.map(a));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Nd(){var o;for(let e of Object.values((o=window.ftReduxStores)!==null&&o!==void 0?o:{}))Ye(e)&&e.clear()}var Tr=class{constructor(e,t,n){this.store=e,this.valueSelector=t,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),t=this.valueSelector(e);Ke(this.lastValue,t)&&(this.callback(t,e),this.lastValue=t)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function _d(o,e,t){return new Tr(o,e,t).watch()}var Pn={};U(Pn,{scrollHelper:()=>Pd});var Nn,Nr=new Map,_n=class{lock(e,t){if(t){let n=Nr.get(t);if(n==null||n===e)return Nr.set(t,e),t}}release(e,t){t&&Nr.get(t)===e&&Nr.delete(t)}findFirstScrollableParent(e){var t;let n,a;for(let i of Ro(e)){let s=i,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&a==null&&(a=s)}return(t=n??a)!==null&&t!==void 0?t:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){var n,a;let i=0;for(;t&&t.offsetParent!==e.offsetParent;)i+=(n=t.offsetTop)!==null&&n!==void 0?n:0,t=t.offsetParent;return i+((a=t?.offsetTop)!==null&&a!==void 0?a:0)-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,s=a,l=Mt(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(t?.position,l)*(i-s)+s;n.scrollTo({behavior:t?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Nn=window.FluidTopicsScrollHelper)!==null&&Nn!==void 0?Nn:new _n;var Pd=window.FluidTopicsScrollHelper;var kn={};U(kn,{SearchPlaceConverter:()=>Ot,SearchPlaceQueryParams:()=>M,isSearchPlaceQueryParams:()=>Ms,serializeRequest:()=>Fd});var kd=tc(ls(),1);var ds;(function(o){o.black="black",o.green="green",o.blue="blue",o.purple="purple",o.red="red",o.orange="orange",o.yellow="yellow"})(ds||(ds={}));var us;(function(o){o.OFFICIAL="OFFICIAL",o.PERSONAL="PERSONAL",o.SHARED="SHARED"})(us||(us={}));var ps;(function(o){o.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",o.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",o.PERSONAL_BOOK="PERSONAL_BOOK",o.MAP_ATTACHMENT="MAP_ATTACHMENT",o.RESOURCE="RESOURCE"})(ps||(ps={}));var fs;(function(o){o.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",o.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",o.PERSONAL_BOOK="PERSONAL_BOOK",o.MAP_ATTACHMENT="MAP_ATTACHMENT",o.RESOURCE="RESOURCE"})(fs||(fs={}));var hs;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(hs||(hs={}));var gs;(function(o){o.VALUE="VALUE",o.DATE="DATE",o.RANGE="RANGE"})(gs||(gs={}));var ms;(function(o){o.BOOKMARK__CREATE="BOOKMARK__CREATE",o.BOOKMARK__DELETE="BOOKMARK__DELETE",o.CASE_DEFLECTION__START="CASE_DEFLECTION__START",o.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",o.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",o.COLLECTION__CREATE="COLLECTION__CREATE",o.COLLECTION__UPDATE="COLLECTION__UPDATE",o.COLLECTION__DELETE="COLLECTION__DELETE",o.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",o.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",o.DOCUMENT__PRINT="DOCUMENT__PRINT",o.DOCUMENT__PROCESS="DOCUMENT__PROCESS",o.DOCUMENT__RATE="DOCUMENT__RATE",o.DOCUMENT__SEARCH="DOCUMENT__SEARCH",o.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",o.DOCUMENT__UNRATE="DOCUMENT__UNRATE",o.FEEDBACK__SEND="FEEDBACK__SEND",o.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",o.GEN_AI__RATE="GEN_AI__RATE",o.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",o.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",o.KHUB__PROCESS="KHUB__PROCESS",o.KHUB__SEARCH="KHUB__SEARCH",o.LABELS__DOWNLOAD="LABELS__DOWNLOAD",o.LINK__SHARE="LINK__SHARE",o.PAGE__DISPLAY="PAGE__DISPLAY",o.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",o.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",o.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",o.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",o.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",o.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",o.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",o.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",o.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",o.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",o.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",o.TOPIC__DISPLAY="TOPIC__DISPLAY",o.TOPIC__RATE="TOPIC__RATE",o.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",o.TOPIC__UNRATE="TOPIC__UNRATE",o.USER__LOGIN="USER__LOGIN",o.USER__LOGOUT="USER__LOGOUT",o.HEARTBEAT="HEARTBEAT"})(ms||(ms={}));var ys;(function(o){o.THIRD_PARTY="THIRD_PARTY",o.OFF_THE_GRID="OFF_THE_GRID",o.CONTENT_PACKAGER="CONTENT_PACKAGER",o.PAGES="PAGES",o.DESIGNED_READER="DESIGNED_READER"})(ys||(ys={}));var bs;(function(o){o.HOMEPAGE="HOMEPAGE",o.CUSTOM="CUSTOM",o.HEADER="HEADER",o.READER="READER",o.TOPIC_TEMPLATE="TOPIC_TEMPLATE",o.SEARCH="SEARCH",o.SEARCH_RESULT="SEARCH_RESULT"})(bs||(bs={}));var vs;(function(o){o.CLASSIC="CLASSIC",o.CUSTOM="CUSTOM",o.DESIGNER="DESIGNER"})(vs||(vs={}));var xs;(function(o){o.AND="AND",o.OR="OR",o.MONOVALUED="MONOVALUED"})(xs||(xs={}));var Ss;(function(o){o.NONE="NONE",o.ALPHABET="ALPHABET",o.VERSION="VERSION"})(Ss||(Ss={}));var Os;(function(o){o.STARS="STARS",o.LIKE="LIKE",o.DICHOTOMOUS="DICHOTOMOUS",o.NO_RATING="NO_RATING"})(Os||(Os={}));var Es;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR",o.CUSTOM="CUSTOM"})(Es||(Es={}));var ws;(function(o){o.ASC="ASC",o.DESC="DESC"})(ws||(ws={}));var Cs;(function(o){o.ALPHA="ALPHA",o.NATURAL="NATURAL"})(Cs||(Cs={}));var Ln;(function(o){o.EVERYWHERE="EVERYWHERE",o.TITLE_ONLY="TITLE_ONLY",o.NONE="NONE"})(Ln||(Ln={}));var _s=o=>Object.keys(Ln).includes(o);var As;(function(o){o.ARTICLE="ARTICLE",o.BOOK="BOOK",o.SHARED_BOOK="SHARED_BOOK"})(As||(As={}));var Rs;(function(o){o.FLUIDTOPICS="FLUIDTOPICS",o.EXTERNAL="EXTERNAL"})(Rs||(Rs={}));var Is;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.PERSONAL_BOOK="PERSONAL_BOOK",o.SHARED_BOOK="SHARED_BOOK"})(Is||(Is={}));var St;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(St||(St={}));var Ps=o=>Object.keys(St).includes(o);var Ts;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC"})(Ts||(Ts={}));var Ns;(function(o){o.DEFAULT="DEFAULT",o.DOCUMENTS="DOCUMENTS",o.ALL_TOPICS="ALL_TOPICS",o.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ns||(Ns={}));var W;(function(o){o.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",o.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",o.HTML_EXPORT_USER="HTML_EXPORT_USER",o.PDF_EXPORT_USER="PDF_EXPORT_USER",o.SAVED_SEARCH_USER="SAVED_SEARCH_USER",o.COLLECTION_USER="COLLECTION_USER",o.OFFLINE_USER="OFFLINE_USER",o.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",o.ANALYTICS_USER="ANALYTICS_USER",o.BETA_USER="BETA_USER",o.DEBUG_USER="DEBUG_USER",o.PRINT_USER="PRINT_USER",o.RATING_USER="RATING_USER",o.FEEDBACK_USER="FEEDBACK_USER",o.GENERATIVE_AI_USER="GENERATIVE_AI_USER",o.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",o.CONTENT_PUBLISHER="CONTENT_PUBLISHER",o.KHUB_ADMIN="KHUB_ADMIN",o.USERS_ADMIN="USERS_ADMIN",o.PORTAL_ADMIN="PORTAL_ADMIN",o.ADMIN="ADMIN"})(W||(W={}));var Ls;(function(o){o.VALID="VALID",o.INVALID="INVALID"})(Ls||(Ls={}));var ks;(function(o){o.JSON="JSON",o.TEXT="TEXT"})(ks||(ks={}));var Ds;(function(o){o.TEXT="TEXT",o.HTML="HTML"})(Ds||(Ds={}));var Ld={[W.PERSONAL_BOOK_SHARE_USER]:[W.PERSONAL_BOOK_USER],[W.HTML_EXPORT_USER]:[W.PERSONAL_BOOK_USER],[W.PDF_EXPORT_USER]:[W.PERSONAL_BOOK_USER],[W.KHUB_ADMIN]:[W.CONTENT_PUBLISHER],[W.ADMIN]:[W.KHUB_ADMIN,W.USERS_ADMIN,W.PORTAL_ADMIN],[W.GENERATIVE_AI_EXPORT_USER]:[W.GENERATIVE_AI_USER]};function Fs(o,e){return o===e||(Ld[o]??[]).some(t=>Fs(t,e))}function Ce(o,e){return o==null?!1:(Array.isArray(o)?o:Array.isArray(o.roles)?o.roles:Array.isArray(o.profile?.roles)?o.profile.roles:[]).some(n=>Fs(n,e))}function Dd(o){return`"${o}"`}function Us(o){return o.startsWith('"')&&o.endsWith('"')?o.replace(/(^"+)|("+$)/g,""):o}function Fd(o,e){return new Ot(o).serialize(e)}var M;(function(o){o.LOCALE="content-lang",o.QUERY="query",o.SCOPE="scope",o.FILTERS="filters",o.VIRTUAL_FIELD="virtual-field",o.PERIOD="period",o.VALUE_FILTERS="value-filters",o.DATE_FILTERS="date-filters",o.RANGE_FILTERS="range-filters",o.SORT="sort",o.PER_PAGE="per-page"})(M||(M={}));var Ud=new Set(Object.values(M));function Ms(o){return Ud.has(o)}var Ot=class{constructor(e,t={},n=20,a=!1,i="en-US"){this.baseUrl=e,this.predefinedSorts=t,this.defaultPerPage=n,this.allLanguagesAllowed=a,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,t){return this.serializeToCurrentPageIfPossible(e,t??"/search")}serializeToCurrentPageIfPossible(e,t){let n=t==null||t.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return a.search=this.toURLSearchParams(e),a.toString()}toURLSearchParams(e,t=!1){var n,a,i,s,l,d,p,h,f,m,y,b;let x=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&x.append(M.LOCALE,e.contentLocale):x.append(M.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&x.append(M.QUERY,e.query);let C=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(S=>{var R;return((R=S.valueFilter)===null||R===void 0?void 0:R.negative)===!1}))!==null&&i!==void 0?i:[];if(C.length>0){let S=C.map(R=>{var _,P;let D=((P=(_=R.valueFilter)===null||_===void 0?void 0:_.values)!==null&&P!==void 0?P:[]).map(I=>this.escapeFilters(I)).map(I=>Dd(Us(I))).join("_");return`${R.key}~${D}`}).join("*");x.append(M.VALUE_FILTERS,S)}let w=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(S=>S.dateFilter))!==null&&l!==void 0?l:[];if(w.length>0){let S=w.map(R=>{var _;return`${R.key}~${(_=R.dateFilter)===null||_===void 0?void 0:_.type.toLowerCase()}`}).join("*");x.append(M.DATE_FILTERS,S)}let A=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(S=>S.rangeFilter))!==null&&p!==void 0?p:[];if(A.length>0){let S=A.map(R=>{var _,P;return`${R.key}~${(_=R.rangeFilter)===null||_===void 0?void 0:_.from}_${(P=R.rangeFilter)===null||P===void 0?void 0:P.to}`}).join("*");x.append(M.RANGE_FILTERS,S)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&x.append(M.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&x.append(M.SCOPE,e.scope.toLowerCase()),((h=e.sort)===null||h===void 0?void 0:h.length)>0&&e.sort[0].key==="ft:lastEdition"&&x.append(M.SORT,"last_update"),!((f=e.paging)===null||f===void 0)&&f.perPage&&((y=(m=e.paging)===null||m===void 0?void 0:m.perPage)!==null&&y!==void 0?y:this.defaultPerPage)!=this.defaultPerPage&&x.append(M.PER_PAGE,String(e.paging.perPage));let O=(b=e.otherQueryParams)!==null&&b!==void 0?b:{};for(let S in O)x.append(S,O[S]);let E=new Array;return x.forEach((S,R)=>{E.push(this.encodeQueryString(R)+"="+this.encodeQueryString(S))}),encodeURI(E.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var t;let n=e.split("?"),a=this.fromURLSearchParams(n.slice(1).join("?")),i=n[0].split("/search/")[1];return i==null?a:{...a,scope:(t=this.scopeMapping[i])!==null&&t!==void 0?t:a.scope}}fromURLSearchParams(e){var t,n,a,i,s,l,d,p;try{e=decodeURI(e).replace(/%23/g,"#")}catch(w){console.warn("Could not decode search request query params, fallback on raw value",w)}let h=new URLSearchParams(e),f=h.get(M.LOCALE)==="all"?void 0:h.get(M.LOCALE),m=((t=h.get(M.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),y=((n=h.get(M.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(a=h.get(M.SCOPE))!==null&&a!==void 0?a:"default",x=+((i=h.get(M.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),C={};for(let w of h.keys())Ms(w)||(C[w]=h.get(w));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=h.get(M.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:_s(m)?m:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[y])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(h),facets:[],paging:{page:1,perPage:Mt(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:C}}parseCompatFilters(e){var t,n,a,i,s,l;let d=[];return e.has(M.FILTERS)&&(d=this.parseValueFilters((t=e.get(M.FILTERS))!==null&&t!==void 0?t:"")),(n=e.has(M.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(M.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(M.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(M.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(M.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(t=>t.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],valueFilter:{values:t[1].split("_").map(Us).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:St[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}escapeFilters(e){for(let[t,n,a]of this.filtersEscapeMapping)e=e.replaceAll(t,n);return e}superEscapeFilters(e){for(let[t,n,a]of this.filtersEscapeMapping)e=e.replaceAll(n,a);return e}unescapeFilterValue(e){for(let[t,n,a]of this.filtersEscapeMapping)e=e.replace(a,t);return e}parseLegacyPeriodFilter(e){if(Ps(e))return[{key:"ft:lastEdition",dateFilter:{type:St[e]}}];if(e.startsWith("CUSTOM_")){let[t,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var Fn={};U(Fn,{toFtFormComponent:()=>Md});var Dn=Symbol("elementInternals");function Md(o){class e extends o{static get formAssociated(){return!0}get form(){return this[Dn].form}constructor(...n){super(n),this[Dn]=this.attachInternals()}setFormValue(n){this[Dn].setFormValue(n)}}return e}var Un={};U(Un,{DateFormatter:()=>Et});var Et=class{static format(e,t,n,a){return window.moment?window.moment(e).locale(t).format(this.getDateFormat(n,a)):e}static getDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}};var Bn={};U(Bn,{ALL_KEYS_VALUE:()=>Mn,SameWindowStorageEvent:()=>wt});var Mn="__all__",wt=class extends CustomEvent{constructor(e,t,n){super("same-window-storage",{detail:{key:e,oldValue:t,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Mn}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(o,e,t){let n=e.getItem(t[0]);Reflect.apply(o,e,t),window.dispatchEvent(new wt(t[0],n,t[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(o,e,t){let n=e.getItem(t[0]);Reflect.apply(o,e,t),window.dispatchEvent(new wt(t[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(o,e,t){Reflect.apply(o,e,t),window.dispatchEvent(new wt(Mn))}});var Hn={};U(Hn,{FocusMainContentEvent:()=>Wn});var Wn=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Bs={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1};function Bd(o){(o.key==="Enter"||o.key===" "||o.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function Wd(o){window.FluidTopicsA11yHints.isKeyboardNavigation=o.detail==0}document.addEventListener("keydown",Bd);document.addEventListener("click",Wd);var Ws=z`
|
|
48
|
+
`;var Ai={};var nn={};M(nn,{ParametrizedLabelResolver:()=>Yt});var Yt=class o{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var n,a;e=this.resolvePluralKey(e,t);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return o.replaceParameters(i,...t)}static replaceParameters(e,...t){return t.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>o.formatValue(n,s))),e}resolvePluralKey(e,t){for(let n of t)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,t){return e instanceof Date?o.formatDate(e,t):e??""}static formatDate(e,t){let n=a=>t?.includes("date")?e.toLocaleDateString(a):t?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var Tn={};M(Tn,{FtCommandQueue:()=>Jt,FtLitElementRedux:()=>ke,FtReduxStore:()=>we,ReduxWatcher:()=>Tr,clearAllStores:()=>Pd,isFtReduxStore:()=>Ye,redux:()=>pe,reduxEventListener:()=>ql,reduxReactive:()=>Zl,watch:()=>Ld});var Zl=()=>(o,e)=>{var t;let n=o.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(t=n.reduxReactiveProperties)===null||t===void 0||t.add(e)},pe=o=>{let e=o??{};return(t,n)=>{var a;let i={hasChanged:Ve,attribute:!1,...e};L(i)(t,n);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}},ql=o=>(e,t)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(t,o)};var Jt=class{constructor(){this.queue=[]}add(e,t=!1){t&&this.clear(e.type),this.queue.push(e)}consume(e){let t=this.queue.find(n=>n.type===e);return t&&(this.queue=this.queue.filter(n=>n!==t)),t}clear(e){typeof e=="string"?this.queue=this.queue.filter(t=>t.type!==e):this.queue=this.queue.filter(t=>!e.test(t.type))}};function Ye(o){var e;return(e=o?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ri,Ii,Ti,Xt=Symbol("internalReduxEventsUnsubscribers"),Le=Symbol("internalStoresUnsubscribers"),Je=Symbol("internalStores"),ke=class extends J{constructor(){super(...arguments),this[Ri]=new Map,this[Ii]=new Map,this[Ti]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(t=>e.has(t))&&this.updateFromStores()}getUnnamedStore(){if(this[Je].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Je].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Je].get(e)}addStore(e,t){var n;t=(n=t??(Ye(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(t),this[Je].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}removeStore(e){let t=typeof e=="string"?e:e.name;this.unsubscribeFromStore(t),this[Je].delete(t)}setupStores(){this.unsubscribeFromStores(),this[Je].forEach((e,t)=>this.subscribeToStore(t,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,t)=>{let n=this.constructor.getPropertyOptions(t);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:t)){let a=this.getStore(e.store);a&&(e.store?this[Le].has(e.store):this[Le].size>0)&&(this[t]=e.selector(a.getState(),this))}})}subscribeToStore(e,t){var n;this[Le].set(e,t.subscribe(()=>this.updateFromStores())),this[Xt].set(e,[]),Ye(t)&&t.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||t.name===a.store)){let s=l=>this[i](l);t.addEventListener(a.eventName,s),this[Xt].get(e).push(()=>t.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Le].forEach((e,t)=>this.unsubscribeFromStore(t))}unsubscribeFromStore(e){var t;this[Le].has(e)&&this[Le].get(e)(),this[Le].delete(e),(t=this[Xt].get(e))===null||t===void 0||t.forEach(n=>n()),this[Xt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ri=Le,Ii=Je,Ti=Xt;ke.reduxProperties=new Map;ke.reduxReactiveProperties=new Set;ke.reduxEventListeners=new Map;function oe(o){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+o+(t.length?" "+t.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ee(o){return!!o&&!!o[z]}function ie(o){var e;return!!o&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===od}(o)||Array.isArray(o)||!!o[Fi]||!!(!((e=o.constructor)===null||e===void 0)&&e[Fi])||hn(o)||gn(o))}function Xe(o,e,t){t===void 0&&(t=!1),bt(o)===0?(t?Object.keys:yt)(o).forEach(function(n){t&&typeof n=="symbol"||e(n,o[n],o)}):o.forEach(function(n,a){return e(a,n,o)})}function bt(o){var e=o[z];return e?e.i>3?e.i-4:e.i:Array.isArray(o)?1:hn(o)?2:gn(o)?3:0}function mt(o,e){return bt(o)===2?o.has(e):Object.prototype.hasOwnProperty.call(o,e)}function Yl(o,e){return bt(o)===2?o.get(e):o[e]}function Mi(o,e,t){var n=bt(o);n===2?o.set(e,t):n===3?o.add(t):o[e]=t}function Ui(o,e){return o===e?o!==0||1/o==1/e:o!=o&&e!=e}function hn(o){return td&&o instanceof Map}function gn(o){return rd&&o instanceof Set}function De(o){return o.o||o.t}function mn(o){if(Array.isArray(o))return Array.prototype.slice.call(o);var e=Hi(o);delete e[z];for(var t=yt(e),n=0;n<t.length;n++){var a=t[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:o[a]})}return Object.create(Object.getPrototypeOf(o),e)}function yn(o,e){return e===void 0&&(e=!1),bn(o)||Ee(o)||!ie(o)||(bt(o)>1&&(o.set=o.add=o.clear=o.delete=Jl),Object.freeze(o),e&&Xe(o,function(t,n){return yn(n,!0)},!0)),o}function Jl(){oe(2)}function bn(o){return o==null||typeof o!="object"||Object.isFrozen(o)}function fe(o){var e=fn[o];return e||oe(18,o),e}function Xl(o,e){fn[o]||(fn[o]=e)}function dn(){return er}function an(o,e){e&&(fe("Patches"),o.u=[],o.s=[],o.v=e)}function wr(o){un(o),o.p.forEach(Ql),o.p=null}function un(o){o===er&&(er=o.l)}function Ni(o){return er={p:[],l:er,h:o,m:!0,_:0}}function Ql(o){var e=o[z];e.i===0||e.i===1?e.j():e.g=!0}function sn(o,e){e._=e.p.length;var t=e.p[0],n=o!==void 0&&o!==t;return e.h.O||fe("ES5").S(e,o,n),n?(t[z].P&&(wr(e),oe(4)),ie(o)&&(o=Cr(e,o),e.l||Ar(e,o)),e.u&&fe("Patches").M(t[z].t,o,e.u,e.s)):o=Cr(e,t,[]),wr(e),e.u&&e.v(e.u,e.s),o!==Wi?o:void 0}function Cr(o,e,t){if(bn(e))return e;var n=e[z];if(!n)return Xe(e,function(l,d){return _i(o,n,e,l,d,t)},!0),e;if(n.A!==o)return e;if(!n.P)return Ar(o,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=mn(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Xe(i,function(l,d){return _i(o,n,a,l,d,t,s)}),Ar(o,a,!1),t&&o.u&&fe("Patches").N(n,t,o.u,o.s)}return n.o}function _i(o,e,t,n,a,i,s){if(Ee(a)){var l=Cr(o,a,i&&e&&e.i!==3&&!mt(e.R,n)?i.concat(n):void 0);if(Mi(t,n,l),!Ee(l))return;o.m=!1}else s&&t.add(a);if(ie(a)&&!bn(a)){if(!o.h.D&&o._<1)return;Cr(o,a),e&&e.A.l||Ar(o,a)}}function Ar(o,e,t){t===void 0&&(t=!1),!o.l&&o.h.D&&o.m&&yn(e,t)}function cn(o,e){var t=o[z];return(t?De(t):o)[e]}function Pi(o,e){if(e in o)for(var t=Object.getPrototypeOf(o);t;){var n=Object.getOwnPropertyDescriptor(t,e);if(n)return n;t=Object.getPrototypeOf(t)}}function Fe(o){o.P||(o.P=!0,o.l&&Fe(o.l))}function ln(o){o.o||(o.o=mn(o.t))}function pn(o,e,t){var n=hn(e)?fe("MapSet").F(e,t):gn(e)?fe("MapSet").T(e,t):o.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:dn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,p=tr;s&&(d=[l],p=Qt);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(e,t):fe("ES5").J(e,t);return(t?t.A:dn()).p.push(n),n}function ed(o){return Ee(o)||oe(22,o),function e(t){if(!ie(t))return t;var n,a=t[z],i=bt(t);if(a){if(!a.P&&(a.i<4||!fe("ES5").K(a)))return a.t;a.I=!0,n=Li(t,i),a.I=!1}else n=Li(t,i);return Xe(n,function(s,l){a&&Yl(a.t,s)===l||Mi(n,s,e(l))}),i===3?new Set(n):n}(o)}function Li(o,e){switch(e){case 2:return new Map(o);case 3:return Array.from(o)}return mn(o)}function Bi(){function o(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[z];return tr.get(p,s)},set:function(p){var h=this[z];tr.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][z];if(!d.P)switch(d.i){case 5:n(d)&&Fe(d);break;case 4:t(d)&&Fe(d)}}}function t(s){for(var l=s.t,d=s.k,p=yt(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==z){var m=l[f];if(m===void 0&&!mt(l,f))return!0;var y=d[f],b=y&&y[z];if(b?b.t!==m:!Ui(y,m))return!0}}var x=!!l[z];return p.length!==yt(l).length+(x?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function a(s){s.g&&oe(3,JSON.stringify(De(s)))}var i={};Xl("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,m){if(f){for(var y=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(y,""+b,o(b,!0));return y}var x=Hi(m);delete x[z];for(var C=yt(x),w=0;w<C.length;w++){var A=C[w];x[A]=o(A,f||!!x[A].enumerable)}return Object.create(Object.getPrototypeOf(m),x)}(d,s),h={i:d?5:4,A:l?l.A:dn(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,z,{value:h,writable:!0}),p},S:function(s,l,d){d?Ee(l)&&l[z].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[z];if(f){var m=f.t,y=f.k,b=f.R,x=f.i;if(x===4)Xe(y,function(E){E!==z&&(m[E]!==void 0||mt(m,E)?b[E]||p(y[E]):(b[E]=!0,Fe(f)))}),Xe(m,function(E){y[E]!==void 0||mt(y,E)||(b[E]=!1,Fe(f))});else if(x===5){if(n(f)&&(Fe(f),b.length=!0),y.length<m.length)for(var C=y.length;C<m.length;C++)b[C]=!1;else for(var w=m.length;w<y.length;w++)b[w]=!0;for(var A=Math.min(y.length,m.length),O=0;O<A;O++)y.hasOwnProperty(O)||(b[O]=!0),b[O]===void 0&&p(y[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):n(s)}})}var ki,er,vn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",td=typeof Map<"u",rd=typeof Set<"u",Di=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Wi=vn?Symbol.for("immer-nothing"):((ki={})["immer-nothing"]=!0,ki),Fi=vn?Symbol.for("immer-draftable"):"__$immer_draftable",z=vn?Symbol.for("immer-state"):"__$immer_state";var od=""+Object.prototype.constructor,yt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:Object.getOwnPropertyNames,Hi=Object.getOwnPropertyDescriptors||function(o){var e={};return yt(o).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(o,t)}),e},fn={},tr={get:function(o,e){if(e===z)return o;var t=De(o);if(!mt(t,e))return function(a,i,s){var l,d=Pi(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0}(o,t,e);var n=t[e];return o.I||!ie(n)?n:n===cn(o.t,e)?(ln(o),o.o[e]=pn(o.A.h,n,o)):n},has:function(o,e){return e in De(o)},ownKeys:function(o){return Reflect.ownKeys(De(o))},set:function(o,e,t){var n=Pi(De(o),e);if(n?.set)return n.set.call(o.k,t),!0;if(!o.P){var a=cn(De(o),e),i=a?.[z];if(i&&i.t===t)return o.o[e]=t,o.R[e]=!1,!0;if(Ui(t,a)&&(t!==void 0||mt(o.t,e)))return!0;ln(o),Fe(o)}return o.o[e]===t&&(t!==void 0||e in o.o)||Number.isNaN(t)&&Number.isNaN(o.o[e])||(o.o[e]=t,o.R[e]=!0),!0},deleteProperty:function(o,e){return cn(o.t,e)!==void 0||e in o.t?(o.R[e]=!1,ln(o),Fe(o)):delete o.R[e],o.o&&delete o.o[e],!0},getOwnPropertyDescriptor:function(o,e){var t=De(o),n=Reflect.getOwnPropertyDescriptor(t,e);return n&&{writable:!0,configurable:o.i!==1||e!=="length",enumerable:n.enumerable,value:t[e]}},defineProperty:function(){oe(11)},getPrototypeOf:function(o){return Object.getPrototypeOf(o.t)},setPrototypeOf:function(){oe(12)}},Qt={};Xe(tr,function(o,e){Qt[o]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Qt.deleteProperty=function(o,e){return Qt.set.call(this,o,e,void 0)},Qt.set=function(o,e,t){return tr.set.call(this,o[0],e,t,o[0])};var nd=function(){function o(t){var n=this;this.O=Di,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=n;return function(x){var C=this;x===void 0&&(x=l);for(var w=arguments.length,A=Array(w>1?w-1:0),O=1;O<w;O++)A[O-1]=arguments[O];return d.produce(x,function(E){var S;return(S=i).call.apply(S,[C,E].concat(A))})}}var p;if(typeof i!="function"&&oe(6),s!==void 0&&typeof s!="function"&&oe(7),ie(a)){var h=Ni(n),f=pn(n,a,void 0),m=!0;try{p=i(f),m=!1}finally{m?wr(h):un(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(x){return an(h,s),sn(x,h)},function(x){throw wr(h),x}):(an(h,s),sn(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Wi&&(p=void 0),n.D&&yn(p,!0),s){var y=[],b=[];fe("Patches").M(a,p,y,b),s(y,b)}return p}oe(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,function(y){return a.apply(void 0,[y].concat(f))})};var s,l,d=n.produce(a,i,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=o.prototype;return e.createDraft=function(t){ie(t)||oe(8),Ee(t)&&(t=ed(t));var n=Ni(this),a=pn(this,t,void 0);return a[z].C=!0,un(n),a},e.finishDraft=function(t,n){var a=t&&t[z],i=a.A;return an(i,n),sn(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Di&&oe(20),this.O=t},e.applyPatches=function(t,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}a>-1&&(n=n.slice(a+1));var s=fe("Patches").$;return Ee(t)?s(t,n):this.produce(t,function(l){return s(l,n)})},o}(),re=new nd,ad=re.produce,Cm=re.produceWithPatches.bind(re),Am=re.setAutoFreeze.bind(re),Rm=re.setUseProxies.bind(re),Im=re.applyPatches.bind(re),Tm=re.createDraft.bind(re),Nm=re.finishDraft.bind(re),Rr=ad;function Qe(o){"@babel/helpers - typeof";return Qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qe(o)}function zi(o,e){if(Qe(o)!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var n=t.call(o,e||"default");if(Qe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function $i(o){var e=zi(o,"string");return Qe(e)=="symbol"?e:e+""}function ji(o,e,t){return(e=$i(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function Gi(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),t.push.apply(t,n)}return t}function xn(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Gi(Object(t),!0).forEach(function(n){ji(o,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Gi(Object(t)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(t,n))})}return o}function Z(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var Vi=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Sn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ir={INIT:"@@redux/INIT"+Sn(),REPLACE:"@@redux/REPLACE"+Sn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Sn()}};function id(o){if(typeof o!="object"||o===null)return!1;for(var e=o;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(o)===e}function On(o,e,t){var n;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(Z(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(Z(1));return t(On)(o,e)}if(typeof o!="function")throw new Error(Z(2));var a=o,i=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Z(3));return i}function f(x){if(typeof x!="function")throw new Error(Z(4));if(d)throw new Error(Z(5));var C=!0;return p(),l.push(x),function(){if(C){if(d)throw new Error(Z(6));C=!1,p();var A=l.indexOf(x);l.splice(A,1),s=null}}}function m(x){if(!id(x))throw new Error(Z(7));if(typeof x.type>"u")throw new Error(Z(8));if(d)throw new Error(Z(9));try{d=!0,i=a(i,x)}finally{d=!1}for(var C=s=l,w=0;w<C.length;w++){var A=C[w];A()}return x}function y(x){if(typeof x!="function")throw new Error(Z(10));a=x,m({type:Ir.REPLACE})}function b(){var x,C=f;return x={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(Z(11));function O(){A.next&&A.next(h())}O();var E=C(O);return{unsubscribe:E}}},x[Vi]=function(){return this},x}return m({type:Ir.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:y},n[Vi]=b,n}function sd(o){Object.keys(o).forEach(function(e){var t=o[e],n=t(void 0,{type:Ir.INIT});if(typeof n>"u")throw new Error(Z(12));if(typeof t(void 0,{type:Ir.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Z(13))})}function Ki(o){for(var e=Object.keys(o),t={},n=0;n<e.length;n++){var a=e[n];typeof o[a]=="function"&&(t[a]=o[a])}var i=Object.keys(t),s,l;try{sd(t)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,y={},b=0;b<i.length;b++){var x=i[b],C=t[x],w=p[x],A=C(w,h);if(typeof A>"u"){var O=h&&h.type;throw new Error(Z(14))}y[x]=A,m=m||A!==w}return m=m||i.length!==Object.keys(p).length,m?y:p}}function vt(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Zi(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(Z(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=vt.apply(void 0,l)(a.dispatch),xn(xn({},a),{},{dispatch:i})}}}function qi(o){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,o):s(l)}}};return e}var Yi=qi();Yi.withExtraArgument=qi;var En=Yi;var ts=function(){var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},o(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");o(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),cd=function(o,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return t.label++,{value:p[1],done:!1};case 5:t.label++,a=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){t.label=p[1];break}if(p[0]===6&&t.label<i[1]){t.label=i[1],i=p;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(p);break}i[2]&&t.ops.pop(),t.trys.pop();continue}p=e.call(o,t)}catch(h){p=[6,h],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},xt=function(o,e){for(var t=0,n=e.length,a=o.length;t<n;t++,a++)o[a]=e[t];return o},ld=Object.defineProperty,dd=Object.defineProperties,ud=Object.getOwnPropertyDescriptors,Ji=Object.getOwnPropertySymbols,pd=Object.prototype.hasOwnProperty,fd=Object.prototype.propertyIsEnumerable,Xi=function(o,e,t){return e in o?ld(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t},Me=function(o,e){for(var t in e||(e={}))pd.call(e,t)&&Xi(o,t,e[t]);if(Ji)for(var n=0,a=Ji(e);n<a.length;n++){var t=a[n];fd.call(e,t)&&Xi(o,t,e[t])}return o},wn=function(o,e){return dd(o,ud(e))},hd=function(o,e,t){return new Promise(function(n,a){var i=function(d){try{l(t.next(d))}catch(p){a(p)}},s=function(d){try{l(t.throw(d))}catch(p){a(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((t=t.apply(o,e)).next())})};var gd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?vt:vt.apply(null,arguments)},Zm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(o){return o}};function md(o){if(typeof o!="object"||o===null)return!1;var e=Object.getPrototypeOf(o);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}var yd=function(o){ts(e,o);function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=o.apply(this,t)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,xt([void 0],t[0].concat(this)))):new(e.bind.apply(e,xt([void 0],t.concat(this))))},e}(Array),bd=function(o){ts(e,o);function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=o.apply(this,t)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,xt([void 0],t[0].concat(this)))):new(e.bind.apply(e,xt([void 0],t.concat(this))))},e}(Array);function Rn(o){return ie(o)?Rr(o,function(){}):o}function vd(o){return typeof o=="boolean"}function xd(){return function(e){return Sd(e)}}function Sd(o){o===void 0&&(o={});var e=o.thunk,t=e===void 0?!0:e,n=o.immutableCheck,a=n===void 0?!0:n,i=o.serializableCheck,s=i===void 0?!0:i,l=new yd;if(t&&(vd(t)?l.push(En):l.push(En.withExtraArgument(t.extraArgument))),0){if(a)var d;if(s)var p}return l}var Cn=!0;function rs(o){var e=xd(),t=o||{},n=t.reducer,a=n===void 0?void 0:n,i=t.middleware,s=i===void 0?e():i,l=t.devTools,d=l===void 0?!0:l,p=t.preloadedState,h=p===void 0?void 0:p,f=t.enhancers,m=f===void 0?void 0:f,y;if(typeof a=="function")y=a;else if(md(a))y=Ki(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!Cn&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Cn&&b.some(function(E){return typeof E!="function"}))throw new Error("each middleware provided to configureStore must be a function");var x=Zi.apply(void 0,b),C=vt;d&&(C=gd(Me({trace:!Cn},typeof d=="object"&&d)));var w=new bd(x),A=w;Array.isArray(m)?A=xt([x],m):typeof m=="function"&&(A=m(w));var O=C.apply(void 0,A);return On(y,h,O)}function Ue(o,e){function t(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return Me(Me({type:o,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:o,payload:n[0]}}return t.toString=function(){return""+o},t.type=o,t.match=function(n){return n.type===o},t}function os(o){var e={},t=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return t.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return o(a),[e,t,n]}function Od(o){return typeof o=="function"}function Ed(o,e,t,n){t===void 0&&(t=[]);var a=typeof e=="function"?os(e):[e,t,n],i=a[0],s=a[1],l=a[2],d;if(Od(o))d=function(){return Rn(o())};else{var p=Rn(o);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var y=xt([i[m.type]],s.filter(function(b){var x=b.matcher;return x(m)}).map(function(b){var x=b.reducer;return x}));return y.filter(function(b){return!!b}).length===0&&(y=[l]),y.reduce(function(b,x){if(x)if(Ee(b)){var C=b,w=x(C,m);return w===void 0?b:w}else{if(ie(b))return Rr(b,function(A){return x(A,m)});var w=x(b,m);if(w===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}return b},f)}return h.getInitialState=d,h}function wd(o,e){return o+"/"+e}function ns(o){var e=o.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof o.initialState=="function"?o.initialState:Rn(o.initialState),n=o.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],m=wd(e,h),y,b;"reducer"in f?(y=f.reducer,b=f.prepare):y=f,i[h]=y,s[m]=y,l[h]=b?Ue(m,b):Ue(m)});function d(){var h=typeof o.extraReducers=="function"?os(o.extraReducers):[o.extraReducers],f=h[0],m=f===void 0?{}:f,y=h[1],b=y===void 0?[]:y,x=h[2],C=x===void 0?void 0:x,w=Me(Me({},m),s);return Ed(t,function(A){for(var O in w)A.addCase(O,w[O]);for(var E=0,S=b;E<S.length;E++){var R=S[E];A.addMatcher(R.matcher,R.reducer)}C&&A.addDefaultCase(C)})}var p;return{name:e,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Cd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ad=function(o){o===void 0&&(o=21);for(var e="",t=o;t--;)e+=Cd[Math.random()*64|0];return e},Rd=["name","message","stack","code"],An=function(){function o(e,t){this.payload=e,this.meta=t}return o}(),Qi=function(){function o(e,t){this.payload=e,this.meta=t}return o}(),Id=function(o){if(typeof o=="object"&&o!==null){for(var e={},t=0,n=Rd;t<n.length;t++){var a=n[t];typeof o[a]=="string"&&(e[a]=o[a])}return e}return{message:String(o)}},Xm=function(){function o(e,t,n){var a=Ue(e+"/fulfilled",function(h,f,m,y){return{payload:h,meta:wn(Me({},y||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),i=Ue(e+"/pending",function(h,f,m){return{payload:void 0,meta:wn(Me({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Ue(e+"/rejected",function(h,f,m,y,b){return{payload:y,error:(n&&n.serializeError||Id)(h||"Rejected"),meta:wn(Me({},b||{}),{arg:m,requestId:f,rejectedWithValue:!!y,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(f,m,y){var b=n?.idGenerator?n.idGenerator(h):Ad(),x=new d,C,w=!1;function A(E){C=E,x.abort()}var O=function(){return hd(this,null,function(){var E,S,R,_,P,D,I;return cd(this,function(g){switch(g.label){case 0:return g.trys.push([0,4,,5]),_=(E=n?.condition)==null?void 0:E.call(n,h,{getState:m,extra:y}),Nd(_)?[4,_]:[3,2];case 1:_=g.sent(),g.label=2;case 2:if(_===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return w=!0,P=new Promise(function(v,T){return x.signal.addEventListener("abort",function(){return T({name:"AbortError",message:C||"Aborted"})})}),f(i(b,h,(S=n?.getPendingMeta)==null?void 0:S.call(n,{requestId:b,arg:h},{getState:m,extra:y}))),[4,Promise.race([P,Promise.resolve(t(h,{dispatch:f,getState:m,extra:y,requestId:b,signal:x.signal,abort:A,rejectWithValue:function(v,T){return new An(v,T)},fulfillWithValue:function(v,T){return new Qi(v,T)}})).then(function(v){if(v instanceof An)throw v;return v instanceof Qi?a(v.payload,b,h,v.meta):a(v,b,h)})])];case 3:return R=g.sent(),[3,5];case 4:return D=g.sent(),R=D instanceof An?s(null,b,h,D.payload,D.meta):s(D,b,h),[3,5];case 5:return I=n&&!n.dispatchConditionRejection&&s.match(R)&&R.meta.condition,I||f(R),[2,R]}})})}();return Object.assign(O,{abort:A,requestId:b,arg:h,unwrap:function(){return O.then(Td)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return o.withTypes=function(){return o},o}();function Td(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function Nd(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var as="listener",is="completed",ss="cancelled",Qm="task-"+ss,ey="task-"+is,ty=as+"-"+ss,ry=as+"-"+is;var In="listenerMiddleware";var oy=Ue(In+"/add"),ny=Ue(In+"/removeAll"),ay=Ue(In+"/remove");var es,iy=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(o){return(es||(es=Promise.resolve())).then(o).catch(function(e){return setTimeout(function(){throw e},0)})},_d=function(o){return function(e){setTimeout(e,o)}},sy=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:_d(10);Bi();window.ftReduxStores||(window.ftReduxStores={});var we=class o extends be{static get(e){var t;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Ye(i))return i;if(a==null)return;let s=ns({...a,reducers:(t=a.reducers)!==null&&t!==void 0?t:{}}),l=rs({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[a.name]=new o(s,l,a.eventBus)}constructor(e,t,n){super(),this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.commands=new Jt;let a=i=>i!=null?JSON.parse(JSON.stringify(i)):i;this.actions=new Proxy(this.reduxSlice.actions,{get:(i,s,l)=>{let d=s,p=i[d];return p?(...h)=>{let f=p(...h.map(a));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Pd(){var o;for(let e of Object.values((o=window.ftReduxStores)!==null&&o!==void 0?o:{}))Ye(e)&&e.clear()}var Tr=class{constructor(e,t,n){this.store=e,this.valueSelector=t,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),t=this.valueSelector(e);Ve(this.lastValue,t)&&(this.callback(t,e),this.lastValue=t)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Ld(o,e,t){return new Tr(o,e,t).watch()}var Pn={};M(Pn,{scrollHelper:()=>kd});var Nn,Nr=new Map,_n=class{lock(e,t){if(t){let n=Nr.get(t);if(n==null||n===e)return Nr.set(t,e),t}}release(e,t){t&&Nr.get(t)===e&&Nr.delete(t)}findFirstScrollableParent(e){var t;let n,a;for(let i of Ro(e)){let s=i,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&a==null&&(a=s)}return(t=n??a)!==null&&t!==void 0?t:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){var n,a;let i=0;for(;t&&t.offsetParent!==e.offsetParent;)i+=(n=t.offsetTop)!==null&&n!==void 0?n:0,t=t.offsetParent;return i+((a=t?.offsetTop)!==null&&a!==void 0?a:0)-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,s=a,l=Ut(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(t?.position,l)*(i-s)+s;n.scrollTo({behavior:t?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Nn=window.FluidTopicsScrollHelper)!==null&&Nn!==void 0?Nn:new _n;var kd=window.FluidTopicsScrollHelper;var kn={};M(kn,{SearchPlaceConverter:()=>Et,SearchPlaceQueryParams:()=>U,isSearchPlaceQueryParams:()=>Us,serializeRequest:()=>Ud});var Fd=oc(ls(),1);var ds;(function(o){o.black="black",o.green="green",o.blue="blue",o.purple="purple",o.red="red",o.orange="orange",o.yellow="yellow"})(ds||(ds={}));var us;(function(o){o.OFFICIAL="OFFICIAL",o.PERSONAL="PERSONAL",o.SHARED="SHARED"})(us||(us={}));var ps;(function(o){o.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",o.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",o.PERSONAL_BOOK="PERSONAL_BOOK",o.MAP_ATTACHMENT="MAP_ATTACHMENT",o.RESOURCE="RESOURCE"})(ps||(ps={}));var fs;(function(o){o.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",o.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",o.PERSONAL_BOOK="PERSONAL_BOOK",o.MAP_ATTACHMENT="MAP_ATTACHMENT",o.RESOURCE="RESOURCE"})(fs||(fs={}));var hs;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(hs||(hs={}));var gs;(function(o){o.VALUE="VALUE",o.DATE="DATE",o.RANGE="RANGE"})(gs||(gs={}));var ms;(function(o){o.BOOKMARK__CREATE="BOOKMARK__CREATE",o.BOOKMARK__DELETE="BOOKMARK__DELETE",o.CASE_DEFLECTION__START="CASE_DEFLECTION__START",o.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",o.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",o.COLLECTION__CREATE="COLLECTION__CREATE",o.COLLECTION__UPDATE="COLLECTION__UPDATE",o.COLLECTION__DELETE="COLLECTION__DELETE",o.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",o.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",o.DOCUMENT__PRINT="DOCUMENT__PRINT",o.DOCUMENT__PROCESS="DOCUMENT__PROCESS",o.DOCUMENT__RATE="DOCUMENT__RATE",o.DOCUMENT__SEARCH="DOCUMENT__SEARCH",o.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",o.DOCUMENT__UNRATE="DOCUMENT__UNRATE",o.FEEDBACK__SEND="FEEDBACK__SEND",o.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",o.GEN_AI__RATE="GEN_AI__RATE",o.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",o.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",o.KHUB__PROCESS="KHUB__PROCESS",o.KHUB__SEARCH="KHUB__SEARCH",o.LABELS__DOWNLOAD="LABELS__DOWNLOAD",o.LINK__SHARE="LINK__SHARE",o.PAGE__DISPLAY="PAGE__DISPLAY",o.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",o.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",o.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",o.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",o.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",o.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",o.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",o.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",o.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",o.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",o.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",o.TOPIC__DISPLAY="TOPIC__DISPLAY",o.TOPIC__RATE="TOPIC__RATE",o.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",o.TOPIC__UNRATE="TOPIC__UNRATE",o.USER__LOGIN="USER__LOGIN",o.USER__LOGOUT="USER__LOGOUT",o.HEARTBEAT="HEARTBEAT"})(ms||(ms={}));var ys;(function(o){o.THIRD_PARTY="THIRD_PARTY",o.OFF_THE_GRID="OFF_THE_GRID",o.CONTENT_PACKAGER="CONTENT_PACKAGER",o.PAGES="PAGES",o.DESIGNED_READER="DESIGNED_READER"})(ys||(ys={}));var bs;(function(o){o.HOMEPAGE="HOMEPAGE",o.CUSTOM="CUSTOM",o.HEADER="HEADER",o.READER="READER",o.TOPIC_TEMPLATE="TOPIC_TEMPLATE",o.SEARCH="SEARCH",o.SEARCH_RESULT="SEARCH_RESULT"})(bs||(bs={}));var vs;(function(o){o.CLASSIC="CLASSIC",o.CUSTOM="CUSTOM",o.DESIGNER="DESIGNER"})(vs||(vs={}));var xs;(function(o){o.AND="AND",o.OR="OR",o.MONOVALUED="MONOVALUED"})(xs||(xs={}));var Ss;(function(o){o.NONE="NONE",o.ALPHABET="ALPHABET",o.VERSION="VERSION"})(Ss||(Ss={}));var Os;(function(o){o.STARS="STARS",o.LIKE="LIKE",o.DICHOTOMOUS="DICHOTOMOUS",o.NO_RATING="NO_RATING"})(Os||(Os={}));var Es;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR",o.CUSTOM="CUSTOM"})(Es||(Es={}));var ws;(function(o){o.ASC="ASC",o.DESC="DESC"})(ws||(ws={}));var Cs;(function(o){o.ALPHA="ALPHA",o.NATURAL="NATURAL"})(Cs||(Cs={}));var Ln;(function(o){o.EVERYWHERE="EVERYWHERE",o.TITLE_ONLY="TITLE_ONLY",o.NONE="NONE"})(Ln||(Ln={}));var _s=o=>Object.keys(Ln).includes(o);var As;(function(o){o.ARTICLE="ARTICLE",o.BOOK="BOOK",o.SHARED_BOOK="SHARED_BOOK"})(As||(As={}));var Rs;(function(o){o.FLUIDTOPICS="FLUIDTOPICS",o.EXTERNAL="EXTERNAL"})(Rs||(Rs={}));var Is;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.PERSONAL_BOOK="PERSONAL_BOOK",o.SHARED_BOOK="SHARED_BOOK"})(Is||(Is={}));var Ot;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(Ot||(Ot={}));var Ps=o=>Object.keys(Ot).includes(o);var Ts;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC"})(Ts||(Ts={}));var Ns;(function(o){o.DEFAULT="DEFAULT",o.DOCUMENTS="DOCUMENTS",o.ALL_TOPICS="ALL_TOPICS",o.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ns||(Ns={}));var W;(function(o){o.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",o.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",o.HTML_EXPORT_USER="HTML_EXPORT_USER",o.PDF_EXPORT_USER="PDF_EXPORT_USER",o.SAVED_SEARCH_USER="SAVED_SEARCH_USER",o.COLLECTION_USER="COLLECTION_USER",o.OFFLINE_USER="OFFLINE_USER",o.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",o.ANALYTICS_USER="ANALYTICS_USER",o.BETA_USER="BETA_USER",o.DEBUG_USER="DEBUG_USER",o.PRINT_USER="PRINT_USER",o.RATING_USER="RATING_USER",o.FEEDBACK_USER="FEEDBACK_USER",o.GENERATIVE_AI_USER="GENERATIVE_AI_USER",o.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",o.CONTENT_PUBLISHER="CONTENT_PUBLISHER",o.KHUB_ADMIN="KHUB_ADMIN",o.USERS_ADMIN="USERS_ADMIN",o.PORTAL_ADMIN="PORTAL_ADMIN",o.ADMIN="ADMIN"})(W||(W={}));var Ls;(function(o){o.VALID="VALID",o.INVALID="INVALID"})(Ls||(Ls={}));var ks;(function(o){o.JSON="JSON",o.TEXT="TEXT"})(ks||(ks={}));var Ds;(function(o){o.TEXT="TEXT",o.HTML="HTML"})(Ds||(Ds={}));var Dd={[W.PERSONAL_BOOK_SHARE_USER]:[W.PERSONAL_BOOK_USER],[W.HTML_EXPORT_USER]:[W.PERSONAL_BOOK_USER],[W.PDF_EXPORT_USER]:[W.PERSONAL_BOOK_USER],[W.KHUB_ADMIN]:[W.CONTENT_PUBLISHER],[W.ADMIN]:[W.KHUB_ADMIN,W.USERS_ADMIN,W.PORTAL_ADMIN],[W.GENERATIVE_AI_EXPORT_USER]:[W.GENERATIVE_AI_USER]};function Fs(o,e){return o===e||(Dd[o]??[]).some(t=>Fs(t,e))}function Ce(o,e){return o==null?!1:(Array.isArray(o)?o:Array.isArray(o.roles)?o.roles:Array.isArray(o.profile?.roles)?o.profile.roles:[]).some(n=>Fs(n,e))}function Md(o){return`"${o}"`}function Ms(o){return o.startsWith('"')&&o.endsWith('"')?o.replace(/(^"+)|("+$)/g,""):o}function Ud(o,e){return new Et(o).serialize(e)}var U;(function(o){o.LOCALE="content-lang",o.QUERY="query",o.SCOPE="scope",o.FILTERS="filters",o.VIRTUAL_FIELD="virtual-field",o.PERIOD="period",o.VALUE_FILTERS="value-filters",o.DATE_FILTERS="date-filters",o.RANGE_FILTERS="range-filters",o.SORT="sort",o.PER_PAGE="per-page"})(U||(U={}));var Bd=new Set(Object.values(U));function Us(o){return Bd.has(o)}var Et=class{constructor(e,t={},n=20,a=!1,i="en-US"){this.baseUrl=e,this.predefinedSorts=t,this.defaultPerPage=n,this.allLanguagesAllowed=a,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,t){return this.serializeToCurrentPageIfPossible(e,t??"/search")}serializeToCurrentPageIfPossible(e,t){let n=t==null||t.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return a.search=this.toURLSearchParams(e),a.toString()}toURLSearchParams(e,t=!1){var n,a,i,s,l,d,p,h,f,m,y,b;let x=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&x.append(U.LOCALE,e.contentLocale):x.append(U.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&x.append(U.QUERY,e.query);let C=(i=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(S=>{var R;return((R=S.valueFilter)===null||R===void 0?void 0:R.negative)===!1}))!==null&&i!==void 0?i:[];if(C.length>0){let S=C.map(R=>{var _,P;let D=((P=(_=R.valueFilter)===null||_===void 0?void 0:_.values)!==null&&P!==void 0?P:[]).map(I=>this.escapeFilters(I)).map(I=>Md(Ms(I))).join("_");return`${R.key}~${D}`}).join("*");x.append(U.VALUE_FILTERS,S)}let w=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(S=>S.dateFilter))!==null&&l!==void 0?l:[];if(w.length>0){let S=w.map(R=>{var _;return`${R.key}~${(_=R.dateFilter)===null||_===void 0?void 0:_.type.toLowerCase()}`}).join("*");x.append(U.DATE_FILTERS,S)}let A=(p=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(S=>S.rangeFilter))!==null&&p!==void 0?p:[];if(A.length>0){let S=A.map(R=>{var _,P;return`${R.key}~${(_=R.rangeFilter)===null||_===void 0?void 0:_.from}_${(P=R.rangeFilter)===null||P===void 0?void 0:P.to}`}).join("*");x.append(U.RANGE_FILTERS,S)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&x.append(U.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&x.append(U.SCOPE,e.scope.toLowerCase()),((h=e.sort)===null||h===void 0?void 0:h.length)>0&&e.sort[0].key==="ft:lastEdition"&&x.append(U.SORT,"last_update"),!((f=e.paging)===null||f===void 0)&&f.perPage&&((y=(m=e.paging)===null||m===void 0?void 0:m.perPage)!==null&&y!==void 0?y:this.defaultPerPage)!=this.defaultPerPage&&x.append(U.PER_PAGE,String(e.paging.perPage));let O=(b=e.otherQueryParams)!==null&&b!==void 0?b:{};for(let S in O)x.append(S,O[S]);let E=new Array;return x.forEach((S,R)=>{E.push(this.encodeQueryString(R)+"="+this.encodeQueryString(S))}),encodeURI(E.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var t;let n=e.split("?"),a=this.fromURLSearchParams(n.slice(1).join("?")),i=n[0].split("/search/")[1];return i==null?a:{...a,scope:(t=this.scopeMapping[i])!==null&&t!==void 0?t:a.scope}}fromURLSearchParams(e){var t,n,a,i,s,l,d,p;try{e=decodeURI(e).replace(/%23/g,"#")}catch(w){console.warn("Could not decode search request query params, fallback on raw value",w)}let h=new URLSearchParams(e),f=h.get(U.LOCALE)==="all"?void 0:h.get(U.LOCALE),m=((t=h.get(U.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),y=((n=h.get(U.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(a=h.get(U.SCOPE))!==null&&a!==void 0?a:"default",x=+((i=h.get(U.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),C={};for(let w of h.keys())Us(w)||(C[w]=h.get(w));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=h.get(U.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:_s(m)?m:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[y])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(h),facets:[],paging:{page:1,perPage:Ut(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:C}}parseCompatFilters(e){var t,n,a,i,s,l;let d=[];return e.has(U.FILTERS)&&(d=this.parseValueFilters((t=e.get(U.FILTERS))!==null&&t!==void 0?t:"")),(n=e.has(U.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(U.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(U.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(U.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(U.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(t=>t.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],valueFilter:{values:t[1].split("_").map(Ms).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:Ot[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}escapeFilters(e){for(let[t,n,a]of this.filtersEscapeMapping)e=e.replaceAll(t,n);return e}superEscapeFilters(e){for(let[t,n,a]of this.filtersEscapeMapping)e=e.replaceAll(n,a);return e}unescapeFilterValue(e){for(let[t,n,a]of this.filtersEscapeMapping)e=e.replace(a,t);return e}parseLegacyPeriodFilter(e){if(Ps(e))return[{key:"ft:lastEdition",dateFilter:{type:Ot[e]}}];if(e.startsWith("CUSTOM_")){let[t,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var Fn={};M(Fn,{toFtFormComponent:()=>Wd});var Dn=Symbol("elementInternals");function Wd(o){class e extends o{static get formAssociated(){return!0}get form(){return this[Dn].form}constructor(...n){super(n),this[Dn]=this.attachInternals()}setFormValue(n){this[Dn].setFormValue(n)}}return e}var Mn={};M(Mn,{DateFormatter:()=>wt});var wt=class{static format(e,t,n,a){return window.moment?window.moment(e).locale(t).format(this.getDateFormat(n,a)):e}static getDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}};var Bn={};M(Bn,{ALL_KEYS_VALUE:()=>Un,SameWindowStorageEvent:()=>Ct});var Un="__all__",Ct=class extends CustomEvent{constructor(e,t,n){super("same-window-storage",{detail:{key:e,oldValue:t,newValue:n}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Un}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(o,e,t){let n=e.getItem(t[0]);Reflect.apply(o,e,t),window.dispatchEvent(new Ct(t[0],n,t[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(o,e,t){let n=e.getItem(t[0]);Reflect.apply(o,e,t),window.dispatchEvent(new Ct(t[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(o,e,t){Reflect.apply(o,e,t),window.dispatchEvent(new Ct(Un))}});var Hn={};M(Hn,{FocusMainContentEvent:()=>Wn});var Wn=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Bs={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1};function Hd(o){(o.key==="Enter"||o.key===" "||o.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function zd(o){window.FluidTopicsA11yHints.isKeyboardNavigation=o.detail==0}document.addEventListener("keydown",Hd);document.addEventListener("click",zd);var Ws=$`
|
|
49
49
|
.sr-only {
|
|
50
50
|
position:absolute;
|
|
51
51
|
left:-10000px;
|
|
@@ -69,18 +69,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
69
69
|
width:auto;
|
|
70
70
|
height:auto;
|
|
71
71
|
}
|
|
72
|
-
`;var
|
|
73
|
-
`;var
|
|
72
|
+
`;var Hs;(function(o){o.blur="blur",o.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",o.input="input"})(Hs||(Hs={}));var zs;(function(o){o.default="default",o.warning="warning",o.error="error"})(zs||(zs={}));var zn,$n,jn,Gn,$d=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((jn=($n=(zn=window.safari)===null||zn===void 0?void 0:zn.pushNotification)===null||$n===void 0?void 0:$n.toString())!==null&&jn!==void 0?jn:"")==="[object SafariRemoteNotification]",jd="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Gn=window.ftGlobals)!==null&&Gn!==void 0?Gn:{lit:lo,litDecorators:uo,litRepeat:po,litClassMap:fo,litStyleMap:ho,litUnsafeHTML:go,wcUtils:{...Oo,...yo,...wo,...Mn,...Co,...To,...Lo,...So,...Ko,...Hn,...Bs,...Pn,...Po,...Qo,...Fn,...Jo,...wi,...Io,...rn,...on,...Ws,...Ai,...nn,...Tn,...Bn,...Zo,...Yo,...kn,isSafari:$d,isTouchScreen:jd,setVariable:yr}};var rr;(function(o){o.clusteringHelperCreated="clustering-helper-created",o.mapAttachmentsUpdate="map-attachments-update",o.visibleTopicChange="visible-topic-change"})(rr||(rr={}));var Ae;(function(o){o.FEEDBACK="FEEDBACK",o.RATING="RATING",o.PRINT="PRINT",o.BOOKMARK="BOOKMARK",o.COLLECTIONS="COLLECTIONS",o.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ae||(Ae={}));var Gd={setTranslationDestinationLanguage:(o,e)=>{o.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(o,e)=>{o.translation.sourceLanguage=e.payload},setTranslationProfileId:(o,e)=>{o.translation.profileId=e.payload},setTranslationLoading:(o,e)=>{o.translation.isLoading=e.payload},setTranslationError:(o,e)=>{o.translation.isError=e.payload},setTopicsRating:(o,e)=>{for(let t in e.payload)o.topicsRating[t]=e.payload[t]}},$s=o=>we.get({name:"ft-reader-"+o,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}},reducers:Gd});var Vn=class{constructor(e,t){this.mapId=e,this.paginatedToc=t,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(e,t,n){return e.flatMap(a=>{var i;return a.pageConfiguration&&this.registerPage(this.buildPage(a,n)),a.tocId==null?this.extractPagesToc(a.children,t,n):[{tocId:a.tocId,title:(i=a.title)!==null&&i!==void 0?i:"",untranslatedTitle:a.untranslatedTitle,depth:t,children:this.extractPagesToc(a.children,t+1,a.tocId)}]})}convertNodes(e,t,n){return e.flatMap(a=>{var i,s,l;if(a.tocId==null)return[...this.convertSectionNodes((i=a.pageToc)!==null&&i!==void 0?i:[],t,a.tocId),...this.convertNodes(a.children,t,a.tocId)];let d=(s=a.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:a.tocId,contentId:a.contentId,title:a.title,untranslatedTitle:a.untranslatedTitle,hasRating:a.hasRating,origin:a.origin,prettyUrl:d,depth:t,parentTocId:n,children:[]};this.register(p);let h=this.convertSectionNodes((l=a.pageToc)!==null&&l!==void 0?l:[],t+1,a.tocId),f=this.convertNodes(a.children,t+1,p.tocId);return p.children=[...h,...f],[p]})}convertSectionNodes(e,t,n){return e.flatMap(a=>{var i;let s=(i=a.prettyUrl)===null||i===void 0?void 0:i.replace(/^\//,""),l={...a,prettyUrl:s,depth:t,parentTocId:n,children:[]};return this.register(l),l.children=this.convertSectionNodes(a.children,t+1,a.tocId),[l]})}buildPage(e,t){var n,a,i,s,l,d;let p={number:this.pages.length+1,title:(n=e.title)!==null&&n!==void 0?n:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(a=e.tocId)!==null&&a!==void 0?a:"root",toc:((i=e.pageToc)!==null&&i!==void 0?i:[]).map(m=>this.nodeByTocId[m.tocId]),topics:[],hiddenTopics:[],breadcrumb:t?this.buildBreadcrumb(this.nodeByTocId[t]):[]},h=(m,y)=>(y?p.topics:p.hiddenTopics).push(m),f=(l=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return p.breadcrumb.forEach((m,y)=>{h(m,f[y])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),p.topics.push(...this.tocIds((d=e.pageToc)!==null&&d!==void 0?d:[])),p}registerPage(e){for(let t of[...e.topics,...e.hiddenTopics])this.pageByTocId[t]||(this.pageByTocId[t]=e);this.pages.push(e)}tocIds(e){return e.flatMap(t=>[t.tocId,...this.tocIds(t.children)])}buildBreadcrumb(e){let t=[e.tocId];for(;e?.parentTocId;)t.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return t}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Lr=class{convertPaginatedToc(e,t){return new Vn(e,t).build()}};var js=$`
|
|
73
|
+
`;var Vd="ft-app-info",Kn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},Kd={session:(o,e)=>{ee(o.session,e.payload)||(o.session=e.payload,setTimeout(()=>N.dispatchEvent(new Kn(e.payload)),0))}},N=we.get({name:Vd,reducers:Kd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var et=class o{static get(e){let{baseUrl:t,apiIntegrationIdentifier:n}=N.getState(),a=e??n;if(t&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,a,!0)}static await(e){return new Promise(t=>{let n=o.get(e);if(n)t(n);else{let a=N.subscribe(()=>{n=o.get(e),n&&(a(),t(n))})}})}};var or=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:et.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):et.await()}};var he=class extends or{constructor(e=!0,t){var n;super(t);let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new le,this.cache=e?a.commonCache:new le}clearCache(){this.cache.clearAll()}};var Gs,Zd=Symbol("clearAfterUnitTest"),kr=class extends he{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Gs]=()=>{this.defaultMessages={},this.cache=new le,this.listeners={}},this.currentUiLocale=N.getState().uiLocale,N.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=N.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var n;if(e=e.toLowerCase(),t&&Object.keys(t).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...t};ee(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var t,n;return this.fetchContext(e),(n=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,t){let n=e.toLowerCase();return this.resolveContext(n)[t]}resolveMessage(e,t,...n){var a;let i=e.toLowerCase(),s=this.resolveContext(i);return new Yt((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(t,...n)}async fetchContext(e){let t=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e))}catch(a){!(a instanceof ye)&&t&&console.error(a)}return t&&await this.notify(e),n}subscribe(e,t){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(t),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(t)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(t=>mr(0).then(()=>t()).catch(()=>null)))}};Gs=Zd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends kr{constructor(){super(async(o,e)=>(await this.awaitApi).getFluidTopicsMessageContext(o,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends kr{constructor(){super(async(o,e)=>(await this.awaitApi).getCustomMessageContext(o,e))}});var Vs=window.FluidTopicsI18nService,Vb=window.FluidTopicsCustomI18nService;var q=function(o,e,t,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(i=(a<3?s(i):a>3?s(e,t,i):s(e,t))||i);return a>3&&i&&Object.defineProperty(e,t,i),i},j=class extends J{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>et.get(),this.messageContexts=[],this.cache=new le,this.cleanSessionDebouncer=new Q}render(){return at`
|
|
74
74
|
<slot></slot>
|
|
75
|
-
`}update(e){var t,n,a,i,s;super.update(e),e.has("baseUrl")&&(N.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&N.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&N.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&N.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&N.actions.noCustom(this.noCustom),e.has("editorMode")&&N.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&N.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&N.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>js.addContext(l)),e.has("openExternalDocumentInNewTab")&&N.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&N.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&N.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(N.actions.defaultLocales((t=this.localesConfiguration)===null||t===void 0?void 0:t.defaultLocales),N.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),N.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};j.elementDefinitions={};j.styles=$s;q([L()],j.prototype,"baseUrl",void 0);q([L()],j.prototype,"apiIntegrationIdentifier",void 0);q([L()],j.prototype,"uiLocale",void 0);q([Ne(null)],j.prototype,"availableUiLocales",void 0);q([Ne(null)],j.prototype,"metadataConfiguration",void 0);q([L({type:Boolean})],j.prototype,"editorMode",void 0);q([L({type:Boolean})],j.prototype,"noCustom",void 0);q([L({type:Boolean})],j.prototype,"openExternalDocumentInNewTab",void 0);q([L({converter:{fromAttribute(o){return o==="false"?!1:o==="true"||(o??!1)}}})],j.prototype,"noCustomComponent",void 0);q([L({type:Boolean})],j.prototype,"withManualResources",void 0);q([L({type:Boolean})],j.prototype,"navigatorOnline",void 0);q([L({type:Boolean})],j.prototype,"forcedOffline",void 0);q([L({type:Object})],j.prototype,"apiProvider",void 0);q([Ne([])],j.prototype,"messageContexts",void 0);q([Ne(void 0)],j.prototype,"session",void 0);q([kt()],j.prototype,"localesConfiguration",void 0);var Dr=class extends he{async listMySearches(){let{session:e}=N.getState();return Ce(e,W.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Fr=class extends he{async listMyBookmarks(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Vd="ft-user-assets",Ur=we.get({name:Vd,initialState:{savedSearches:void 0,bookmarks:void 0}}),Zn=class{constructor(){this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Fr,this.savedSearchesService=new Dr,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=N.getState();ee((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ur.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ur.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ur.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ur.actions.bookmarks(t)}}},Gs=new Zn;var qn=class{addCommand(e,t=!1){N.commands.add(e,t)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new qn;var Yn=class{highlightHtml(e,t,n){tn(e,t,n)}};window.FluidTopicsHighlightHtmlService=new Yn;var Jn=class{isDate(e){var t,n,a,i;return(i=(a=((n=(t=N.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,t){var n,a,i;return Et.format(e,(n=t?.locale)!==null&&n!==void 0?n:N.getState().uiLocale,(a=t?.longFormat)!==null&&a!==void 0?a:!1,(i=t?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Jn;var nr=class{static get(e,t){var n,a,i,s;let l=N.getState(),{lang:d,region:p}=(a=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Ot(l.baseUrl,(s=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&s!==void 0?s:{},e??20,l.searchInAllLanguagesAllowed,t??`${d}-${p}`)}};var Qn=class{urlToSearchRequest(e){return nr.get().parse(e)}searchRequestToUrl(e){return nr.get().serialize(e)}};window.FluidTopicsUrlService=new Qn;var tt=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:{currentItem:e}})}};tt.eventName="change";var Xn=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let t=sessionStorage.getItem(this.itemName(e));return t?JSON.parse(t):void 0}set(e,t){sessionStorage.setItem(this.itemName(e),JSON.stringify(t))}},Ks=new Xn;var Mr=class o extends be{static build(){return new o(window.history,Ks,()=>window.location,!1)}constructor(e,t,n,a){var i,s;super(),this.history=e,this.historyStorage=t,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,t=!1){let n=t&&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),ee(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new tt(this.currentItem())),0)}installProxies(){let e=t=>(n,a,[i,s,l])=>{let d=t(),p={...d===this.currentIndex?this.currentState:void 0,...i,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,s,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let t=this.history.length-1;t>=0;t--)e?this.states[t]=this.historyStorage.get(t):setTimeout(()=>this.states[t]=this.historyStorage.get(t),this.history.length-t)}updateCurrentState(e,t=!1){var n,a,i;let s={...this.buildCurrentState(),...e,index:this.currentIndex,title:(n=e?.title)!==null&&n!==void 0?n:this.currentState.title},l=t?(a=e?.majorState)!==null&&a!==void 0?a:this.currentState.majorState:(i=this.currentState.majorState)!==null&&i!==void 0?i:e?.majorState;l!=null&&(s.majorState=l),this.setCurrentState(s)}addHistoryChangeListener(e){this.addEventListener(tt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(tt.eventName,e)}currentItem(){return Bt(this.currentState)}back(){let e=this.previousMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return Bt(this.states[this.previousMajorPosition()])}previousMajorPosition(){let e=this.currentIndex;for(;e>0&&!this.isMajorState(e);)e--;return this.previousExistingPosition(e)}forward(){let e=this.nextMajorPosition();e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){return Bt(this.states[this.nextMajorPosition()])}nextMajorPosition(){let e=this.currentIndex;do e++;while(e<this.states.length&&!this.isMajorState(e));do e++;while(e<this.states.length&&!this.isMajorState(e));return this.previousExistingPosition(e)}previousExistingPosition(e){let t=e;do t--;while(t>0&&!this.hasState(t));return t}buildCurrentState(){var e,t;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(t=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:document.title}}hasState(e){return this.states[e]!=null}isMajorState(e){var t,n;return this.hasState(e)&&((n=(t=this.states[e])===null||t===void 0?void 0:t.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Mr.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(o),removeHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(o)});Wt("ft-app-context")(j);var Br=class extends he{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,t,n){super(!1,t),this.converter=e,this._mapId=n,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(t=>this.converter.convertPaginatedToc(e,t)))),this.cache.register("ratingSummary",()=>{var e,t;return Ce((t=(e=N.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&t!==void 0?t:[],"RATING_USER")?this.withMapId(a=>this.fetchMapRating(a)):Promise.resolve()})}clear(){this.cache.clearAll()}makeCacheKey(e,t){return e+(t?"-destinationLanguage-"+t?.destinationLanguage:"")}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e),()=>this.fetchPages(this.mapId,e).then(t=>this.converter.convertPaginatedToc(this.mapId,t)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getTocNode(e,t){return(await this.getEnrichedToc(t)).nodeByTocId[e]}getTocNodeNow(e,t){var n;return(n=this.getEnrichedTocNow(t))===null||n===void 0?void 0:n.nodeByTocId[e]}getTocNodeNowByUrl(e,t){var n,a;let i=this.getMapNow(t);return i?.prettyUrl==e||`${i?.id}/root`===e?(n=this.getEnrichedTocNow(t))===null||n===void 0?void 0:n.toc[0]:(a=this.getEnrichedTocNow(t))===null||a===void 0?void 0:a.nodeByUrl[e]}async getPage(e,t){let n=await this.getEnrichedToc(t);return n.pages[e-1]||n.pages[0]}async getPageByTocId(e,t){let n=await this.getEnrichedToc(t);return n.pageByTocId[e]||n.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,t){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,t),()=>this.fetchTranslatedTopicHTMLContent(e,t))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,t){return this.cache.get("document-relatives-"+e+"-"+t.join("-"),()=>this.fetchRelativesForDocument(e,t))}getRelativesForTopicInMap(e,t,n){return this.cache.get("topic-relatives-"+[e,t,...n].join("-"),()=>this.fetchRelativesForTopicInMap(e,t,n))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,t,n){let a=this.getNavigationData(e,t,n),i=this.getReaderLinkPrefix()+(a.prettyUrl?a.prettyUrl:`${a.mapId}/${a.tocId}`),s=new URL(i,this.api.tenantBaseUrl);return a.page!=null&&s.searchParams.set("page",`${a.page}`),a.prettyUrlDuplicated&&s.searchParams.set("tocId",a.tocId),a.section!=null&&s.searchParams.set("section",a.section),s.href}getNavigationData(e,t,n,a){var i,s;e=e||"root";let l=this.getEnrichedTocNow(a),d=l?.pageByTocId[e],p=l?.nodeByTocId[e],h=p?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(i=p?.title)!==null&&i!==void 0?i:"",untranslatedTopicTitle:p?.untranslatedTitle,page:t&&d&&d.number!==t?t:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(s=l?.duplicatedPrettyUrls.has(h??""))!==null&&s!==void 0?s:!1,section:n}}async getAccurateNavigationData(e,t,n,a){return await this.getEnrichedToc(a),this.getNavigationData(e,t,n,a)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(t=>{var n;return t?{type:t.topics.type,rating:(n=t.topics)===null||n===void 0?void 0:n.ratings.find(a=>a.tocId===e)}:void 0})}rateMap(e,t){return this.makeRateMapRequest(e,t).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,t){return this.makeMapFeedbackRequest(e,t)}rateTopic(e,t,n){return this.makeRateTopicRequest(e,t,n).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=N.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,t,n){return this.makeTopicFeedbackRequest(e,t,n)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,t){let n=this.getTocNodeNow(e,t),a=[{tocId:n.tocId,title:n.title,untranslatedTitle:n.untranslatedTitle}],i=this.getTocNodeNow(n.parentTocId,t);for(;i;)a.unshift({tocId:i.tocId,title:i.title,untranslatedTitle:i.untranslatedTitle}),i=this.getTocNodeNow(i.parentTocId,t);return a}isFeatureAccessible(e,{session:t}){var n;if(!this.isFeatureAvailable(e))return!1;switch(e){case Ae.FEEDBACK:return Ce(t??[],W.FEEDBACK_USER);case Ae.RATING:return Ce(t??[],W.RATING_USER);case Ae.PRINT:return Ce(t??[],W.PRINT_USER);case Ae.BOOKMARK:return!!t?.sessionAuthenticated;case Ae.COLLECTIONS:return Ce(t??[],W.COLLECTION_USER);case Ae.PERSONAL_BOOKS:return Ce(t??[],W.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Wr=class o extends Br{static async build(e){return new o(new Lr,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,t){let n=await this.api.getMap(e,t);return this.fingerprint=n.fingerprint,n}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,t){return await this.getMap(t),this.api.getPages(e,this.fingerprint,t)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,t){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,t)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,t){let n={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:t}}],sort:[],facets:[]};return this.api.search(n)}fetchRelativesForTopicInMap(e,t,n){let a={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:n}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(a)}makeMapFeedbackRequest(e,t){return this.api.sendMapFeedback(this.mapId,e,t)}makeRateMapRequest(e,t){return this.api.rateMap(this.mapId,e,t)}makeRateTopicRequest(e,t,n){return this.api.rateTopic(this.mapId,e,t,n)}makeTopicFeedbackRequest(e,t,n){return this.api.sendTopicFeedback(this.mapId,e,t,n)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var Hr=class o{static build(e,t){return new o(Hs(e.trim()||"context"),t??Wr.build)}loaded(){return Ao(()=>this._loaded)}constructor(e,t,n){this.store=e,this.clusteringHelperProvider=n,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new X(10),this.initService(t)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return Ut(()=>this.service)}async navigateToTopic(e,t,n){await this.loaded();let a=await this.awaitService(),i=await(n!=null?a.getPage(n,this.getTranslationSettings()):a.getPageByTocId(e??"root",this.getTranslationSettings()));this.store.actions.currentPage(i);let s=this.resolveValidNonRootTocId(e,i);this.store.actions.scrollTarget({tocId:s,section:t}),this.store.getState().visibleTopics[0]!==s&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,t){var n,a,i;let s=(n=e==="root"?void 0:e)!==null&&n!==void 0?n:t.rootTocId;return t.topics.includes(s)?s:(i=(a=t.topics[0])!==null&&a!==void 0?a:t.hiddenTopics[0])!==null&&i!==void 0?i:"root"}async navigateToPage(e){await this.loaded();let n=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(n)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(e){var t,n,a,i,s,l;try{e&&this.setTranslationLoading(!0);let d=p=>{throw e&&this.setTranslationError(!0),p};await Promise.all([(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(p=>this.store.actions.configuration(p)),(n=this.service)===null||n===void 0?void 0:n.getMap(e).then(p=>this.store.actions.map(p)).catch(d),(a=this.service)===null||a===void 0?void 0:a.getToc(e).then(p=>this.store.actions.toc(p)).catch(d),(i=this.service)===null||i===void 0?void 0:i.getPagesToc(e).then(p=>this.store.actions.pagesToc(p)).catch(d),(s=this.service)===null||s===void 0?void 0:s.getPaginationConfiguration().then(p=>this.store.actions.paginationConfiguration(p)).catch(d),(l=this.service)===null||l===void 0?void 0:l.getTranslationError(e).then(p=>this.setTranslationError(p))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(d){this.errorHandler&&!(d instanceof ye)&&this.errorHandler(d)}}fetchRelatives(){var e,t,n;let a=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(i=>{var s;return i.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(i=>i.values);a!==void 0&&a.length>0?(t=this.service)===null||t===void 0||t.getRelativesForDocument((n=this.store.getState().configuration)===null||n===void 0?void 0:n.relativePivotMetadata,a).then(i=>{let s=i.results.flatMap(l=>l.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(rr.clusteringHelperCreated))}createClusteringHelper(){var e,t;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let n=this.store.getState().relatives;if(n){let a=n.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),i=(t=(e=N.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&t!==void 0?t:[];return new Ft(n,a,this.metadataForSwitchToRelatives,i)}}async navigateToRelativeTopicIfFound(e){var t,n,a;await this.loaded();let i=await Ut(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,i,[e]);if(!((a=(n=(t=d?.results)===null||t===void 0?void 0:t[0])===null||n===void 0?void 0:n.entries)===null||a===void 0)&&a[0]){let p=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let t=this.store.getState();return t.translation.profileId&&t.translation.destinationLanguage?{profileId:t.translation.profileId,destinationLanguage:t.translation.destinationLanguage.code,sourceLanguage:(e=t.map)===null||e===void 0?void 0:e.lang}:void 0}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var t;let n=await((t=this.service)===null||t===void 0?void 0:t.getTopicRating(e));n&&this.store.actions.setTopicsRating({[e]:n})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}getAccurateNavigationData(e,t,n){return this.service.getAccurateNavigationData(e,t?.number,n?.section,this.getTranslationSettings())}buildBreadcrumb(e){var t;return(t=this.service)===null||t===void 0?void 0:t.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var t,n,a=this.getTranslationSettings();return a?(t=this.service)===null||t===void 0?void 0:t.getTranslatedTopicContent(e,a).then(i=>(i.isTranslationError&&this.setTranslationError(!0),i.content)):(n=this.service)===null||n===void 0?void 0:n.getTopicContent(e)}getTocNode(e){var t;return(t=this.service)===null||t===void 0?void 0:t.getTocNode(e,this.getTranslationSettings())}getPage(e){var t;return(t=this.service)===null||t===void 0?void 0:t.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(rr.mapAttachmentsUpdate))}};var mv={},Vs=z`
|
|
76
|
-
`;var
|
|
75
|
+
`}update(e){var t,n,a,i,s;super.update(e),e.has("baseUrl")&&(N.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&N.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&N.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&N.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&N.actions.noCustom(this.noCustom),e.has("editorMode")&&N.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&N.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&N.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Vs.addContext(l)),e.has("openExternalDocumentInNewTab")&&N.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&N.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&N.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(N.actions.defaultLocales((t=this.localesConfiguration)===null||t===void 0?void 0:t.defaultLocales),N.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),N.actions.searchInAllLanguagesAllowed((s=(i=this.localesConfiguration)===null||i===void 0?void 0:i.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};j.elementDefinitions={};j.styles=js;q([L()],j.prototype,"baseUrl",void 0);q([L()],j.prototype,"apiIntegrationIdentifier",void 0);q([L()],j.prototype,"uiLocale",void 0);q([Ne(null)],j.prototype,"availableUiLocales",void 0);q([Ne(null)],j.prototype,"metadataConfiguration",void 0);q([L({type:Boolean})],j.prototype,"editorMode",void 0);q([L({type:Boolean})],j.prototype,"noCustom",void 0);q([L({type:Boolean})],j.prototype,"openExternalDocumentInNewTab",void 0);q([L({converter:{fromAttribute(o){return o==="false"?!1:o==="true"||(o??!1)}}})],j.prototype,"noCustomComponent",void 0);q([L({type:Boolean})],j.prototype,"withManualResources",void 0);q([L({type:Boolean})],j.prototype,"navigatorOnline",void 0);q([L({type:Boolean})],j.prototype,"forcedOffline",void 0);q([L({type:Object})],j.prototype,"apiProvider",void 0);q([Ne([])],j.prototype,"messageContexts",void 0);q([Ne(void 0)],j.prototype,"session",void 0);q([it()],j.prototype,"localesConfiguration",void 0);var Dr=class extends he{async listMySearches(){let{session:e}=N.getState();return Ce(e,W.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Fr=class extends he{async listMyBookmarks(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var qd="ft-user-assets",Mr=we.get({name:qd,initialState:{savedSearches:void 0,bookmarks:void 0}}),Zn=class{constructor(){this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Fr,this.savedSearchesService=new Dr,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=N.getState();ee((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Mr.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Mr.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Mr.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Mr.actions.bookmarks(t)}}},Ks=new Zn;var qn=class{addCommand(e,t=!1){N.commands.add(e,t)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new qn;var Yn=class{highlightHtml(e,t,n){tn(e,t,n)}};window.FluidTopicsHighlightHtmlService=new Yn;var Jn=class{isDate(e){var t,n,a,i;return(i=(a=((n=(t=N.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1}format(e,t){var n,a,i;return wt.format(e,(n=t?.locale)!==null&&n!==void 0?n:N.getState().uiLocale,(a=t?.longFormat)!==null&&a!==void 0?a:!1,(i=t?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new Jn;var nr=class{static get(e,t){var n,a,i,s;let l=N.getState(),{lang:d,region:p}=(a=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Et(l.baseUrl,(s=(i=window.FluidTopicsClientConfiguration)===null||i===void 0?void 0:i.predefinedSorts)!==null&&s!==void 0?s:{},e??20,l.searchInAllLanguagesAllowed,t??`${d}-${p}`)}};var Xn=class{urlToSearchRequest(e){return nr.get().parse(e)}searchRequestToUrl(e){return nr.get().serialize(e)}};window.FluidTopicsUrlService=new Xn;var tt=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:{currentItem:e}})}};tt.eventName="change";var Qn=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let t=sessionStorage.getItem(this.itemName(e));return t?JSON.parse(t):void 0}set(e,t){sessionStorage.setItem(this.itemName(e),JSON.stringify(t))}},Zs=new Qn;var Ur=class o extends be{static build(){return new o(window.history,Zs,()=>window.location,!1)}constructor(e,t,n,a){var i,s;super(),this.history=e,this.historyStorage=t,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(i=e.state)===null||i===void 0?void 0:i.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,t=!1){let n=t&&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),ee(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new tt(this.currentItem())),0)}installProxies(){let e=t=>(n,a,[i,s,l])=>{let d=t(),p={...d===this.currentIndex?this.currentState:void 0,...i,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(a,[p,s,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let t=this.history.length-1;t>=0;t--)e?this.states[t]=this.historyStorage.get(t):setTimeout(()=>this.states[t]=this.historyStorage.get(t),this.history.length-t)}updateCurrentState(e,t=!1){var n,a,i;let s={...this.buildCurrentState(),...e,index:this.currentIndex,title:(n=e?.title)!==null&&n!==void 0?n:this.currentState.title},l=t?(a=e?.majorState)!==null&&a!==void 0?a:this.currentState.majorState:(i=this.currentState.majorState)!==null&&i!==void 0?i:e?.majorState;l!=null&&(s.majorState=l),this.setCurrentState(s)}addHistoryChangeListener(e){this.addEventListener(tt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(tt.eventName,e)}currentItem(){return Bt(this.currentState)}back(){let e=this.previousMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return Bt(this.states[this.previousMajorPosition()])}previousMajorPosition(){let e=this.currentIndex;for(;e>0&&!this.isMajorState(e);)e--;return this.previousExistingPosition(e)}forward(){let e=this.nextMajorPosition();e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){return Bt(this.states[this.nextMajorPosition()])}nextMajorPosition(){let e=this.currentIndex;do e++;while(e<this.states.length&&!this.isMajorState(e));do e++;while(e<this.states.length&&!this.isMajorState(e));return this.previousExistingPosition(e)}previousExistingPosition(e){let t=e;do t--;while(t>0&&!this.hasState(t));return t}buildCurrentState(){var e,t;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(t=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:document.title}}hasState(e){return this.states[e]!=null}isMajorState(e){var t,n;return this.hasState(e)&&((n=(t=this.states[e])===null||t===void 0?void 0:t.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Ur.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(o),removeHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(o)});Wt("ft-app-context")(j);var Br=class extends he{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,t,n){super(!1,t),this.converter=e,this._mapId=n,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(t=>this.converter.convertPaginatedToc(e,t)))),this.cache.register("ratingSummary",()=>{var e,t;return Ce((t=(e=N.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&t!==void 0?t:[],"RATING_USER")?this.withMapId(a=>this.fetchMapRating(a)):Promise.resolve()})}clear(){this.cache.clearAll()}makeCacheKey(e,t){return e+(t?"-destinationLanguage-"+t?.destinationLanguage:"")}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e),()=>this.fetchPages(this.mapId,e).then(t=>this.converter.convertPaginatedToc(this.mapId,t)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getTocNode(e,t){return(await this.getEnrichedToc(t)).nodeByTocId[e]}getTocNodeNow(e,t){var n;return(n=this.getEnrichedTocNow(t))===null||n===void 0?void 0:n.nodeByTocId[e]}getTocNodeNowByUrl(e,t){var n,a;let i=this.getMapNow(t);return i?.prettyUrl==e||`${i?.id}/root`===e?(n=this.getEnrichedTocNow(t))===null||n===void 0?void 0:n.toc[0]:(a=this.getEnrichedTocNow(t))===null||a===void 0?void 0:a.nodeByUrl[e]}async getPage(e,t){let n=await this.getEnrichedToc(t);return n.pages[e-1]||n.pages[0]}async getPageByTocId(e,t){let n=await this.getEnrichedToc(t);return n.pageByTocId[e]||n.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,t){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,t),()=>this.fetchTranslatedTopicHTMLContent(e,t))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,t){return this.cache.get("document-relatives-"+e+"-"+t.join("-"),()=>this.fetchRelativesForDocument(e,t))}getRelativesForTopicInMap(e,t,n){return this.cache.get("topic-relatives-"+[e,t,...n].join("-"),()=>this.fetchRelativesForTopicInMap(e,t,n))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,t,n){let a=this.getNavigationData(e,t,n),i=this.getReaderLinkPrefix()+(a.prettyUrl?a.prettyUrl:`${a.mapId}/${a.tocId}`),s=new URL(i,this.api.tenantBaseUrl);return a.page!=null&&s.searchParams.set("page",`${a.page}`),a.prettyUrlDuplicated&&s.searchParams.set("tocId",a.tocId),a.section!=null&&s.searchParams.set("section",a.section),s.href}getNavigationData(e,t,n,a){var i,s;e=e||"root";let l=this.getEnrichedTocNow(a),d=l?.pageByTocId[e],p=l?.nodeByTocId[e],h=p?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(i=p?.title)!==null&&i!==void 0?i:"",untranslatedTopicTitle:p?.untranslatedTitle,page:t&&d&&d.number!==t?t:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(s=l?.duplicatedPrettyUrls.has(h??""))!==null&&s!==void 0?s:!1,section:n}}async getAccurateNavigationData(e,t,n,a){return await this.getEnrichedToc(a),this.getNavigationData(e,t,n,a)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(t=>{var n;return t?{type:t.topics.type,rating:(n=t.topics)===null||n===void 0?void 0:n.ratings.find(a=>a.tocId===e)}:void 0})}rateMap(e,t){return this.makeRateMapRequest(e,t).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,t){return this.makeMapFeedbackRequest(e,t)}rateTopic(e,t,n){return this.makeRateTopicRequest(e,t,n).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=N.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,t,n){return this.makeTopicFeedbackRequest(e,t,n)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,t){let n=this.getTocNodeNow(e,t),a=[{tocId:n.tocId,title:n.title,untranslatedTitle:n.untranslatedTitle}],i=this.getTocNodeNow(n.parentTocId,t);for(;i;)a.unshift({tocId:i.tocId,title:i.title,untranslatedTitle:i.untranslatedTitle}),i=this.getTocNodeNow(i.parentTocId,t);return a}isFeatureAccessible(e,{session:t}){var n;if(!this.isFeatureAvailable(e))return!1;switch(e){case Ae.FEEDBACK:return Ce(t??[],W.FEEDBACK_USER);case Ae.RATING:return Ce(t??[],W.RATING_USER);case Ae.PRINT:return Ce(t??[],W.PRINT_USER);case Ae.BOOKMARK:return!!t?.sessionAuthenticated;case Ae.COLLECTIONS:return Ce(t??[],W.COLLECTION_USER);case Ae.PERSONAL_BOOKS:return Ce(t??[],W.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Wr=class o extends Br{static async build(e){return new o(new Lr,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,t){let n=await this.api.getMap(e,t);return this.fingerprint=n.fingerprint,n}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,t){return await this.getMap(t),this.api.getPages(e,this.fingerprint,t)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,t){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,t)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,t){let n={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:t}}],sort:[],facets:[]};return this.api.search(n)}fetchRelativesForTopicInMap(e,t,n){let a={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:n}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(a)}makeMapFeedbackRequest(e,t){return this.api.sendMapFeedback(this.mapId,e,t)}makeRateMapRequest(e,t){return this.api.rateMap(this.mapId,e,t)}makeRateTopicRequest(e,t,n){return this.api.rateTopic(this.mapId,e,t,n)}makeTopicFeedbackRequest(e,t,n){return this.api.sendTopicFeedback(this.mapId,e,t,n)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var Hr=class o{static build(e,t){return new o($s(e.trim()||"context"),t??Wr.build)}loaded(){return Ao(()=>this._loaded)}constructor(e,t,n){this.store=e,this.clusteringHelperProvider=n,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new Q(10),this.initService(t)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return Mt(()=>this.service)}async navigateToTopic(e,t,n){await this.loaded();let a=await this.awaitService(),i=await(n!=null?a.getPage(n,this.getTranslationSettings()):a.getPageByTocId(e??"root",this.getTranslationSettings()));this.store.actions.currentPage(i);let s=this.resolveValidNonRootTocId(e,i);this.store.actions.scrollTarget({tocId:s,section:t}),this.store.getState().visibleTopics[0]!==s&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,t){var n,a,i;let s=(n=e==="root"?void 0:e)!==null&&n!==void 0?n:t.rootTocId;return t.topics.includes(s)?s:(i=(a=t.topics[0])!==null&&a!==void 0?a:t.hiddenTopics[0])!==null&&i!==void 0?i:"root"}async navigateToPage(e){await this.loaded();let n=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(n)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(e){var t,n,a,i,s,l;try{e&&this.setTranslationLoading(!0);let d=p=>{throw e&&this.setTranslationError(!0),p};await Promise.all([(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(p=>this.store.actions.configuration(p)),(n=this.service)===null||n===void 0?void 0:n.getMap(e).then(p=>this.store.actions.map(p)).catch(d),(a=this.service)===null||a===void 0?void 0:a.getToc(e).then(p=>this.store.actions.toc(p)).catch(d),(i=this.service)===null||i===void 0?void 0:i.getPagesToc(e).then(p=>this.store.actions.pagesToc(p)).catch(d),(s=this.service)===null||s===void 0?void 0:s.getPaginationConfiguration().then(p=>this.store.actions.paginationConfiguration(p)).catch(d),(l=this.service)===null||l===void 0?void 0:l.getTranslationError(e).then(p=>this.setTranslationError(p))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(d){this.errorHandler&&!(d instanceof ye)&&this.errorHandler(d)}}fetchRelatives(){var e,t,n;let a=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(i=>{var s;return i.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(i=>i.values);a!==void 0&&a.length>0?(t=this.service)===null||t===void 0||t.getRelativesForDocument((n=this.store.getState().configuration)===null||n===void 0?void 0:n.relativePivotMetadata,a).then(i=>{let s=i.results.flatMap(l=>l.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(rr.clusteringHelperCreated))}createClusteringHelper(){var e,t;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let n=this.store.getState().relatives;if(n){let a=n.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),i=(t=(e=N.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&t!==void 0?t:[];return new Ft(n,a,this.metadataForSwitchToRelatives,i)}}async navigateToRelativeTopicIfFound(e){var t,n,a;await this.loaded();let i=await Mt(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,i,[e]);if(!((a=(n=(t=d?.results)===null||t===void 0?void 0:t[0])===null||n===void 0?void 0:n.entries)===null||a===void 0)&&a[0]){let p=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let t=this.store.getState();return t.translation.profileId&&t.translation.destinationLanguage?{profileId:t.translation.profileId,destinationLanguage:t.translation.destinationLanguage.code,sourceLanguage:(e=t.map)===null||e===void 0?void 0:e.lang}:void 0}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var t;let n=await((t=this.service)===null||t===void 0?void 0:t.getTopicRating(e));n&&this.store.actions.setTopicsRating({[e]:n})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}getAccurateNavigationData(e,t,n){return this.service.getAccurateNavigationData(e,t?.number,n?.section,this.getTranslationSettings())}buildBreadcrumb(e){var t;return(t=this.service)===null||t===void 0?void 0:t.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var t,n,a=this.getTranslationSettings();return a?(t=this.service)===null||t===void 0?void 0:t.getTranslatedTopicContent(e,a).then(i=>(i.isTranslationError&&this.setTranslationError(!0),i.content)):(n=this.service)===null||n===void 0?void 0:n.getTopicContent(e)}getTocNode(e){var t;return(t=this.service)===null||t===void 0?void 0:t.getTocNode(e,this.getTranslationSettings())}getPage(e){var t;return(t=this.service)===null||t===void 0?void 0:t.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(rr.mapAttachmentsUpdate))}};var Cv={},qs=$`
|
|
76
|
+
`;var zr=class extends CustomEvent{constructor(e,t){super("ft-reader-map-loaded",{detail:{map:e,toc:t}})}},$r=class extends CustomEvent{constructor(e,t){super("ft-reader-visible-topics-change",{detail:{visibleTopics:t}})}},jr=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},Gr=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Vr=class extends Event{constructor(){super("ft-reader-map-not-found")}},Kr=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Zr=class extends Event{constructor(){super("ft-reader-map-forbidden")}},qr=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Yr=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}};var X=function(o,e,t,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(i=(a<3?s(i):a>3?s(e,t,i):s(e,t))||i);return a>3&&i&&Object.defineProperty(e,t,i),i},Yd=o=>e=>+(e??"NaN")>0?+e:o,G=class extends ke{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new Q(5),this.navigationDebouncer=new Q(10),this.mapLoadedEventDebouncer=new Q(50),this.addStore(N)}render(){return at`
|
|
77
77
|
${this.importStyleIfNeeded()}
|
|
78
78
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
79
79
|
`}importStyleIfNeeded(){var e,t;let n=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!n||window.location.href.startsWith((t=this.baseUrl)!==null&&t!==void 0?t:"")?H:at`
|
|
80
80
|
<style>
|
|
81
81
|
@import "${n}"
|
|
82
82
|
</style>
|
|
83
|
-
`}get stateManager(){return this._stateManager==null&&(this._stateManager=Hr.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let t=e.fontsStylesheet();if(t&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${t}"]`)){let n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("href",t),document.head.append(n)}window.FluidTopicsReaderService=new Yr(this.stateManager)})}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(t=>e.has(t))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var t,n;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((t=this.scrollTarget)===null||t===void 0?void 0:t.tocId)==null){let a=e.get("scrollTarget");a?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(a.tocId,this.currentPage,a).then(i=>this.dispatchEvent(new jr(i))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((n=this.scrollTarget)===null||n===void 0?void 0:n.tocId)==null&&Promise.all(this.visibleTopics.map(a=>this.stateManager.getAccurateNavigationData(a,this.currentPage))).then(a=>{let i=a.filter(s=>s!=null&&s.topicTitle!=="").map(s=>({tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(s.tocId)}));this.dispatchEvent(new
|
|
83
|
+
`}get stateManager(){return this._stateManager==null&&(this._stateManager=Hr.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let t=e.fontsStylesheet();if(t&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${t}"]`)){let n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("href",t),document.head.append(n)}window.FluidTopicsReaderService=new Yr(this.stateManager)})}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(t=>e.has(t))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var t,n;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((t=this.scrollTarget)===null||t===void 0?void 0:t.tocId)==null){let a=e.get("scrollTarget");a?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(a.tocId,this.currentPage,a).then(i=>this.dispatchEvent(new jr(i))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((n=this.scrollTarget)===null||n===void 0?void 0:n.tocId)==null&&Promise.all(this.visibleTopics.map(a=>this.stateManager.getAccurateNavigationData(a,this.currentPage))).then(a=>{let i=a.filter(s=>s!=null&&s.topicTitle!=="").map(s=>({tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(s.tocId)}));this.dispatchEvent(new $r(this.map,i))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new qr),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)}),this.tocId&&!this.section&&(this.stateManager.store.commands.clear(/^focus-topic-/),this.stateManager.store.commands.add({type:`focus-topic-${this.tocId}`}))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let t=e;t.status===401?this.dispatchEvent(new Kr):t.status===403?this.dispatchEvent(new Zr):t.status===404?this.dispatchEvent(new Vr):this.dispatchEvent(new Gr(e))}reloadBookmarks(){Ks.reloadBookmarks()}async reloadRating(){var e,t;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(t=this.stateManager.store)===null||t===void 0||t.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new zr(this.map,this.toc))})}};G.styles=qs;X([pe({store:N.name})],G.prototype,"baseUrl",void 0);X([pe({store:N.name})],G.prototype,"session",void 0);X([L()],G.prototype,"mapId",void 0);X([L()],G.prototype,"tocId",void 0);X([L()],G.prototype,"section",void 0);X([L()],G.prototype,"topicPivot",void 0);X([L()],G.prototype,"searchInDocumentQuery",void 0);X([L({type:Number,converter:{fromAttribute:Yd()}})],G.prototype,"page",void 0);X([pe({store:"reader"})],G.prototype,"map",void 0);X([pe({store:"reader"})],G.prototype,"toc",void 0);X([pe({store:"reader"})],G.prototype,"visibleTopics",void 0);X([pe({store:"reader"})],G.prototype,"currentPage",void 0);X([pe({store:"reader"})],G.prototype,"scrollTarget",void 0);X([L({attribute:!1})],G.prototype,"readerServiceProvider",void 0);Wt("ft-reader-context")(G);})();
|
|
84
84
|
/*! Bundled license information:
|
|
85
85
|
|
|
86
86
|
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|