@fluid-topics/ft-reader-context 1.2.29 → 1.2.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
`)===0?U.substr(1,U.length):U}).forEach(function(U){var M=U.split(":"),P=M.shift().trim();if(P){var ue=M.join(":").trim();try{x.append(P,ue)}catch(Tt){console.warn("Response "+Tt.message)}}}),x}A.call(E.prototype);function k(y,x){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(x||(x={}),this.type="default",this.status=x.status===void 0?200:x.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=x.statusText===void 0?"":""+x.statusText,this.headers=new f(x.headers),this.url=x.url||"",this._initBody(y)}A.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},k.error=function(){var y=new k(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var L=[301,302,303,307,308];k.redirect=function(y,x){if(L.indexOf(x)===-1)throw new RangeError("Invalid status code");return new k(null,{status:x,headers:{location:y}})},t.DOMException=n.DOMException;try{new t.DOMException}catch{t.DOMException=function(x,_){this.message=x,this.name=_;var U=Error(x);this.stack=U.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function I(y,x){return new Promise(function(_,U){var M=new E(y,x);if(M.signal&&M.signal.aborted)return U(new t.DOMException("Aborted","AbortError"));var P=new XMLHttpRequest;function ue(){P.abort()}P.onload=function(){var K={statusText:P.statusText,headers:T(P.getAllResponseHeaders()||"")};M.url.indexOf("file://")===0&&(P.status<200||P.status>599)?K.status=200:K.status=P.status,K.url="responseURL"in P?P.responseURL:K.headers.get("X-Request-URL");var He="response"in P?P.response:P.responseText;setTimeout(function(){_(new k(He,K))},0)},P.onerror=function(){setTimeout(function(){U(new TypeError("Network request failed"))},0)},P.ontimeout=function(){setTimeout(function(){U(new TypeError("Network request timed out"))},0)},P.onabort=function(){setTimeout(function(){U(new t.DOMException("Aborted","AbortError"))},0)};function Tt(K){try{return K===""&&n.location.href?n.location.href:K}catch{return K}}if(P.open(M.method,Tt(M.url),!0),M.credentials==="include"?P.withCredentials=!0:M.credentials==="omit"&&(P.withCredentials=!1),"responseType"in P&&(a.blob?P.responseType="blob":a.arrayBuffer&&(P.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof f||n.Headers&&x.headers instanceof n.Headers)){var va=[];Object.getOwnPropertyNames(x.headers).forEach(function(K){va.push(d(K)),P.setRequestHeader(K,u(x.headers[K]))}),M.headers.forEach(function(K,He){va.indexOf(He)===-1&&P.setRequestHeader(He,K)})}else M.headers.forEach(function(K,He){P.setRequestHeader(He,K)});M.signal&&(M.signal.addEventListener("abort",ue),P.onreadystatechange=function(){P.readyState===4&&M.signal.removeEventListener("abort",ue)}),P.send(typeof M._bodyInit>"u"?null:M._bodyInit)})}return I.polyfill=!0,n.fetch||(n.fetch=I,n.Headers=f,n.Request=E,n.Response=k),t.Headers=f,t.Request=E,t.Response=k,t.fetch=I,t}({})})(ro);ro.fetch.ponyfill=!0;delete ro.fetch.polyfill;var _t=to.fetch?to:ro;We=_t.fetch;We.default=_t.fetch;We.fetch=_t.fetch;We.Headers=_t.Headers;We.Request=_t.Request;We.Response=_t.Response;Gs.exports=We});if(!ShadowRoot.prototype.createElement){let r=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,v){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(v)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let E=v.prototype.attributeChangedCallback,R=new Set(v.observedAttributes||[]);g(v,R,E);let T={elementClass:v,connectedCallback:v.prototype.connectedCallback,disconnectedCallback:v.prototype.disconnectedCallback,adoptedCallback:v.prototype.adoptedCallback,attributeChangedCallback:E,formAssociated:v.formAssociated,formAssociatedCallback:v.prototype.formAssociatedCallback,formDisabledCallback:v.prototype.formDisabledCallback,formResetCallback:v.prototype.formResetCallback,formStateRestoreCallback:v.prototype.formStateRestoreCallback,observedAttributes:R};this._definitionsByTag.set(O,T),this._definitionsByClass.set(v,T);let k=t.call(n,O);k||(k=f(O),e.call(n,O,k)),this===window.customElements&&(s.set(v,T),T.standInClass=k);let L=this._awaitingUpgrade.get(O);if(L){this._awaitingUpgrade.delete(O);for(let y of L)i.delete(y),b(y,T,!0)}let I=this._whenDefinedPromises.get(O);return I!==void 0&&(I.resolve(v),this._whenDefinedPromises.delete(O)),v}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 v=this._getDefinition(O);if(v!==void 0)return Promise.resolve(v.elementClass);let E=this._whenDefinedPromises.get(O);return E===void 0&&(E={},E.promise=new Promise(R=>E.resolve=R),this._whenDefinedPromises.set(O,E)),E.promise}_upgradeWhenDefined(O,v,E){let R=this._awaitingUpgrade.get(v);R||this._awaitingUpgrade.set(v,R=new Set),E?R.add(O):R.delete(O)}};let d;window.HTMLElement=function(){let v=d;if(v)return d=void 0,v;let E=s.get(this.constructor);if(!E)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return v=Reflect.construct(r,[],E.standInClass),Object.setPrototypeOf(v,this.constructor.prototype),a.set(v,E),v},window.HTMLElement.prototype=r.prototype;let u=O=>O===document||O instanceof ShadowRoot,h=O=>{let v=O.getRootNode();if(!u(v)){let E=C[C.length-1];if(E instanceof CustomElementRegistry)return E;v=E.getRootNode(),u(v)||(v=l.get(v)?.getRootNode()||document)}return v.customElements},f=O=>class{static get formAssociated(){return!0}constructor(){let E=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(E,HTMLElement.prototype);let R=h(E)||window.customElements,T=R._getDefinition(O);return T?b(E,T):i.set(E,R),E}connectedCallback(){let E=a.get(this);E?E.connectedCallback&&E.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,O,!0)}disconnectedCallback(){let E=a.get(this);E?E.disconnectedCallback&&E.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,O,!1)}adoptedCallback(){a.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let E=a.get(this);E&&E.formAssociated&&E?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let E=a.get(this);E?.formAssociated&&E?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let E=a.get(this);E?.formAssociated&&E?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let E=a.get(this);E?.formAssociated&&E?.formStateRestoreCallback?.apply(this,arguments)}},g=(O,v,E)=>{if(v.size===0||E===void 0)return;let R=O.prototype.setAttribute;R&&(O.prototype.setAttribute=function(L,I){let y=L.toLowerCase();if(v.has(y)){let x=this.getAttribute(y);R.call(this,y,I),E.call(this,y,x,I)}else R.call(this,y,I)});let T=O.prototype.removeAttribute;T&&(O.prototype.removeAttribute=function(L){let I=L.toLowerCase();if(v.has(I)){let y=this.getAttribute(I);T.call(this,I),E.call(this,I,y,null)}else T.call(this,I)});let k=O.prototype.toggleAttribute;k&&(O.prototype.toggleAttribute=function(L,I){let y=L.toLowerCase();if(v.has(y)){let x=this.getAttribute(y);k.call(this,y,I);let _=this.getAttribute(y);E.call(this,y,x,_)}else k.call(this,y,I)})},m=O=>{let v=Object.getPrototypeOf(O);if(v!==window.HTMLElement)return v===r?Object.setPrototypeOf(O,window.HTMLElement):m(v)},b=(O,v,E=!1)=>{Object.setPrototypeOf(O,v.elementClass.prototype),a.set(O,v),d=O;try{new v.elementClass}catch{m(v.elementClass),new v.elementClass}v.attributeChangedCallback&&v.observedAttributes.forEach(R=>{O.hasAttribute(R)&&v.attributeChangedCallback.call(O,R,null,O.getAttribute(R))}),E&&v.connectedCallback&&O.isConnected&&v.connectedCallback.call(O)},S=Element.prototype.attachShadow;Element.prototype.attachShadow=function(O){let v=S.apply(this,arguments);return O.customElements&&(v.customElements=O.customElements),v};let C=[document],w=(O,v,E=void 0)=>{let R=(E?Object.getPrototypeOf(E):O.prototype)[v];O.prototype[v]=function(){C.push(this);let T=R.apply(E||this,arguments);return T!==void 0&&l.set(T,this),C.pop(),T}};w(ShadowRoot,"createElement",document),w(ShadowRoot,"importNode",document),w(Element,"insertAdjacentHTML");let A=(O,v)=>{let E=Object.getOwnPropertyDescriptor(O.prototype,v);Object.defineProperty(O.prototype,v,{...E,set(R){C.push(this),E.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,v=HTMLElement.prototype.attachInternals,E=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...L){let I=v.call(this,...L);return O.set(I,this),I},E.forEach(L=>{let I=window.ElementInternals.prototype,y=I[L];I[L]=function(...x){let _=O.get(this);if(a.get(_).formAssociated===!0)return y?.call(this,...x);throw new DOMException(`Failed to execute ${y} 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 T{constructor(I){let y=new Map;I.forEach((x,_)=>{let U=x.getAttribute("name"),M=y.get(U)||[];this[+_]=x,M.push(x),y.set(U,M)}),this.length=I.length,y.forEach((x,_)=>{x&&(x.length===1?this[_]=x[0]:this[_]=new R(x))})}namedItem(I){return this[I]}}let k=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let L=k.get.call(this,[]),I=[];for(let y of L){let x=a.get(y);(!x||x.formAssociated===!0)&&I.push(y)}return new T(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 Uo={};F(Uo,{CSSResult:()=>ft,LitElement:()=>Se,ReactiveElement:()=>pe,_$LE:()=>ol,_$LH:()=>el,adoptStyles:()=>Nr,css:()=>G,defaultConverter:()=>Tr,getCompatibleStyle:()=>$t,html:()=>gt,isServer:()=>op,noChange:()=>Ie,notEqual:()=>Io,nothing:()=>j,render:()=>ko,supportsAdoptingStyleSheets:()=>Ft,svg:()=>Xc,unsafeCSS:()=>Bt});var yr=globalThis,br=yr.ShadowRoot&&(yr.ShadyCSS===void 0||yr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Sa=Symbol(),xa=new WeakMap,mr=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==Sa)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(br&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=xa.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&xa.set(t,e))}return e}toString(){return this.cssText}},Oa=r=>new mr(typeof r=="string"?r:r+"",void 0,Sa);var Eo=(r,e)=>{if(br)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let n=document.createElement("style"),a=yr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=t.cssText,r.appendChild(n)}},vr=br?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return Oa(t)})(r):r;var{is:kc,defineProperty:Uc,getOwnPropertyDescriptor:Dc,getOwnPropertyNames:Mc,getOwnPropertySymbols:Fc,getPrototypeOf:Bc}=Object,xr=globalThis,Ea=xr.trustedTypes,$c=Ea?Ea.emptyScript:"",Wc=xr.reactiveElementPolyfillSupport,Pt=(r,e)=>r,Lt={toAttribute(r,e){switch(e){case Boolean:r=r?$c:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Sr=(r,e)=>!kc(r,e),Ca={attribute:!0,type:String,converter:Lt,reflect:!1,hasChanged:Sr};Symbol.metadata??=Symbol("metadata"),xr.litPropertyMetadata??=new WeakMap;var ze=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=Ca){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),a=this.getPropertyDescriptor(e,n,t);a!==void 0&&Uc(this.prototype,e,a)}}static getPropertyDescriptor(e,t,n){let{get:a,set:i}=Dc(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return a?.call(this)},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)??Ca}static _$Ei(){if(this.hasOwnProperty(Pt("elementProperties")))return;let e=Bc(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Pt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Pt("properties"))){let t=this.properties,n=[...Mc(t),...Fc(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(vr(a))}else e!==void 0&&t.push(vr(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._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){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 Eo(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(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:Lt).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:Lt;this._$Em=a,this[a]=s.fromAttribute(t,i.type),this._$Em=null}}requestUpdate(e,t,n,a=!1,i){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??Sr)(a?i:this[e],t))return;this.C(e,t,n)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,n){this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}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)i.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.C(a,this[a],i)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(n=>n.hostUpdate?.()),this.update(t)):this._$ET()}catch(n){throw e=!1,this._$ET(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EO(t,this[t])),this._$ET()}updated(e){}firstUpdated(e){}};ze.elementStyles=[],ze.shadowRootOptions={mode:"open"},ze[Pt("elementProperties")]=new Map,ze[Pt("finalized")]=new Map,Wc?.({ReactiveElement:ze}),(xr.reactiveElementVersions??=[]).push("2.0.2");var wo=globalThis,Or=wo.trustedTypes,wa=Or?Or.createPolicy("lit-html",{createHTML:r=>r}):void 0,Ao="$lit$",ve=`lit$${(Math.random()+"").slice(9)}$`,Ro="?"+ve,Hc=`<${Ro}>`,Ve=document,Er=()=>Ve.createComment(""),Ut=r=>r===null||typeof r!="object"&&typeof r!="function",Ta=Array.isArray,Pa=r=>Ta(r)||typeof r?.[Symbol.iterator]=="function",Co=`[
|
|
3
|
-
\f\r]`,
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),_a=/'/g,Ia=/"/g,La=/^(?:script|style|textarea|title)$/i,ka=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),ju=ka(1),Gu=ka(2),X=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),Na=new WeakMap,Ge=Ve.createTreeWalker(Ve,129);function Ua(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return wa!==void 0?wa.createHTML(e):e}var Da=(r,e)=>{let t=r.length-1,n=[],a,i=e===2?"<svg>":"",s=kt;for(let l=0;l<t;l++){let d=r[l],u,h,f=-1,g=0;for(;g<d.length&&(s.lastIndex=g,h=s.exec(d),h!==null);)g=s.lastIndex,s===kt?h[1]==="!--"?s=Aa:h[1]!==void 0?s=Ra:h[2]!==void 0?(La.test(h[2])&&(a=RegExp("</"+h[2],"g")),s=je):h[3]!==void 0&&(s=je):s===je?h[0]===">"?(s=a??kt,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,u=h[1],s=h[3]===void 0?je:h[3]==='"'?Ia:_a):s===Ia||s===_a?s=je:s===Aa||s===Ra?s=kt:(s=je,a=void 0);let m=s===je&&r[l+1].startsWith("/>")?" ":"";i+=s===kt?d+Hc:f>=0?(n.push(u),d.slice(0,f)+Ao+d.slice(f)+ve+m):d+ve+(f===-2?l:m)}return[Ua(r,i+(r[t]||"<?>")+(e===2?"</svg>":"")),n]},Dt=class r{constructor({strings:e,_$litType$:t},n){let a;this.parts=[];let i=0,s=0,l=e.length-1,d=this.parts,[u,h]=Da(e,t);if(this.el=r.createElement(u,n),Ge.currentNode=this.el.content,t===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(a=Ge.nextNode())!==null&&d.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let f of a.getAttributeNames())if(f.endsWith(Ao)){let g=h[s++],m=a.getAttribute(f).split(ve),b=/([.?@])?(.*)/.exec(g);d.push({type:1,index:i,name:b[2],strings:m,ctor:b[1]==="."?wr:b[1]==="?"?Ar:b[1]==="@"?Rr:Ze}),a.removeAttribute(f)}else f.startsWith(ve)&&(d.push({type:6,index:i}),a.removeAttribute(f));if(La.test(a.tagName)){let f=a.textContent.split(ve),g=f.length-1;if(g>0){a.textContent=Or?Or.emptyScript:"";for(let m=0;m<g;m++)a.append(f[m],Er()),Ge.nextNode(),d.push({type:2,index:++i});a.append(f[g],Er())}}}else if(a.nodeType===8)if(a.data===Ro)d.push({type:2,index:i});else{let f=-1;for(;(f=a.data.indexOf(ve,f+1))!==-1;)d.push({type:7,index:i}),f+=ve.length-1}i++}}static createElement(e,t){let n=Ve.createElement("template");return n.innerHTML=e,n}};function Ke(r,e,t=r,n){if(e===X)return e;let a=n!==void 0?t._$Co?.[n]:t._$Cl,i=Ut(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(r),a._$AT(r,t,n)),n!==void 0?(t._$Co??=[])[n]=a:t._$Cl=a),a!==void 0&&(e=Ke(r,a._$AS(r,e.values),a,n)),e}var Cr=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??Ve).importNode(t,!0);Ge.currentNode=a;let i=Ge.nextNode(),s=0,l=0,d=n[0];for(;d!==void 0;){if(s===d.index){let u;d.type===2?u=new Mt(i,i.nextSibling,this,e):d.type===1?u=new d.ctor(i,d.name,d.strings,this,e):d.type===6&&(u=new _r(i,this,e)),this._$AV.push(u),d=n[++l]}s!==d?.index&&(i=Ge.nextNode(),s++)}return Ge.currentNode=Ve,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++}},Mt=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,a){this.type=2,this._$AH=z,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=Ke(this,e,t),Ut(e)?e===z||e==null||e===""?(this._$AH!==z&&this._$AR(),this._$AH=z):e!==this._$AH&&e!==X&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Pa(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==z&&Ut(this._$AH)?this._$AA.nextSibling.data=e:this.$(Ve.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Dt.createElement(Ua(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(t);else{let i=new Cr(a,this),s=i.u(this.options);i.p(t),this.$(s),this._$AH=i}}_$AC(e){let t=Na.get(e.strings);return t===void 0&&Na.set(e.strings,t=new Dt(e)),t}T(e){Ta(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 r(this.k(Er()),this.k(Er()),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))}},Ze=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,a,i){this.type=1,this._$AH=z,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=z}_$AI(e,t=this,n,a){let i=this.strings,s=!1;if(i===void 0)e=Ke(this,e,t,0),s=!Ut(e)||e!==this._$AH&&e!==X,s&&(this._$AH=e);else{let l=e,d,u;for(e=i[0],d=0;d<i.length-1;d++)u=Ke(this,l[n+d],t,d),u===X&&(u=this._$AH[d]),s||=!Ut(u)||u!==this._$AH[d],u===z?e=z:e!==z&&(e+=(u??"")+i[d+1]),this._$AH[d]=u}s&&!a&&this.O(e)}O(e){e===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},wr=class extends Ze{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===z?void 0:e}},Ar=class extends Ze{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==z)}},Rr=class extends Ze{constructor(e,t,n,a,i){super(e,t,n,a,i),this.type=5}_$AI(e,t=this){if((e=Ke(this,e,t,0)??z)===X)return;let n=this._$AH,a=e===z&&n!==z||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==z&&(n===z||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)}},_r=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){Ke(this,e)}},Ma={j:Ao,P:ve,A:Ro,C:1,M:Da,L:Cr,R:Pa,V:Ke,D:Mt,I:Ze,H:Ar,N:Rr,U:wr,B:_r},zc=wo.litHtmlPolyfillSupport;zc?.(Dt,Mt),(wo.litHtmlVersions??=[]).push("3.1.0");var Ir=globalThis,Ft=Ir.ShadowRoot&&(Ir.ShadyCSS===void 0||Ir.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_o=Symbol(),Fa=new WeakMap,ft=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==_o)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(Ft&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=Fa.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Fa.set(t,e))}return e}toString(){return this.cssText}},Bt=r=>new ft(typeof r=="string"?r:r+"",void 0,_o),G=(r,...e)=>{let t=r.length===1?r[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)+r[i+1],r[0]);return new ft(t,r,_o)},Nr=(r,e)=>{if(Ft)r.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,r.appendChild(n)}},$t=Ft?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return Bt(t)})(r):r;var{is:jc,defineProperty:Gc,getOwnPropertyDescriptor:Vc,getOwnPropertyNames:Kc,getOwnPropertySymbols:Zc,getPrototypeOf:qc}=Object,Pr=globalThis,Ba=Pr.trustedTypes,Yc=Ba?Ba.emptyScript:"",Jc=Pr.reactiveElementPolyfillSupport,Wt=(r,e)=>r,Tr={toAttribute(r,e){switch(e){case Boolean:r=r?Yc:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Io=(r,e)=>!jc(r,e),$a={attribute:!0,type:String,converter:Tr,reflect:!1,hasChanged:Io};Symbol.metadata??=Symbol("metadata"),Pr.litPropertyMetadata??=new WeakMap;var pe=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=$a){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),a=this.getPropertyDescriptor(e,n,t);a!==void 0&&Gc(this.prototype,e,a)}}static getPropertyDescriptor(e,t,n){let{get:a,set:i}=Vc(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return a?.call(this)},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)??$a}static _$Ei(){if(this.hasOwnProperty(Wt("elementProperties")))return;let e=qc(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Wt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Wt("properties"))){let t=this.properties,n=[...Kc(t),...Zc(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($t(a))}else e!==void 0&&t.push($t(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._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){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 Nr(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(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:Tr).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:Tr;this._$Em=a,this[a]=s.fromAttribute(t,i.type),this._$Em=null}}requestUpdate(e,t,n,a=!1,i){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??Io)(a?i:this[e],t))return;this.C(e,t,n)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,n){this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}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)i.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.C(a,this[a],i)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(n=>n.hostUpdate?.()),this.update(t)):this._$ET()}catch(n){throw e=!1,this._$ET(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EO(t,this[t])),this._$ET()}updated(e){}firstUpdated(e){}};pe.elementStyles=[],pe.shadowRootOptions={mode:"open"},pe[Wt("elementProperties")]=new Map,pe[Wt("finalized")]=new Map,Jc?.({ReactiveElement:pe}),(Pr.reactiveElementVersions??=[]).push("2.0.2");var To=globalThis,Lr=To.trustedTypes,Wa=Lr?Lr.createPolicy("lit-html",{createHTML:r=>r}):void 0,Po="$lit$",xe=`lit$${(Math.random()+"").slice(9)}$`,Lo="?"+xe,Qc=`<${Lo}>`,Je=document,zt=()=>Je.createComment(""),jt=r=>r===null||typeof r!="object"&&typeof r!="function",Ka=Array.isArray,Za=r=>Ka(r)||typeof r?.[Symbol.iterator]=="function",No=`[
|
|
5
|
-
\f\r]`,Ht=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ha=/-->/g,za=/>/g,qe=RegExp(`>|${No}(?:([^\\s"'>=/]+)(${No}*=${No}*(?:[^
|
|
6
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ja=/'/g,Ga=/"/g,qa=/^(?:script|style|textarea|title)$/i,Ya=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),gt=Ya(1),Xc=Ya(2),Ie=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),Va=new WeakMap,Ye=Je.createTreeWalker(Je,129);function Ja(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wa!==void 0?Wa.createHTML(e):e}var Qa=(r,e)=>{let t=r.length-1,n=[],a,i=e===2?"<svg>":"",s=Ht;for(let l=0;l<t;l++){let d=r[l],u,h,f=-1,g=0;for(;g<d.length&&(s.lastIndex=g,h=s.exec(d),h!==null);)g=s.lastIndex,s===Ht?h[1]==="!--"?s=Ha:h[1]!==void 0?s=za:h[2]!==void 0?(qa.test(h[2])&&(a=RegExp("</"+h[2],"g")),s=qe):h[3]!==void 0&&(s=qe):s===qe?h[0]===">"?(s=a??Ht,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,u=h[1],s=h[3]===void 0?qe:h[3]==='"'?Ga:ja):s===Ga||s===ja?s=qe:s===Ha||s===za?s=Ht:(s=qe,a=void 0);let m=s===qe&&r[l+1].startsWith("/>")?" ":"";i+=s===Ht?d+Qc:f>=0?(n.push(u),d.slice(0,f)+Po+d.slice(f)+xe+m):d+xe+(f===-2?l:m)}return[Ja(r,i+(r[t]||"<?>")+(e===2?"</svg>":"")),n]},Gt=class r{constructor({strings:e,_$litType$:t},n){let a;this.parts=[];let i=0,s=0,l=e.length-1,d=this.parts,[u,h]=Qa(e,t);if(this.el=r.createElement(u,n),Ye.currentNode=this.el.content,t===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(a=Ye.nextNode())!==null&&d.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let f of a.getAttributeNames())if(f.endsWith(Po)){let g=h[s++],m=a.getAttribute(f).split(xe),b=/([.?@])?(.*)/.exec(g);d.push({type:1,index:i,name:b[2],strings:m,ctor:b[1]==="."?Ur:b[1]==="?"?Dr:b[1]==="@"?Mr:Xe}),a.removeAttribute(f)}else f.startsWith(xe)&&(d.push({type:6,index:i}),a.removeAttribute(f));if(qa.test(a.tagName)){let f=a.textContent.split(xe),g=f.length-1;if(g>0){a.textContent=Lr?Lr.emptyScript:"";for(let m=0;m<g;m++)a.append(f[m],zt()),Ye.nextNode(),d.push({type:2,index:++i});a.append(f[g],zt())}}}else if(a.nodeType===8)if(a.data===Lo)d.push({type:2,index:i});else{let f=-1;for(;(f=a.data.indexOf(xe,f+1))!==-1;)d.push({type:7,index:i}),f+=xe.length-1}i++}}static createElement(e,t){let n=Je.createElement("template");return n.innerHTML=e,n}};function Qe(r,e,t=r,n){if(e===Ie)return e;let a=n!==void 0?t._$Co?.[n]:t._$Cl,i=jt(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),i===void 0?a=void 0:(a=new i(r),a._$AT(r,t,n)),n!==void 0?(t._$Co??=[])[n]=a:t._$Cl=a),a!==void 0&&(e=Qe(r,a._$AS(r,e.values),a,n)),e}var kr=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??Je).importNode(t,!0);Ye.currentNode=a;let i=Ye.nextNode(),s=0,l=0,d=n[0];for(;d!==void 0;){if(s===d.index){let u;d.type===2?u=new ht(i,i.nextSibling,this,e):d.type===1?u=new d.ctor(i,d.name,d.strings,this,e):d.type===6&&(u=new Fr(i,this,e)),this._$AV.push(u),d=n[++l]}s!==d?.index&&(i=Ye.nextNode(),s++)}return Ye.currentNode=Je,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++}},ht=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,a){this.type=2,this._$AH=j,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=Qe(this,e,t),jt(e)?e===j||e==null||e===""?(this._$AH!==j&&this._$AR(),this._$AH=j):e!==this._$AH&&e!==Ie&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Za(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==j&&jt(this._$AH)?this._$AA.nextSibling.data=e:this.$(Je.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Gt.createElement(Ja(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(t);else{let i=new kr(a,this),s=i.u(this.options);i.p(t),this.$(s),this._$AH=i}}_$AC(e){let t=Va.get(e.strings);return t===void 0&&Va.set(e.strings,t=new Gt(e)),t}T(e){Ka(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 r(this.k(zt()),this.k(zt()),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))}},Xe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,a,i){this.type=1,this._$AH=j,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=j}_$AI(e,t=this,n,a){let i=this.strings,s=!1;if(i===void 0)e=Qe(this,e,t,0),s=!jt(e)||e!==this._$AH&&e!==Ie,s&&(this._$AH=e);else{let l=e,d,u;for(e=i[0],d=0;d<i.length-1;d++)u=Qe(this,l[n+d],t,d),u===Ie&&(u=this._$AH[d]),s||=!jt(u)||u!==this._$AH[d],u===j?e=j:e!==j&&(e+=(u??"")+i[d+1]),this._$AH[d]=u}s&&!a&&this.O(e)}O(e){e===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ur=class extends Xe{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===j?void 0:e}},Dr=class extends Xe{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==j)}},Mr=class extends Xe{constructor(e,t,n,a,i){super(e,t,n,a,i),this.type=5}_$AI(e,t=this){if((e=Qe(this,e,t,0)??j)===Ie)return;let n=this._$AH,a=e===j&&n!==j||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==j&&(n===j||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)}},Fr=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){Qe(this,e)}},el={j:Po,P:xe,A:Lo,C:1,M:Qa,L:kr,R:Za,V:Qe,D:ht,I:Xe,H:Dr,N:Mr,U:Ur,B:Fr},tl=To.litHtmlPolyfillSupport;tl?.(Gt,ht),(To.litHtmlVersions??=[]).push("3.1.0");var ko=(r,e,t)=>{let n=t?.renderBefore??e,a=n._$litPart$;if(a===void 0){let i=t?.renderBefore??null;n._$litPart$=a=new ht(e.insertBefore(zt(),i),i,void 0,t??{})}return a._$AI(r),a};var Se=class extends pe{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=ko(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ie}};Se._$litElement$=!0,Se.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Se});var rl=globalThis.litElementPolyfillSupport;rl?.({LitElement:Se});var ol={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var op=!1;var Do={};F(Do,{customElement:()=>nl,eventOptions:()=>il,property:()=>D,query:()=>sl,queryAll:()=>ll,queryAssignedElements:()=>ul,queryAssignedNodes:()=>pl,queryAsync:()=>dl,standardProperty:()=>Xa,state:()=>Vt});var nl=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)};var al={attribute:!0,type:String,converter:Lt,reflect:!1,hasChanged:Sr},Xa=(r=al,e,t)=>{let{kind:n,metadata:a}=t,i=globalThis.litPropertyMetadata.get(a);if(i===void 0&&globalThis.litPropertyMetadata.set(a,i=new Map),i.set(t.name,r),n==="accessor"){let{name:s}=t;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,r)},init(l){return l!==void 0&&this.C(s,void 0,r),l}}}if(n==="setter"){let{name:s}=t;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,r)}}throw Error("Unsupported decorator location: "+n)};function D(r){return(e,t)=>typeof t=="object"?Xa(r,e,t):((n,a,i)=>{let s=a.hasOwnProperty(i);return a.constructor.createProperty(i,s?{...n,wrapped:!0}:n),s?Object.getOwnPropertyDescriptor(a,i):void 0})(r,e,t)}function Vt(r){return D({...r,state:!0,attribute:!1})}function il(r){return(e,t)=>{let n=typeof e=="function"?e:e[t];Object.assign(n,r)}}var ae=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function sl(r,e){return(t,n,a)=>{let i=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof n=="object"?t:a??(()=>{let d=Symbol();return{get(){return this[d]},set(u){this[d]=u}}})();return ae(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 ae(t,n,{get(){return i(this)}})}}var cl;function ll(r){return(e,t)=>ae(e,t,{get(){return(this.renderRoot??(cl??=document.createDocumentFragment())).querySelectorAll(r)}})}function dl(r){return(e,t)=>ae(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function ul(r){return(e,t)=>{let{slot:n,selector:a}=r??{},i="slot"+(n?`[name=${n}]`:":not([name])");return ae(e,t,{get(){let s=this.renderRoot?.querySelector(i),l=s?.assignedElements(r)??[];return a===void 0?l:l.filter(d=>d.matches(a))}})}}function pl(r){return(e,t)=>{let{slot:n}=r??{},a="slot"+(n?`[name=${n}]`:":not([name])");return ae(e,t,{get(){return this.renderRoot?.querySelector(a)?.assignedNodes(r)??[]}})}}var Mo={};F(Mo,{repeat:()=>gl});var Ne={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Te=r=>(...e)=>({_$litDirective$:r,values:e}),fe=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{D:fl}=Ma;var ei=()=>document.createComment(""),yt=(r,e,t)=>{let n=r._$AA.parentNode,a=e===void 0?r._$AB:e._$AA;if(t===void 0){let i=n.insertBefore(ei(),a),s=n.insertBefore(ei(),a);t=new fl(i,s,r,r.options)}else{let i=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let d;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(d=r._$AU)!==s._$AU&&t._$AP(d)}if(i!==a||l){let d=t._$AA;for(;d!==i;){let u=d.nextSibling;n.insertBefore(d,a),d=u}}}return t},Pe=(r,e,t=r)=>(r._$AI(e,t),r),hl={},ti=(r,e=hl)=>r._$AH=e,ri=r=>r._$AH,Br=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let n=e.nextSibling;e.remove(),e=n}};var oi=(r,e,t)=>{let n=new Map;for(let a=e;a<=t;a++)n.set(r[a],a);return n},gl=Te(class extends fe{constructor(r){if(super(r),r.type!==Ne.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,e,t){let n;t===void 0?t=e:e!==void 0&&(n=e);let a=[],i=[],s=0;for(let l of r)a[s]=n?n(l,s):s,i[s]=t(l,s),s++;return{values:i,keys:a}}render(r,e,t){return this.ht(r,e,t).values}update(r,[e,t,n]){let a=ri(r),{values:i,keys:s}=this.ht(e,t,n);if(!Array.isArray(a))return this.dt=s,i;let l=this.dt??=[],d=[],u,h,f=0,g=a.length-1,m=0,b=i.length-1;for(;f<=g&&m<=b;)if(a[f]===null)f++;else if(a[g]===null)g--;else if(l[f]===s[m])d[m]=Pe(a[f],i[m]),f++,m++;else if(l[g]===s[b])d[b]=Pe(a[g],i[b]),g--,b--;else if(l[f]===s[b])d[b]=Pe(a[f],i[b]),yt(r,d[b+1],a[f]),f++,b--;else if(l[g]===s[m])d[m]=Pe(a[g],i[m]),yt(r,a[f],a[g]),g--,m++;else if(u===void 0&&(u=oi(s,m,b),h=oi(l,f,g)),u.has(l[f]))if(u.has(l[g])){let S=h.get(s[m]),C=S!==void 0?a[S]:null;if(C===null){let w=yt(r,a[f]);Pe(w,i[m]),d[m]=w}else d[m]=Pe(C,i[m]),yt(r,a[f],C),a[S]=null;m++}else Br(a[g]),g--;else Br(a[f]),f++;for(;m<=b;){let S=yt(r,d[b+1]);Pe(S,i[m]),d[m++]=S}for(;f<=g;){let S=a[f++];S!==null&&Br(S)}return this.dt=s,ti(r,d),X}});var Fo={};F(Fo,{classMap:()=>yl});var yl=Te(class extends fe{constructor(r){if(super(r),r.type!==Ne.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in e)e[n]&&!this.st?.has(n)&&this.it.add(n);return this.render(e)}let t=r.element.classList;for(let n of this.it)n in e||(t.remove(n),this.it.delete(n));for(let n in e){let a=!!e[n];a===this.it.has(n)||this.st?.has(n)||(a?(t.add(n),this.it.add(n)):(t.remove(n),this.it.delete(n)))}return X}});var Bo={};F(Bo,{styleMap:()=>bl});var ni="important",ml=" !"+ni,bl=Te(class extends fe{constructor(r){if(super(r),r.type!==Ne.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((e,t)=>{let n=r[t];return n==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(r,[e]){let{style:t}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(e)),this.render(e);for(let n of this.ut)e[n]==null&&(this.ut.delete(n),n.includes("-")?t.removeProperty(n):t[n]=null);for(let n in e){let a=e[n];if(a!=null){this.ut.add(n);let i=typeof a=="string"&&a.endsWith(ml);n.includes("-")||i?t.setProperty(n,i?a.slice(0,-11):a,i?ni:""):t[n]=a}}return X}});var $o={};F($o,{UnsafeHTMLDirective:()=>mt,unsafeHTML:()=>vl});var mt=class extends fe{constructor(e){if(super(e),this.et=z,e.type!==Ne.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===z||e==null)return this.vt=void 0,this.et=e;if(e===X)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;let t=[e];return t.raw=t,this.vt={_$litType$:this.constructor.resultType,strings:t,values:[]}}};mt.directiveName="unsafeHTML",mt.resultType=1;var vl=Te(mt);var Ko={};F(Ko,{CacheRegistry:()=>he,ClearCacheEvent:()=>Kt});var Ho={};F(Ho,{CancelablePromise:()=>bt,CanceledPromiseError:()=>et,cancelable:()=>Wo});var et=class extends Error{constructor(e,t,n){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=n}},bt=class extends Promise{constructor(e){super((t,n)=>e(a=>{this.isCanceled?n(new et("Promise has been canceled",a)):t(a)},a=>{this.isCanceled?n(new et("Promise has been canceled",void 0,a)):n(a)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Wo=r=>new bt((e,t)=>r.then(e).catch(t));var Vo={};F(Vo,{FtNotificationEvent:()=>zo,PostResizeEvent:()=>Go,PreResizeEvent:()=>jo,WithEventBus:()=>tt,withEventBus:()=>ai});var zo=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},jo=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Go=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function ai(r,e){return class extends r{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 tt=class extends ai(Object){};var Kt=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},he=class extends tt{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 Kt(t))}clear(e,t=!0){if(!this.finalContent.has(e))return this.forceClear(e),t&&this.dispatchEvent(new Kt([e])),e}forceClear(e){this.clearClearTimeout(e),this.content[e]instanceof bt&&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=Wo(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 Zo={};F(Zo,{ClusteringHelper:()=>Zt});var Zt=class r{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?r.flattenMetadata(l,e.hierarchicalValueTruncatingLevel,e.dateFormatter):r.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=>r.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(l.join(" > ")),t&&t>1&&l.length>=t?s.push(`... > ${l[l.length-1]}`):s.push(l.join(" > "))}),{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=r.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:i}),u=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(f=>r.extractResultMetadata({result:f,key:e,hierarchicalValueTruncatingLevel:a,dateFormatter:i})).map(f=>f??{key:e,label:u,value:void 0,displayValue:n}).filter(f=>f.value!=d?.value).filter((f,g,m)=>m.findIndex(b=>b.value===f.value)===g).map(f=>({result:this.findBestResultForMetadataValue(e,f.value),metadata:f})).sort((f,g)=>this.compareMetadata(f.metadata.value,g.metadata.value,e,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 u;return((u=r.extractResultMetadata({result:d,key:e}))===null||u===void 0?void 0:u.value)==t}),i=[...r.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 u=this.countMatchingMetadata(d,i);if(u>l&&(l=u,s=d,u===i.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata({result:e}).filter(n=>t.some(a=>a.key===n.key&&a.value===n.value)).length}};var qo={};F(qo,{Debouncer:()=>ee});var ee=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 Xo={};F(Xo,{customElement:()=>Jt,isNumber:()=>li,jsonProperty:()=>Le,optionalNumberProperty:()=>Cl});var Qo={};F(Qo,{dateReviver:()=>xl,deepEqual:()=>ie,delay:()=>$r,eventPathContainsMatchingElement:()=>Ol,flatDeep:()=>ii,getComposedPathTo:()=>Jo,hasChanged:()=>rt,last:()=>El,minmax:()=>Yt,parseDate:()=>si,unslotText:()=>ci,waitFor:()=>qt,waitUntil:()=>Yo});var $r=r=>new Promise(e=>setTimeout(e,r));async function Yo(r,e=10,t=2e4){await qt(async()=>await r()||void 0,e,t)}async function qt(r,e=10,t=2e4){let n=await r(),a,i;for(a=i=performance.now();n==null&&(!t||i-a<t);)await $r(e),n=await r(),i=performance.now();if(n==null)throw new Error("Timeout exceeded");return n}function ii(r,e){return r.flatMap(t=>[t,...ii(e(t),e)])}function xl(...r){return function(e,t){return r.includes(e)?si(t):t}}function si(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,n,a)=>t+n+":"+a),new Date(r)}function Sl(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;var t,n,a;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(n=t;n--!==0;)if(!ie(r[n],e[n]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(n of r.entries())if(!e.has(n[0]))return!1;for(n of r.entries())if(!ie(n[1],e.get(n[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(n of r.entries())if(!e.has(n[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();let i=s=>Object.keys(s).filter(l=>s[l]!=null);if(a=i(r),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(!ie(r[s],e[s]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function ie(r,e){try{return Sl(r,e)}catch{return!1}}function rt(r,e){return!ie(r,e)}function Ol(r,e,t=window.document.body){if(e.length>0){let n=r.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 Yt(r,e,t){return Math.min(Math.max(r,e),t)}function El(r){return r[r.length-1]}function ci(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(e=>ci(e)).join(""):r?.textContent||""}function Jo(r){let e=[],t=n=>{n.stopPropagation(),e=n.composedPath()};return r.addEventListener("get-composed-path",t),r.dispatchEvent(new Event("get-composed-path",{composed:!0})),r.removeEventListener("get-composed-path",t),e}var Jt=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)};function Le(r,e){let t=()=>JSON.parse(JSON.stringify(r));return D({type:Object,converter:{fromAttribute:n=>{if(n==null)return t();try{return JSON.parse(n)}catch{return t()}},toAttribute:n=>JSON.stringify(n)},hasChanged:rt,...e??{}})}function Cl(r){return D({type:Object,converter:{fromAttribute:e=>{if(e!=null)return li(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...r??{}})}function li(r){return!isNaN(parseFloat(r))}var on={};F(on,{designSystemVariables:()=>od});var rn={};F(rn,{DesignSystemFamily:()=>Qt,DesignSystemSize:()=>Xt,FtCssVariableFactory:()=>o,badge:()=>Pl,banner:()=>Tl,button:()=>Rl,chart:()=>Zl,checkbox:()=>Jl,chip:()=>Il,chipChoice:()=>_l,collapsible:()=>Vl,comboboxMultiSelect:()=>jl,comboboxSingleSelect:()=>zl,drawer:()=>Fl,floatingMenu:()=>Hl,foundation:()=>c,link:()=>Nl,modal:()=>Ml,notice:()=>Yl,notification:()=>ed,pageDesigner:()=>ql,pageFooter:()=>Ul,pageHeader:()=>kl,pageLayout:()=>Dl,popover:()=>Gl,radio:()=>Xl,reorderableList:()=>rd,resolveFamilyClass:()=>en,resolveSizeClass:()=>tn,semantic:()=>p,setVariable:()=>Wr,switch_:()=>Kl,tabs:()=>Bl,textArea:()=>Wl,textInput:()=>$l,titleBreadcrumb:()=>Ll,toggle:()=>Ql,tooltip:()=>td,typographies:()=>wl,typographyBody1Medium:()=>gi,typographyBody1Regular:()=>hi,typographyBody1Semibold:()=>yi,typographyBody2Medium:()=>bi,typographyBody2MediumUnderline:()=>vi,typographyBody2Regular:()=>mi,typographyBody2Semibold:()=>xi,typographyCaption1Bold:()=>Ii,typographyCaption1Medium:()=>Ri,typographyCaption1Semibold:()=>_i,typographyCaption2Bold:()=>Pi,typographyCaption2Medium:()=>Ni,typographyCaption2Semibold:()=>Ti,typographyCaption3Bold:()=>Ui,typographyCaption3Medium:()=>Li,typographyCaption3Semibold:()=>ki,typographyDisplay:()=>di,typographyLabel1Bold:()=>Ei,typographyLabel1Medium:()=>Si,typographyLabel1Semibold:()=>Oi,typographyLabel2Bold:()=>Ai,typographyLabel2Medium:()=>Ci,typographyLabel2Semibold:()=>wi,typographyTitle1:()=>ui,typographyTitle2:()=>pi,typographyTitle3:()=>fi,typographyVariants:()=>Al});var Oe=r=>typeof r=="string"?Bt(r):r,o=class{static create(e,t,n,a){let i=l=>Oe(l??a),s=G`var(${Oe(e)}, ${i(a)})`;return s.name=e,s.description=t,s.category=n,s.defaultValue=a,s.defaultCssValue=i,s.get=l=>G`var(${Oe(e)}, ${i(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>a,s}static extend(e,t,n,a){let i=l=>n.get(l??a),s=G`var(${Oe(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=>G`var(${Oe(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):Oe(i??e.lastResortDefaultValue()),a=G`var(${Oe(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=>G`var(${Oe(e.name)}, ${n(i)})`,a.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],a.lastResortDefaultValue=()=>e.lastResortDefaultValue(),a}};function Wr(r,e){return Oe(`${r.name}: ${e}`)}var c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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)")},di={fontFamily:o.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-textCase","","UNKNOWN","none")},ui={fontFamily:o.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},pi={fontFamily:o.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},fi={fontFamily:o.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},hi={fontFamily:o.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},gi={fontFamily:o.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},yi={fontFamily:o.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},mi={fontFamily:o.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},bi={fontFamily:o.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},vi={fontFamily:o.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},xi={fontFamily:o.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Si={fontFamily:o.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Oi={fontFamily:o.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Ei={fontFamily:o.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Ci={fontFamily:o.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},wi={fontFamily:o.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Ai={fontFamily:o.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Ri={fontFamily:o.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},_i={fontFamily:o.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Ii={fontFamily:o.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},Ni={fontFamily:o.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Ti={fontFamily:o.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Pi={fontFamily:o.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Li={fontFamily:o.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},ki={fontFamily:o.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},Ui={fontFamily:o.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},wl={display:di,"title-1":ui,"title-2":pi,"title-3":fi,"body-1-regular":hi,"body-1-medium":gi,"body-1-semibold":yi,"body-2-regular":mi,"body-2-medium":bi,"body-2-medium-underline":vi,"body-2-semibold":xi,"label-1-medium":Si,"label-1-semibold":Oi,"label-1-bold":Ei,"label-2-medium":Ci,"label-2-semibold":wi,"label-2-bold":Ai,"caption-1-medium":Ri,"caption-1-semibold":_i,"caption-1-bold":Ii,"caption-2-medium":Ni,"caption-2-semibold":Ti,"caption-2-bold":Pi,"caption-3-medium":Li,"caption-3-semibold":ki,"caption-3-bold":Ui},Al=["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 p={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
7
|
-
Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var Rl={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ft-button-primary-brand-background-color","",p.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",p.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",p.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",p.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ft-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ft-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ft-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ft-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",p.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",p.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",p.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",p.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ft-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ft-button-tertiary-info-color","",p.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",p.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",p.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ft-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ft-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ft-button-tertiary-success-color","",p.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",p.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",p.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ft-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ft-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ft-button-tertiary-warning-color","",p.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",p.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",p.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ft-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ft-button-tertiary-error-color","",p.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",p.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",p.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ft-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ft-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ft-button-tertiary-neutral-icon-color","",p.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",p.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",p.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ft-button-secondary-brand-color","",p.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",p.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",p.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ft-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ft-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ft-button-secondary-brand-border-color","",p.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ft-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ft-button-secondary-neutral-color","",p.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",p.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",p.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",p.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ft-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ft-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ft-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ft-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ft-button-secondary-info-border-color","",p.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",p.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",p.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",p.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ft-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ft-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ft-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ft-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ft-button-secondary-success-border-color","",p.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",p.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",p.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",p.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ft-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ft-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ft-button-secondary-warning-border-color","",p.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",p.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",p.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",p.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ft-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ft-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ft-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ft-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ft-button-secondary-error-border-color","",p.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",p.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",p.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",p.contentErrorPrimary)};var _l={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",p.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",p.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",p.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",p.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",p.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",p.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",p.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",p.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",p.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",p.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",p.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-choice-medium-icon-size","",c.iconSize2)};var Il={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",p.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",p.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",p.borderErrorSubtle)};var Nl={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",p.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",p.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",p.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",p.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",p.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",p.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",p.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",p.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",p.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",p.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",p.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",p.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",p.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",p.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",p.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)};var Tl={iconSize:o.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",p.borderInfoSubtle)};var Pl={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ft-badge-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",p.contentActionPrimary)};var Ll={horizontalGap:o.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ft-title-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-title-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:o.extend("--ft-title-breadcrumb-icon-color","",p.contentGlobalSubtle)};var kl={parentHorizontalPadding:o.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ft-page-header-parent-title-color","",p.contentGlobalPrimary),parentSubtitleColor:o.extend("--ft-page-header-parent-subtitle-color","",p.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",p.borderGlobalSubtle),bottomBorderWidth:o.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var Ul={horizontalPadding:o.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ft-page-footer-top-border-color","",p.borderGlobalSubtle),topBorderWidth:o.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)};var Dl={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var Ml={smallContainerTargetWidth:o.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ft-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:o.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ft-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ft-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",p.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",p.contentGlobalPrimary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",c.borderRadiusM)};var Fl={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",p.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",p.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",p.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",p.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",c.colorGray700)};var Bl={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-tabs-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",p.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",p.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",p.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",p.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",p.borderActionFocusRing)};var $l={fieldHorizontalPadding:o.extend("--ft-text-input-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-input-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-input-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-text-input-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",p.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",p.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var Wl={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",p.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",p.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",c.borderRadiusM)};var Hl={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",p.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",p.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",p.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",p.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var zl={fieldHorizontalPadding:o.extend("--ft-combobox-single-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-single-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-single-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-single-select-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",p.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",p.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",p.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",p.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)};var jl={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",p.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",p.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",p.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",p.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusM)};var Gl={backgroundColor:o.extend("--ft-popover-background-color","",p.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ft-popover-title-color","",p.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",p.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",p.contentActionPrimary),gap:o.extend("--ft-popover-gap","",c.spacing3),borderRadius:o.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-popover-max-width","","SIZE","440px")};var Vl={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",p.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ft-collapsible-color","",p.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",p.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",p.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",p.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)};var Kl={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",p.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",p.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-switch-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ft-switch-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",p.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",p.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var Zl={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var ql={color1IconColor:o.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Yl={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",p.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",p.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",p.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",p.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",p.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",p.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",p.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",p.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",p.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",p.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",p.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",p.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ft-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ft-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ft-notice-dense-border-width","","SIZE","0")};var Jl={color:o.extend("--ft-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",p.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-checkbox-gap","",c.spacing3)};var Ql={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",p.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",p.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",p.contentActionPrimary),color:o.extend("--ft-toggle-color","",p.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",p.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)};var Xl={color:o.extend("--ft-radio-color","",p.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",p.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",p.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",p.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-radio-gap","",c.spacing3)};var ed={iconSize:o.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",p.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",c.spacing8)};var td={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ft-tooltip-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",p.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)};var rd={verticalPadding:o.extend("--ft-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ft-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ft-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ft-reorderable-list-reorderable-item-title-color","",p.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ft-reorderable-list-reorderable-item-users-count-color","",p.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ft-reorderable-list-reorderable-item-background-color","",p.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",p.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",p.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ft-reorderable-list-reorderable-item-grip-color","",p.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ft-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ft-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ft-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ft-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ft-reorderable-list-border-color","",p.borderGlobalPrimary),backgroundColor:o.extend("--ft-reorderable-list-background-color","",p.backgroundGlobalOnSurfaceDark)};var Qt;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Qt||(Qt={}));var Xt;(function(r){r.large="large",r.medium="medium",r.small="small"})(Xt||(Xt={}));function en(r){return`ftds--family-${r}`}function tn(r){return`ftds--size-${r}`}var od={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.create("--ft-elevation-00","","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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.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:o.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var vn={};F(vn,{computeFlipOffsetPosition:()=>wd,computeOffsetPosition:()=>Cd});var Mi=["top","right","bottom","left"],Di=["start","end"],nn=Mi.reduce((r,e)=>r.concat(e,e+"-"+Di[0],e+"-"+Di[1]),[]),ot=Math.min,Y=Math.max,rr=Math.round;var Ee=r=>({x:r,y:r}),nd={left:"right",right:"left",bottom:"top",top:"bottom"},ad={start:"end",end:"start"};function an(r,e,t){return Y(r,ot(e,t))}function nt(r,e){return typeof r=="function"?r(e):r}function se(r){return r.split("-")[0]}function ce(r){return r.split("-")[1]}function sn(r){return r==="x"?"y":"x"}function cn(r){return r==="y"?"height":"width"}function vt(r){return["top","bottom"].includes(se(r))?"y":"x"}function ln(r){return sn(vt(r))}function dn(r,e,t){t===void 0&&(t=!1);let n=ce(r),a=ln(r),i=cn(a),s=a==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=tr(s)),[s,tr(s)]}function Fi(r){let e=tr(r);return[er(r),e,er(e)]}function er(r){return r.replace(/start|end/g,e=>ad[e])}function id(r,e,t){let n=["left","right"],a=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(r){case"top":case"bottom":return t?e?a:n:e?n:a;case"left":case"right":return e?i:s;default:return[]}}function Bi(r,e,t,n){let a=ce(r),i=id(se(r),t==="start",n);return a&&(i=i.map(s=>s+"-"+a),e&&(i=i.concat(i.map(er)))),i}function tr(r){return r.replace(/left|right|bottom|top/g,e=>nd[e])}function sd(r){return{top:0,right:0,bottom:0,left:0,...r}}function $i(r){return typeof r!="number"?sd(r):{top:r,right:r,bottom:r,left:r}}function at(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function Wi(r,e,t){let{reference:n,floating:a}=r,i=vt(e),s=ln(e),l=cn(s),d=se(e),u=i==="y",h=n.x+n.width/2-a.width/2,f=n.y+n.height/2-a.height/2,g=n[l]/2-a[l]/2,m;switch(d){case"top":m={x:h,y:n.y-a.height};break;case"bottom":m={x:h,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:f};break;case"left":m={x:n.x-a.width,y:f};break;default:m={x:n.x,y:n.y}}switch(ce(e)){case"start":m[s]-=g*(t&&u?-1:1);break;case"end":m[s]+=g*(t&&u?-1:1);break}return m}var Hi=async(r,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)),u=await s.getElementRects({reference:r,floating:e,strategy:a}),{x:h,y:f}=Wi(u,n,d),g=n,m={},b=0;for(let S=0;S<l.length;S++){let{name:C,fn:w}=l[S],{x:A,y:O,data:v,reset:E}=await w({x:h,y:f,initialPlacement:n,placement:g,strategy:a,middlewareData:m,rects:u,platform:s,elements:{reference:r,floating:e}});if(h=A??h,f=O??f,m={...m,[C]:{...m[C],...v}},E&&b<=50){b++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(u=E.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:a}):E.rects),{x:h,y:f}=Wi(u,g,d)),S=-1;continue}}return{x:h,y:f,placement:g,strategy:a,middlewareData:m}};async function or(r,e){var t;e===void 0&&(e={});let{x:n,y:a,platform:i,rects:s,elements:l,strategy:d}=r,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:g=!1,padding:m=0}=nt(e,r),b=$i(m),C=l[g?f==="floating"?"reference":"floating":f],w=at(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:u,rootBoundary:h,strategy:d})),A=f==="floating"?{...s.floating,x:n,y:a}:s.reference,O=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),v=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},E=at(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:A,offsetParent:O,strategy:d}):A);return{top:(w.top-E.top+b.top)/v.y,bottom:(E.bottom-w.bottom+b.bottom)/v.y,left:(w.left-E.left+b.left)/v.x,right:(E.right-w.right+b.right)/v.x}}function cd(r,e,t){return(r?[...t.filter(a=>ce(a)===r),...t.filter(a=>ce(a)!==r)]:t.filter(a=>se(a)===a)).filter(a=>r?ce(a)===r||(e?er(a)!==a:!1):!0)}var un=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,n,a;let{rects:i,middlewareData:s,placement:l,platform:d,elements:u}=e,{crossAxis:h=!1,alignment:f,allowedPlacements:g=nn,autoAlignment:m=!0,...b}=nt(r,e),S=f!==void 0||g===nn?cd(f||null,m,g):g,C=await or(e,b),w=((t=s.autoPlacement)==null?void 0:t.index)||0,A=S[w];if(A==null)return{};let O=dn(A,i,await(d.isRTL==null?void 0:d.isRTL(u.floating)));if(l!==A)return{reset:{placement:S[0]}};let v=[C[se(A)],C[O[0]],C[O[1]]],E=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:A,overflows:v}],R=S[w+1];if(R)return{data:{index:w+1,overflows:E},reset:{placement:R}};let T=E.map(I=>{let y=ce(I.placement);return[I.placement,y&&h?I.overflows.slice(0,2).reduce((x,_)=>x+_,0):I.overflows[0],I.overflows]}).sort((I,y)=>I[1]-y[1]),L=((a=T.filter(I=>I[2].slice(0,ce(I[0])?2:3).every(y=>y<=0))[0])==null?void 0:a[0])||T[0][0];return L!==l?{data:{index:w+1,overflows:E},reset:{placement:L}}:{}}}},pn=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(e){var t,n;let{placement:a,middlewareData:i,rects:s,initialPlacement:l,platform:d,elements:u}=e,{mainAxis:h=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:S=!0,...C}=nt(r,e);if((t=i.arrow)!=null&&t.alignmentOffset)return{};let w=se(a),A=se(l)===l,O=await(d.isRTL==null?void 0:d.isRTL(u.floating)),v=g||(A||!S?[tr(l)]:Fi(l));!g&&b!=="none"&&v.push(...Bi(l,S,b,O));let E=[l,...v],R=await or(e,C),T=[],k=((n=i.flip)==null?void 0:n.overflows)||[];if(h&&T.push(R[w]),f){let x=dn(a,s,O);T.push(R[x[0]],R[x[1]])}if(k=[...k,{placement:a,overflows:T}],!T.every(x=>x<=0)){var L,I;let x=(((L=i.flip)==null?void 0:L.index)||0)+1,_=E[x];if(_)return{data:{index:x,overflows:k},reset:{placement:_}};let U=(I=k.filter(M=>M.overflows[0]<=0).sort((M,P)=>M.overflows[1]-P.overflows[1])[0])==null?void 0:I.placement;if(!U)switch(m){case"bestFit":{var y;let M=(y=k.map(P=>[P.placement,P.overflows.filter(ue=>ue>0).reduce((ue,Tt)=>ue+Tt,0)]).sort((P,ue)=>P[1]-ue[1])[0])==null?void 0:y[0];M&&(U=M);break}case"initialPlacement":U=l;break}if(a!==U)return{reset:{placement:U}}}return{}}}};async function ld(r,e){let{placement:t,platform:n,elements:a}=r,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),s=se(t),l=ce(t),d=vt(t)==="y",u=["left","top"].includes(s)?-1:1,h=i&&d?-1:1,f=nt(e,r),{mainAxis:g,crossAxis:m,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof b=="number"&&(m=l==="end"?b*-1:b),d?{x:m*h,y:g*u}:{x:g*u,y:m*h}}var fn=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,n;let{x:a,y:i,placement:s,middlewareData:l}=e,d=await ld(e,r);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}}}}},hn=function(r){return r===void 0&&(r={}),{name:"shift",options:r,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}=nt(r,e),u={x:t,y:n},h=await or(e,d),f=vt(se(a)),g=sn(f),m=u[g],b=u[f];if(i){let C=g==="y"?"top":"left",w=g==="y"?"bottom":"right",A=m+h[C],O=m-h[w];m=an(A,m,O)}if(s){let C=f==="y"?"top":"left",w=f==="y"?"bottom":"right",A=b+h[C],O=b-h[w];b=an(A,b,O)}let S=l.fn({...e,[g]:m,[f]:b});return{...S,data:{x:S.x-t,y:S.y-n}}}}};var gn=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){let{placement:t,rects:n,platform:a,elements:i}=e,{apply:s=()=>{},...l}=nt(r,e),d=await or(e,l),u=se(t),h=ce(t),f=vt(t)==="y",{width:g,height:m}=n.floating,b,S;u==="top"||u==="bottom"?(b=u,S=h===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(S=u,b=h==="end"?"top":"bottom");let C=m-d[b],w=g-d[S],A=!e.middlewareData.shift,O=C,v=w;if(f){let R=g-d.left-d.right;v=h||A?ot(w,R):R}else{let R=m-d.top-d.bottom;O=h||A?ot(C,R):R}if(A&&!h){let R=Y(d.left,0),T=Y(d.right,0),k=Y(d.top,0),L=Y(d.bottom,0);f?v=g-2*(R!==0||T!==0?R+T:Y(d.left,d.right)):O=m-2*(k!==0||L!==0?k+L:Y(d.top,d.bottom))}await s({...e,availableWidth:v,availableHeight:O});let E=await a.getDimensions(i.floating);return g!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}};function Ce(r){return ji(r)?(r.nodeName||"").toLowerCase():"#document"}function J(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function we(r){var e;return(e=(ji(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function ji(r){return r instanceof Node||r instanceof J(r).Node}function ge(r){return r instanceof Element||r instanceof J(r).Element}function le(r){return r instanceof HTMLElement||r instanceof J(r).HTMLElement}function zi(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof J(r).ShadowRoot}function xt(r){let{overflow:e,overflowX:t,overflowY:n,display:a}=te(r);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(a)}function Gi(r){return["table","td","th"].includes(Ce(r))}function zr(r){let e=jr(),t=te(r);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 Vi(r){let e=it(r);for(;le(e)&&!nr(e);){if(zr(e))return e;e=it(e)}return null}function jr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function nr(r){return["html","body","#document"].includes(Ce(r))}function te(r){return J(r).getComputedStyle(r)}function ar(r){return ge(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function it(r){if(Ce(r)==="html")return r;let e=r.assignedSlot||r.parentNode||zi(r)&&r.host||we(r);return zi(e)?e.host:e}function Ki(r){let e=it(r);return nr(e)?r.ownerDocument?r.ownerDocument.body:r.body:le(e)&&xt(e)?e:Ki(e)}function Hr(r,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);let a=Ki(r),i=a===((n=r.ownerDocument)==null?void 0:n.body),s=J(a);return i?e.concat(s,s.visualViewport||[],xt(a)?a:[],s.frameElement&&t?Hr(s.frameElement):[]):e.concat(a,Hr(a,[],t))}function Yi(r){let e=te(r),t=parseFloat(e.width)||0,n=parseFloat(e.height)||0,a=le(r),i=a?r.offsetWidth:t,s=a?r.offsetHeight:n,l=rr(t)!==i||rr(n)!==s;return l&&(t=i,n=s),{width:t,height:n,$:l}}function Ji(r){return ge(r)?r:r.contextElement}function St(r){let e=Ji(r);if(!le(e))return Ee(1);let t=e.getBoundingClientRect(),{width:n,height:a,$:i}=Yi(e),s=(i?rr(t.width):t.width)/n,l=(i?rr(t.height):t.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var dd=Ee(0);function Qi(r){let e=J(r);return!jr()||!e.visualViewport?dd:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ud(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==J(r)?!1:e}function ir(r,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);let a=r.getBoundingClientRect(),i=Ji(r),s=Ee(1);e&&(n?ge(n)&&(s=St(n)):s=St(r));let l=ud(i,t,n)?Qi(i):Ee(0),d=(a.left+l.x)/s.x,u=(a.top+l.y)/s.y,h=a.width/s.x,f=a.height/s.y;if(i){let g=J(i),m=n&&ge(n)?J(n):n,b=g.frameElement;for(;b&&n&&m!==g;){let S=St(b),C=b.getBoundingClientRect(),w=te(b),A=C.left+(b.clientLeft+parseFloat(w.paddingLeft))*S.x,O=C.top+(b.clientTop+parseFloat(w.paddingTop))*S.y;d*=S.x,u*=S.y,h*=S.x,f*=S.y,d+=A,u+=O,b=J(b).frameElement}}return at({width:h,height:f,x:d,y:u})}function pd(r){let{rect:e,offsetParent:t,strategy:n}=r,a=le(t),i=we(t);if(t===i)return e;let s={scrollLeft:0,scrollTop:0},l=Ee(1),d=Ee(0);if((a||!a&&n!=="fixed")&&((Ce(t)!=="body"||xt(i))&&(s=ar(t)),le(t))){let u=ir(t);l=St(t),d.x=u.x+t.clientLeft,d.y=u.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 fd(r){return Array.from(r.getClientRects())}function Xi(r){return ir(we(r)).left+ar(r).scrollLeft}function hd(r){let e=we(r),t=ar(r),n=r.ownerDocument.body,a=Y(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Y(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-t.scrollLeft+Xi(r),l=-t.scrollTop;return te(n).direction==="rtl"&&(s+=Y(e.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:l}}function gd(r,e){let t=J(r),n=we(r),a=t.visualViewport,i=n.clientWidth,s=n.clientHeight,l=0,d=0;if(a){i=a.width,s=a.height;let u=jr();(!u||u&&e==="fixed")&&(l=a.offsetLeft,d=a.offsetTop)}return{width:i,height:s,x:l,y:d}}function yd(r,e){let t=ir(r,!0,e==="fixed"),n=t.top+r.clientTop,a=t.left+r.clientLeft,i=le(r)?St(r):Ee(1),s=r.clientWidth*i.x,l=r.clientHeight*i.y,d=a*i.x,u=n*i.y;return{width:s,height:l,x:d,y:u}}function Zi(r,e,t){let n;if(e==="viewport")n=gd(r,t);else if(e==="document")n=hd(we(r));else if(ge(e))n=yd(e,t);else{let a=Qi(r);n={...e,x:e.x-a.x,y:e.y-a.y}}return at(n)}function es(r,e){let t=it(r);return t===e||!ge(t)||nr(t)?!1:te(t).position==="fixed"||es(t,e)}function md(r,e){let t=e.get(r);if(t)return t;let n=Hr(r,[],!1).filter(l=>ge(l)&&Ce(l)!=="body"),a=null,i=te(r).position==="fixed",s=i?it(r):r;for(;ge(s)&&!nr(s);){let l=te(s),d=zr(s);!d&&l.position==="fixed"&&(a=null),(i?!d&&!a:!d&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||xt(s)&&!d&&es(r,s))?n=n.filter(h=>h!==s):a=l,s=it(s)}return e.set(r,n),n}function bd(r){let{element:e,boundary:t,rootBoundary:n,strategy:a}=r,s=[...t==="clippingAncestors"?md(e,this._c):[].concat(t),n],l=s[0],d=s.reduce((u,h)=>{let f=Zi(e,h,a);return u.top=Y(f.top,u.top),u.right=ot(f.right,u.right),u.bottom=ot(f.bottom,u.bottom),u.left=Y(f.left,u.left),u},Zi(e,l,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function vd(r){return Yi(r)}function xd(r,e,t){let n=le(e),a=we(e),i=t==="fixed",s=ir(r,!0,i,e),l={scrollLeft:0,scrollTop:0},d=Ee(0);if(n||!n&&!i)if((Ce(e)!=="body"||xt(a))&&(l=ar(e)),n){let u=ir(e,!0,i,e);d.x=u.x+e.clientLeft,d.y=u.y+e.clientTop}else a&&(d.x=Xi(a));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function qi(r,e){return!le(r)||te(r).position==="fixed"?null:e?e(r):r.offsetParent}function ts(r,e){let t=J(r);if(!le(r))return t;let n=qi(r,e);for(;n&&Gi(n)&&te(n).position==="static";)n=qi(n,e);return n&&(Ce(n)==="html"||Ce(n)==="body"&&te(n).position==="static"&&!zr(n))?t:n||Vi(r)||t}var Sd=async function(r){let{reference:e,floating:t,strategy:n}=r,a=this.getOffsetParent||ts,i=this.getDimensions;return{reference:xd(e,await a(t),n),floating:{x:0,y:0,...await i(t)}}};function Od(r){return te(r).direction==="rtl"}var Ot={convertOffsetParentRelativeRectToViewportRelativeRect:pd,getDocumentElement:we,getClippingRect:bd,getOffsetParent:ts,getElementRects:Sd,getClientRects:fd,getDimensions:vd,getScale:St,isElement:ge,isRTL:Od};var yn=(r,e,t)=>{let n=new Map,a={platform:Ot,...t},i={...a.platform,_c:n};return Hi(r,e,{...a,platform:i})};function bn(r){return Ed(r)}function mn(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Ed(r){for(let e=r;e;e=mn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=mn(r);e;e=mn(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 Cd(r,e,t){return yn(r,e,{platform:{...Ot,getOffsetParent:n=>Ot.getOffsetParent(n,bn)},middleware:[hn({crossAxis:!0}),un({allowedPlacements:[t]})]})}async function wd(r,e,t,n,a,i,s=4){return yn(r,e,{placement:t,strategy:a,platform:{...Ot,getOffsetParent:l=>Ot.getOffsetParent(l,bn)},middleware:[fn(s),pn({fallbackPlacements:n}),gn({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 En={};F(En,{FtdsBase:()=>On,toFtdsBase:()=>ls});var Sn={};F(Sn,{FtLitElement:()=>re});var xn={};F(xn,{ScopedRegistryLitElement:()=>sr});var Gr=window,Ad=Gr.ShadowRoot&&(Gr.ShadyCSS===void 0||Gr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ny=Symbol();var rs=(r,e)=>{Ad?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let n=document.createElement("style"),a=Gr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=t.cssText,r.appendChild(n)})};var sr=class extends Se{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 rs(n,e.elementStyles),n}};var Vr=function(r,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(r,e,t,n);else for(var l=r.length-1;l>=0;l--)(s=r[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},is,os=Symbol("constructorPrototype"),ns=Symbol("constructorName"),ss=Symbol("exportpartsDebouncer"),as=Symbol("dynamicDependenciesLoaded"),re=class extends sr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[is]=new ee(5),this[ns]=this.constructor.name,this[os]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ns]&&Object.setPrototypeOf(this,this[os])}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[as]||(e[as]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}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[ss].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=g=>g!=null&&g.trim().length>0,u=e.filter(d).map(g=>g.trim());if(u.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(n=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let m=(i=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],b=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...m,...b).filter(d).map(S=>S.trim()).forEach(S=>h.add(S))}if(h.size===0){this.removeAttribute("exportparts");return}let f=[...h.values()].flatMap(g=>u.map(m=>`${g}:${m}--${g}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};is=ss;Vr([D()],re.prototype,"exportpartsPrefix",void 0);Vr([Le([])],re.prototype,"exportpartsPrefixes",void 0);Vr([D()],re.prototype,"customStylesheet",void 0);Vr([Vt()],re.prototype,"useAdoptedStyleSheets",void 0);var cs=function(r,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(r,e,t,n);else for(var l=r.length-1;l>=0;l--)(s=r[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 ls(r){class e extends r{constructor(){super(...arguments),this.size=Xt.medium,this.family=Qt.neutral}getDesignSystemBaseClasses(){return{[en(this.family)]:!0,[tn(this.size)]:!0}}}return cs([D()],e.prototype,"size",void 0),cs([D()],e.prototype,"family",void 0),e}var On=class extends ls(re){};var ds={};var An={};F(An,{highlightHtml:()=>wn,highlightHtmlColorCssVariable:()=>us,highlightHtmlStyles:()=>_d});var st=class r{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(u=>{r.matches(u,this.exclude)?d():this.onIframeReady(u,h=>{t(u)&&(l++,n(h)),d()},d)})}createIterator(e,t,n){return document.createNodeIterator(e,t,n,!1)}createInstanceOnIframe(e){return new r(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=[],u,h,f=()=>({prevNode:h,node:u}=this.getIteratorNode(s),u);for(;f();)this.iframes&&this.forEachIframe(t,g=>this.checkIframeFilter(u,h,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,m=>d.push(m),a)}),d.push(u);d.forEach(g=>{n(g)}),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 cr=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 st(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 st.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 u=t-s.start,h=(n>s.end?s.end:n)-s.start,f=e.value.substr(0,s.start),g=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,u,h),e.value=f+g,e.nodes.forEach((m,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 u;for(;(u=e.exec(d.textContent))!==null&&u[s]!=="";){if(!n(u[s],d))continue;let h=u.index;if(s!==0)for(let f=1;f<s;f++)h+=u[f].length;d=this.wrapRangeInTextNode(d,h,h+u[s].length),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 u=d.index;if(s!==0)for(let f=1;f<s;f++)u+=d[f].length;let h=u+d[s].length;this.wrapRangeInMappedTextNode(l,u,h,f=>n(d[s],f),(f,g)=>{e.lastIndex=g,a(f)})}i()})}wrapRangeFromIndex(e,t,n,a){this.getTextNodes(i=>{let s=i.value.length;e.forEach((l,d)=>{let{start:u,end:h,valid:f}=this.checkWhitespaceRanges(l,s,i.value);f&&this.wrapRangeInMappedTextNode(i,u,h,g=>t(g,l,i.value.substring(u,h),d),g=>{n(g,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=u=>{let h=new RegExp(this.createRegExp(u),`gm${l}`),f=0;this.log(`Searching with expression "${h}"`),this[a](h,1,(g,m)=>this.opt.filter(m,u,n,f),g=>{f++,n++,this.opt.each(g)},()=>{f===0&&this.opt.noMatch(u),i[s-1]===u?this.opt.done(n):d(i[i.indexOf(u)+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=st.matches(n,t),i=this.matchesExclude(n);return!a||i?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Cn(r){let e=new cr(r);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 Rd=Cn,us=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),_d=G`
|
|
1
|
+
"use strict";(()=>{var Ps=Object.create;var qr=Object.defineProperty;var Ls=Object.getOwnPropertyDescriptor;var ks=Object.getOwnPropertyNames;var Ds=Object.getPrototypeOf,Us=Object.prototype.hasOwnProperty;var Fs=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports),M=(o,e)=>{for(var r in e)qr(o,r,{get:e[r],enumerable:!0})},Ms=(o,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of ks(e))!Us.call(o,a)&&a!==r&&qr(o,a,{get:()=>e[a],enumerable:!(n=Ls(e,a))||n.enumerable});return o};var Bs=(o,e,r)=>(r=o!=null?Ps(Ds(o)):{},Ms(e||!o||!o.__esModule?qr(r,"default",{value:o,enumerable:!0}):r,o));var Qi=Fs((We,Ji)=>{var Nr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Tr=function(){function o(){this.fetch=!1,this.DOMException=Nr.DOMException}return o.prototype=Nr,new o}();(function(o){var e=function(r){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 f(g){return typeof g!="string"&&(g=String(g)),g}function h(g){var x={next:function(){var I=g.shift();return{done:I===void 0,value:I}}};return a.iterable&&(x[Symbol.iterator]=function(){return x}),x}function p(g){this.map={},g instanceof p?g.forEach(function(x,I){this.append(I,x)},this):Array.isArray(g)?g.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):g&&Object.getOwnPropertyNames(g).forEach(function(x){this.append(x,g[x])},this)}p.prototype.append=function(g,x){g=d(g),x=f(x);var I=this.map[g];this.map[g]=I?I+", "+x:x},p.prototype.delete=function(g){delete this.map[d(g)]},p.prototype.get=function(g){return g=d(g),this.has(g)?this.map[g]:null},p.prototype.has=function(g){return this.map.hasOwnProperty(d(g))},p.prototype.set=function(g,x){this.map[d(g)]=f(x)},p.prototype.forEach=function(g,x){for(var I in this.map)this.map.hasOwnProperty(I)&&g.call(x,this.map[I],I,this)},p.prototype.keys=function(){var g=[];return this.forEach(function(x,I){g.push(I)}),h(g)},p.prototype.values=function(){var g=[];return this.forEach(function(x){g.push(x)}),h(g)},p.prototype.entries=function(){var g=[];return this.forEach(function(x,I){g.push([I,x])}),h(g)},a.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function y(g){if(!g._noBody){if(g.bodyUsed)return Promise.reject(new TypeError("Already read"));g.bodyUsed=!0}}function m(g){return new Promise(function(x,I){g.onload=function(){x(g.result)},g.onerror=function(){I(g.error)}})}function b(g){var x=new FileReader,I=m(x);return x.readAsArrayBuffer(g),I}function S(g){var x=new FileReader,I=m(x),k=/charset=([A-Za-z0-9_-]+)/.exec(g.type),F=k?k[1]:"utf-8";return x.readAsText(g,F),I}function w(g){for(var x=new Uint8Array(g),I=new Array(x.length),k=0;k<x.length;k++)I[k]=String.fromCharCode(x[k]);return I.join("")}function C(g){if(g.slice)return g.slice(0);var x=new Uint8Array(g.byteLength);return x.set(new Uint8Array(g)),x.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=C(g.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(g)||l(g))?this._bodyArrayBuffer=C(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=y(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=y(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=y(this);if(g)return g;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(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(N)}),this.json=function(){return this.text().then(JSON.parse)},this}var O=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function v(g){var x=g.toUpperCase();return O.indexOf(x)>-1?x:g}function E(g,x){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x=x||{};var I=x.body;if(g instanceof E){if(g.bodyUsed)throw new TypeError("Already read");this.url=g.url,this.credentials=g.credentials,x.headers||(this.headers=new p(g.headers)),this.method=g.method,this.mode=g.mode,this.signal=g.signal,!I&&g._bodyInit!=null&&(I=g._bodyInit,g.bodyUsed=!0)}else this.url=String(g);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new p(x.headers)),this.method=v(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal||function(){if("AbortController"in n){var L=new AbortController;return L.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&I)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(I),(this.method==="GET"||this.method==="HEAD")&&(x.cache==="no-store"||x.cache==="no-cache")){var k=/([?&])_=[^&]*/;if(k.test(this.url))this.url=this.url.replace(k,"$1_="+new Date().getTime());else{var F=/\?/;this.url+=(F.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})};function N(g){var x=new FormData;return g.trim().split("&").forEach(function(I){if(I){var k=I.split("="),F=k.shift().replace(/\+/g," "),L=k.join("=").replace(/\+/g," ");x.append(decodeURIComponent(F),decodeURIComponent(L))}}),x}function _(g){var x=new p,I=g.replace(/\r?\n[\t ]+/g," ");return I.split("\r").map(function(k){return k.indexOf(`
|
|
2
|
+
`)===0?k.substr(1,k.length):k}).forEach(function(k){var F=k.split(":"),L=F.shift().trim();if(L){var oe=F.join(":").trim();try{x.append(L,oe)}catch(Y){console.warn("Response "+Y.message)}}}),x}A.call(E.prototype);function D(g,x){if(!(this instanceof D))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(x||(x={}),this.type="default",this.status=x.status===void 0?200:x.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=x.statusText===void 0?"":""+x.statusText,this.headers=new p(x.headers),this.url=x.url||"",this._initBody(g)}A.call(D.prototype),D.prototype.clone=function(){return new D(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},D.error=function(){var g=new D(null,{status:200,statusText:""});return g.ok=!1,g.status=0,g.type="error",g};var P=[301,302,303,307,308];D.redirect=function(g,x){if(P.indexOf(x)===-1)throw new RangeError("Invalid status code");return new D(null,{status:x,headers:{location:g}})},r.DOMException=n.DOMException;try{new r.DOMException}catch{r.DOMException=function(x,I){this.message=x,this.name=I;var k=Error(x);this.stack=k.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function R(g,x){return new Promise(function(I,k){var F=new E(g,x);if(F.signal&&F.signal.aborted)return k(new r.DOMException("Aborted","AbortError"));var L=new XMLHttpRequest;function oe(){L.abort()}L.onload=function(){var G={statusText:L.statusText,headers:_(L.getAllResponseHeaders()||"")};F.url.indexOf("file://")===0&&(L.status<200||L.status>599)?G.status=200:G.status=L.status,G.url="responseURL"in L?L.responseURL:G.headers.get("X-Request-URL");var He="response"in L?L.response:L.responseText;setTimeout(function(){I(new D(He,G))},0)},L.onerror=function(){setTimeout(function(){k(new TypeError("Network request failed"))},0)},L.ontimeout=function(){setTimeout(function(){k(new TypeError("Network request timed out"))},0)},L.onabort=function(){setTimeout(function(){k(new r.DOMException("Aborted","AbortError"))},0)};function Y(G){try{return G===""&&n.location.href?n.location.href:G}catch{return G}}if(L.open(F.method,Y(F.url),!0),F.credentials==="include"?L.withCredentials=!0:F.credentials==="omit"&&(L.withCredentials=!1),"responseType"in L&&(a.blob?L.responseType="blob":a.arrayBuffer&&(L.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof p||n.Headers&&x.headers instanceof n.Headers)){var ae=[];Object.getOwnPropertyNames(x.headers).forEach(function(G){ae.push(d(G)),L.setRequestHeader(G,f(x.headers[G]))}),F.headers.forEach(function(G,He){ae.indexOf(He)===-1&&L.setRequestHeader(He,G)})}else F.headers.forEach(function(G,He){L.setRequestHeader(He,G)});F.signal&&(F.signal.addEventListener("abort",oe),L.onreadystatechange=function(){L.readyState===4&&F.signal.removeEventListener("abort",oe)}),L.send(typeof F._bodyInit>"u"?null:F._bodyInit)})}return R.polyfill=!0,n.fetch||(n.fetch=R,n.Headers=p,n.Request=E,n.Response=D),r.Headers=p,r.Request=E,r.Response=D,r.fetch=R,r}({})})(Tr);Tr.fetch.ponyfill=!0;delete Tr.fetch.polyfill;var Ot=Nr.fetch?Nr:Tr;We=Ot.fetch;We.default=Ot.fetch;We.fetch=Ot.fetch;We.Headers=Ot.Headers;We.Request=Ot.Request;We.Response=Ot.Response;Ji.exports=We});if(!ShadowRoot.prototype.createElement){let o=window.HTMLElement,e=window.customElements.define,r=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,v){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(v)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let E=v.prototype.attributeChangedCallback,N=new Set(v.observedAttributes||[]);y(v,N,E);let _={elementClass:v,connectedCallback:v.prototype.connectedCallback,disconnectedCallback:v.prototype.disconnectedCallback,adoptedCallback:v.prototype.adoptedCallback,attributeChangedCallback:E,formAssociated:v.formAssociated,formAssociatedCallback:v.prototype.formAssociatedCallback,formDisabledCallback:v.prototype.formDisabledCallback,formResetCallback:v.prototype.formResetCallback,formStateRestoreCallback:v.prototype.formStateRestoreCallback,observedAttributes:N};this._definitionsByTag.set(O,_),this._definitionsByClass.set(v,_);let D=r.call(n,O);D||(D=p(O),e.call(n,O,D)),this===window.customElements&&(s.set(v,_),_.standInClass=D);let P=this._awaitingUpgrade.get(O);if(P){this._awaitingUpgrade.delete(O);for(let g of P)i.delete(g),b(g,_,!0)}let R=this._whenDefinedPromises.get(O);return R!==void 0&&(R.resolve(v),this._whenDefinedPromises.delete(O)),v}upgrade(){w.push(this),n.upgrade.apply(n,arguments),w.pop()}get(O){return this._definitionsByTag.get(O)?.elementClass}_getDefinition(O){return this._definitionsByTag.get(O)}whenDefined(O){let v=this._getDefinition(O);if(v!==void 0)return Promise.resolve(v.elementClass);let E=this._whenDefinedPromises.get(O);return E===void 0&&(E={},E.promise=new Promise(N=>E.resolve=N),this._whenDefinedPromises.set(O,E)),E.promise}_upgradeWhenDefined(O,v,E){let N=this._awaitingUpgrade.get(v);N||this._awaitingUpgrade.set(v,N=new Set),E?N.add(O):N.delete(O)}};let d;window.HTMLElement=function(){let v=d;if(v)return d=void 0,v;let E=s.get(this.constructor);if(!E)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return v=Reflect.construct(o,[],E.standInClass),Object.setPrototypeOf(v,this.constructor.prototype),a.set(v,E),v},window.HTMLElement.prototype=o.prototype;let f=O=>O===document||O instanceof ShadowRoot,h=O=>{let v=O.getRootNode();if(!f(v)){let E=w[w.length-1];if(E instanceof CustomElementRegistry)return E;v=E.getRootNode(),f(v)||(v=l.get(v)?.getRootNode()||document)}return v.customElements},p=O=>class{static get formAssociated(){return!0}constructor(){let E=Reflect.construct(o,[],this.constructor);Object.setPrototypeOf(E,HTMLElement.prototype);let N=h(E)||window.customElements,_=N._getDefinition(O);return _?b(E,_):i.set(E,N),E}connectedCallback(){let E=a.get(this);E?E.connectedCallback&&E.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,O,!0)}disconnectedCallback(){let E=a.get(this);E?E.disconnectedCallback&&E.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,O,!1)}adoptedCallback(){a.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let E=a.get(this);E&&E.formAssociated&&E?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let E=a.get(this);E?.formAssociated&&E?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let E=a.get(this);E?.formAssociated&&E?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let E=a.get(this);E?.formAssociated&&E?.formStateRestoreCallback?.apply(this,arguments)}},y=(O,v,E)=>{if(v.size===0||E===void 0)return;let N=O.prototype.setAttribute;N&&(O.prototype.setAttribute=function(P,R){let g=P.toLowerCase();if(v.has(g)){let x=this.getAttribute(g);N.call(this,g,R),E.call(this,g,x,R)}else N.call(this,g,R)});let _=O.prototype.removeAttribute;_&&(O.prototype.removeAttribute=function(P){let R=P.toLowerCase();if(v.has(R)){let g=this.getAttribute(R);_.call(this,R),E.call(this,R,g,null)}else _.call(this,R)});let D=O.prototype.toggleAttribute;D&&(O.prototype.toggleAttribute=function(P,R){let g=P.toLowerCase();if(v.has(g)){let x=this.getAttribute(g);D.call(this,g,R);let I=this.getAttribute(g);E.call(this,g,x,I)}else D.call(this,g,R)})},m=O=>{let v=Object.getPrototypeOf(O);if(v!==window.HTMLElement)return v===o?Object.setPrototypeOf(O,window.HTMLElement):m(v)},b=(O,v,E=!1)=>{Object.setPrototypeOf(O,v.elementClass.prototype),a.set(O,v),d=O;try{new v.elementClass}catch{m(v.elementClass),new v.elementClass}v.attributeChangedCallback&&v.observedAttributes.forEach(N=>{O.hasAttribute(N)&&v.attributeChangedCallback.call(O,N,null,O.getAttribute(N))}),E&&v.connectedCallback&&O.isConnected&&v.connectedCallback.call(O)},S=Element.prototype.attachShadow;Element.prototype.attachShadow=function(O){let v=S.apply(this,arguments);return O.customElements&&(v.customElements=O.customElements),v};let w=[document],C=(O,v,E=void 0)=>{let N=(E?Object.getPrototypeOf(E):O.prototype)[v];O.prototype[v]=function(){w.push(this);let _=N.apply(E||this,arguments);return _!==void 0&&l.set(_,this),w.pop(),_}};C(ShadowRoot,"createElement",document),C(ShadowRoot,"importNode",document),C(Element,"insertAdjacentHTML");let A=(O,v)=>{let E=Object.getOwnPropertyDescriptor(O.prototype,v);Object.defineProperty(O.prototype,v,{...E,set(N){w.push(this),E.set.call(this,N),w.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,v=HTMLElement.prototype.attachInternals,E=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...P){let R=v.call(this,...P);return O.set(R,this),R},E.forEach(P=>{let R=window.ElementInternals.prototype,g=R[P];R[P]=function(...x){let I=O.get(this);if(a.get(I).formAssociated===!0)return g?.call(this,...x);throw new DOMException(`Failed to execute ${g} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class N extends Array{constructor(R){super(...R),this._elements=R}get value(){return this._elements.find(R=>R.checked===!0)?.value||""}}class _{constructor(R){let g=new Map;R.forEach((x,I)=>{let k=x.getAttribute("name"),F=g.get(k)||[];this[+I]=x,F.push(x),g.set(k,F)}),this.length=R.length,g.forEach((x,I)=>{x&&(x.length===1?this[I]=x[0]:this[I]=new N(x))})}namedItem(R){return this[R]}}let D=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let P=D.get.call(this,[]),R=[];for(let g of P){let x=a.get(g);(!x||x.formAssociated===!0)&&R.push(g)}return new _(R)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,n,a)=>{if(n!==null)try{e.bind(window.customElements)(r,n,a)}catch(i){console.info(r,n,a,i)}}}var io={};M(io,{CSSResult:()=>it,LitElement:()=>Se,ReactiveElement:()=>fe,_$LE:()=>Xs,_$LH:()=>oo,adoptStyles:()=>Rt,css:()=>j,defaultConverter:()=>st,getCompatibleStyle:()=>ir,html:()=>lt,isServer:()=>Gd,mathml:()=>Ys,noChange:()=>K,notEqual:()=>Nt,nothing:()=>H,render:()=>no,supportsAdoptingStyleSheets:()=>Ct,svg:()=>qs,unsafeCSS:()=>At});var ar=globalThis,Ct=ar.ShadowRoot&&(ar.ShadyCSS===void 0||ar.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Yr=Symbol(),jn=new WeakMap,it=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==Yr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Ct&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=jn.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&jn.set(r,e))}return e}toString(){return this.cssText}},At=o=>new it(typeof o=="string"?o:o+"",void 0,Yr),j=(o,...e)=>{let r=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 it(r,o,Yr)},Rt=(o,e)=>{if(Ct)o.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),a=ar.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,o.appendChild(n)}},ir=Ct?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return At(r)})(o):o;var{is:Ws,defineProperty:Hs,getOwnPropertyDescriptor:$s,getOwnPropertyNames:zs,getOwnPropertySymbols:js,getPrototypeOf:Gs}=Object,sr=globalThis,Gn=sr.trustedTypes,Vs=Gn?Gn.emptyScript:"",Ks=sr.reactiveElementPolyfillSupport,It=(o,e)=>o,st={toAttribute(o,e){switch(e){case Boolean:o=o?Vs:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let r=o;switch(e){case Boolean:r=o!==null;break;case Number:r=o===null?null:Number(o);break;case Object:case Array:try{r=JSON.parse(o)}catch{r=null}}return r}},Nt=(o,e)=>!Ws(o,e),Vn={attribute:!0,type:String,converter:st,reflect:!1,useDefault:!1,hasChanged:Nt};Symbol.metadata??=Symbol("metadata"),sr.litPropertyMetadata??=new WeakMap;var fe=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=Vn){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),a=this.getPropertyDescriptor(e,n,r);a!==void 0&&Hs(this.prototype,e,a)}}static getPropertyDescriptor(e,r,n){let{get:a,set:i}=$s(this.prototype,e)??{get(){return this[r]},set(s){this[r]=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)??Vn}static _$Ei(){if(this.hasOwnProperty(It("elementProperties")))return;let e=Gs(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 r=this.properties,n=[...zs(r),...js(r)];for(let a of n)this.createProperty(a,r[a])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,a]of r)this.elementProperties.set(n,a)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let a=this._$Eu(r,n);a!==void 0&&this._$Eh.set(a,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let a of n)r.unshift(ir(a))}else e!==void 0&&r.push(ir(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return 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,r,n){this._$AK(e,n)}_$ET(e,r){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:st).toAttribute(r,n.type);this._$Em=e,i==null?this.removeAttribute(a):this.setAttribute(a,i),this._$Em=null}}_$AK(e,r){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:st;this._$Em=a,this[a]=s.fromAttribute(r,i.type)??this._$Ej?.get(a)??null,this._$Em=null}}requestUpdate(e,r,n){if(e!==void 0){let a=this.constructor,i=this[e];if(n??=a.getPropertyOptions(e),!((n.hasChanged??Nt)(i,r)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:n,reflect:a,wrapped:i},s){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??r??this[e]),i!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(r=void 0),this._$AL.set(e,r)),a===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[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,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};fe.elementStyles=[],fe.shadowRootOptions={mode:"open"},fe[It("elementProperties")]=new Map,fe[It("finalized")]=new Map,Ks?.({ReactiveElement:fe}),(sr.reactiveElementVersions??=[]).push("2.1.0");var Qr=globalThis,cr=Qr.trustedTypes,Kn=cr?cr.createPolicy("lit-html",{createHTML:o=>o}):void 0,Xr="$lit$",xe=`lit$${Math.random().toFixed(9).slice(2)}$`,eo="?"+xe,Zs=`<${eo}>`,je=document,_t=()=>je.createComment(""),Pt=o=>o===null||typeof o!="object"&&typeof o!="function",to=Array.isArray,Xn=o=>to(o)||typeof o?.[Symbol.iterator]=="function",Jr=`[
|
|
3
|
+
\f\r]`,Tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Zn=/-->/g,qn=/>/g,$e=RegExp(`>|${Jr}(?:([^\\s"'>=/]+)(${Jr}*=${Jr}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Yn=/'/g,Jn=/"/g,ea=/^(?:script|style|textarea|title)$/i,ro=o=>(e,...r)=>({_$litType$:o,strings:e,values:r}),lt=ro(1),qs=ro(2),Ys=ro(3),K=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),Qn=new WeakMap,ze=je.createTreeWalker(je,129);function ta(o,e){if(!to(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Kn!==void 0?Kn.createHTML(e):e}var ra=(o,e)=>{let r=o.length-1,n=[],a,i=e===2?"<svg>":e===3?"<math>":"",s=Tt;for(let l=0;l<r;l++){let d=o[l],f,h,p=-1,y=0;for(;y<d.length&&(s.lastIndex=y,h=s.exec(d),h!==null);)y=s.lastIndex,s===Tt?h[1]==="!--"?s=Zn:h[1]!==void 0?s=qn:h[2]!==void 0?(ea.test(h[2])&&(a=RegExp("</"+h[2],"g")),s=$e):h[3]!==void 0&&(s=$e):s===$e?h[0]===">"?(s=a??Tt,p=-1):h[1]===void 0?p=-2:(p=s.lastIndex-h[2].length,f=h[1],s=h[3]===void 0?$e:h[3]==='"'?Jn:Yn):s===Jn||s===Yn?s=$e:s===Zn||s===qn?s=Tt:(s=$e,a=void 0);let m=s===$e&&o[l+1].startsWith("/>")?" ":"";i+=s===Tt?d+Zs:p>=0?(n.push(f),d.slice(0,p)+Xr+d.slice(p)+xe+m):d+xe+(p===-2?l:m)}return[ta(o,i+(o[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},Lt=class o{constructor({strings:e,_$litType$:r},n){let a;this.parts=[];let i=0,s=0,l=e.length-1,d=this.parts,[f,h]=ra(e,r);if(this.el=o.createElement(f,n),ze.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(a=ze.nextNode())!==null&&d.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let p of a.getAttributeNames())if(p.endsWith(Xr)){let y=h[s++],m=a.getAttribute(p).split(xe),b=/([.?@])?(.*)/.exec(y);d.push({type:1,index:i,name:b[2],strings:m,ctor:b[1]==="."?dr:b[1]==="?"?ur:b[1]==="@"?fr:Ve}),a.removeAttribute(p)}else p.startsWith(xe)&&(d.push({type:6,index:i}),a.removeAttribute(p));if(ea.test(a.tagName)){let p=a.textContent.split(xe),y=p.length-1;if(y>0){a.textContent=cr?cr.emptyScript:"";for(let m=0;m<y;m++)a.append(p[m],_t()),ze.nextNode(),d.push({type:2,index:++i});a.append(p[y],_t())}}}else if(a.nodeType===8)if(a.data===eo)d.push({type:2,index:i});else{let p=-1;for(;(p=a.data.indexOf(xe,p+1))!==-1;)d.push({type:7,index:i}),p+=xe.length-1}i++}}static createElement(e,r){let n=je.createElement("template");return n.innerHTML=e,n}};function Ge(o,e,r=o,n){if(e===K)return e;let a=n!==void 0?r._$Co?.[n]:r._$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,r,n)),n!==void 0?(r._$Co??=[])[n]=a:r._$Cl=a),a!==void 0&&(e=Ge(o,a._$AS(o,e.values),a,n)),e}var lr=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,a=(e?.creationScope??je).importNode(r,!0);ze.currentNode=a;let i=ze.nextNode(),s=0,l=0,d=n[0];for(;d!==void 0;){if(s===d.index){let f;d.type===2?f=new ct(i,i.nextSibling,this,e):d.type===1?f=new d.ctor(i,d.name,d.strings,this,e):d.type===6&&(f=new pr(i,this,e)),this._$AV.push(f),d=n[++l]}s!==d?.index&&(i=ze.nextNode(),s++)}return ze.currentNode=je,a}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},ct=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,a){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Ge(this,e,r),Pt(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):Xn(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(je.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Lt.createElement(ta(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(r);else{let i=new lr(a,this),s=i.u(this.options);i.p(r),this.T(s),this._$AH=i}}_$AC(e){let r=Qn.get(e.strings);return r===void 0&&Qn.set(e.strings,r=new Lt(e)),r}k(e){to(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,a=0;for(let i of e)a===r.length?r.push(n=new o(this.O(_t()),this.O(_t()),this,this.options)):n=r[a],n._$AI(i),a++;a<r.length&&(this._$AR(n&&n._$AB.nextSibling,a),r.length=a)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ve=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,a,i){this.type=1,this._$AH=H,this._$AN=void 0,this.element=e,this.name=r,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,r=this,n,a){let i=this.strings,s=!1;if(i===void 0)e=Ge(this,e,r,0),s=!Pt(e)||e!==this._$AH&&e!==K,s&&(this._$AH=e);else{let l=e,d,f;for(e=i[0],d=0;d<i.length-1;d++)f=Ge(this,l[n+d],r,d),f===K&&(f=this._$AH[d]),s||=!Pt(f)||f!==this._$AH[d],f===H?e=H:e!==H&&(e+=(f??"")+i[d+1]),this._$AH[d]=f}s&&!a&&this.j(e)}j(e){e===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},dr=class extends Ve{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===H?void 0:e}},ur=class extends Ve{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==H)}},fr=class extends Ve{constructor(e,r,n,a,i){super(e,r,n,a,i),this.type=5}_$AI(e,r=this){if((e=Ge(this,e,r,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)}},pr=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Ge(this,e)}},oo={M:Xr,P:xe,A:eo,C:1,L:ra,R:lr,D:Xn,V:Ge,I:ct,H:Ve,N:ur,U:fr,B:dr,F:pr},Js=Qr.litHtmlPolyfillSupport;Js?.(Lt,ct),(Qr.litHtmlVersions??=[]).push("3.3.0");var no=(o,e,r)=>{let n=r?.renderBefore??e,a=n._$litPart$;if(a===void 0){let i=r?.renderBefore??null;n._$litPart$=a=new ct(e.insertBefore(_t(),i),i,void 0,r??{})}return a._$AI(o),a};var ao=globalThis,Se=class extends fe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=no(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return K}};Se._$litElement$=!0,Se.finalized=!0,ao.litElementHydrateSupport?.({LitElement:Se});var Qs=ao.litElementPolyfillSupport;Qs?.({LitElement:Se});var Xs={_$AK:(o,e,r)=>{o._$AK(e,r)},_$AL:o=>o._$AL};(ao.litElementVersions??=[]).push("4.2.0");var Gd=!1;var so={};M(so,{customElement:()=>ec,eventOptions:()=>rc,property:()=>U,query:()=>oc,queryAll:()=>ac,queryAssignedElements:()=>sc,queryAssignedNodes:()=>cc,queryAsync:()=>ic,standardProperty:()=>oa,state:()=>kt});var ec=o=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(o,e)}):customElements.define(o,e)};var tc={attribute:!0,type:String,converter:st,reflect:!1,hasChanged:Nt},oa=(o=tc,e,r)=>{let{kind:n,metadata:a}=r,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(r.name,o),n==="accessor"){let{name:s}=r;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}=r;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,o)}}throw Error("Unsupported decorator location: "+n)};function U(o){return(e,r)=>typeof r=="object"?oa(o,e,r):((n,a,i)=>{let s=a.hasOwnProperty(i);return a.constructor.createProperty(i,n),s?Object.getOwnPropertyDescriptor(a,i):void 0})(o,e,r)}function kt(o){return U({...o,state:!0,attribute:!1})}function rc(o){return(e,r)=>{let n=typeof e=="function"?e:e[r];Object.assign(n,o)}}var ie=(o,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(o,e,r),r);function oc(o,e){return(r,n,a)=>{let i=s=>s.renderRoot?.querySelector(o)??null;if(e){let{get:s,set:l}=typeof n=="object"?r:a??(()=>{let d=Symbol();return{get(){return this[d]},set(f){this[d]=f}}})();return ie(r,n,{get(){let d=s.call(this);return d===void 0&&(d=i(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return ie(r,n,{get(){return i(this)}})}}var nc;function ac(o){return(e,r)=>ie(e,r,{get(){return(this.renderRoot??(nc??=document.createDocumentFragment())).querySelectorAll(o)}})}function ic(o){return(e,r)=>ie(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(o)??null}})}function sc(o){return(e,r)=>{let{slot:n,selector:a}=o??{},i="slot"+(n?`[name=${n}]`:":not([name])");return ie(e,r,{get(){let s=this.renderRoot?.querySelector(i),l=s?.assignedElements(o)??[];return a===void 0?l:l.filter(d=>d.matches(a))}})}}function cc(o){return(e,r)=>{let{slot:n}=o??{},a="slot"+(n?`[name=${n}]`:":not([name])");return ie(e,r,{get(){return this.renderRoot?.querySelector(a)?.assignedNodes(o)??[]}})}}var co={};M(co,{repeat:()=>uc});var Ne={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Te=o=>(...e)=>({_$litDirective$:o,values:e}),pe=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:lc}=oo;var na=()=>document.createComment(""),dt=(o,e,r)=>{let n=o._$AA.parentNode,a=e===void 0?o._$AB:e._$AA;if(r===void 0){let i=n.insertBefore(na(),a),s=n.insertBefore(na(),a);r=new lc(i,s,o,o.options)}else{let i=r._$AB.nextSibling,s=r._$AM,l=s!==o;if(l){let d;r._$AQ?.(o),r._$AM=o,r._$AP!==void 0&&(d=o._$AU)!==s._$AU&&r._$AP(d)}if(i!==a||l){let d=r._$AA;for(;d!==i;){let f=d.nextSibling;n.insertBefore(d,a),d=f}}}return r},_e=(o,e,r=o)=>(o._$AI(e,r),o),dc={},aa=(o,e=dc)=>o._$AH=e,ia=o=>o._$AH,hr=o=>{o._$AP?.(!1,!0);let e=o._$AA,r=o._$AB.nextSibling;for(;e!==r;){let n=e.nextSibling;e.remove(),e=n}};var sa=(o,e,r)=>{let n=new Map;for(let a=e;a<=r;a++)n.set(o[a],a);return n},uc=Te(class extends pe{constructor(o){if(super(o),o.type!==Ne.CHILD)throw Error("repeat() can only be used in text expressions")}dt(o,e,r){let n;r===void 0?r=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]=r(l,s),s++;return{values:i,keys:a}}render(o,e,r){return this.dt(o,e,r).values}update(o,[e,r,n]){let a=ia(o),{values:i,keys:s}=this.dt(e,r,n);if(!Array.isArray(a))return this.ut=s,i;let l=this.ut??=[],d=[],f,h,p=0,y=a.length-1,m=0,b=i.length-1;for(;p<=y&&m<=b;)if(a[p]===null)p++;else if(a[y]===null)y--;else if(l[p]===s[m])d[m]=_e(a[p],i[m]),p++,m++;else if(l[y]===s[b])d[b]=_e(a[y],i[b]),y--,b--;else if(l[p]===s[b])d[b]=_e(a[p],i[b]),dt(o,d[b+1],a[p]),p++,b--;else if(l[y]===s[m])d[m]=_e(a[y],i[m]),dt(o,a[p],a[y]),y--,m++;else if(f===void 0&&(f=sa(s,m,b),h=sa(l,p,y)),f.has(l[p]))if(f.has(l[y])){let S=h.get(s[m]),w=S!==void 0?a[S]:null;if(w===null){let C=dt(o,a[p]);_e(C,i[m]),d[m]=C}else d[m]=_e(w,i[m]),dt(o,a[p],w),a[S]=null;m++}else hr(a[y]),y--;else hr(a[p]),p++;for(;m<=b;){let S=dt(o,d[b+1]);_e(S,i[m]),d[m++]=S}for(;p<=y;){let S=a[p++];S!==null&&hr(S)}return this.ut=s,aa(o,d),K}});var lo={};M(lo,{classMap:()=>fc});var fc=Te(class extends pe{constructor(o){if(super(o),o.type!==Ne.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 r=o.element.classList;for(let n of this.st)n in e||(r.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?(r.add(n),this.st.add(n)):(r.remove(n),this.st.delete(n)))}return K}});var uo={};M(uo,{styleMap:()=>hc});var ca="important",pc=" !"+ca,hc=Te(class extends pe{constructor(o){if(super(o),o.type!==Ne.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,r)=>{let n=o[r];return n==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(o,[e]){let{style:r}=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("-")?r.removeProperty(n):r[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(pc);n.includes("-")||i?r.setProperty(n,i?a.slice(0,-11):a,i?ca:""):r[n]=a}}return K}});var fo={};M(fo,{UnsafeHTMLDirective:()=>ut,unsafeHTML:()=>gc});var ut=class extends pe{constructor(e){if(super(e),this.it=H,e.type!==Ne.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 r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};ut.directiveName="unsafeHTML",ut.resultType=1;var gc=Te(ut);var vo={};M(vo,{CacheRegistry:()=>he,ClearCacheEvent:()=>Dt});var ho={};M(ho,{CancelablePromise:()=>ft,CanceledPromiseError:()=>Ke,cancelable:()=>po});var Ke=class extends Error{constructor(e,r,n){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=n}},ft=class extends Promise{constructor(e){super((r,n)=>e(a=>{this.isCanceled?n(new Ke("Promise has been canceled",a)):r(a)},a=>{this.isCanceled?n(new Ke("Promise has been canceled",void 0,a)):n(a)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},po=o=>new ft((e,r)=>o.then(e).catch(r));var bo={};M(bo,{FtNotificationEvent:()=>go,PostResizeEvent:()=>mo,PreResizeEvent:()=>yo,WithEventBus:()=>Ze,withEventBus:()=>la});var go=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},yo=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},mo=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function la(o,e){return class extends o{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}var Ze=class extends la(Object){};var Dt=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},he=class extends Ze{constructor(){super(...arguments),this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(e,r){this.loaders[e]=r,this.finalContent.delete(e)}registerFinal(e,r){this.loaders[e]=r,this.finalContent.add(e)}clearAll(e=!0){let r=[];for(let n in this.content)this.clear(n,!1)!=null&&r.push(n);e&&r.length>0&&this.dispatchEvent(new Dt(r))}clear(e,r=!0){if(!this.finalContent.has(e))return this.forceClear(e),r&&this.dispatchEvent(new Dt([e])),e}forceClear(e){this.clearClearTimeout(e),this.content[e]instanceof ft&&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,r){this.forceClear(e),this.register(e,async()=>r),this.content[e]=r}setFinal(e,r){this.forceClear(e),this.registerFinal(e,async()=>r),this.content[e]=r}async get(e,r,n){if(this.content[e]===void 0){if(r=r??this.loaders[e],r==null)throw new Error("Unknown cache key "+e);let a=po(r());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 xo={};M(xo,{ClusteringHelper:()=>Ut});var Ut=class o{constructor(e,r,n,a){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=n,this.metadataDescriptors=a}static extractResultMetadata(e){var r,n,a,i,s;let l=((i=(n=(r=e.result)===null||r===void 0?void 0:r.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,r,n){if(Array.isArray(e))return e.map(i=>o.flattenMetadata(i,r,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(l.join(" > ")),r&&r>1&&l.length>=r?s.push(`... > ${l[l.length-1]}`):s.push(l.join(" > "))}),{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,r,n="No value",a,i){var s,l;let d=o.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:i}),f=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(p=>o.extractResultMetadata({result:p,key:e,hierarchicalValueTruncatingLevel:a,dateFormatter:i})).map(p=>p??{key:e,label:f,value:void 0,displayValue:n}).filter(p=>p.value!=d?.value).filter((p,y,m)=>m.findIndex(b=>b.value===p.value)===y).map(p=>({result:this.findBestResultForMetadataValue(e,p.value),metadata:p})).sort((p,y)=>this.compareMetadata(p.metadata.value,y.metadata.value,e,r))}compareMetadata(e,r,n,a){if(e==null)return-1;if(r==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(r,a,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let n=this.allResults.filter(d=>{var f;return((f=o.extractResultMetadata({result:d,key:e}))===null||f===void 0?void 0:f.value)==r}),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 f=this.countMatchingMetadata(d,i);if(f>l&&(l=f,s=d,f===i.length))break}return s}countMatchingMetadata(e,r){return o.extractResultMetadata({result:e}).filter(n=>r.some(a=>a.key===n.key&&a.value===n.value)).length}};var So={};M(So,{Debouncer:()=>X});var X=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>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 Co={};M(Co,{customElement:()=>Bt,isNumber:()=>pa,jsonProperty:()=>Pe,optionalNumberProperty:()=>xc});var wo={};M(wo,{dateReviver:()=>yc,deepEqual:()=>se,delay:()=>gr,eventPathContainsMatchingElement:()=>bc,flatDeep:()=>da,getComposedPathTo:()=>Eo,hasChanged:()=>qe,last:()=>vc,minmax:()=>Mt,parseDate:()=>ua,unslotText:()=>fa,waitFor:()=>Ft,waitUntil:()=>Oo});var gr=o=>new Promise(e=>setTimeout(e,o));async function Oo(o,e=10,r=2e4){await Ft(async()=>await o()||void 0,e,r)}async function Ft(o,e=10,r=2e4){let n=await o(),a,i;for(a=i=performance.now();n==null&&(!r||i-a<r);)await gr(e),n=await o(),i=performance.now();if(n==null)throw new Error("Timeout exceeded");return n}function da(o,e){return o.flatMap(r=>[r,...da(e(r),e)])}function yc(...o){return function(e,r){return o.includes(e)?ua(r):r}}function ua(o){return o.match(/^\d{4}-\d{2}-\d{2}$/)&&(o=o.replace(/-/g,"/")),o=o.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,n,a)=>r+n+":"+a),new Date(o)}function mc(o,e){if(o===e)return!0;if(o&&e&&typeof o=="object"&&typeof e=="object"){if(o.constructor!==e.constructor)return!1;var r,n,a;if(Array.isArray(o)){if(r=o.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!se(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(!se(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),r=a.length,r!==i(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=r;n--!==0;){let s=a[n];if(!se(o[s],e[s]))return!1}return!0}return o!==o&&e!==e||o==null&&e==null}function se(o,e){try{return mc(o,e)}catch{return!1}}function qe(o,e){return!se(o,e)}function bc(o,e,r=window.document.body){if(e.length>0){let n=o.composedPath();for(let a of n){if(a===r)return!1;if(a.matches&&e.some(i=>a.matches(i)))return!0}}return!1}function Mt(o,e,r){return Math.min(Math.max(o,e),r)}function vc(o){return o[o.length-1]}function fa(o){return o instanceof HTMLSlotElement?o.assignedNodes().map(e=>fa(e)).join(""):o?.textContent||""}function Eo(o){let e=[],r=n=>{n.stopPropagation(),e=n.composedPath()};return o.addEventListener("get-composed-path",r),o.dispatchEvent(new Event("get-composed-path",{composed:!0})),o.removeEventListener("get-composed-path",r),e}var Bt=o=>e=>{window.customElements.get(o)||window.customElements.define(o,e)};function Pe(o,e){let r=()=>JSON.parse(JSON.stringify(o));return U({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:qe,...e??{}})}function xc(o){return U({type:Object,converter:{fromAttribute:e=>{if(e!=null)return pa(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...o??{}})}function pa(o){return!isNaN(parseFloat(o))}var No={};M(No,{designSystemVariables:()=>el});var Io={};M(Io,{DesignSystemFamily:()=>Wt,DesignSystemSize:()=>Ht,FtCssVariableFactory:()=>t,badge:()=>Tc,banner:()=>Nc,button:()=>Ec,chart:()=>Vc,checkbox:()=>wc,chip:()=>Rc,chipChoice:()=>Ac,collapsible:()=>jc,comboboxMultiSelect:()=>$c,comboboxSingleSelect:()=>Hc,drawer:()=>Uc,floatingMenu:()=>Wc,foundation:()=>c,link:()=>Ic,modal:()=>Dc,notice:()=>Zc,notification:()=>Jc,pageDesigner:()=>Kc,pageFooter:()=>Lc,pageHeader:()=>Pc,pageLayout:()=>kc,popover:()=>zc,radio:()=>Yc,reorderableList:()=>Xc,resolveFamilyClass:()=>Ao,resolveSizeClass:()=>Ro,semantic:()=>u,setVariable:()=>yr,switch_:()=>Gc,table:()=>Cc,tabs:()=>Fc,textArea:()=>Bc,textInput:()=>Mc,titleBreadcrumb:()=>_c,toggle:()=>qc,tooltip:()=>Qc,typographies:()=>Sc,typographyBody1Medium:()=>va,typographyBody1Regular:()=>ba,typographyBody1Semibold:()=>xa,typographyBody2Medium:()=>Oa,typographyBody2MediumUnderline:()=>Ea,typographyBody2Regular:()=>Sa,typographyBody2Semibold:()=>wa,typographyCaption1Bold:()=>La,typographyCaption1Medium:()=>_a,typographyCaption1Semibold:()=>Pa,typographyCaption2Bold:()=>Ua,typographyCaption2Medium:()=>ka,typographyCaption2Semibold:()=>Da,typographyCaption3Bold:()=>Ba,typographyCaption3Medium:()=>Fa,typographyCaption3Semibold:()=>Ma,typographyDisplay:()=>ha,typographyLabel1Bold:()=>Ra,typographyLabel1Medium:()=>Ca,typographyLabel1Semibold:()=>Aa,typographyLabel2Bold:()=>Ta,typographyLabel2Medium:()=>Ia,typographyLabel2Semibold:()=>Na,typographyTitle1:()=>ga,typographyTitle2:()=>ya,typographyTitle3:()=>ma,typographyVariants:()=>Oc});var Oe=o=>typeof o=="string"?At(o):o,t=class{static create(e,r,n,a){let i=l=>Oe(l??a),s=j`var(${Oe(e)}, ${i(a)})`;return s.name=e,s.description=r,s.category=n,s.defaultValue=a,s.defaultCssValue=i,s.get=l=>j`var(${Oe(e)}, ${i(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>a,s}static extend(e,r,n,a){let i=l=>n.get(l??a),s=j`var(${Oe(e)}, ${i(a)})`;return s.name=e,s.description=r,s.category=n.category,s.fallbackVariable=n,s.defaultValue=a,s.defaultCssValue=i,s.get=l=>j`var(${Oe(e)}, ${i(l)})`,s.breadcrumb=()=>[n.name,...n.breadcrumb()],s.lastResortDefaultValue=()=>a??n.lastResortDefaultValue(),s}static external(e,r){let n=i=>e.fallbackVariable?e.fallbackVariable.get(i??e.defaultValue):Oe(i??e.lastResortDefaultValue()),a=j`var(${Oe(e.name)}, ${n(e.defaultValue)})`;return a.name=e.name,a.category=e.category,a.fallbackVariable=e.fallbackVariable,a.defaultValue=e.defaultValue,a.context=r,a.defaultCssValue=n,a.get=i=>j`var(${Oe(e.name)}, ${n(i)})`,a.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],a.lastResortDefaultValue=()=>e.lastResortDefaultValue(),a}};function yr(o,e){return Oe(`${o.name}: ${e}`)}var c={colorWhite:t.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:t.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:t.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:t.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:t.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:t.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:t.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:t.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:t.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:t.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:t.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:t.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:t.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:t.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:t.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:t.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:t.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:t.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:t.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:t.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:t.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:t.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:t.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:t.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:t.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:t.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:t.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:t.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:t.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:t.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:t.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:t.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:t.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:t.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:t.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:t.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:t.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:t.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:t.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:t.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:t.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:t.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:t.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:t.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:t.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:t.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:t.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:t.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:t.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:t.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:t.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:t.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:t.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:t.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:t.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:t.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:t.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:t.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:t.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:t.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:t.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:t.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:t.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:t.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:t.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:t.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:t.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:t.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:t.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:t.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:t.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:t.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:t.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:t.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:t.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:t.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:t.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:t.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:t.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:t.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:t.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:t.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:t.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:t.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:t.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:t.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:t.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:t.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:t.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:t.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:t.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:t.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:t.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:t.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:t.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:t.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:t.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:t.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:t.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:t.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:t.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:t.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:t.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:t.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:t.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:t.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:t.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:t.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:t.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:t.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:t.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:t.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:t.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:t.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:t.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:t.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:t.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:t.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:t.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:t.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:t.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:t.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:t.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:t.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:t.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:t.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:t.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:t.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:t.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:t.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:t.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:t.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:t.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:t.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:t.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:t.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:t.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:t.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:t.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:t.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:t.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:t.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:t.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:t.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:t.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:t.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:t.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:t.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:t.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:t.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:t.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:t.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:t.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:t.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:t.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:t.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:t.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:t.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:t.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:t.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:t.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:t.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:t.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:t.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:t.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:t.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:t.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:t.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:t.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:t.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:t.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:t.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:t.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:t.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:t.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:t.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:t.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:t.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:t.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:t.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:t.create("--ft-opacity-0","","NUMBER","0"),opacity8:t.create("--ft-opacity-8","","NUMBER","0.08"),opacity12:t.create("--ft-opacity-12","","NUMBER","0.12"),opacity16:t.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:t.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:t.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:t.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:t.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:t.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:t.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:t.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:t.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:t.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:t.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:t.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:t.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:t.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:t.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)")},ha={fontFamily:t.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:t.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:t.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:t.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:t.create("--ft-typography-display-textCase","","UNKNOWN","none")},ga={fontFamily:t.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:t.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:t.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:t.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:t.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},ya={fontFamily:t.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:t.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:t.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:t.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:t.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},ma={fontFamily:t.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:t.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:t.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:t.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:t.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:t.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},ba={fontFamily:t.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:t.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:t.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:t.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:t.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:t.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},va={fontFamily:t.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:t.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:t.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:t.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:t.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:t.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},xa={fontFamily:t.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:t.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:t.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:t.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:t.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:t.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Sa={fontFamily:t.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:t.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:t.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:t.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:t.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:t.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Oa={fontFamily:t.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:t.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:t.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:t.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:t.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:t.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Ea={fontFamily:t.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:t.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:t.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:t.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:t.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:t.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:t.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},wa={fontFamily:t.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:t.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:t.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:t.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:t.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:t.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Ca={fontFamily:t.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:t.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:t.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:t.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:t.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:t.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Aa={fontFamily:t.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:t.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:t.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:t.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:t.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:t.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Ra={fontFamily:t.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:t.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:t.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:t.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:t.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:t.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Ia={fontFamily:t.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:t.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:t.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:t.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:t.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:t.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Na={fontFamily:t.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:t.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:t.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:t.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:t.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:t.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Ta={fontFamily:t.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:t.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:t.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:t.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:t.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:t.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},_a={fontFamily:t.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:t.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:t.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:t.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:t.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:t.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Pa={fontFamily:t.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:t.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:t.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:t.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:t.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:t.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},La={fontFamily:t.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:t.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:t.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:t.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:t.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:t.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},ka={fontFamily:t.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:t.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:t.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:t.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:t.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:t.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Da={fontFamily:t.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:t.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:t.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:t.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:t.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:t.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Ua={fontFamily:t.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:t.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:t.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:t.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:t.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:t.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Fa={fontFamily:t.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:t.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:t.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:t.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:t.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:t.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Ma={fontFamily:t.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:t.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:t.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:t.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:t.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:t.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},Ba={fontFamily:t.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:t.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:t.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:t.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:t.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:t.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:t.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:t.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Sc={display:ha,"title-1":ga,"title-2":ya,"title-3":ma,"body-1-regular":ba,"body-1-medium":va,"body-1-semibold":xa,"body-2-regular":Sa,"body-2-medium":Oa,"body-2-medium-underline":Ea,"body-2-semibold":wa,"label-1-medium":Ca,"label-1-semibold":Aa,"label-1-bold":Ra,"label-2-medium":Ia,"label-2-semibold":Na,"label-2-bold":Ta,"caption-1-medium":_a,"caption-1-semibold":Pa,"caption-1-bold":La,"caption-2-medium":ka,"caption-2-semibold":Da,"caption-2-bold":Ua,"caption-3-medium":Fa,"caption-3-semibold":Ma,"caption-3-bold":Ba},Oc=["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:t.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:t.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:t.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:t.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:t.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:t.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:t.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:t.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:t.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:t.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:t.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:t.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:t.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:t.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:t.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:t.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:t.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:t.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:t.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
5
|
+
Also for action icons.`,c.colorGray200),contentGlobalSubtle:t.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:t.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:t.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:t.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:t.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:t.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:t.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:t.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:t.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:t.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:t.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:t.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:t.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:t.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:t.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:t.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var Ec={largeHeight:t.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:t.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:t.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:t.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:t.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:t.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:t.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:t.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:t.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:t.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:t.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:t.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:t.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:t.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:t.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:t.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:t.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:t.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:t.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:t.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:t.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:t.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:t.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:t.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:t.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:t.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:t.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:t.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:t.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:t.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:t.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:t.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:t.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:t.extend("--ft-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:t.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:t.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:t.extend("--ft-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:t.extend("--ft-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:t.extend("--ft-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:t.extend("--ft-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:t.extend("--ft-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:t.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:t.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:t.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:t.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:t.extend("--ft-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:t.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:t.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:t.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:t.extend("--ft-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:t.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:t.extend("--ft-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:t.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:t.extend("--ft-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:t.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:t.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:t.extend("--ft-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:t.extend("--ft-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:t.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:t.extend("--ft-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:t.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:t.extend("--ft-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:t.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:t.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:t.extend("--ft-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:t.extend("--ft-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:t.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:t.extend("--ft-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:t.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:t.extend("--ft-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:t.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:t.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:t.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:t.extend("--ft-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:t.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:t.extend("--ft-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:t.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:t.extend("--ft-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:t.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:t.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:t.extend("--ft-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:t.extend("--ft-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:t.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:t.extend("--ft-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:t.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:t.extend("--ft-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:t.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:t.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:t.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:t.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:t.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:t.extend("--ft-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:t.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:t.extend("--ft-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:t.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:t.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:t.extend("--ft-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:t.extend("--ft-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:t.extend("--ft-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:t.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:t.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:t.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:t.extend("--ft-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:t.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:t.extend("--ft-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:t.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:t.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:t.extend("--ft-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:t.extend("--ft-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:t.extend("--ft-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:t.extend("--ft-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:t.extend("--ft-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:t.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:t.extend("--ft-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:t.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:t.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:t.extend("--ft-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:t.extend("--ft-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:t.extend("--ft-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:t.extend("--ft-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:t.extend("--ft-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:t.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:t.extend("--ft-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:t.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:t.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:t.extend("--ft-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:t.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:t.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:t.extend("--ft-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:t.extend("--ft-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:t.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:t.extend("--ft-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:t.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:t.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:t.extend("--ft-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:t.extend("--ft-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:t.extend("--ft-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:t.extend("--ft-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:t.extend("--ft-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:t.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:t.extend("--ft-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:t.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:t.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:t.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var wc={iconSize:t.extend("--ft-checkbox-icon-size","",c.iconSize2),boxSize:t.create("--ft-checkbox-box-size","","SIZE","18px"),colorLegendSize:t.create("--ft-checkbox-color-legend-size","","SIZE","16px"),borderRadius:t.create("--ft-checkbox-border-radius","","SIZE","1px"),color:t.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:t.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:t.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:t.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:t.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:t.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:t.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:t.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:t.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:t.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:t.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:t.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:t.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:t.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:t.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:t.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:t.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:t.create("--ft-checkbox-border-width","","SIZE","2px"),horizontalGap:t.extend("--ft-checkbox-horizontal-gap","",c.spacing3),leftPadding:t.extend("--ft-checkbox-left-padding","",c.spacing2)};var Cc={headerRowBorderWidth:t.create("--ft-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:t.extend("--ft-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:t.extend("--ft-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:t.extend("--ft-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:t.create("--ft-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:t.extend("--ft-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:t.extend("--ft-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:t.extend("--ft-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:t.extend("--ft-table-data-row-default-hover-background-color","",c.colorGray20),dataRowDefaultHoverStateLayerOpacity:t.extend("--ft-table-data-row-default-hover-state-layer-opacity","",c.opacity8),dataRowSelectableUnselectedHoverBackgroundColor:t.extend("--ft-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverStateLayerOpacity:t.extend("--ft-table-data-row-selectable-unselected-hover-state-layer-opacity","",c.opacity8),dataRowSelectableSelectedDefaultStateLayerOpacity:t.extend("--ft-table-data-row-selectable-selected-default-state-layer-opacity","",c.opacity8),dataRowSelectableSelectedDefaultBackgroundColor:t.extend("--ft-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:t.extend("--ft-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverStateLayerOpacity:t.extend("--ft-table-data-row-selectable-selected-hover-state-layer-opacity","",c.opacity16),dataRowSelectableSelectedHoverBackgroundColor:t.extend("--ft-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:t.extend("--ft-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:t.extend("--ft-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverStateLayerOpacity:t.extend("--ft-table-data-row-clickable-hover-state-layer-opacity","",c.opacity12),dataRowClickableHoverBackgroundColor:t.extend("--ft-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusStateLayerOpacity:t.extend("--ft-table-data-row-clickable-focus-state-layer-opacity","",c.opacity12),dataRowClickableFocusBorderColor:t.extend("--ft-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:t.extend("--ft-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveStateLayerOpacity:t.extend("--ft-table-data-row-clickable-active-state-layer-opacity","",c.opacity24),dataRowClickableActiveBackgroundColor:t.extend("--ft-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:t.extend("--ft-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:t.extend("--ft-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:t.extend("--ft-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:t.extend("--ft-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:t.extend("--ft-table-data-cell-horizontal-padding","",c.spacing3)};var Ac={neutralOffHoverStateLayerOpacity:t.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:t.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:t.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:t.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:t.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:t.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:t.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:t.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:t.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:t.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:t.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:t.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:t.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:t.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:t.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:t.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:t.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:t.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:t.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:t.extend("--ft-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:t.extend("--ft-chip-choice-large-gap","",c.spacing1),largeBorderRadius:t.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:t.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:t.extend("--ft-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:t.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:t.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:t.extend("--ft-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:t.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:t.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:t.extend("--ft-chip-choice-medium-icon-size","",c.iconSize2)};var Rc={largeMinHeight:t.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:t.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:t.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:t.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:t.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:t.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:t.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:t.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:t.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:t.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:t.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:t.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:t.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:t.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:t.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:t.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:t.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:t.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:t.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:t.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:t.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:t.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:t.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:t.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:t.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:t.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:t.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:t.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:t.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:t.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:t.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:t.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:t.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:t.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:t.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:t.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:t.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:t.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:t.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:t.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:t.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:t.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:t.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:t.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:t.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:t.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:t.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)};var Ic={brandHoverOpacity:t.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:t.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:t.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:t.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:t.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:t.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:t.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:t.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:t.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:t.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:t.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:t.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:t.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:t.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:t.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:t.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:t.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:t.extend("--ft-link-neutral-visited-color","",c.colorBrand100)};var Nc={iconSize:t.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:t.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:t.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:t.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:t.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:t.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:t.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:t.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:t.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:t.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:t.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:t.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:t.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)};var Tc={horizontalPadding:t.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:t.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:t.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:t.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:t.extend("--ft-badge-background-color","",u.contentActionPrimary)};var _c={horizontalGap:t.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:t.extend("--ft-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:t.extend("--ft-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:t.extend("--ft-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var Pc={parentHorizontalPadding:t.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:t.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:t.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:t.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:t.extend("--ft-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:t.extend("--ft-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:t.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:t.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:t.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:t.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:t.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:t.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:t.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:t.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:t.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:t.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:t.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:t.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:t.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:t.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:t.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:t.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:t.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:t.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:t.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:t.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var Lc={horizontalPadding:t.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:t.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:t.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:t.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:t.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:t.extend("--ft-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:t.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:t.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)};var kc={contentHorizontalPadding:t.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:t.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var Dc={smallContainerTargetWidth:t.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:t.extend("--ft-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:t.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:t.extend("--ft-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:t.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:t.extend("--ft-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:t.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:t.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:t.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:t.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:t.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:t.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:t.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:t.extend("--ft-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:t.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:t.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:t.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:t.extend("--ft-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:t.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:t.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:t.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:t.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottomWidth:t.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:t.extend("--ft-modal-border-radius","",c.borderRadiusM)};var Uc={overlayOpacity:t.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:t.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:t.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:t.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:t.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:t.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:t.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:t.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:t.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:t.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:t.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:t.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:t.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:t.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:t.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:t.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:t.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:t.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:t.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:t.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:t.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:t.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:t.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:t.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:t.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:t.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:t.extend("--ft-drawer-overlay-background-color","",c.colorGray700)};var Fc={offBorderBottomWidth:t.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:t.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:t.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:t.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:t.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:t.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:t.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:t.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:t.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:t.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:t.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:t.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:t.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:t.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:t.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:t.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:t.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:t.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:t.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:t.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:t.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:t.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:t.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:t.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:t.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:t.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:t.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)};var Mc={fieldHorizontalPadding:t.extend("--ft-text-input-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:t.extend("--ft-text-input-field-horizontal-gap","",c.spacing3),fieldVerticalGap:t.extend("--ft-text-input-field-vertical-gap","",c.spacing05),fieldIconSize:t.extend("--ft-text-input-field-icon-size","",c.iconSize3),fieldHeight:t.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:t.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:t.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:t.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:t.extend("--ft-text-input-border-radius","",c.borderRadiusM),backgroundColor:t.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:t.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:t.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:t.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:t.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:t.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:t.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:t.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:t.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderWidth:t.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:t.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:t.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var Bc={backgroundColor:t.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:t.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:t.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:t.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:t.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:t.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:t.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:t.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:t.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:t.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:t.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:t.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:t.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:t.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:t.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:t.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:t.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:t.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:t.extend("--ft-text-area-border-radius","",c.borderRadiusM)};var Wc={height:t.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:t.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:t.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:t.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:t.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:t.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:t.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:t.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:t.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:t.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:t.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:t.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:t.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:t.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:t.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:t.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var Hc={fieldHorizontalPadding:t.extend("--ft-combobox-single-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:t.extend("--ft-combobox-single-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:t.extend("--ft-combobox-single-select-field-vertical-gap","",c.spacing05),fieldIconSize:t.extend("--ft-combobox-single-select-field-icon-size","",c.iconSize3),fieldHeight:t.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:t.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:t.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:t.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:t.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:t.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:t.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusM),backgroundColor:t.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:t.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:t.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:t.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:t.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:t.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:t.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:t.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:t.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:t.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:t.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:t.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:t.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:t.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)};var $c={backgroundColor:t.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:t.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:t.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:t.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:t.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:t.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:t.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:t.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:t.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:t.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:t.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:t.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:t.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:t.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:t.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:t.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:t.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:t.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:t.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:t.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:t.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:t.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:t.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:t.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:t.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:t.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:t.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:t.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusM)};var zc={backgroundColor:t.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:t.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:t.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:t.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:t.extend("--ft-popover-body-color","",u.contentGlobalSecondary),linkColor:t.extend("--ft-popover-link-color","",u.contentActionPrimary),gap:t.extend("--ft-popover-gap","",c.spacing3),borderRadius:t.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:t.extend("--ft-popover-shadow","",c.shadowElevation02),maxWidth:t.create("--ft-popover-max-width","","SIZE","440px")};var jc={hoverStateLayerOpacity:t.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:t.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:t.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:t.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:t.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:t.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:t.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:t.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:t.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:t.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:t.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:t.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:t.extend("--ft-collapsible-icon-size","",c.iconSize3)};var Gc={groupHorizontalPadding:t.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:t.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:t.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:t.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:t.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:t.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:t.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:t.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:t.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:t.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:t.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:t.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:t.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:t.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:t.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:t.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:t.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:t.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:t.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:t.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:t.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:t.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:t.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:t.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var Vc={color1Light:t.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:t.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:t.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:t.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:t.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:t.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:t.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:t.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:t.extend("--ft-chart-5-light","",c.colorRed40),color5Base:t.extend("--ft-chart-5-base","",c.colorRed60),color6Light:t.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:t.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:t.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:t.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:t.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:t.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:t.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:t.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:t.extend("--ft-chart-10-light","",c.colorGray50),color10Base:t.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:t.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:t.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:t.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:t.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:t.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:t.extend("--ft-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:t.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:t.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:t.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:t.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:t.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:t.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:t.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:t.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:t.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:t.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:t.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:t.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:t.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var Kc={color1IconColor:t.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:t.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:t.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:t.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:t.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:t.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:t.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:t.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:t.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:t.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:t.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:t.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:t.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:t.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:t.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:t.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Zc={borderWidth:t.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:t.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:t.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:t.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:t.extend("--ft-notice-gap","",c.spacing2),iconSize:t.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:t.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:t.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:t.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:t.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:t.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:t.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:t.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:t.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:t.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:t.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:t.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:t.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:t.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:t.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:t.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:t.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:t.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:t.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:t.extend("--ft-notice-dense-gap","",c.spacing1),denseIconSize:t.extend("--ft-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:t.create("--ft-notice-dense-border-width","","SIZE","0")};var qc={offHoverStateLayerOpacity:t.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:t.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:t.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:t.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:t.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:t.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:t.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:t.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:t.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:t.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:t.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:t.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:t.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:t.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:t.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:t.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:t.extend("--ft-toggle-gap","",c.spacing3)};var Yc={color:t.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:t.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:t.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:t.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:t.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:t.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:t.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:t.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:t.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:t.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:t.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:t.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:t.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:t.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:t.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:t.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:t.extend("--ft-radio-gap","",c.spacing3)};var Jc={iconSize:t.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:t.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:t.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:t.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:t.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:t.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:t.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:t.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:t.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:t.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:t.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:t.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:t.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:t.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:t.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:t.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:t.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:t.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:t.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:t.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:t.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:t.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:t.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:t.extend("--ft-notification-trailing-gap","",c.spacing8)};var Qc={horizontalPadding:t.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:t.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:t.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:t.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:t.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:t.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:t.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:t.create("--ft-tooltip-max-width","","SIZE","256px"),gap:t.extend("--ft-tooltip-gap","",c.spacing05)};var Xc={verticalPadding:t.extend("--ft-reorderable-list-vertical-padding","",c.spacing4),gap:t.extend("--ft-reorderable-list-gap","",c.spacing1),borderRadius:t.extend("--ft-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:t.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:t.extend("--ft-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:t.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:t.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:t.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:t.extend("--ft-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:t.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:t.extend("--ft-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:t.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:t.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:t.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:t.extend("--ft-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:t.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:t.extend("--ft-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:t.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:t.extend("--ft-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:t.extend("--ft-reorderable-list-left-padding","",c.spacing2),rightPadding:t.extend("--ft-reorderable-list-right-padding","",c.spacing6),borderColor:t.extend("--ft-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:t.extend("--ft-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var Wt;(function(o){o.brand="brand",o.neutral="neutral",o.info="info",o.success="success",o.warning="warning",o.error="error"})(Wt||(Wt={}));var Ht;(function(o){o.large="large",o.medium="medium",o.small="small"})(Ht||(Ht={}));function Ao(o){return`ftds--family-${o}`}function Ro(o){return`ftds--size-${o}`}var el={colorPrimary:t.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:t.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:t.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:t.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:t.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:t.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:t.create("--ft-color-error","","COLOR","#B00020"),colorOutline:t.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:t.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:t.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:t.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:t.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:t.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:t.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:t.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:t.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:t.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:t.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:t.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:t.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:t.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:t.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:t.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:t.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:t.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:t.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:t.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:t.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:t.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:t.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:t.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:t.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:t.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:t.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:t.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:t.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:t.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:t.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:t.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:t.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:t.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:t.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:t.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:t.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:t.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:t.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:t.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:t.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:t.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:t.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:t.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:t.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:t.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:t.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:t.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:t.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:t.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:t.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:t.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:t.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:t.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:t.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Go={};M(Go,{computeFlipOffsetPosition:()=>Ol,computeOffsetPosition:()=>Sl});var Ha=["top","right","bottom","left"],Wa=["start","end"],To=Ha.reduce((o,e)=>o.concat(e,e+"-"+Wa[0],e+"-"+Wa[1]),[]),mr=Math.min,Le=Math.max;var tl={left:"right",right:"left",bottom:"top",top:"bottom"},rl={start:"end",end:"start"};function _o(o,e,r){return Le(o,mr(e,r))}function Ye(o,e){return typeof o=="function"?o(e):o}function ce(o){return o.split("-")[0]}function le(o){return o.split("-")[1]}function Po(o){return o==="x"?"y":"x"}function Lo(o){return o==="y"?"height":"width"}function ge(o){return["top","bottom"].includes(ce(o))?"y":"x"}function ko(o){return Po(ge(o))}function Do(o,e,r){r===void 0&&(r=!1);let n=le(o),a=ko(o),i=Lo(a),s=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=zt(s)),[s,zt(s)]}function $a(o){let e=zt(o);return[$t(o),e,$t(e)]}function $t(o){return o.replace(/start|end/g,e=>rl[e])}function ol(o,e,r){let n=["left","right"],a=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(o){case"top":case"bottom":return r?e?a:n:e?n:a;case"left":case"right":return e?i:s;default:return[]}}function za(o,e,r,n){let a=le(o),i=ol(ce(o),r==="start",n);return a&&(i=i.map(s=>s+"-"+a),e&&(i=i.concat(i.map($t)))),i}function zt(o){return o.replace(/left|right|bottom|top/g,e=>tl[e])}function nl(o){return{top:0,right:0,bottom:0,left:0,...o}}function ja(o){return typeof o!="number"?nl(o):{top:o,right:o,bottom:o,left:o}}function Je(o){let{x:e,y:r,width:n,height:a}=o;return{width:n,height:a,top:r,left:e,right:e+n,bottom:r+a,x:e,y:r}}function Ga(o,e,r){let{reference:n,floating:a}=o,i=ge(e),s=ko(e),l=Lo(s),d=ce(e),f=i==="y",h=n.x+n.width/2-a.width/2,p=n.y+n.height/2-a.height/2,y=n[l]/2-a[l]/2,m;switch(d){case"top":m={x:h,y:n.y-a.height};break;case"bottom":m={x:h,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:p};break;case"left":m={x:n.x-a.width,y:p};break;default:m={x:n.x,y:n.y}}switch(le(e)){case"start":m[s]-=y*(r&&f?-1:1);break;case"end":m[s]+=y*(r&&f?-1:1);break}return m}var Va=async(o,e,r)=>{let{placement:n="bottom",strategy:a="absolute",middleware:i=[],platform:s}=r,l=i.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(e)),f=await s.getElementRects({reference:o,floating:e,strategy:a}),{x:h,y:p}=Ga(f,n,d),y=n,m={},b=0;for(let S=0;S<l.length;S++){let{name:w,fn:C}=l[S],{x:A,y:O,data:v,reset:E}=await C({x:h,y:p,initialPlacement:n,placement:y,strategy:a,middlewareData:m,rects:f,platform:s,elements:{reference:o,floating:e}});h=A??h,p=O??p,m={...m,[w]:{...m[w],...v}},E&&b<=50&&(b++,typeof E=="object"&&(E.placement&&(y=E.placement),E.rects&&(f=E.rects===!0?await s.getElementRects({reference:o,floating:e,strategy:a}):E.rects),{x:h,y:p}=Ga(f,y,d)),S=-1)}return{x:h,y:p,placement:y,strategy:a,middlewareData:m}};async function jt(o,e){var r;e===void 0&&(e={});let{x:n,y:a,platform:i,rects:s,elements:l,strategy:d}=o,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:y=!1,padding:m=0}=Ye(e,o),b=ja(m),w=l[y?p==="floating"?"reference":"floating":p],C=Je(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(w)))==null||r?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:f,rootBoundary:h,strategy:d})),A=p==="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)),v=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},E=Je(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:A,offsetParent:O,strategy:d}):A);return{top:(C.top-E.top+b.top)/v.y,bottom:(E.bottom-C.bottom+b.bottom)/v.y,left:(C.left-E.left+b.left)/v.x,right:(E.right-C.right+b.right)/v.x}}function al(o,e,r){return(o?[...r.filter(a=>le(a)===o),...r.filter(a=>le(a)!==o)]:r.filter(a=>ce(a)===a)).filter(a=>o?le(a)===o||(e?$t(a)!==a:!1):!0)}var Uo=function(o){return o===void 0&&(o={}),{name:"autoPlacement",options:o,async fn(e){var r,n,a;let{rects:i,middlewareData:s,placement:l,platform:d,elements:f}=e,{crossAxis:h=!1,alignment:p,allowedPlacements:y=To,autoAlignment:m=!0,...b}=Ye(o,e),S=p!==void 0||y===To?al(p||null,m,y):y,w=await jt(e,b),C=((r=s.autoPlacement)==null?void 0:r.index)||0,A=S[C];if(A==null)return{};let O=Do(A,i,await(d.isRTL==null?void 0:d.isRTL(f.floating)));if(l!==A)return{reset:{placement:S[0]}};let v=[w[ce(A)],w[O[0]],w[O[1]]],E=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:A,overflows:v}],N=S[C+1];if(N)return{data:{index:C+1,overflows:E},reset:{placement:N}};let _=E.map(R=>{let g=le(R.placement);return[R.placement,g&&h?R.overflows.slice(0,2).reduce((x,I)=>x+I,0):R.overflows[0],R.overflows]}).sort((R,g)=>R[1]-g[1]),P=((a=_.filter(R=>R[2].slice(0,le(R[0])?2:3).every(g=>g<=0))[0])==null?void 0:a[0])||_[0][0];return P!==l?{data:{index:C+1,overflows:E},reset:{placement:P}}:{}}}},Fo=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(e){var r,n;let{placement:a,middlewareData:i,rects:s,initialPlacement:l,platform:d,elements:f}=e,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:S=!0,...w}=Ye(o,e);if((r=i.arrow)!=null&&r.alignmentOffset)return{};let C=ce(a),A=ge(l),O=ce(l)===l,v=await(d.isRTL==null?void 0:d.isRTL(f.floating)),E=y||(O||!S?[zt(l)]:$a(l)),N=b!=="none";!y&&N&&E.push(...za(l,S,b,v));let _=[l,...E],D=await jt(e,w),P=[],R=((n=i.flip)==null?void 0:n.overflows)||[];if(h&&P.push(D[C]),p){let k=Do(a,s,v);P.push(D[k[0]],D[k[1]])}if(R=[...R,{placement:a,overflows:P}],!P.every(k=>k<=0)){var g,x;let k=(((g=i.flip)==null?void 0:g.index)||0)+1,F=_[k];if(F&&(!(p==="alignment"?A!==ge(F):!1)||R.every(Y=>Y.overflows[0]>0&&ge(Y.placement)===A)))return{data:{index:k,overflows:R},reset:{placement:F}};let L=(x=R.filter(oe=>oe.overflows[0]<=0).sort((oe,Y)=>oe.overflows[1]-Y.overflows[1])[0])==null?void 0:x.placement;if(!L)switch(m){case"bestFit":{var I;let oe=(I=R.filter(Y=>{if(N){let ae=ge(Y.placement);return ae===A||ae==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(ae=>ae>0).reduce((ae,G)=>ae+G,0)]).sort((Y,ae)=>Y[1]-ae[1])[0])==null?void 0:I[0];oe&&(L=oe);break}case"initialPlacement":L=l;break}if(a!==L)return{reset:{placement:L}}}return{}}}};async function il(o,e){let{placement:r,platform:n,elements:a}=o,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),s=ce(r),l=le(r),d=ge(r)==="y",f=["left","top"].includes(s)?-1:1,h=i&&d?-1:1,p=Ye(e,o),{mainAxis:y,crossAxis:m,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof b=="number"&&(m=l==="end"?b*-1:b),d?{x:m*h,y:y*f}:{x:y*f,y:m*h}}var Mo=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(e){var r,n;let{x:a,y:i,placement:s,middlewareData:l}=e,d=await il(e,o);return s===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:a+d.x,y:i+d.y,data:{...d,placement:s}}}}},Bo=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(e){let{x:r,y:n,placement:a}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:C,y:A}=w;return{x:C,y:A}}},...d}=Ye(o,e),f={x:r,y:n},h=await jt(e,d),p=ge(ce(a)),y=Po(p),m=f[y],b=f[p];if(i){let w=y==="y"?"top":"left",C=y==="y"?"bottom":"right",A=m+h[w],O=m-h[C];m=_o(A,m,O)}if(s){let w=p==="y"?"top":"left",C=p==="y"?"bottom":"right",A=b+h[w],O=b-h[C];b=_o(A,b,O)}let S=l.fn({...e,[y]:m,[p]:b});return{...S,data:{x:S.x-r,y:S.y-n,enabled:{[y]:i,[p]:s}}}}}};var Wo=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(e){var r,n;let{placement:a,rects:i,platform:s,elements:l}=e,{apply:d=()=>{},...f}=Ye(o,e),h=await jt(e,f),p=ce(a),y=le(a),m=ge(a)==="y",{width:b,height:S}=i.floating,w,C;p==="top"||p==="bottom"?(w=p,C=y===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(C=p,w=y==="end"?"top":"bottom");let A=S-h.top-h.bottom,O=b-h.left-h.right,v=mr(S-h[w],A),E=mr(b-h[C],O),N=!e.middlewareData.shift,_=v,D=E;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(D=O),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(_=A),N&&!y){let R=Le(h.left,0),g=Le(h.right,0),x=Le(h.top,0),I=Le(h.bottom,0);m?D=b-2*(R!==0||g!==0?R+g:Le(h.left,h.right)):_=S-2*(x!==0||I!==0?x+I:Le(h.top,h.bottom))}await d({...e,availableWidth:D,availableHeight:_});let P=await s.getDimensions(l.floating);return b!==P.width||S!==P.height?{reset:{rects:!0}}:{}}}};var Ho=Math.min,pt=Math.max,Gt=Math.round;var Ee=o=>({x:o,y:o});function we(o){return Za(o)?(o.nodeName||"").toLowerCase():"#document"}function J(o){var e;return(o==null||(e=o.ownerDocument)==null?void 0:e.defaultView)||window}function Ce(o){var e;return(e=(Za(o)?o.ownerDocument:o.document)||window.document)==null?void 0:e.documentElement}function Za(o){return o instanceof Node||o instanceof J(o).Node}function ye(o){return o instanceof Element||o instanceof J(o).Element}function de(o){return o instanceof HTMLElement||o instanceof J(o).HTMLElement}function Ka(o){return typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof J(o).ShadowRoot}function ht(o){let{overflow:e,overflowX:r,overflowY:n,display:a}=ee(o);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(a)}function qa(o){return["table","td","th"].includes(we(o))}function vr(o){let e=xr(),r=ee(o);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Ya(o){let e=Qe(o);for(;de(e)&&!Vt(e);){if(vr(e))return e;e=Qe(e)}return null}function xr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Vt(o){return["html","body","#document"].includes(we(o))}function ee(o){return J(o).getComputedStyle(o)}function Kt(o){return ye(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function Qe(o){if(we(o)==="html")return o;let e=o.assignedSlot||o.parentNode||Ka(o)&&o.host||Ce(o);return Ka(e)?e.host:e}function Ja(o){let e=Qe(o);return Vt(e)?o.ownerDocument?o.ownerDocument.body:o.body:de(e)&&ht(e)?e:Ja(e)}function br(o,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let a=Ja(o),i=a===((n=o.ownerDocument)==null?void 0:n.body),s=J(a);return i?e.concat(s,s.visualViewport||[],ht(a)?a:[],s.frameElement&&r?br(s.frameElement):[]):e.concat(a,br(a,[],r))}function ei(o){let e=ee(o),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,a=de(o),i=a?o.offsetWidth:r,s=a?o.offsetHeight:n,l=Gt(r)!==i||Gt(n)!==s;return l&&(r=i,n=s),{width:r,height:n,$:l}}function ti(o){return ye(o)?o:o.contextElement}function gt(o){let e=ti(o);if(!de(e))return Ee(1);let r=e.getBoundingClientRect(),{width:n,height:a,$:i}=ei(e),s=(i?Gt(r.width):r.width)/n,l=(i?Gt(r.height):r.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var sl=Ee(0);function ri(o){let e=J(o);return!xr()||!e.visualViewport?sl:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function cl(o,e,r){return e===void 0&&(e=!1),!r||e&&r!==J(o)?!1:e}function Zt(o,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let a=o.getBoundingClientRect(),i=ti(o),s=Ee(1);e&&(n?ye(n)&&(s=gt(n)):s=gt(o));let l=cl(i,r,n)?ri(i):Ee(0),d=(a.left+l.x)/s.x,f=(a.top+l.y)/s.y,h=a.width/s.x,p=a.height/s.y;if(i){let y=J(i),m=n&&ye(n)?J(n):n,b=y.frameElement;for(;b&&n&&m!==y;){let S=gt(b),w=b.getBoundingClientRect(),C=ee(b),A=w.left+(b.clientLeft+parseFloat(C.paddingLeft))*S.x,O=w.top+(b.clientTop+parseFloat(C.paddingTop))*S.y;d*=S.x,f*=S.y,h*=S.x,p*=S.y,d+=A,f+=O,b=J(b).frameElement}}return Je({width:h,height:p,x:d,y:f})}function ll(o){let{rect:e,offsetParent:r,strategy:n}=o,a=de(r),i=Ce(r);if(r===i)return e;let s={scrollLeft:0,scrollTop:0},l=Ee(1),d=Ee(0);if((a||!a&&n!=="fixed")&&((we(r)!=="body"||ht(i))&&(s=Kt(r)),de(r))){let f=Zt(r);l=gt(r),d.x=f.x+r.clientLeft,d.y=f.y+r.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 dl(o){return Array.from(o.getClientRects())}function oi(o){return Zt(Ce(o)).left+Kt(o).scrollLeft}function ul(o){let e=Ce(o),r=Kt(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=-r.scrollLeft+oi(o),l=-r.scrollTop;return ee(n).direction==="rtl"&&(s+=pt(e.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:l}}function fl(o,e){let r=J(o),n=Ce(o),a=r.visualViewport,i=n.clientWidth,s=n.clientHeight,l=0,d=0;if(a){i=a.width,s=a.height;let f=xr();(!f||f&&e==="fixed")&&(l=a.offsetLeft,d=a.offsetTop)}return{width:i,height:s,x:l,y:d}}function pl(o,e){let r=Zt(o,!0,e==="fixed"),n=r.top+o.clientTop,a=r.left+o.clientLeft,i=de(o)?gt(o):Ee(1),s=o.clientWidth*i.x,l=o.clientHeight*i.y,d=a*i.x,f=n*i.y;return{width:s,height:l,x:d,y:f}}function Qa(o,e,r){let n;if(e==="viewport")n=fl(o,r);else if(e==="document")n=ul(Ce(o));else if(ye(e))n=pl(e,r);else{let a=ri(o);n={...e,x:e.x-a.x,y:e.y-a.y}}return Je(n)}function ni(o,e){let r=Qe(o);return r===e||!ye(r)||Vt(r)?!1:ee(r).position==="fixed"||ni(r,e)}function hl(o,e){let r=e.get(o);if(r)return r;let n=br(o,[],!1).filter(l=>ye(l)&&we(l)!=="body"),a=null,i=ee(o).position==="fixed",s=i?Qe(o):o;for(;ye(s)&&!Vt(s);){let l=ee(s),d=vr(s);!d&&l.position==="fixed"&&(a=null),(i?!d&&!a:!d&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||ht(s)&&!d&&ni(o,s))?n=n.filter(h=>h!==s):a=l,s=Qe(s)}return e.set(o,n),n}function gl(o){let{element:e,boundary:r,rootBoundary:n,strategy:a}=o,s=[...r==="clippingAncestors"?hl(e,this._c):[].concat(r),n],l=s[0],d=s.reduce((f,h)=>{let p=Qa(e,h,a);return f.top=pt(p.top,f.top),f.right=Ho(p.right,f.right),f.bottom=Ho(p.bottom,f.bottom),f.left=pt(p.left,f.left),f},Qa(e,l,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function yl(o){return ei(o)}function ml(o,e,r){let n=de(e),a=Ce(e),i=r==="fixed",s=Zt(o,!0,i,e),l={scrollLeft:0,scrollTop:0},d=Ee(0);if(n||!n&&!i)if((we(e)!=="body"||ht(a))&&(l=Kt(e)),n){let f=Zt(e,!0,i,e);d.x=f.x+e.clientLeft,d.y=f.y+e.clientTop}else a&&(d.x=oi(a));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function Xa(o,e){return!de(o)||ee(o).position==="fixed"?null:e?e(o):o.offsetParent}function ai(o,e){let r=J(o);if(!de(o))return r;let n=Xa(o,e);for(;n&&qa(n)&&ee(n).position==="static";)n=Xa(n,e);return n&&(we(n)==="html"||we(n)==="body"&&ee(n).position==="static"&&!vr(n))?r:n||Ya(o)||r}var bl=async function(o){let{reference:e,floating:r,strategy:n}=o,a=this.getOffsetParent||ai,i=this.getDimensions;return{reference:ml(e,await a(r),n),floating:{x:0,y:0,...await i(r)}}};function vl(o){return ee(o).direction==="rtl"}var yt={convertOffsetParentRelativeRectToViewportRelativeRect:ll,getDocumentElement:Ce,getClippingRect:gl,getOffsetParent:ai,getElementRects:bl,getClientRects:dl,getDimensions:yl,getScale:gt,isElement:ye,isRTL:vl};var $o=(o,e,r)=>{let n=new Map,a={platform:yt,...r},i={...a.platform,_c:n};return Va(o,e,{...a,platform:i})};function jo(o){return xl(o)}function zo(o){return o.assignedSlot?o.assignedSlot:o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}function xl(o){for(let e=o;e;e=zo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=zo(o);e;e=zo(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Sl(o,e,r){return $o(o,e,{platform:{...yt,getOffsetParent:n=>yt.getOffsetParent(n,jo)},middleware:[Bo({crossAxis:!0}),Uo({allowedPlacements:[r]})]})}async function Ol(o,e,r,n,a,i,s=4){return $o(o,e,{placement:r,strategy:a,platform:{...yt,getOffsetParent:l=>yt.getOffsetParent(l,jo)},middleware:[Mo(s),Fo({fallbackPlacements:n}),Wo({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:()=>Zo,toFtdsBase:()=>fi});var Ko={};M(Ko,{FtLitElement:()=>te});var Vo={};M(Vo,{ScopedRegistryLitElement:()=>qt});var qt=class extends Se{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 r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Rt(n,e.elementStyles),n}};var Sr=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},li,ii=Symbol("constructorPrototype"),si=Symbol("constructorName"),di=Symbol("exportpartsDebouncer"),ci=Symbol("dynamicDependenciesLoaded"),te=class extends qt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[li]=new X(5),this[si]=this.constructor.name,this[ii]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[si]&&Object.setPrototypeOf(this,this[ii])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[ci]||(e[ci]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.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,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[di].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 r,n,a,i,s,l;let d=y=>y!=null&&y.trim().length>0,f=e.filter(d).map(y=>y.trim());if(f.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let y of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let m=(i=(a=y.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&i!==void 0?i:[],b=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...m,...b).filter(d).map(S=>S.trim()).forEach(S=>h.add(S))}if(h.size===0){this.removeAttribute("exportparts");return}let p=[...h.values()].flatMap(y=>f.map(m=>`${y}:${m}--${y}`));this.setAttribute("exportparts",[...this.part,...p].join(", "))}};li=di;Sr([U()],te.prototype,"exportpartsPrefix",void 0);Sr([Pe([])],te.prototype,"exportpartsPrefixes",void 0);Sr([U()],te.prototype,"customStylesheet",void 0);Sr([kt()],te.prototype,"useAdoptedStyleSheets",void 0);var ui=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i};function fi(o){class e extends o{constructor(){super(...arguments),this.size=Ht.medium,this.family=Wt.neutral}getDesignSystemBaseClasses(){return{[Ao(this.family)]:!0,[Ro(this.size)]:!0}}}return ui([U()],e.prototype,"size",void 0),ui([U()],e.prototype,"family",void 0),e}var Zo=class extends fi(te){};var pi={};var Qo={};M(Qo,{highlightHtml:()=>Jo,highlightHtmlColorCssVariable:()=>hi,highlightHtmlStyles:()=>wl});var Xe=class o{constructor(e,r=!0,n=[],a=5e3){this.ctx=e,this.iframes=r,this.exclude=n,this.iframesTimeout=a}static matches(e,r){let n=typeof r=="string"?[r]:r,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,r=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(n=>{let a=r.filter(i=>i.contains(n)).length>0;r.indexOf(n)===-1&&!a&&r.push(n)}),r}getIframeContents(e,r,n=()=>{}){let a;try{let i=e.contentWindow;if(a=i.document,!i||!a)throw new Error("iframe inaccessible")}catch{n()}a&&r(a)}isIframeBlank(e){let r="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&n!==r&&n}observeIframeLoad(e,r,n){let a=!1,i=null,s=()=>{if(!a){a=!0,clearTimeout(i);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,n))}catch{n()}}};e.addEventListener("load",s),i=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,n){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,n):this.getIframeContents(e,r,n):this.observeIframeLoad(e,r,n)}catch{n()}}waitForIframes(e,r){let n=0;this.forEachIframe(e,()=>!0,a=>{n++,this.waitForIframes(a.querySelector("html"),()=>{--n||r()})},a=>{a||r()})}forEachIframe(e,r,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(f=>{o.matches(f,this.exclude)?d():this.onIframeReady(f,h=>{r(f)&&(l++,n(h)),d()},d)})}createIterator(e,r,n){return document.createNodeIterator(e,r,n,!1)}createInstanceOnIframe(e){return new o(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,n){let a=e.compareDocumentPosition(n),i=Node.DOCUMENT_POSITION_PRECEDING;if(a&i)if(r!==null){let s=r.compareDocumentPosition(n),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),n;return r===null?n=e.nextNode():n=e.nextNode()&&e.nextNode(),{prevNode:r,node:n}}checkIframeFilter(e,r,n,a){let i=!1,s=!1;return a.forEach((l,d)=>{l.val===n&&(i=d,s=l.handled)}),this.compareNodeIframe(e,r,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,r,n,a){e.forEach(i=>{i.handled||this.getIframeContents(i.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,n,a)})})}iterateThroughNodes(e,r,n,a,i){let s=this.createIterator(r,e,a),l=[],d=[],f,h,p=()=>({prevNode:h,node:f}=this.getIteratorNode(s),f);for(;p();)this.iframes&&this.forEachIframe(r,y=>this.checkIframeFilter(f,h,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(e,m=>d.push(m),a)}),d.push(f);d.forEach(y=>{n(y)}),this.iframes&&this.handleOpenIframes(l,e,n,a),i()}forEachNode(e,r,n,a=()=>{}){let i=this.getContexts(),s=i.length;s||a(),i.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,n,()=>{--s<=0&&a()})};this.iframes?this.waitForIframes(l,d):d()})}};var Yt=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new Xe(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[r]=="function"&&n[r](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let r=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",a=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let i in r)if(r.hasOwnProperty(i)){let s=r[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,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,n,a)=>{let i=a.charAt(n+1);return/[(|)\\]/.test(i)||i===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&r.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],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${r}`),`[${s}]`),a.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\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(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(n=>{this.opt.separateWordSearch?n.split(" ").forEach(a=>{a.trim()&&r.indexOf(a)===-1&&r.push(a)}):n.trim()&&r.indexOf(n)===-1&&r.push(n)}),{keywords:r.sort((n,a)=>a.length-n.length),length:r.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let r=[],n=0;return e.sort((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,r.push(a),n=s)}),r}callNoMatchOnInvalidRanges(e,r){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-r>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,r,n){let a,i=!0,s=n.length,l=r-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 r="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,a=>{n.push({start:r.length,end:(r+=a.textContent).length,node:a})},a=>this.matchesExclude(a.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:n})})}matchesExclude(e){return Xe.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,n){let a=this.opt.element?this.opt.element:"mark",i=e.splitText(r),s=i.splitText(n-r),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,r,n,a,i){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>r){if(!a(s.node))return!1;let f=r-s.start,h=(n>s.end?s.end:n)-s.start,p=e.value.substr(0,s.start),y=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,f,h),e.value=p+y,e.nodes.forEach((m,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)r=s.end;else return!1}return!0})}wrapMatches(e,r,n,a,i){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let f;for(;(f=e.exec(d.textContent))!==null&&f[s]!=="";){if(!n(f[s],d))continue;let h=f.index;if(s!==0)for(let p=1;p<s;p++)h+=f[p].length;d=this.wrapRangeInTextNode(d,h,h+f[s].length),a(d.previousSibling),e.lastIndex=0}}),i()})}wrapMatchesAcrossElements(e,r,n,a,i){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let f=d.index;if(s!==0)for(let p=1;p<s;p++)f+=d[p].length;let h=f+d[s].length;this.wrapRangeInMappedTextNode(l,f,h,p=>n(d[s],p),(p,y)=>{e.lastIndex=y,a(p)})}i()})}wrapRangeFromIndex(e,r,n,a){this.getTextNodes(i=>{let s=i.value.length;e.forEach((l,d)=>{let{start:f,end:h,valid:p}=this.checkWhitespaceRanges(l,s,i.value);p&&this.wrapRangeInMappedTextNode(i,f,h,y=>r(y,l,i.value.substring(f,h),d),y=>{n(y,l)})}),a()})}unwrapMatches(e){let r=e.parentNode,n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.removeChild(e.firstChild));r.replaceChild(n,e),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,r){this.opt=r,this.log(`Searching with expression "${e}"`);let n=0,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,r){this.opt=r;let n=0,a="wrapMatches",{keywords:i,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=f=>{let h=new RegExp(this.createRegExp(f),`gm${l}`),p=0;this.log(`Searching with expression "${h}"`),this[a](h,1,(y,m)=>this.opt.filter(m,f,n,p),y=>{p++,n++,this.opt.each(y)},()=>{p===0&&this.opt.noMatch(f),i[s-1]===f?this.opt.done(n):d(i[i.indexOf(f)+1])})};this.opt.acrossElements&&(a="wrapMatchesAcrossElements"),s===0?this.opt.done(n):d(i[0])}markRanges(e,r){this.opt=r;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 r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,n=>{this.unwrapMatches(n)},n=>{let a=Xe.matches(n,r),i=this.matchesExclude(n);return!a||i?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Yo(o){let e=new Yt(o);return this.mark=(r,n)=>(e.mark(r,n),this),this.markRegExp=(r,n)=>(e.markRegExp(r,n),this),this.markRanges=(r,n)=>(e.markRanges(r,n),this),this.unmark=r=>(e.unmark(r),this),this}var El=Yo,hi=t.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),wl=j`
|
|
8
6
|
.highlight-html-match {
|
|
9
|
-
background: ${
|
|
7
|
+
background: ${hi};
|
|
10
8
|
}
|
|
11
|
-
`;function
|
|
9
|
+
`;function Jo(o,e,r){var n,a;let i=o.getAttribute("data-highlight-html-query");if((i??"")!==(e??"")){let s=new El(o);if(s.unmark(),e&&e.trim()){let l={className:(n=r?.className)!==null&&n!==void 0?n:"highlight-html-match"};r?.attributes!=null&&(l.each=f=>{for(let h in r.attributes)f.setAttribute(h,r.attributes[h])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((a=e.match(/"[^"]+"/g))!==null&&a!==void 0?a:[]).forEach(f=>s.mark(f.replace(/"/g,""),{...l,separateWordSearch:!1}))}}o.setAttribute("data-highlight-html-query",e??"")}var Xo={};M(Xo,{noTextInputDefaultClearButton:()=>Il,noTextSelect:()=>Cl,safariEllipsisFix:()=>Rl,wordWrap:()=>Al});var Cl=j`
|
|
12
10
|
.ft-no-text-select {
|
|
13
11
|
-webkit-touch-callout: none;
|
|
14
12
|
-webkit-user-select: none;
|
|
@@ -17,7 +15,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
17
15
|
-ms-user-select: none;
|
|
18
16
|
user-select: none;
|
|
19
17
|
}
|
|
20
|
-
`,
|
|
18
|
+
`,Al=j`
|
|
21
19
|
.ft-word-wrap {
|
|
22
20
|
white-space: normal;
|
|
23
21
|
word-wrap: break-word;
|
|
@@ -29,7 +27,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
29
27
|
-webkit-hyphens: auto;
|
|
30
28
|
hyphens: auto
|
|
31
29
|
}
|
|
32
|
-
`,
|
|
30
|
+
`,Rl=j`
|
|
33
31
|
.ft-safari-ellipsis-fix {
|
|
34
32
|
margin-right: 0;
|
|
35
33
|
|
|
@@ -40,25 +38,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
40
38
|
display: inline-block;
|
|
41
39
|
width: 0;
|
|
42
40
|
}
|
|
43
|
-
`,
|
|
41
|
+
`,Il=j`
|
|
44
42
|
input::-webkit-search-cancel-button,
|
|
45
43
|
input::-webkit-search-decoration,
|
|
46
44
|
input::-webkit-search-results-button,
|
|
47
45
|
input::-webkit-search-results-decoration {
|
|
48
46
|
display: none;
|
|
49
47
|
}
|
|
50
|
-
`;var ps={};var _n={};F(_n,{ParametrizedLabelResolver:()=>lr});var lr=class r{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 r.replaceParameters(i,...t)}static replaceParameters(e,...t){return t.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>r.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?r.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 ea={};F(ea,{FtCommandQueue:()=>dr,FtLitElementRedux:()=>Ue,FtReduxStore:()=>Re,ReduxWatcher:()=>Xr,clearAllStores:()=>mu,isFtReduxStore:()=>ct,redux:()=>ye,reduxEventListener:()=>kd,reduxReactive:()=>Ld,watch:()=>bu});var Ld=()=>(r,e)=>{var t;let n=r.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(t=n.reduxReactiveProperties)===null||t===void 0||t.add(e)},ye=r=>{let e=r??{};return(t,n)=>{var a;let i={hasChanged:rt,attribute:!1,...e};D(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})}},kd=r=>(e,t)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(t,r)};var dr=class{constructor(){this.queue=[]}add(e,t=!1){t&&(this.queue=this.queue.filter(n=>n.type!==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}};function ct(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var fs,hs,gs,ur=Symbol("internalReduxEventsUnsubscribers"),ke=Symbol("internalStoresUnsubscribers"),lt=Symbol("internalStores"),Ue=class extends re{constructor(){super(...arguments),this[fs]=new Map,this[hs]=new Map,this[gs]=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[lt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[lt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[lt].get(e)}addStore(e,t){var n;t=(n=t??(ct(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(t),this[lt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}removeStore(e){let t=typeof e=="string"?e:e.name;this.unsubscribeFromStore(t),this[lt].delete(t)}setupStores(){this.unsubscribeFromStores(),this[lt].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[ke].has(e.store):this[ke].size>0)&&(this[t]=e.selector(a.getState(),this))}})}subscribeToStore(e,t){var n;this[ke].set(e,t.subscribe(()=>this.updateFromStores())),this[ur].set(e,[]),ct(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[ur].get(e).push(()=>t.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[ke].forEach((e,t)=>this.unsubscribeFromStore(t))}unsubscribeFromStore(e){var t;this[ke].has(e)&&this[ke].get(e)(),this[ke].delete(e),(t=this[ur].get(e))===null||t===void 0||t.forEach(n=>n()),this[ur].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};fs=ke,hs=lt,gs=ur;Ue.reduxProperties=new Map;Ue.reduxReactiveProperties=new Set;Ue.reduxEventListeners=new Map;function ne(r){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: "+r+(t.length?" "+t.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ae(r){return!!r&&!!r[W]}function de(r){var e;return!!r&&(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)===Hd}(r)||Array.isArray(r)||!!r[Os]||!!(!((e=r.constructor)===null||e===void 0)&&e[Os])||Mn(r)||Fn(r))}function dt(r,e,t){t===void 0&&(t=!1),wt(r)===0?(t?Object.keys:Ct)(r).forEach(function(n){t&&typeof n=="symbol"||e(n,r[n],r)}):r.forEach(function(n,a){return e(a,n,r)})}function wt(r){var e=r[W];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:Mn(r)?2:Fn(r)?3:0}function Et(r,e){return wt(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function Ud(r,e){return wt(r)===2?r.get(e):r[e]}function Es(r,e,t){var n=wt(r);n===2?r.set(e,t):n===3?r.add(t):r[e]=t}function Cs(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function Mn(r){return $d&&r instanceof Map}function Fn(r){return Wd&&r instanceof Set}function De(r){return r.o||r.t}function Bn(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=Rs(r);delete e[W];for(var t=Ct(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:r[a]})}return Object.create(Object.getPrototypeOf(r),e)}function $n(r,e){return e===void 0&&(e=!1),Wn(r)||Ae(r)||!de(r)||(wt(r)>1&&(r.set=r.add=r.clear=r.delete=Dd),Object.freeze(r),e&&dt(r,function(t,n){return $n(n,!0)},!0)),r}function Dd(){ne(2)}function Wn(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function me(r){var e=Dn[r];return e||ne(18,r),e}function Md(r,e){Dn[r]||(Dn[r]=e)}function Ln(){return fr}function In(r,e){e&&(me("Patches"),r.u=[],r.s=[],r.v=e)}function Kr(r){kn(r),r.p.forEach(Fd),r.p=null}function kn(r){r===fr&&(fr=r.l)}function ys(r){return fr={p:[],l:fr,h:r,m:!0,_:0}}function Fd(r){var e=r[W];e.i===0||e.i===1?e.j():e.g=!0}function Nn(r,e){e._=e.p.length;var t=e.p[0],n=r!==void 0&&r!==t;return e.h.O||me("ES5").S(e,r,n),n?(t[W].P&&(Kr(e),ne(4)),de(r)&&(r=Zr(e,r),e.l||qr(e,r)),e.u&&me("Patches").M(t[W].t,r,e.u,e.s)):r=Zr(e,t,[]),Kr(e),e.u&&e.v(e.u,e.s),r!==As?r:void 0}function Zr(r,e,t){if(Wn(e))return e;var n=e[W];if(!n)return dt(e,function(l,d){return ms(r,n,e,l,d,t)},!0),e;if(n.A!==r)return e;if(!n.P)return qr(r,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Bn(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),dt(i,function(l,d){return ms(r,n,a,l,d,t,s)}),qr(r,a,!1),t&&r.u&&me("Patches").N(n,t,r.u,r.s)}return n.o}function ms(r,e,t,n,a,i,s){if(Ae(a)){var l=Zr(r,a,i&&e&&e.i!==3&&!Et(e.R,n)?i.concat(n):void 0);if(Es(t,n,l),!Ae(l))return;r.m=!1}else s&&t.add(a);if(de(a)&&!Wn(a)){if(!r.h.D&&r._<1)return;Zr(r,a),e&&e.A.l||qr(r,a)}}function qr(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&$n(e,t)}function Tn(r,e){var t=r[W];return(t?De(t):r)[e]}function bs(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var n=Object.getOwnPropertyDescriptor(t,e);if(n)return n;t=Object.getPrototypeOf(t)}}function Me(r){r.P||(r.P=!0,r.l&&Me(r.l))}function Pn(r){r.o||(r.o=Bn(r.t))}function Un(r,e,t){var n=Mn(e)?me("MapSet").F(e,t):Fn(e)?me("MapSet").T(e,t):r.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Ln(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,u=hr;s&&(d=[l],u=pr);var h=Proxy.revocable(d,u),f=h.revoke,g=h.proxy;return l.k=g,l.j=f,g}(e,t):me("ES5").J(e,t);return(t?t.A:Ln()).p.push(n),n}function Bd(r){return Ae(r)||ne(22,r),function e(t){if(!de(t))return t;var n,a=t[W],i=wt(t);if(a){if(!a.P&&(a.i<4||!me("ES5").K(a)))return a.t;a.I=!0,n=vs(t,i),a.I=!1}else n=vs(t,i);return dt(n,function(s,l){a&&Ud(a.t,s)===l||Es(n,s,e(l))}),i===3?new Set(n):n}(r)}function vs(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return Bn(r)}function ws(){function r(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var u=this[W];return hr.get(u,s)},set:function(u){var h=this[W];hr.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][W];if(!d.P)switch(d.i){case 5:n(d)&&Me(d);break;case 4:t(d)&&Me(d)}}}function t(s){for(var l=s.t,d=s.k,u=Ct(d),h=u.length-1;h>=0;h--){var f=u[h];if(f!==W){var g=l[f];if(g===void 0&&!Et(l,f))return!0;var m=d[f],b=m&&m[W];if(b?b.t!==g:!Cs(m,g))return!0}}var S=!!l[W];return u.length!==Ct(l).length+(S?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 u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function a(s){s.g&&ne(3,JSON.stringify(De(s)))}var i={};Md("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(f,g){if(f){for(var m=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(m,""+b,r(b,!0));return m}var S=Rs(g);delete S[W];for(var C=Ct(S),w=0;w<C.length;w++){var A=C[w];S[A]=r(A,f||!!S[A].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(d,s),h={i:d?5:4,A:l?l.A:Ln(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,W,{value:h,writable:!0}),u},S:function(s,l,d){d?Ae(l)&&l[W].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[W];if(f){var g=f.t,m=f.k,b=f.R,S=f.i;if(S===4)dt(m,function(v){v!==W&&(g[v]!==void 0||Et(g,v)?b[v]||u(m[v]):(b[v]=!0,Me(f)))}),dt(g,function(v){m[v]!==void 0||Et(m,v)||(b[v]=!1,Me(f))});else if(S===5){if(n(f)&&(Me(f),b.length=!0),m.length<g.length)for(var C=m.length;C<g.length;C++)b[C]=!1;else for(var w=g.length;w<m.length;w++)b[w]=!0;for(var A=Math.min(m.length,g.length),O=0;O<A;O++)m.hasOwnProperty(O)||(b[O]=!0),b[O]===void 0&&u(m[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):n(s)}})}var xs,fr,Hn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",$d=typeof Map<"u",Wd=typeof Set<"u",Ss=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",As=Hn?Symbol.for("immer-nothing"):((xs={})["immer-nothing"]=!0,xs),Os=Hn?Symbol.for("immer-draftable"):"__$immer_draftable",W=Hn?Symbol.for("immer-state"):"__$immer_state";var Hd=""+Object.prototype.constructor,Ct=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Rs=Object.getOwnPropertyDescriptors||function(r){var e={};return Ct(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},Dn={},hr={get:function(r,e){if(e===W)return r;var t=De(r);if(!Et(t,e))return function(a,i,s){var l,d=bs(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0}(r,t,e);var n=t[e];return r.I||!de(n)?n:n===Tn(r.t,e)?(Pn(r),r.o[e]=Un(r.A.h,n,r)):n},has:function(r,e){return e in De(r)},ownKeys:function(r){return Reflect.ownKeys(De(r))},set:function(r,e,t){var n=bs(De(r),e);if(n?.set)return n.set.call(r.k,t),!0;if(!r.P){var a=Tn(De(r),e),i=a?.[W];if(i&&i.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(Cs(t,a)&&(t!==void 0||Et(r.t,e)))return!0;Pn(r),Me(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return Tn(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,Pn(r),Me(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=De(r),n=Reflect.getOwnPropertyDescriptor(t,e);return n&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:n.enumerable,value:t[e]}},defineProperty:function(){ne(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){ne(12)}},pr={};dt(hr,function(r,e){pr[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),pr.deleteProperty=function(r,e){return pr.set.call(this,r,e,void 0)},pr.set=function(r,e,t){return hr.set.call(this,r[0],e,t,r[0])};var zd=function(){function r(t){var n=this;this.O=Ss,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(S){var C=this;S===void 0&&(S=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(S,function(v){var E;return(E=i).call.apply(E,[C,v].concat(A))})}}var u;if(typeof i!="function"&&ne(6),s!==void 0&&typeof s!="function"&&ne(7),de(a)){var h=ys(n),f=Un(n,a,void 0),g=!0;try{u=i(f),g=!1}finally{g?Kr(h):kn(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(S){return In(h,s),Nn(S,h)},function(S){throw Kr(h),S}):(In(h,s),Nn(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===As&&(u=void 0),n.D&&$n(u,!0),s){var m=[],b=[];me("Patches").M(a,u,m,b),s(m,b)}return u}ne(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),g=1;g<h;g++)f[g-1]=arguments[g];return n.produceWithPatches(u,function(m){return a.apply(void 0,[m].concat(f))})};var s,l,d=n.produce(a,i,function(u,h){s=u,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,s,l]}):[d,s,l]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){de(t)||ne(8),Ae(t)&&(t=Bd(t));var n=ys(this),a=Un(this,t,void 0);return a[W].C=!0,kn(n),a},e.finishDraft=function(t,n){var a=t&&t[W],i=a.A;return In(i,n),Nn(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ss&&ne(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=me("Patches").$;return Ae(t)?s(t,n):this.produce(t,function(l){return s(l,n)})},r}(),oe=new zd,jd=oe.produce,nm=oe.produceWithPatches.bind(oe),am=oe.setAutoFreeze.bind(oe),im=oe.setUseProxies.bind(oe),sm=oe.applyPatches.bind(oe),cm=oe.createDraft.bind(oe),lm=oe.finishDraft.bind(oe),Yr=jd;function Fe(r){"@babel/helpers - typeof";return Fe=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},Fe(r)}function zn(r,e){if(Fe(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(Fe(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function jn(r){var e=zn(r,"string");return Fe(e)==="symbol"?e:String(e)}function Gn(r,e,t){return e=jn(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function _s(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function Jr(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?_s(Object(t),!0).forEach(function(n){Gn(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):_s(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function Z(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var Is=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Vn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Qr={INIT:"@@redux/INIT"+Vn(),REPLACE:"@@redux/REPLACE"+Vn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Vn()}};function Gd(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function Kn(r,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(Kn)(r,e)}if(typeof r!="function")throw new Error(Z(2));var a=r,i=e,s=[],l=s,d=!1;function u(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Z(3));return i}function f(S){if(typeof S!="function")throw new Error(Z(4));if(d)throw new Error(Z(5));var C=!0;return u(),l.push(S),function(){if(C){if(d)throw new Error(Z(6));C=!1,u();var A=l.indexOf(S);l.splice(A,1),s=null}}}function g(S){if(!Gd(S))throw new Error(Z(7));if(typeof S.type>"u")throw new Error(Z(8));if(d)throw new Error(Z(9));try{d=!0,i=a(i,S)}finally{d=!1}for(var C=s=l,w=0;w<C.length;w++){var A=C[w];A()}return S}function m(S){if(typeof S!="function")throw new Error(Z(10));a=S,g({type:Qr.REPLACE})}function b(){var S,C=f;return S={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(Z(11));function O(){A.next&&A.next(h())}O();var v=C(O);return{unsubscribe:v}}},S[Is]=function(){return this},S}return g({type:Qr.INIT}),n={dispatch:g,subscribe:f,getState:h,replaceReducer:m},n[Is]=b,n}function Vd(r){Object.keys(r).forEach(function(e){var t=r[e],n=t(void 0,{type:Qr.INIT});if(typeof n>"u")throw new Error(Z(12));if(typeof t(void 0,{type:Qr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Z(13))})}function Ns(r){for(var e=Object.keys(r),t={},n=0;n<e.length;n++){var a=e[n];typeof r[a]=="function"&&(t[a]=r[a])}var i=Object.keys(t),s,l;try{Vd(t)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var g=!1,m={},b=0;b<i.length;b++){var S=i[b],C=t[S],w=u[S],A=C(w,h);if(typeof A>"u"){var O=h&&h.type;throw new Error(Z(14))}m[S]=A,g=g||A!==w}return g=g||i.length!==Object.keys(u).length,g?m:u}}function At(){for(var r=arguments.length,e=new Array(r),t=0;t<r;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 Ts(){for(var r=arguments.length,e=new Array(r),t=0;t<r;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=At.apply(void 0,l)(a.dispatch),Jr(Jr({},a),{},{dispatch:i})}}}function Ps(r){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,r):s(l)}}};return e}var Ls=Ps();Ls.withExtraArgument=Ps;var Zn=Ls;var Fs=function(){var r=function(e,t){return r=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])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Kd=function(r,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(u){return function(h){return d([u,h])}}function d(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){t.label=u[1];break}if(u[0]===6&&t.label<i[1]){t.label=i[1],i=u;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(u);break}i[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(r,t)}catch(h){u=[6,h],a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Rt=function(r,e){for(var t=0,n=e.length,a=r.length;t<n;t++,a++)r[a]=e[t];return r},Zd=Object.defineProperty,qd=Object.defineProperties,Yd=Object.getOwnPropertyDescriptors,ks=Object.getOwnPropertySymbols,Jd=Object.prototype.hasOwnProperty,Qd=Object.prototype.propertyIsEnumerable,Us=function(r,e,t){return e in r?Zd(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Be=function(r,e){for(var t in e||(e={}))Jd.call(e,t)&&Us(r,t,e[t]);if(ks)for(var n=0,a=ks(e);n<a.length;n++){var t=a[n];Qd.call(e,t)&&Us(r,t,e[t])}return r},qn=function(r,e){return qd(r,Yd(e))},Xd=function(r,e,t){return new Promise(function(n,a){var i=function(d){try{l(t.next(d))}catch(u){a(u)}},s=function(d){try{l(t.throw(d))}catch(u){a(u)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((t=t.apply(r,e)).next())})};var eu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?At:At.apply(null,arguments)},Rm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function tu(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}var ru=function(r){Fs(e,r);function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=r.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 r.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,Rt([void 0],t[0].concat(this)))):new(e.bind.apply(e,Rt([void 0],t.concat(this))))},e}(Array),ou=function(r){Fs(e,r);function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var a=r.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 r.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,Rt([void 0],t[0].concat(this)))):new(e.bind.apply(e,Rt([void 0],t.concat(this))))},e}(Array);function Qn(r){return de(r)?Yr(r,function(){}):r}function nu(r){return typeof r=="boolean"}function au(){return function(e){return iu(e)}}function iu(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,n=r.immutableCheck,a=n===void 0?!0:n,i=r.serializableCheck,s=i===void 0?!0:i,l=new ru;if(t&&(nu(t)?l.push(Zn):l.push(Zn.withExtraArgument(t.extraArgument))),0){if(a)var d;if(s)var u}return l}var Yn=!0;function Bs(r){var e=au(),t=r||{},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,u=t.preloadedState,h=u===void 0?void 0:u,f=t.enhancers,g=f===void 0?void 0:f,m;if(typeof a=="function")m=a;else if(tu(a))m=Ns(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),!Yn&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Yn&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Ts.apply(void 0,b),C=At;d&&(C=eu(Be({trace:!Yn},typeof d=="object"&&d)));var w=new ou(S),A=w;Array.isArray(g)?A=Rt([S],g):typeof g=="function"&&(A=g(w));var O=C.apply(void 0,A);return Kn(m,h,O)}function $e(r,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 Be(Be({type:r,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:r,payload:n[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(n){return n.type===r},t}function $s(r){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 r(a),[e,t,n]}function su(r){return typeof r=="function"}function cu(r,e,t,n){t===void 0&&(t=[]);var a=typeof e=="function"?$s(e):[e,t,n],i=a[0],s=a[1],l=a[2],d;if(su(r))d=function(){return Qn(r())};else{var u=Qn(r);d=function(){return u}}function h(f,g){f===void 0&&(f=d());var m=Rt([i[g.type]],s.filter(function(b){var S=b.matcher;return S(g)}).map(function(b){var S=b.reducer;return S}));return m.filter(function(b){return!!b}).length===0&&(m=[l]),m.reduce(function(b,S){if(S)if(Ae(b)){var C=b,w=S(C,g);return w===void 0?b:w}else{if(de(b))return Yr(b,function(A){return S(A,g)});var w=S(b,g);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 lu(r,e){return r+"/"+e}function Ws(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:Qn(r.initialState),n=r.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],g=lu(e,h),m,b;"reducer"in f?(m=f.reducer,b=f.prepare):m=f,i[h]=m,s[g]=m,l[h]=b?$e(g,b):$e(g)});function d(){var h=typeof r.extraReducers=="function"?$s(r.extraReducers):[r.extraReducers],f=h[0],g=f===void 0?{}:f,m=h[1],b=m===void 0?[]:m,S=h[2],C=S===void 0?void 0:S,w=Be(Be({},g),s);return cu(t,function(A){for(var O in w)A.addCase(O,w[O]);for(var v=0,E=b;v<E.length;v++){var R=E[v];A.addMatcher(R.matcher,R.reducer)}C&&A.addDefaultCase(C)})}var u;return{name:e,reducer:function(h,f){return u||(u=d()),u(h,f)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var du="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",uu=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=du[Math.random()*64|0];return e},pu=["name","message","stack","code"],Jn=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Ds=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),fu=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,n=pu;t<n.length;t++){var a=n[t];typeof r[a]=="string"&&(e[a]=r[a])}return e}return{message:String(r)}},Tm=function(){function r(e,t,n){var a=$e(e+"/fulfilled",function(h,f,g,m){return{payload:h,meta:qn(Be({},m||{}),{arg:g,requestId:f,requestStatus:"fulfilled"})}}),i=$e(e+"/pending",function(h,f,g){return{payload:void 0,meta:qn(Be({},g||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=$e(e+"/rejected",function(h,f,g,m,b){return{payload:m,error:(n&&n.serializeError||fu)(h||"Rejected"),meta:qn(Be({},b||{}),{arg:g,requestId:f,rejectedWithValue:!!m,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(f,g,m){var b=n?.idGenerator?n.idGenerator(h):uu(),S=new d,C,w=!1;function A(v){C=v,S.abort()}var O=function(){return Xd(this,null,function(){var v,E,R,T,k,L,I;return Kd(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),T=(v=n?.condition)==null?void 0:v.call(n,h,{getState:g,extra:m}),gu(T)?[4,T]:[3,2];case 1:T=y.sent(),y.label=2;case 2:if(T===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return w=!0,k=new Promise(function(x,_){return S.signal.addEventListener("abort",function(){return _({name:"AbortError",message:C||"Aborted"})})}),f(i(b,h,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:b,arg:h},{getState:g,extra:m}))),[4,Promise.race([k,Promise.resolve(t(h,{dispatch:f,getState:g,extra:m,requestId:b,signal:S.signal,abort:A,rejectWithValue:function(x,_){return new Jn(x,_)},fulfillWithValue:function(x,_){return new Ds(x,_)}})).then(function(x){if(x instanceof Jn)throw x;return x instanceof Ds?a(x.payload,b,h,x.meta):a(x,b,h)})])];case 3:return R=y.sent(),[3,5];case 4:return L=y.sent(),R=L instanceof Jn?s(null,b,h,L.payload,L.meta):s(L,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(hu)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return r.withTypes=function(){return r},r}();function hu(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function gu(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Hs="listener",zs="completed",js="cancelled",Pm="task-"+js,Lm="task-"+zs,km=Hs+"-"+js,Um=Hs+"-"+zs;var Xn="listenerMiddleware";var Dm=$e(Xn+"/add"),Mm=$e(Xn+"/removeAll"),Fm=$e(Xn+"/remove");var Ms,Bm=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Ms||(Ms=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},yu=function(r){return function(e){setTimeout(e,r)}},$m=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:yu(10);ws();window.ftReduxStores||(window.ftReduxStores={});var Re=class r extends tt{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(ct(i))return i;if(a==null)return;let s=Ws({...a,reducers:(t=a.reducers)!==null&&t!==void 0?t:{}}),l=Bs({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:s.reducer(d,u)});return window.ftReduxStores[a.name]=new r(s,l,a.eventBus)}constructor(e,t,n){super(),this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.commands=new dr;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,u=i[d];return u?(...h)=>{let f=u(...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 mu(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))ct(e)&&e.clear()}var Xr=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);rt(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 bu(r,e,t){return new Xr(r,e,t).watch()}var oa={};F(oa,{scrollHelper:()=>vu});var ta,eo=new Map,ra=class{lock(e,t){if(t){let n=eo.get(t);if(n==null||n===e)return eo.set(t,e),t}}release(e,t){t&&eo.get(t)===e&&eo.delete(t)}findFirstScrollableParent(e){var t;let n,a;for(let i of Jo(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=Yt(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=(ta=window.FluidTopicsScrollHelper)!==null&&ta!==void 0?ta:new ra;var vu=window.FluidTopicsScrollHelper;var na={};F(na,{shadowQuerySelector:()=>xu,shadowQuerySelectorAll:()=>Su});function xu(r,e,...t){var n;let a=r.querySelector(e);for(let i of t)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}function Su(r,e,...t){let n=[...r.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 ia={};F(ia,{SearchPlaceConverter:()=>gr,SearchPlaceQueryParams:()=>B,isSearchPlaceQueryParams:()=>vc,serializeRequest:()=>wu});var Eu=Lc(Vs(),1);var Ks;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Ks||(Ks={}));var Zs;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Zs||(Zs={}));var qs;(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.MAP_ATTACHMENT="MAP_ATTACHMENT",r.RESOURCE="RESOURCE"})(qs||(qs={}));var Ys;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Ys||(Ys={}));var Js;(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})(Js||(Js={}));var Qs;(function(r){r.BOOKMARK__CREATE="BOOKMARK__CREATE",r.BOOKMARK__DELETE="BOOKMARK__DELETE",r.CASE_DEFLECTION__START="CASE_DEFLECTION__START",r.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",r.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",r.COLLECTION__CREATE="COLLECTION__CREATE",r.COLLECTION__UPDATE="COLLECTION__UPDATE",r.COLLECTION__DELETE="COLLECTION__DELETE",r.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",r.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",r.DOCUMENT__PRINT="DOCUMENT__PRINT",r.DOCUMENT__PROCESS="DOCUMENT__PROCESS",r.DOCUMENT__RATE="DOCUMENT__RATE",r.DOCUMENT__SEARCH="DOCUMENT__SEARCH",r.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",r.DOCUMENT__UNRATE="DOCUMENT__UNRATE",r.FEEDBACK__SEND="FEEDBACK__SEND",r.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",r.GEN_AI__RATE="GEN_AI__RATE",r.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",r.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",r.KHUB__PROCESS="KHUB__PROCESS",r.KHUB__SEARCH="KHUB__SEARCH",r.LABELS__DOWNLOAD="LABELS__DOWNLOAD",r.LINK__SHARE="LINK__SHARE",r.PAGE__DISPLAY="PAGE__DISPLAY",r.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",r.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",r.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",r.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",r.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",r.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",r.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",r.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",r.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",r.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",r.TOPIC__DISPLAY="TOPIC__DISPLAY",r.TOPIC__RATE="TOPIC__RATE",r.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",r.TOPIC__UNRATE="TOPIC__UNRATE",r.USER__LOGIN="USER__LOGIN",r.USER__LOGOUT="USER__LOGOUT",r.HEARTBEAT="HEARTBEAT"})(Qs||(Qs={}));var Xs;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(Xs||(Xs={}));var ec;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(ec||(ec={}));var tc;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(tc||(tc={}));var rc;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(rc||(rc={}));var oc;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(oc||(oc={}));var nc;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(nc||(nc={}));var ac;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(ac||(ac={}));var ic;(function(r){r.ASC="ASC",r.DESC="DESC"})(ic||(ic={}));var sc;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(sc||(sc={}));var aa;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(aa||(aa={}));var fc=r=>Object.keys(aa).includes(r);var cc;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(cc||(cc={}));var lc;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(lc||(lc={}));var dc;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(dc||(dc={}));var It;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(It||(It={}));var hc=r=>Object.keys(It).includes(r);var uc;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(uc||(uc={}));var pc;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(pc||(pc={}));var $;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})($||($={}));var gc;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(gc||(gc={}));var yc;(function(r){r.TEXT="TEXT",r.HTML="HTML"})(yc||(yc={}));var Ou={[$.PERSONAL_BOOK_SHARE_USER]:[$.PERSONAL_BOOK_USER],[$.HTML_EXPORT_USER]:[$.PERSONAL_BOOK_USER],[$.PDF_EXPORT_USER]:[$.PERSONAL_BOOK_USER],[$.KHUB_ADMIN]:[$.CONTENT_PUBLISHER],[$.ADMIN]:[$.KHUB_ADMIN,$.USERS_ADMIN,$.PORTAL_ADMIN],[$.DEVELOPER]:[$.BETA_USER,$.DEBUG_USER],[$.GENERATIVE_AI_EXPORT_USER]:[$.GENERATIVE_AI_USER]};function mc(r,e){return r===e||(Ou[r]??[]).some(t=>mc(t,e))}function ut(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(n=>mc(n,e))}function Cu(r){return`"${r}"`}function bc(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function wu(r,e){return new gr(r).serialize(e)}var B;(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page"})(B||(B={}));var Au=new Set(Object.values(B));function vc(r){return Au.has(r)}var gr=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=this.toURLSearchParams(e).toString(),a=t==null||t.trim().length===0,i=new URL(a?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return i.search=n,i.toString()}toURLSearchParams(e,t=!1){var n,a,i,s,l,d,u,h,f,g,m,b;let S=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&S.append(B.LOCALE,e.contentLocale):S.append(B.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&S.append(B.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&S.append(B.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&S.append(B.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((a=e.sort)===null||a===void 0?void 0:a.length)>0&&e.sort[0].key==="ft:lastEdition"&&S.append(B.SORT,"last_update");let C=(s=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(v=>v.valueFilter))!==null&&s!==void 0?s:[];if(C.length>0){let v=C.map(E=>{var R,T;let k=((T=(R=E.valueFilter)===null||R===void 0?void 0:R.values)!==null&&T!==void 0?T:[]).map(L=>this.escapeFilters(L)).map(L=>encodeURIComponent(Cu(bc(L)))).join("_");return`${E.key}~${k}`}).join("*");S.append(B.VALUE_FILTERS,v)}let w=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(v=>v.dateFilter))!==null&&d!==void 0?d:[];if(w.length>0){let v=w.map(E=>{var R;return`${E.key}~${(R=E.dateFilter)===null||R===void 0?void 0:R.type.toLowerCase()}`}).join("*");S.append(B.DATE_FILTERS,v)}let A=(h=(u=e.metadataFilters)===null||u===void 0?void 0:u.filter(v=>v.rangeFilter))!==null&&h!==void 0?h:[];if(A.length>0){let v=A.map(E=>{var R,T;return`${E.key}~${(R=E.rangeFilter)===null||R===void 0?void 0:R.from}_${(T=E.rangeFilter)===null||T===void 0?void 0:T.to}`}).join("*");S.append(B.RANGE_FILTERS,v)}let O=(f=e.otherQueryParams)!==null&&f!==void 0?f:{};for(let v in O)S.append(v,O[v]);return!((g=e.paging)===null||g===void 0)&&g.perPage&&((b=(m=e.paging)===null||m===void 0?void 0:m.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&S.append(B.PER_PAGE,String(e.paging.perPage)),S}parse(e){var t;let n=e.split("?"),a=this.fromURLSearchParams(new URLSearchParams(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,u;let h=e.get(B.LOCALE)==="all"?void 0:e.get(B.LOCALE),f=((t=e.get(B.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),g=((n=e.get(B.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),m=(a=e.get(B.SCOPE))!==null&&a!==void 0?a:"default",b=+((i=e.get(B.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),S={};for(let C of e.keys())vc(C)||(S[C]=e.get(C));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(B.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:fc(f)?f:"EVERYWHERE",sort:(u=(d=this.predefinedSorts[g])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&u!==void 0?u:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:Yt(1,isNaN(b)?this.defaultPerPage:b,1e3)},otherQueryParams:S}}parseCompatFilters(e){var t,n,a,i,s,l;let d=[];return e.has(B.FILTERS)&&(d=this.parseValueFilters((t=e.get(B.FILTERS))!==null&&t!==void 0?t:"")),(n=e.has(B.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(B.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(B.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(B.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(B.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(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(bc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:It[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(hc(e))return[{key:"ft:lastEdition",dateFilter:{type:It[e]}}];if(e.startsWith("CUSTOM_")){let[t,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var sa={};F(sa,{toFtFormComponent:()=>Ru});var oo=Symbol("elementInternals");function Ru(r,e){class t extends r{static get formAssociated(){return!0}get form(){return this[oo].form}constructor(...a){super(a),this[oo]=this.attachInternals(),this[oo].role=e}setFormValue(a){this[oo].setFormValue(a)}}return t}var ca={};F(ca,{DateFormatter:()=>Nt});var Nt=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 la,da,ua,pa,_u=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ua=(da=(la=window.safari)===null||la===void 0?void 0:la.pushNotification)===null||da===void 0?void 0:da.toString())!==null&&ua!==void 0?ua:"")==="[object SafariRemoteNotification]",Iu="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(pa=window.ftGlobals)!==null&&pa!==void 0?pa:{lit:Uo,litDecorators:Do,litRepeat:Mo,litClassMap:Fo,litStyleMap:Bo,litUnsafeHTML:$o,wcUtils:{...Ko,...Ho,...Zo,...ca,...qo,...Xo,...on,...Vo,...vn,...rn,...En,...Sn,...ds,...Qo,...An,...Rn,...ps,..._n,...ea,...xn,...oa,...na,...ia,...sa,isSafari:_u,isTouchScreen:Iu,setVariable:Wr}};var xc=r=>Re.get({name:"ft-reader-"+r,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}});var fa=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}}extractPagesToc(e,t,n){return e.flatMap(a=>(a.pageConfiguration&&this.registerPage(this.buildPage(a,n)),a.tocId==null?this.extractPagesToc(a.children,t,n):[{tocId:a.tocId,title:a.title,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(/^\//,""),u={tocId:a.tocId,contentId:a.contentId,title:a.title,hasRating:a.hasRating,origin:a.origin,prettyUrl:d,depth:t,parentTocId:n,children:[]};this.register(u);let h=this.convertSectionNodes((l=a.pageToc)!==null&&l!==void 0?l:[],t+1,a.tocId),f=this.convertNodes(a.children,t+1,u.tocId);return u.children=[...h,...f],[u]})}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 u={number:this.pages.length+1,title:(n=e.title)!==null&&n!==void 0?n:"",rootTocId:(a=e.tocId)!==null&&a!==void 0?a:"root",toc:((i=e.pageToc)!==null&&i!==void 0?i:[]).map(g=>this.nodeByTocId[g.tocId]),topics:[],hiddenTopics:[],breadcrumb:t?this.buildBreadcrumb(this.nodeByTocId[t]):[]},h=(g,m)=>(m?u.topics:u.hiddenTopics).push(g),f=(l=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return u.breadcrumb.forEach((g,m)=>{h(g,f[m])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),u.topics.push(...this.tocIds((d=e.pageToc)!==null&&d!==void 0?d:[])),u}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}},no=class{convertPaginatedToc(e,t){return new fa(e,t).build()}};var _e;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(_e||(_e={}));var Sc=G`
|
|
51
|
-
`;var
|
|
48
|
+
`;var gi={};var en={};M(en,{ParametrizedLabelResolver:()=>Jt});var Jt=class o{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var n,a;e=this.resolvePluralKey(e,r);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return o.replaceParameters(i,...r)}static replaceParameters(e,...r){return r.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>o.formatValue(n,s))),e}resolvePluralKey(e,r){for(let n of r)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,r){return e instanceof Date?o.formatDate(e,r):e??""}static formatDate(e,r){let n=a=>r?.includes("date")?e.toLocaleDateString(a):r?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var Cn={};M(Cn,{FtCommandQueue:()=>Qt,FtLitElementRedux:()=>De,FtReduxStore:()=>Re,ReduxWatcher:()=>Rr,clearAllStores:()=>pd,isFtReduxStore:()=>et,redux:()=>me,reduxEventListener:()=>Tl,reduxReactive:()=>Nl,watch:()=>hd});var Nl=()=>(o,e)=>{var r;let n=o.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(e)},me=o=>{let e=o??{};return(r,n)=>{var a;let i={hasChanged:qe,attribute:!1,...e};U(i)(r,n);let s=r.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})}},Tl=o=>(e,r)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,o)};var Qt=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};function et(o){var e;return(e=o?.isFtReduxStore)!==null&&e!==void 0?e:!1}var yi,mi,bi,Xt=Symbol("internalReduxEventsUnsubscribers"),ke=Symbol("internalStoresUnsubscribers"),tt=Symbol("internalStores"),De=class extends te{constructor(){super(...arguments),this[yi]=new Map,this[mi]=new Map,this[bi]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[tt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[tt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[tt].get(e)}addStore(e,r){var n;r=(n=r??(et(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[tt].set(r,e),this.subscribeToStore(r,e),this.updateFromStores()}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[tt].delete(r)}setupStores(){this.unsubscribeFromStores(),this[tt].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let a=this.getStore(e.store);a&&(e.store?this[ke].has(e.store):this[ke].size>0)&&(this[r]=e.selector(a.getState(),this))}})}subscribeToStore(e,r){var n;this[ke].set(e,r.subscribe(()=>this.updateFromStores())),this[Xt].set(e,[]),et(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||r.name===a.store)){let s=l=>this[i](l);r.addEventListener(a.eventName,s),this[Xt].get(e).push(()=>r.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[ke].forEach((e,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(e){var r;this[ke].has(e)&&this[ke].get(e)(),this[ke].delete(e),(r=this[Xt].get(e))===null||r===void 0||r.forEach(n=>n()),this[Xt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};yi=ke,mi=tt,bi=Xt;De.reduxProperties=new Map;De.reduxReactiveProperties=new Set;De.reduxEventListeners=new Map;function ne(o){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+o+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ae(o){return!!o&&!!o[$]}function ue(o){var e;return!!o&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Ml}(o)||Array.isArray(o)||!!o[Ci]||!!(!((e=o.constructor)===null||e===void 0)&&e[Ci])||dn(o)||un(o))}function rt(o,e,r){r===void 0&&(r=!1),vt(o)===0?(r?Object.keys:bt)(o).forEach(function(n){r&&typeof n=="symbol"||e(n,o[n],o)}):o.forEach(function(n,a){return e(a,n,o)})}function vt(o){var e=o[$];return e?e.i>3?e.i-4:e.i:Array.isArray(o)?1:dn(o)?2:un(o)?3:0}function mt(o,e){return vt(o)===2?o.has(e):Object.prototype.hasOwnProperty.call(o,e)}function _l(o,e){return vt(o)===2?o.get(e):o[e]}function Ai(o,e,r){var n=vt(o);n===2?o.set(e,r):n===3?o.add(r):o[e]=r}function Ri(o,e){return o===e?o!==0||1/o==1/e:o!=o&&e!=e}function dn(o){return Ul&&o instanceof Map}function un(o){return Fl&&o instanceof Set}function Ue(o){return o.o||o.t}function fn(o){if(Array.isArray(o))return Array.prototype.slice.call(o);var e=Ti(o);delete e[$];for(var r=bt(e),n=0;n<r.length;n++){var a=r[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 pn(o,e){return e===void 0&&(e=!1),hn(o)||Ae(o)||!ue(o)||(vt(o)>1&&(o.set=o.add=o.clear=o.delete=Pl),Object.freeze(o),e&&rt(o,function(r,n){return pn(n,!0)},!0)),o}function Pl(){ne(2)}function hn(o){return o==null||typeof o!="object"||Object.isFrozen(o)}function be(o){var e=ln[o];return e||ne(18,o),e}function Ll(o,e){ln[o]||(ln[o]=e)}function an(){return tr}function tn(o,e){e&&(be("Patches"),o.u=[],o.s=[],o.v=e)}function Or(o){sn(o),o.p.forEach(kl),o.p=null}function sn(o){o===tr&&(tr=o.l)}function vi(o){return tr={p:[],l:tr,h:o,m:!0,_:0}}function kl(o){var e=o[$];e.i===0||e.i===1?e.j():e.g=!0}function rn(o,e){e._=e.p.length;var r=e.p[0],n=o!==void 0&&o!==r;return e.h.O||be("ES5").S(e,o,n),n?(r[$].P&&(Or(e),ne(4)),ue(o)&&(o=Er(e,o),e.l||wr(e,o)),e.u&&be("Patches").M(r[$].t,o,e.u,e.s)):o=Er(e,r,[]),Or(e),e.u&&e.v(e.u,e.s),o!==Ni?o:void 0}function Er(o,e,r){if(hn(e))return e;var n=e[$];if(!n)return rt(e,function(l,d){return xi(o,n,e,l,d,r)},!0),e;if(n.A!==o)return e;if(!n.P)return wr(o,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=fn(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),rt(i,function(l,d){return xi(o,n,a,l,d,r,s)}),wr(o,a,!1),r&&o.u&&be("Patches").N(n,r,o.u,o.s)}return n.o}function xi(o,e,r,n,a,i,s){if(Ae(a)){var l=Er(o,a,i&&e&&e.i!==3&&!mt(e.R,n)?i.concat(n):void 0);if(Ai(r,n,l),!Ae(l))return;o.m=!1}else s&&r.add(a);if(ue(a)&&!hn(a)){if(!o.h.D&&o._<1)return;Er(o,a),e&&e.A.l||wr(o,a)}}function wr(o,e,r){r===void 0&&(r=!1),!o.l&&o.h.D&&o.m&&pn(e,r)}function on(o,e){var r=o[$];return(r?Ue(r):o)[e]}function Si(o,e){if(e in o)for(var r=Object.getPrototypeOf(o);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Fe(o){o.P||(o.P=!0,o.l&&Fe(o.l))}function nn(o){o.o||(o.o=fn(o.t))}function cn(o,e,r){var n=dn(e)?be("MapSet").F(e,r):un(e)?be("MapSet").T(e,r):o.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:an(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,f=rr;s&&(d=[l],f=er);var h=Proxy.revocable(d,f),p=h.revoke,y=h.proxy;return l.k=y,l.j=p,y}(e,r):be("ES5").J(e,r);return(r?r.A:an()).p.push(n),n}function Dl(o){return Ae(o)||ne(22,o),function e(r){if(!ue(r))return r;var n,a=r[$],i=vt(r);if(a){if(!a.P&&(a.i<4||!be("ES5").K(a)))return a.t;a.I=!0,n=Oi(r,i),a.I=!1}else n=Oi(r,i);return rt(n,function(s,l){a&&_l(a.t,s)===l||Ai(n,s,e(l))}),i===3?new Set(n):n}(o)}function Oi(o,e){switch(e){case 2:return new Map(o);case 3:return Array.from(o)}return fn(o)}function Ii(){function o(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var f=this[$];return rr.get(f,s)},set:function(f){var h=this[$];rr.set(h,s,f)}},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:r(d)&&Fe(d)}}}function r(s){for(var l=s.t,d=s.k,f=bt(d),h=f.length-1;h>=0;h--){var p=f[h];if(p!==$){var y=l[p];if(y===void 0&&!mt(l,p))return!0;var m=d[p],b=m&&m[$];if(b?b.t!==y:!Ri(m,y))return!0}}var S=!!l[$];return f.length!==bt(l).length+(S?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 f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function a(s){s.g&&ne(3,JSON.stringify(Ue(s)))}var i={};Ll("ES5",{J:function(s,l){var d=Array.isArray(s),f=function(p,y){if(p){for(var m=Array(y.length),b=0;b<y.length;b++)Object.defineProperty(m,""+b,o(b,!0));return m}var S=Ti(y);delete S[$];for(var w=bt(S),C=0;C<w.length;C++){var A=w[C];S[A]=o(A,p||!!S[A].enumerable)}return Object.create(Object.getPrototypeOf(y),S)}(d,s),h={i:d?5:4,A:l?l.A:an(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,$,{value:h,writable:!0}),f},S:function(s,l,d){d?Ae(l)&&l[$].A===s&&e(s.p):(s.u&&function f(h){if(h&&typeof h=="object"){var p=h[$];if(p){var y=p.t,m=p.k,b=p.R,S=p.i;if(S===4)rt(m,function(v){v!==$&&(y[v]!==void 0||mt(y,v)?b[v]||f(m[v]):(b[v]=!0,Fe(p)))}),rt(y,function(v){m[v]!==void 0||mt(m,v)||(b[v]=!1,Fe(p))});else if(S===5){if(n(p)&&(Fe(p),b.length=!0),m.length<y.length)for(var w=m.length;w<y.length;w++)b[w]=!1;else for(var C=y.length;C<m.length;C++)b[C]=!0;for(var A=Math.min(m.length,y.length),O=0;O<A;O++)m.hasOwnProperty(O)||(b[O]=!0),b[O]===void 0&&f(m[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var Ei,tr,gn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ul=typeof Map<"u",Fl=typeof Set<"u",wi=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ni=gn?Symbol.for("immer-nothing"):((Ei={})["immer-nothing"]=!0,Ei),Ci=gn?Symbol.for("immer-draftable"):"__$immer_draftable",$=gn?Symbol.for("immer-state"):"__$immer_state";var Ml=""+Object.prototype.constructor,bt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:Object.getOwnPropertyNames,Ti=Object.getOwnPropertyDescriptors||function(o){var e={};return bt(o).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(o,r)}),e},ln={},rr={get:function(o,e){if(e===$)return o;var r=Ue(o);if(!mt(r,e))return function(a,i,s){var l,d=Si(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,r,e);var n=r[e];return o.I||!ue(n)?n:n===on(o.t,e)?(nn(o),o.o[e]=cn(o.A.h,n,o)):n},has:function(o,e){return e in Ue(o)},ownKeys:function(o){return Reflect.ownKeys(Ue(o))},set:function(o,e,r){var n=Si(Ue(o),e);if(n?.set)return n.set.call(o.k,r),!0;if(!o.P){var a=on(Ue(o),e),i=a?.[$];if(i&&i.t===r)return o.o[e]=r,o.R[e]=!1,!0;if(Ri(r,a)&&(r!==void 0||mt(o.t,e)))return!0;nn(o),Fe(o)}return o.o[e]===r&&(r!==void 0||e in o.o)||Number.isNaN(r)&&Number.isNaN(o.o[e])||(o.o[e]=r,o.R[e]=!0),!0},deleteProperty:function(o,e){return on(o.t,e)!==void 0||e in o.t?(o.R[e]=!1,nn(o),Fe(o)):delete o.R[e],o.o&&delete o.o[e],!0},getOwnPropertyDescriptor:function(o,e){var r=Ue(o),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:o.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){ne(11)},getPrototypeOf:function(o){return Object.getPrototypeOf(o.t)},setPrototypeOf:function(){ne(12)}},er={};rt(rr,function(o,e){er[o]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),er.deleteProperty=function(o,e){return er.set.call(this,o,e,void 0)},er.set=function(o,e,r){return rr.set.call(this,o[0],e,r,o[0])};var Bl=function(){function o(r){var n=this;this.O=wi,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(S){var w=this;S===void 0&&(S=l);for(var C=arguments.length,A=Array(C>1?C-1:0),O=1;O<C;O++)A[O-1]=arguments[O];return d.produce(S,function(v){var E;return(E=i).call.apply(E,[w,v].concat(A))})}}var f;if(typeof i!="function"&&ne(6),s!==void 0&&typeof s!="function"&&ne(7),ue(a)){var h=vi(n),p=cn(n,a,void 0),y=!0;try{f=i(p),y=!1}finally{y?Or(h):sn(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(S){return tn(h,s),rn(S,h)},function(S){throw Or(h),S}):(tn(h,s),rn(f,h))}if(!a||typeof a!="object"){if((f=i(a))===void 0&&(f=a),f===Ni&&(f=void 0),n.D&&pn(f,!0),s){var m=[],b=[];be("Patches").M(a,f,m,b),s(m,b)}return f}ne(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(f){for(var h=arguments.length,p=Array(h>1?h-1:0),y=1;y<h;y++)p[y-1]=arguments[y];return n.produceWithPatches(f,function(m){return a.apply(void 0,[m].concat(p))})};var s,l,d=n.produce(a,i,function(f,h){s=f,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(f){return[f,s,l]}):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=o.prototype;return e.createDraft=function(r){ue(r)||ne(8),Ae(r)&&(r=Dl(r));var n=vi(this),a=cn(this,r,void 0);return a[$].C=!0,sn(n),a},e.finishDraft=function(r,n){var a=r&&r[$],i=a.A;return tn(i,n),rn(void 0,i)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!wi&&ne(20),this.O=r},e.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}a>-1&&(n=n.slice(a+1));var s=be("Patches").$;return Ae(r)?s(r,n):this.produce(r,function(l){return s(l,n)})},o}(),re=new Bl,Wl=re.produce,Yg=re.produceWithPatches.bind(re),Jg=re.setAutoFreeze.bind(re),Qg=re.setUseProxies.bind(re),Xg=re.applyPatches.bind(re),ey=re.createDraft.bind(re),ty=re.finishDraft.bind(re),Cr=Wl;function ot(o){"@babel/helpers - typeof";return ot=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},ot(o)}function _i(o,e){if(ot(o)!="object"||!o)return o;var r=o[Symbol.toPrimitive];if(r!==void 0){var n=r.call(o,e||"default");if(ot(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function Pi(o){var e=_i(o,"string");return ot(e)=="symbol"?e:e+""}function Li(o,e,r){return(e=Pi(e))in o?Object.defineProperty(o,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[e]=r,o}function ki(o,e){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),r.push.apply(r,n)}return r}function yn(o){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ki(Object(r),!0).forEach(function(n){Li(o,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):ki(Object(r)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(r,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 Di=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),mn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ar={INIT:"@@redux/INIT"+mn(),REPLACE:"@@redux/REPLACE"+mn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+mn()}};function Hl(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 bn(o,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Z(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Z(1));return r(bn)(o,e)}if(typeof o!="function")throw new Error(Z(2));var a=o,i=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Z(3));return i}function p(S){if(typeof S!="function")throw new Error(Z(4));if(d)throw new Error(Z(5));var w=!0;return f(),l.push(S),function(){if(w){if(d)throw new Error(Z(6));w=!1,f();var A=l.indexOf(S);l.splice(A,1),s=null}}}function y(S){if(!Hl(S))throw new Error(Z(7));if(typeof S.type>"u")throw new Error(Z(8));if(d)throw new Error(Z(9));try{d=!0,i=a(i,S)}finally{d=!1}for(var w=s=l,C=0;C<w.length;C++){var A=w[C];A()}return S}function m(S){if(typeof S!="function")throw new Error(Z(10));a=S,y({type:Ar.REPLACE})}function b(){var S,w=p;return S={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(Z(11));function O(){A.next&&A.next(h())}O();var v=w(O);return{unsubscribe:v}}},S[Di]=function(){return this},S}return y({type:Ar.INIT}),n={dispatch:y,subscribe:p,getState:h,replaceReducer:m},n[Di]=b,n}function $l(o){Object.keys(o).forEach(function(e){var r=o[e],n=r(void 0,{type:Ar.INIT});if(typeof n>"u")throw new Error(Z(12));if(typeof r(void 0,{type:Ar.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Z(13))})}function Ui(o){for(var e=Object.keys(o),r={},n=0;n<e.length;n++){var a=e[n];typeof o[a]=="function"&&(r[a]=o[a])}var i=Object.keys(r),s,l;try{$l(r)}catch(d){l=d}return function(f,h){if(f===void 0&&(f={}),l)throw l;if(0)var p;for(var y=!1,m={},b=0;b<i.length;b++){var S=i[b],w=r[S],C=f[S],A=w(C,h);if(typeof A>"u"){var O=h&&h.type;throw new Error(Z(14))}m[S]=A,y=y||A!==C}return y=y||i.length!==Object.keys(f).length,y?m:f}}function xt(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];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 Fi(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];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=xt.apply(void 0,l)(a.dispatch),yn(yn({},a),{},{dispatch:i})}}}function Mi(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 Bi=Mi();Bi.withExtraArgument=Mi;var vn=Bi;var ji=function(){var o=function(e,r){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,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),zl=function(o,e){var r={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(f){return function(h){return d([f,h])}}function d(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(f[0]===6&&r.label<i[1]){r.label=i[1],i=f;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(f);break}i[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(o,r)}catch(h){f=[6,h],a=0}finally{n=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},St=function(o,e){for(var r=0,n=e.length,a=o.length;r<n;r++,a++)o[a]=e[r];return o},jl=Object.defineProperty,Gl=Object.defineProperties,Vl=Object.getOwnPropertyDescriptors,Wi=Object.getOwnPropertySymbols,Kl=Object.prototype.hasOwnProperty,Zl=Object.prototype.propertyIsEnumerable,Hi=function(o,e,r){return e in o?jl(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r},Me=function(o,e){for(var r in e||(e={}))Kl.call(e,r)&&Hi(o,r,e[r]);if(Wi)for(var n=0,a=Wi(e);n<a.length;n++){var r=a[n];Zl.call(e,r)&&Hi(o,r,e[r])}return o},xn=function(o,e){return Gl(o,Vl(e))},ql=function(o,e,r){return new Promise(function(n,a){var i=function(d){try{l(r.next(d))}catch(f){a(f)}},s=function(d){try{l(r.throw(d))}catch(f){a(f)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((r=r.apply(o,e)).next())})};var Yl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?xt:xt.apply(null,arguments)},vy=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(o){return o}};function Jl(o){if(typeof o!="object"||o===null)return!1;var e=Object.getPrototypeOf(o);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var Ql=function(o){ji(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||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 r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,St([void 0],r[0].concat(this)))):new(e.bind.apply(e,St([void 0],r.concat(this))))},e}(Array),Xl=function(o){ji(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||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 r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,St([void 0],r[0].concat(this)))):new(e.bind.apply(e,St([void 0],r.concat(this))))},e}(Array);function En(o){return ue(o)?Cr(o,function(){}):o}function ed(o){return typeof o=="boolean"}function td(){return function(e){return rd(e)}}function rd(o){o===void 0&&(o={});var e=o.thunk,r=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 Ql;if(r&&(ed(r)?l.push(vn):l.push(vn.withExtraArgument(r.extraArgument))),0){if(a)var d;if(s)var f}return l}var Sn=!0;function Gi(o){var e=td(),r=o||{},n=r.reducer,a=n===void 0?void 0:n,i=r.middleware,s=i===void 0?e():i,l=r.devTools,d=l===void 0?!0:l,f=r.preloadedState,h=f===void 0?void 0:f,p=r.enhancers,y=p===void 0?void 0:p,m;if(typeof a=="function")m=a;else if(Jl(a))m=Ui(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),!Sn&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Sn&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Fi.apply(void 0,b),w=xt;d&&(w=Yl(Me({trace:!Sn},typeof d=="object"&&d)));var C=new Xl(S),A=C;Array.isArray(y)?A=St([S],y):typeof y=="function"&&(A=y(C));var O=w.apply(void 0,A);return bn(m,h,O)}function Be(o,e){function r(){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 r.toString=function(){return""+o},r.type=o,r.match=function(n){return n.type===o},r}function Vi(o){var e={},r=[],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 r.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return o(a),[e,r,n]}function od(o){return typeof o=="function"}function nd(o,e,r,n){r===void 0&&(r=[]);var a=typeof e=="function"?Vi(e):[e,r,n],i=a[0],s=a[1],l=a[2],d;if(od(o))d=function(){return En(o())};else{var f=En(o);d=function(){return f}}function h(p,y){p===void 0&&(p=d());var m=St([i[y.type]],s.filter(function(b){var S=b.matcher;return S(y)}).map(function(b){var S=b.reducer;return S}));return m.filter(function(b){return!!b}).length===0&&(m=[l]),m.reduce(function(b,S){if(S)if(Ae(b)){var w=b,C=S(w,y);return C===void 0?b:C}else{if(ue(b))return Cr(b,function(A){return S(A,y)});var C=S(b,y);if(C===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return C}return b},p)}return h.getInitialState=d,h}function ad(o,e){return o+"/"+e}function Ki(o){var e=o.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof o.initialState=="function"?o.initialState:En(o.initialState),n=o.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var p=n[h],y=ad(e,h),m,b;"reducer"in p?(m=p.reducer,b=p.prepare):m=p,i[h]=m,s[y]=m,l[h]=b?Be(y,b):Be(y)});function d(){var h=typeof o.extraReducers=="function"?Vi(o.extraReducers):[o.extraReducers],p=h[0],y=p===void 0?{}:p,m=h[1],b=m===void 0?[]:m,S=h[2],w=S===void 0?void 0:S,C=Me(Me({},y),s);return nd(r,function(A){for(var O in C)A.addCase(O,C[O]);for(var v=0,E=b;v<E.length;v++){var N=E[v];A.addMatcher(N.matcher,N.reducer)}w&&A.addDefaultCase(w)})}var f;return{name:e,reducer:function(h,p){return f||(f=d()),f(h,p)},actions:l,caseReducers:i,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}var id="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",sd=function(o){o===void 0&&(o=21);for(var e="",r=o;r--;)e+=id[Math.random()*64|0];return e},cd=["name","message","stack","code"],On=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),$i=function(){function o(e,r){this.payload=e,this.meta=r}return o}(),ld=function(o){if(typeof o=="object"&&o!==null){for(var e={},r=0,n=cd;r<n.length;r++){var a=n[r];typeof o[a]=="string"&&(e[a]=o[a])}return e}return{message:String(o)}},Ey=function(){function o(e,r,n){var a=Be(e+"/fulfilled",function(h,p,y,m){return{payload:h,meta:xn(Me({},m||{}),{arg:y,requestId:p,requestStatus:"fulfilled"})}}),i=Be(e+"/pending",function(h,p,y){return{payload:void 0,meta:xn(Me({},y||{}),{arg:p,requestId:h,requestStatus:"pending"})}}),s=Be(e+"/rejected",function(h,p,y,m,b){return{payload:m,error:(n&&n.serializeError||ld)(h||"Rejected"),meta:xn(Me({},b||{}),{arg:y,requestId:p,rejectedWithValue:!!m,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 f(h){return function(p,y,m){var b=n?.idGenerator?n.idGenerator(h):sd(),S=new d,w,C=!1;function A(v){w=v,S.abort()}var O=function(){return ql(this,null,function(){var v,E,N,_,D,P,R;return zl(this,function(g){switch(g.label){case 0:return g.trys.push([0,4,,5]),_=(v=n?.condition)==null?void 0:v.call(n,h,{getState:y,extra:m}),ud(_)?[4,_]:[3,2];case 1:_=g.sent(),g.label=2;case 2:if(_===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return C=!0,D=new Promise(function(x,I){return S.signal.addEventListener("abort",function(){return I({name:"AbortError",message:w||"Aborted"})})}),p(i(b,h,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:b,arg:h},{getState:y,extra:m}))),[4,Promise.race([D,Promise.resolve(r(h,{dispatch:p,getState:y,extra:m,requestId:b,signal:S.signal,abort:A,rejectWithValue:function(x,I){return new On(x,I)},fulfillWithValue:function(x,I){return new $i(x,I)}})).then(function(x){if(x instanceof On)throw x;return x instanceof $i?a(x.payload,b,h,x.meta):a(x,b,h)})])];case 3:return N=g.sent(),[3,5];case 4:return P=g.sent(),N=P instanceof On?s(null,b,h,P.payload,P.meta):s(P,b,h),[3,5];case 5:return R=n&&!n.dispatchConditionRejection&&s.match(N)&&N.meta.condition,R||p(N),[2,N]}})})}();return Object.assign(O,{abort:A,requestId:b,arg:h,unwrap:function(){return O.then(dd)}})}}return Object.assign(f,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return o.withTypes=function(){return o},o}();function dd(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function ud(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var Zi="listener",qi="completed",Yi="cancelled",wy="task-"+Yi,Cy="task-"+qi,Ay=Zi+"-"+Yi,Ry=Zi+"-"+qi;var wn="listenerMiddleware";var Iy=Be(wn+"/add"),Ny=Be(wn+"/removeAll"),Ty=Be(wn+"/remove");var zi,_y=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(o){return(zi||(zi=Promise.resolve())).then(o).catch(function(e){return setTimeout(function(){throw e},0)})},fd=function(o){return function(e){setTimeout(e,o)}},Py=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:fd(10);Ii();window.ftReduxStores||(window.ftReduxStores={});var Re=class o extends Ze{static get(e){var r;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(et(i))return i;if(a==null)return;let s=Ki({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),l=Gi({reducer:(d,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...f.overwrites}:s.reducer(d,f)});return window.ftReduxStores[a.name]=new o(s,l,a.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Qt;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,f=i[d];return f?(...h)=>{let p=f(...h.map(a));return this.reduxStore.dispatch(p),p}: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:{}))et(e)&&e.clear()}var Rr=class{constructor(e,r,n){this.store=e,this.valueSelector=r,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);qe(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function hd(o,e,r){return new Rr(o,e,r).watch()}var In={};M(In,{scrollHelper:()=>gd});var An,Ir=new Map,Rn=class{lock(e,r){if(r){let n=Ir.get(r);if(n==null||n===e)return Ir.set(r,e),r}}release(e,r){r&&Ir.get(r)===e&&Ir.delete(r)}findFirstScrollableParent(e){var r;let n,a;for(let i of Eo(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(r=n??a)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,r){var n,a;let i=0;for(;r&&r.offsetParent!==e.offsetParent;)i+=(n=r.offsetTop)!==null&&n!==void 0?n:0,r=r.offsetParent;return i+((a=r?.offsetTop)!==null&&a!==void 0?a:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let 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(r?.position,l)*(i-s)+s;n.scrollTo({behavior:r?.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=(An=window.FluidTopicsScrollHelper)!==null&&An!==void 0?An:new Rn;var gd=window.FluidTopicsScrollHelper;var Nn={};M(Nn,{shadowQuerySelector:()=>yd,shadowQuerySelectorAll:()=>md});function yd(o,e,...r){var n;let a=o.querySelector(e);for(let i of r)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}function md(o,e,...r){let n=[...o.querySelectorAll(e)];for(let a of r)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 _n={};M(_n,{SearchPlaceConverter:()=>or,SearchPlaceQueryParams:()=>B,isSearchPlaceQueryParams:()=>Cs,serializeRequest:()=>Sd});var vd=Bs(Qi(),1);var Xi;(function(o){o.black="black",o.green="green",o.blue="blue",o.purple="purple",o.red="red",o.orange="orange",o.yellow="yellow"})(Xi||(Xi={}));var es;(function(o){o.OFFICIAL="OFFICIAL",o.PERSONAL="PERSONAL",o.SHARED="SHARED"})(es||(es={}));var ts;(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"})(ts||(ts={}));var rs;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(rs||(rs={}));var os;(function(o){o.VALUE="VALUE",o.DATE="DATE",o.RANGE="RANGE"})(os||(os={}));var ns;(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.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"})(ns||(ns={}));var as;(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"})(as||(as={}));var is;(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"})(is||(is={}));var ss;(function(o){o.CLASSIC="CLASSIC",o.CUSTOM="CUSTOM",o.DESIGNER="DESIGNER"})(ss||(ss={}));var cs;(function(o){o.AND="AND",o.OR="OR",o.MONOVALUED="MONOVALUED"})(cs||(cs={}));var ls;(function(o){o.NONE="NONE",o.ALPHABET="ALPHABET",o.VERSION="VERSION"})(ls||(ls={}));var ds;(function(o){o.STARS="STARS",o.LIKE="LIKE",o.DICHOTOMOUS="DICHOTOMOUS",o.NO_RATING="NO_RATING"})(ds||(ds={}));var us;(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"})(us||(us={}));var fs;(function(o){o.ASC="ASC",o.DESC="DESC"})(fs||(fs={}));var ps;(function(o){o.ALPHA="ALPHA",o.NATURAL="NATURAL"})(ps||(ps={}));var Tn;(function(o){o.EVERYWHERE="EVERYWHERE",o.TITLE_ONLY="TITLE_ONLY",o.NONE="NONE"})(Tn||(Tn={}));var vs=o=>Object.keys(Tn).includes(o);var hs;(function(o){o.ARTICLE="ARTICLE",o.BOOK="BOOK",o.SHARED_BOOK="SHARED_BOOK"})(hs||(hs={}));var gs;(function(o){o.FLUIDTOPICS="FLUIDTOPICS",o.EXTERNAL="EXTERNAL"})(gs||(gs={}));var ys;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.PERSONAL_BOOK="PERSONAL_BOOK",o.SHARED_BOOK="SHARED_BOOK"})(ys||(ys={}));var Et;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(Et||(Et={}));var xs=o=>Object.keys(Et).includes(o);var ms;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC"})(ms||(ms={}));var bs;(function(o){o.DEFAULT="DEFAULT",o.DOCUMENTS="DOCUMENTS",o.ALL_TOPICS="ALL_TOPICS",o.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(bs||(bs={}));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.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",o.DEVELOPER="DEVELOPER"})(W||(W={}));var Ss;(function(o){o.VALID="VALID",o.INVALID="INVALID"})(Ss||(Ss={}));var Os;(function(o){o.TEXT="TEXT",o.HTML="HTML"})(Os||(Os={}));var bd={[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.DEVELOPER]:[W.BETA_USER,W.DEBUG_USER],[W.GENERATIVE_AI_EXPORT_USER]:[W.GENERATIVE_AI_USER]};function Es(o,e){return o===e||(bd[o]??[]).some(r=>Es(r,e))}function nt(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=>Es(n,e))}function xd(o){return`"${o}"`}function ws(o){return o.startsWith('"')&&o.endsWith('"')?o.replace(/(^"+)|("+$)/g,""):o}function Sd(o,e){return new or(o).serialize(e)}var B;(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"})(B||(B={}));var Od=new Set(Object.values(B));function Cs(o){return Od.has(o)}var or=class{constructor(e,r={},n=20,a=!1,i="en-US"){this.baseUrl=e,this.predefinedSorts=r,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,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let n=this.toURLSearchParams(e).toString(),a=r==null||r.trim().length===0,i=new URL(a?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=n,i.toString()}toURLSearchParams(e,r=!1){var n,a,i,s,l,d,f,h,p,y,m,b;let S=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&S.append(B.LOCALE,e.contentLocale):S.append(B.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&S.append(B.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&S.append(B.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&S.append(B.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((a=e.sort)===null||a===void 0?void 0:a.length)>0&&e.sort[0].key==="ft:lastEdition"&&S.append(B.SORT,"last_update");let w=(s=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(v=>v.valueFilter))!==null&&s!==void 0?s:[];if(w.length>0){let v=w.map(E=>{var N,_;let D=((_=(N=E.valueFilter)===null||N===void 0?void 0:N.values)!==null&&_!==void 0?_:[]).map(P=>this.escapeFilters(P)).map(P=>encodeURIComponent(xd(ws(P)))).join("_");return`${E.key}~${D}`}).join("*");S.append(B.VALUE_FILTERS,v)}let C=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(v=>v.dateFilter))!==null&&d!==void 0?d:[];if(C.length>0){let v=C.map(E=>{var N;return`${E.key}~${(N=E.dateFilter)===null||N===void 0?void 0:N.type.toLowerCase()}`}).join("*");S.append(B.DATE_FILTERS,v)}let A=(h=(f=e.metadataFilters)===null||f===void 0?void 0:f.filter(v=>v.rangeFilter))!==null&&h!==void 0?h:[];if(A.length>0){let v=A.map(E=>{var N,_;return`${E.key}~${(N=E.rangeFilter)===null||N===void 0?void 0:N.from}_${(_=E.rangeFilter)===null||_===void 0?void 0:_.to}`}).join("*");S.append(B.RANGE_FILTERS,v)}let O=(p=e.otherQueryParams)!==null&&p!==void 0?p:{};for(let v in O)S.append(v,O[v]);return!((y=e.paging)===null||y===void 0)&&y.perPage&&((b=(m=e.paging)===null||m===void 0?void 0:m.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&S.append(B.PER_PAGE,String(e.paging.perPage)),S}parse(e){var r;let n=e.split("?"),a=this.fromURLSearchParams(new URLSearchParams(n.slice(1).join("?"))),i=n[0].split("/search/")[1];return i==null?a:{...a,scope:(r=this.scopeMapping[i])!==null&&r!==void 0?r:a.scope}}fromURLSearchParams(e){var r,n,a,i,s,l,d,f;let h=e.get(B.LOCALE)==="all"?void 0:e.get(B.LOCALE),p=((r=e.get(B.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),y=((n=e.get(B.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),m=(a=e.get(B.SCOPE))!==null&&a!==void 0?a:"default",b=+((i=e.get(B.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),S={};for(let w of e.keys())Cs(w)||(S[w]=e.get(w));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(B.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:vs(p)?p:"EVERYWHERE",sort:(f=(d=this.predefinedSorts[y])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&f!==void 0?f:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:Mt(1,isNaN(b)?this.defaultPerPage:b,1e3)},otherQueryParams:S}}parseCompatFilters(e){var r,n,a,i,s,l;let d=[];return e.has(B.FILTERS)&&(d=this.parseValueFilters((r=e.get(B.FILTERS))!==null&&r!==void 0?r:"")),(n=e.has(B.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(B.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(B.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(B.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(B.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(ws).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Et[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,n,a]of this.filtersEscapeMapping)e=e.replaceAll(r,n);return e}superEscapeFilters(e){for(let[r,n,a]of this.filtersEscapeMapping)e=e.replaceAll(n,a);return e}unescapeFilterValue(e){for(let[r,n,a]of this.filtersEscapeMapping)e=e.replace(a,r);return e}parseLegacyPeriodFilter(e){if(xs(e))return[{key:"ft:lastEdition",dateFilter:{type:Et[e]}}];if(e.startsWith("CUSTOM_")){let[r,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var Pn={};M(Pn,{toFtFormComponent:()=>Ed});var _r=Symbol("elementInternals");function Ed(o,e){class r extends o{static get formAssociated(){return!0}get form(){return this[_r].form}constructor(...a){super(a),this[_r]=this.attachInternals(),this[_r].role=e}setFormValue(a){this[_r].setFormValue(a)}}return r}var Ln={};M(Ln,{DateFormatter:()=>wt});var wt=class{static format(e,r,n,a){return window.moment?window.moment(e).locale(r).format(this.getDateFormat(n,a)):e}static getDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}};var kn,Dn,Un,Fn,wd=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Un=(Dn=(kn=window.safari)===null||kn===void 0?void 0:kn.pushNotification)===null||Dn===void 0?void 0:Dn.toString())!==null&&Un!==void 0?Un:"")==="[object SafariRemoteNotification]",Cd="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Fn=window.ftGlobals)!==null&&Fn!==void 0?Fn:{lit:io,litDecorators:so,litRepeat:co,litClassMap:lo,litStyleMap:uo,litUnsafeHTML:fo,wcUtils:{...vo,...ho,...xo,...Ln,...So,...Co,...No,...bo,...Go,...Io,...qo,...Ko,...pi,...wo,...Qo,...Xo,...gi,...en,...Cn,...Vo,...In,...Nn,..._n,...Pn,isSafari:wd,isTouchScreen:Cd,setVariable:yr}};var As=o=>Re.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}});var Mn=class{constructor(e,r){this.mapId=e,this.paginatedToc=r,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}}extractPagesToc(e,r,n){return e.flatMap(a=>(a.pageConfiguration&&this.registerPage(this.buildPage(a,n)),a.tocId==null?this.extractPagesToc(a.children,r,n):[{tocId:a.tocId,title:a.title,depth:r,children:this.extractPagesToc(a.children,r+1,a.tocId)}]))}convertNodes(e,r,n){return e.flatMap(a=>{var i,s,l;if(a.tocId==null)return[...this.convertSectionNodes((i=a.pageToc)!==null&&i!==void 0?i:[],r,a.tocId),...this.convertNodes(a.children,r,a.tocId)];let d=(s=a.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),f={tocId:a.tocId,contentId:a.contentId,title:a.title,hasRating:a.hasRating,origin:a.origin,prettyUrl:d,depth:r,parentTocId:n,children:[]};this.register(f);let h=this.convertSectionNodes((l=a.pageToc)!==null&&l!==void 0?l:[],r+1,a.tocId),p=this.convertNodes(a.children,r+1,f.tocId);return f.children=[...h,...p],[f]})}convertSectionNodes(e,r,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:r,parentTocId:n,children:[]};return this.register(l),l.children=this.convertSectionNodes(a.children,r+1,a.tocId),[l]})}buildPage(e,r){var n,a,i,s,l,d;let f={number:this.pages.length+1,title:(n=e.title)!==null&&n!==void 0?n:"",rootTocId:(a=e.tocId)!==null&&a!==void 0?a:"root",toc:((i=e.pageToc)!==null&&i!==void 0?i:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(y,m)=>(m?f.topics:f.hiddenTopics).push(y),p=(l=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return f.breadcrumb.forEach((y,m)=>{h(y,p[m])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),f.topics.push(...this.tocIds((d=e.pageToc)!==null&&d!==void 0?d:[])),f}registerPage(e){for(let r of[...e.topics,...e.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=e);this.pages.push(e)}tocIds(e){return e.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(e){let r=[e.tocId];for(;e?.parentTocId;)r.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return r}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}},Pr=class{convertPaginatedToc(e,r){return new Mn(e,r).build()}};var Ie;(function(o){o.FEEDBACK="FEEDBACK",o.RATING="RATING",o.PRINT="PRINT",o.BOOKMARK="BOOKMARK",o.COLLECTIONS="COLLECTIONS",o.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ie||(Ie={}));var Rs=j`
|
|
49
|
+
`;var Ad="ft-app-info",Bn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},Rd={session:(o,e)=>{se(o.session,e.payload)||(o.session=e.payload,setTimeout(()=>T.dispatchEvent(new Bn(e.payload)),0))}},T=Re.get({name:Ad,reducers:Rd,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 at=class o{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=T.getState(),a=e??n;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(e){return new Promise(r=>{let n=o.get(e);if(n)r(n);else{let a=T.subscribe(()=>{n=o.get(e),n&&(a(),r(n))})}})}};var nr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:at.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):at.await()}};var ve=class extends nr{constructor(e=!0,r){var n;super(r);let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new he,this.cache=e?a.commonCache:new he}clearCache(){this.cache.clearAll()}};var Is,Id=Symbol("clearAfterUnitTest"),Lr=class extends ve{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Is]=()=>{this.defaultMessages={},this.cache=new he,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=T.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),Object.keys(r).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};se(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var a;let i=e.toLowerCase(),s=this.resolveContext(i);return new Jt((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(r,...n)}async fetchContext(e){var r,n,a;if(!this.cache.has(e))if(((n=(r=window.process)===null||r===void 0?void 0:r.env)===null||n===void 0?void 0:n.NODE_ENV)==="test")this.cache.set(e,(a=this.defaultMessages[e])!==null&&a!==void 0?a:{});else try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(i){console.error(i)}}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(r)}}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(r=>gr(0).then(()=>r()).catch(()=>null)))}};Is=Id;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Lr{constructor(){super(async(o,e)=>(await this.awaitApi).getFluidTopicsMessageContext(o,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Lr{constructor(){super(async(o,e)=>(await this.awaitApi).getCustomMessageContext(o,e))}});var Ns=window.FluidTopicsI18nService,rb=window.FluidTopicsCustomI18nService;var q=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},z=class extends te{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=()=>at.get(),this.messageContexts=[],this.cache=new he,this.cleanSessionDebouncer=new X}render(){return lt`
|
|
52
50
|
<slot></slot>
|
|
53
|
-
`}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=>Ec.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())}};H.elementDefinitions={};H.styles=Sc;q([D()],H.prototype,"baseUrl",void 0);q([D()],H.prototype,"apiIntegrationIdentifier",void 0);q([D()],H.prototype,"uiLocale",void 0);q([Le(null)],H.prototype,"availableUiLocales",void 0);q([Le(null)],H.prototype,"metadataConfiguration",void 0);q([D({type:Boolean})],H.prototype,"editorMode",void 0);q([D({type:Boolean})],H.prototype,"noCustom",void 0);q([D({type:Boolean})],H.prototype,"openExternalDocumentInNewTab",void 0);q([D({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],H.prototype,"noCustomComponent",void 0);q([D({type:Boolean})],H.prototype,"withManualResources",void 0);q([D({type:Boolean})],H.prototype,"navigatorOnline",void 0);q([D({type:Boolean})],H.prototype,"forcedOffline",void 0);q([D({type:Object})],H.prototype,"apiProvider",void 0);q([Le([])],H.prototype,"messageContexts",void 0);q([Le(void 0)],H.prototype,"session",void 0);q([Vt()],H.prototype,"localesConfiguration",void 0);var io=class extends be{async listMySearches(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var so=class extends be{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 Lu="ft-user-assets",co=Re.get({name:Lu,initialState:{savedSearches:void 0,bookmarks:void 0}}),ga=class{constructor(){this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new so,this.savedSearchesService=new io,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=N.getState();ie((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(),co.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),co.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();co.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;co.actions.bookmarks(t)}}},Cc=new ga;var ya=class{addCommand(e,t=!1){N.commands.add(e,t)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ya;var ma=class{highlightHtml(e,t,n){wn(e,t,n)}};window.FluidTopicsHighlightHtmlService=new ma;var ba=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 Nt.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 ba;Jt("ft-app-context")(H);var lo=class extends be{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 ut((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()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(e){return(await this.getEnrichedToc()).nodeByTocId[e]}getTocNodeNow(e){var t;return(t=this.enrichedToc)===null||t===void 0?void 0:t.nodeByTocId[e]}getTocNodeNowByUrl(e){var t,n;let a=this.getMapNow();return a?.prettyUrl==e||`${a?.id}/root`===e?(t=this.enrichedToc)===null||t===void 0?void 0:t.toc[0]:(n=this.enrichedToc)===null||n===void 0?void 0:n.nodeByUrl[e]}async getPage(e){let t=await this.getEnrichedToc();return t.pages[e-1]||t.pages[0]}async getPageByTocId(e){let t=await this.getEnrichedToc();return t.pageByTocId[e]||t.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))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}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`)}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){var a,i;e=e||"root";let s=this.enrichedToc,l=s?.pageByTocId[e],d=s?.nodeByTocId[e],u=d?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(a=d?.title)!==null&&a!==void 0?a:"",page:t&&l&&l.number!==t?t:void 0,prettyUrl:u?.replace(/^r\//,""),prettyUrlDuplicated:(i=s?.duplicatedPrettyUrls.has(u??""))!==null&&i!==void 0?i:!1,section:n}}async getAccurateNavigationData(e,t,n){return await this.getEnrichedToc(),this.getNavigationData(e,t,n)}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){let t=this.getTocNodeNow(e),n=[{tocId:t.tocId,title:t.title}],a=this.getTocNodeNow(t.parentTocId);for(;a;)n.unshift({tocId:a.tocId,title:a.title}),a=this.getTocNodeNow(a.parentTocId);return n}isFeatureAccessible(e,{session:t}){var n;if(!this.isFeatureAvailable(e))return!1;switch(e){case _e.FEEDBACK:return ut(t??[],$.FEEDBACK_USER);case _e.RATING:return ut(t??[],$.RATING_USER);case _e.PRINT:return ut(t??[],$.PRINT_USER);case _e.BOOKMARK:return!!t?.sessionAuthenticated;case _e.COLLECTIONS:return ut(t??[],$.COLLECTION_USER);case _e.PERSONAL_BOOKS:return ut(t??[],$.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var uo=class r extends lo{static async build(e){return new r(new no,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e){let t=await this.api.getMap(e);return this.fingerprint=t.fingerprint,t}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e){return await this.getMap(),this.api.getPages(e,this.fingerprint)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}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 po=class r{static build(e,t){return new r(xc(e.trim()||"context"),t??uo.build)}loaded(){return Yo(()=>this._loaded)}constructor(e,t,n){this.store=e,this.clusteringHelperProvider=n,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new ee(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 qt(()=>this.service)}async navigateToTopic(e,t,n){await this.loaded();let a=await this.awaitService(),i=await(n!=null?a.getPage(n):a.getPageByTocId(e??"root"));this.store.actions.currentPage(i),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(e,i),section:t})}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.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())}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([]),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var e,t,n,a,i;try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(s=>this.store.actions.configuration(s)),(t=this.service)===null||t===void 0?void 0:t.getMap().then(s=>this.store.actions.map(s)),(n=this.service)===null||n===void 0?void 0:n.getToc().then(s=>this.store.actions.toc(s)),(a=this.service)===null||a===void 0?void 0:a.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(i=this.service)===null||i===void 0?void 0:i.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof et)&&this.errorHandler(s)}}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 CustomEvent("clustering-helper-created"))}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 Zt(n,a,this.metadataForSwitchToRelatives,i)}}async navigateToRelativeTopicIfFound(e){var t,n,a;await this.loaded();let i=await qt(()=>{var u;return(u=this.store.getState().configuration)===null||u===void 0?void 0:u.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 u=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(u),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}};var wv={},wc=G`
|
|
54
|
-
`;var
|
|
51
|
+
`}update(e){var r,n,a,i,s;super.update(e),e.has("baseUrl")&&(T.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&T.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&T.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&T.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&T.actions.noCustom(this.noCustom),e.has("editorMode")&&T.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&T.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&T.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Ns.addContext(l)),e.has("openExternalDocumentInNewTab")&&T.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&T.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&T.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(T.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),T.actions.availableUiLocales((a=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&a!==void 0?a:[]),T.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())}};z.elementDefinitions={};z.styles=Rs;q([U()],z.prototype,"baseUrl",void 0);q([U()],z.prototype,"apiIntegrationIdentifier",void 0);q([U()],z.prototype,"uiLocale",void 0);q([Pe(null)],z.prototype,"availableUiLocales",void 0);q([Pe(null)],z.prototype,"metadataConfiguration",void 0);q([U({type:Boolean})],z.prototype,"editorMode",void 0);q([U({type:Boolean})],z.prototype,"noCustom",void 0);q([U({type:Boolean})],z.prototype,"openExternalDocumentInNewTab",void 0);q([U({converter:{fromAttribute(o){return o==="false"?!1:o==="true"||(o??!1)}}})],z.prototype,"noCustomComponent",void 0);q([U({type:Boolean})],z.prototype,"withManualResources",void 0);q([U({type:Boolean})],z.prototype,"navigatorOnline",void 0);q([U({type:Boolean})],z.prototype,"forcedOffline",void 0);q([U({type:Object})],z.prototype,"apiProvider",void 0);q([Pe([])],z.prototype,"messageContexts",void 0);q([Pe(void 0)],z.prototype,"session",void 0);q([kt()],z.prototype,"localesConfiguration",void 0);var kr=class extends ve{async listMySearches(){let e=T.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Dr=class extends ve{async listMyBookmarks(){let e=T.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Nd="ft-user-assets",Ur=Re.get({name:Nd,initialState:{savedSearches:void 0,bookmarks:void 0}}),Wn=class{constructor(){this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Dr,this.savedSearchesService=new kr,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=T.getState();se((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,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 r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ur.actions.bookmarks(r)}}},Ts=new Wn;var Hn=class{addCommand(e,r=!1){T.commands.add(e,r)}consumeCommand(e){return T.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Hn;var $n=class{highlightHtml(e,r,n){Jo(e,r,n)}};window.FluidTopicsHighlightHtmlService=new $n;var zn=class{isDate(e){var r,n,a,i;return(i=(a=((n=(r=T.getState().metadataConfiguration)===null||r===void 0?void 0:r.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,r){var n,a,i;return wt.format(e,(n=r?.locale)!==null&&n!==void 0?n:T.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(i=r?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new zn;Bt("ft-app-context")(z);var Fr=class extends ve{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,n){super(!1,r),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(r=>this.converter.convertPaginatedToc(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return nt((r=(e=T.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(a=>this.fetchMapRating(a)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(e){return(await this.getEnrichedToc()).nodeByTocId[e]}getTocNodeNow(e){var r;return(r=this.enrichedToc)===null||r===void 0?void 0:r.nodeByTocId[e]}getTocNodeNowByUrl(e){var r,n;let a=this.getMapNow();return a?.prettyUrl==e||`${a?.id}/root`===e?(r=this.enrichedToc)===null||r===void 0?void 0:r.toc[0]:(n=this.enrichedToc)===null||n===void 0?void 0:n.nodeByUrl[e]}async getPage(e){let r=await this.getEnrichedToc();return r.pages[e-1]||r.pages[0]}async getPageByTocId(e){let r=await this.getEnrichedToc();return r.pageByTocId[e]||r.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))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}getRelativesForTopicInMap(e,r,n){return this.cache.get("topic-relatives-"+[e,r,...n].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,n))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true`)}getLink(e,r,n){let a=this.getNavigationData(e,r,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,r,n){var a,i;e=e||"root";let s=this.enrichedToc,l=s?.pageByTocId[e],d=s?.nodeByTocId[e],f=d?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(a=d?.title)!==null&&a!==void 0?a:"",page:r&&l&&l.number!==r?r:void 0,prettyUrl:f?.replace(/^r\//,""),prettyUrlDuplicated:(i=s?.duplicatedPrettyUrls.has(f??""))!==null&&i!==void 0?i:!1,section:n}}async getAccurateNavigationData(e,r,n){return await this.getEnrichedToc(),this.getNavigationData(e,r,n)}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(r=>{var n;return r?{type:r.topics.type,rating:(n=r.topics)===null||n===void 0?void 0:n.ratings.find(a=>a.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,n){return this.makeRateTopicRequest(e,r,n).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=T.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,n){return this.makeTopicFeedbackRequest(e,r,n)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e){let r=this.getTocNodeNow(e),n=[{tocId:r.tocId,title:r.title}],a=this.getTocNodeNow(r.parentTocId);for(;a;)n.unshift({tocId:a.tocId,title:a.title}),a=this.getTocNodeNow(a.parentTocId);return n}isFeatureAccessible(e,{session:r}){var n;if(!this.isFeatureAvailable(e))return!1;switch(e){case Ie.FEEDBACK:return nt(r??[],W.FEEDBACK_USER);case Ie.RATING:return nt(r??[],W.RATING_USER);case Ie.PRINT:return nt(r??[],W.PRINT_USER);case Ie.BOOKMARK:return!!r?.sessionAuthenticated;case Ie.COLLECTIONS:return nt(r??[],W.COLLECTION_USER);case Ie.PERSONAL_BOOKS:return nt(r??[],W.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Mr=class o extends Fr{static async build(e){return new o(new Pr,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e){let r=await this.api.getMap(e);return this.fingerprint=r.fingerprint,r}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e){return await this.getMap(),this.api.getPages(e,this.fingerprint)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,r){let n={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(n)}fetchRelativesForTopicInMap(e,r,n){let a={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:n}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(a)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,n){return this.api.rateTopic(this.mapId,e,r,n)}makeTopicFeedbackRequest(e,r,n){return this.api.sendTopicFeedback(this.mapId,e,r,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 Br=class o{static build(e,r){return new o(As(e.trim()||"context"),r??Mr.build)}loaded(){return Oo(()=>this._loaded)}constructor(e,r,n){this.store=e,this.clusteringHelperProvider=n,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new X(10),this.initService(r)}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 Ft(()=>this.service)}async navigateToTopic(e,r,n){await this.loaded();let a=await this.awaitService(),i=await(n!=null?a.getPage(n):a.getPageByTocId(e??"root"));this.store.actions.currentPage(i),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(e,i),section:r})}resolveValidNonRootTocId(e,r){var n,a,i;let s=(n=e==="root"?void 0:e)!==null&&n!==void 0?n:r.rootTocId;return r.topics.includes(s)?s:(i=(a=r.topics[0])!==null&&a!==void 0?a:r.hiddenTopics[0])!==null&&i!==void 0?i:"root"}async navigateToPage(e){await this.loaded();let n=await(await this.awaitService()).getPage(e);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())}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([]),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var e,r,n,a,i;try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(s=>this.store.actions.configuration(s)),(r=this.service)===null||r===void 0?void 0:r.getMap().then(s=>this.store.actions.map(s)),(n=this.service)===null||n===void 0?void 0:n.getToc().then(s=>this.store.actions.toc(s)),(a=this.service)===null||a===void 0?void 0:a.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(i=this.service)===null||i===void 0?void 0:i.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof Ke)&&this.errorHandler(s)}}fetchRelatives(){var e,r,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?(r=this.service)===null||r===void 0||r.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 CustomEvent("clustering-helper-created"))}createClusteringHelper(){var e,r;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=(r=(e=T.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new Ut(n,a,this.metadataForSwitchToRelatives,i)}}async navigateToRelativeTopicIfFound(e){var r,n,a;await this.loaded();let i=await Ft(()=>{var f;return(f=this.store.getState().configuration)===null||f===void 0?void 0:f.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,i,[e]);if(!((a=(n=(r=d?.results)===null||r===void 0?void 0:r[0])===null||n===void 0?void 0:n.entries)===null||a===void 0)&&a[0]){let f=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(f),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}};var O0={},_s=j`
|
|
52
|
+
`;var Wr=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},Hr=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},$r=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},zr=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},jr=class extends Event{constructor(){super("ft-reader-map-not-found")}},Gr=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Vr=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Kr=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Zr=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}};var Q=function(o,e,r,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,n);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i},Td=o=>e=>+(e??"NaN")>0?+e:o,V=class extends De{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new X(5),this.navigationDebouncer=new X(10),this.mapLoadedEventDebouncer=new X(50),this.addStore(T)}render(){return lt`
|
|
55
53
|
${this.importStyleIfNeeded()}
|
|
56
54
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
57
|
-
`}importStyleIfNeeded(){var e,
|
|
55
|
+
`}importStyleIfNeeded(){var e,r;let n=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!n||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?H:lt`
|
|
58
56
|
<style>
|
|
59
57
|
@import "${n}"
|
|
60
58
|
</style>
|
|
61
|
-
`}get stateManager(){return this._stateManager==null&&(this._stateManager=
|
|
59
|
+
`}get stateManager(){return this._stateManager==null&&(this._stateManager=Br.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 r=e.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("href",r),document.head.append(n)}window.FluidTopicsReaderService=new Zr(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(r=>e.has(r))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var r,n;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let a=e.get("scrollTarget");a?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var i;return this.stateManager.service.getAccurateNavigationData(a.tocId,(i=this.currentPage)===null||i===void 0?void 0:i.number,a.section).then(s=>this.dispatchEvent(new $r(s)))})}(e.has("visibleTopics")||e.has("scrollTarget"))&&((n=this.scrollTarget)===null||n===void 0?void 0:n.tocId)==null&&Promise.all(this.visibleTopics.map(a=>{var i;return this.stateManager.service.getAccurateNavigationData(a,(i=this.currentPage)===null||i===void 0?void 0:i.number)})).then(a=>{let i=a.filter(s=>s!=null&&s.topicTitle!=="").map(s=>{var l;return{tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:(l=this.stateManager.service)===null||l===void 0?void 0:l.buildBreadcrumb(s.tocId)}});this.dispatchEvent(new Hr(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 Kr),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)})}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let r=e;r.status===401?this.dispatchEvent(new Gr):r.status===403?this.dispatchEvent(new Vr):r.status===404?this.dispatchEvent(new jr):this.dispatchEvent(new zr(e))}reloadBookmarks(){Ts.reloadBookmarks()}async reloadRating(){var e,r;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Wr(this.map,this.toc))})}};V.styles=_s;Q([me({store:T.name})],V.prototype,"baseUrl",void 0);Q([me({store:T.name})],V.prototype,"session",void 0);Q([U()],V.prototype,"mapId",void 0);Q([U()],V.prototype,"tocId",void 0);Q([U()],V.prototype,"section",void 0);Q([U()],V.prototype,"topicPivot",void 0);Q([U()],V.prototype,"searchInDocumentQuery",void 0);Q([U({type:Number,converter:{fromAttribute:Td()}})],V.prototype,"page",void 0);Q([me({store:"reader"})],V.prototype,"map",void 0);Q([me({store:"reader"})],V.prototype,"toc",void 0);Q([me({store:"reader"})],V.prototype,"visibleTopics",void 0);Q([me({store:"reader"})],V.prototype,"currentPage",void 0);Q([me({store:"reader"})],V.prototype,"scrollTarget",void 0);Q([U({attribute:!1})],V.prototype,"readerServiceProvider",void 0);Bt("ft-reader-context")(V);})();
|
|
62
60
|
/*! Bundled license information:
|
|
63
61
|
|
|
64
62
|
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|
|
@@ -97,27 +95,6 @@ lit-html/lit-html.js:
|
|
|
97
95
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
98
96
|
*)
|
|
99
97
|
|
|
100
|
-
@lit/reactive-element/css-tag.js:
|
|
101
|
-
(**
|
|
102
|
-
* @license
|
|
103
|
-
* Copyright 2019 Google LLC
|
|
104
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
105
|
-
*)
|
|
106
|
-
|
|
107
|
-
@lit/reactive-element/reactive-element.js:
|
|
108
|
-
(**
|
|
109
|
-
* @license
|
|
110
|
-
* Copyright 2017 Google LLC
|
|
111
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
112
|
-
*)
|
|
113
|
-
|
|
114
|
-
lit-html/lit-html.js:
|
|
115
|
-
(**
|
|
116
|
-
* @license
|
|
117
|
-
* Copyright 2017 Google LLC
|
|
118
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
119
|
-
*)
|
|
120
|
-
|
|
121
98
|
lit-element/lit-element.js:
|
|
122
99
|
(**
|
|
123
100
|
* @license
|
|
@@ -243,11 +220,4 @@ lit-html/directives/unsafe-html.js:
|
|
|
243
220
|
* Copyright 2017 Google LLC
|
|
244
221
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
245
222
|
*)
|
|
246
|
-
|
|
247
|
-
@lit/reactive-element/css-tag.js:
|
|
248
|
-
(**
|
|
249
|
-
* @license
|
|
250
|
-
* Copyright 2019 Google LLC
|
|
251
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
252
|
-
*)
|
|
253
223
|
*/
|