@fluid-topics/ft-reader-context 1.1.114 → 1.1.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-reader-context.min.js +19 -19
- package/package.json +4 -4
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
`)===0?L.substr(1,L.length):L}).forEach(function(L){var D=L.split(":"),P=D.shift().trim();if(P){var rr=D.join(":").trim();try{v.append(P,rr)}catch(po){console.warn("Response "+po.message)}}}),v}A.call(w.prototype);function M(m,v){if(!(this instanceof M))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=v.statusText===void 0?"":""+v.statusText,this.headers=new p(v.headers),this.url=v.url||"",this._initBody(m)}A.call(M.prototype),M.prototype.clone=function(){return new M(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},M.error=function(){var m=new M(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var U=[301,302,303,307,308];M.redirect=function(m,v){if(U.indexOf(v)===-1)throw new RangeError("Invalid status code");return new M(null,{status:v,headers:{location:m}})},t.DOMException=o.DOMException;try{new t.DOMException}catch{t.DOMException=function(v,R){this.message=v,this.name=R;var L=Error(v);this.stack=L.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function N(m,v){return new Promise(function(R,L){var D=new w(m,v);if(D.signal&&D.signal.aborted)return L(new t.DOMException("Aborted","AbortError"));var P=new XMLHttpRequest;function rr(){P.abort()}P.onload=function(){var G={statusText:P.statusText,headers:k(P.getAllResponseHeaders()||"")};D.url.indexOf("file://")===0&&(P.status<200||P.status>599)?G.status=200:G.status=P.status,G.url="responseURL"in P?P.responseURL:G.headers.get("X-Request-URL");var Be="response"in P?P.response:P.responseText;setTimeout(function(){R(new M(Be,G))},0)},P.onerror=function(){setTimeout(function(){L(new TypeError("Network request failed"))},0)},P.ontimeout=function(){setTimeout(function(){L(new TypeError("Network request timed out"))},0)},P.onabort=function(){setTimeout(function(){L(new t.DOMException("Aborted","AbortError"))},0)};function po(G){try{return G===""&&o.location.href?o.location.href:G}catch{return G}}if(P.open(D.method,po(D.url),!0),D.credentials==="include"?P.withCredentials=!0:D.credentials==="omit"&&(P.withCredentials=!1),"responseType"in P&&(i.blob?P.responseType="blob":i.arrayBuffer&&(P.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof p||o.Headers&&v.headers instanceof o.Headers)){var si=[];Object.getOwnPropertyNames(v.headers).forEach(function(G){si.push(l(G)),P.setRequestHeader(G,d(v.headers[G]))}),D.headers.forEach(function(G,Be){si.indexOf(Be)===-1&&P.setRequestHeader(Be,G)})}else D.headers.forEach(function(G,Be){P.setRequestHeader(Be,G)});D.signal&&(D.signal.addEventListener("abort",rr),P.onreadystatechange=function(){P.readyState===4&&D.signal.removeEventListener("abort",rr)}),P.send(typeof D._bodyInit>"u"?null:D._bodyInit)})}return N.polyfill=!0,o.fetch||(o.fetch=N,o.Headers=p,o.Request=w,o.Response=M),t.Headers=p,t.Request=w,t.Response=M,t.fetch=N,t}({})})(Kr);Kr.fetch.ponyfill=!0;delete Kr.fetch.polyfill;var St=Vr.fetch?Vr:Kr;$e=St.fetch;$e.default=St.fetch;$e.fetch=St.fetch;$e.Headers=St.Headers;$e.Request=St.Request;$e.Response=St.Response;Ls.exports=$e});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,o=window.customElements,i=new WeakMap,a=new WeakMap,s=new WeakMap,c=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(x,S){if(x=x.toLowerCase(),this._getDefinition(x)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${x}" has already been used with this registry`);if(this._definitionsByClass.get(S)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let w=S.prototype.attributeChangedCallback,I=new Set(S.observedAttributes||[]);g(S,I,w);let k={elementClass:S,connectedCallback:S.prototype.connectedCallback,disconnectedCallback:S.prototype.disconnectedCallback,adoptedCallback:S.prototype.adoptedCallback,attributeChangedCallback:w,formAssociated:S.formAssociated,formAssociatedCallback:S.prototype.formAssociatedCallback,formDisabledCallback:S.prototype.formDisabledCallback,formResetCallback:S.prototype.formResetCallback,formStateRestoreCallback:S.prototype.formStateRestoreCallback,observedAttributes:I};this._definitionsByTag.set(x,k),this._definitionsByClass.set(S,k);let M=t.call(o,x);M||(M=p(x),e.call(o,x,M)),this===window.customElements&&(s.set(S,k),k.standInClass=M);let U=this._awaitingUpgrade.get(x);if(U){this._awaitingUpgrade.delete(x);for(let m of U)a.delete(m),b(m,k,!0)}let N=this._whenDefinedPromises.get(x);return N!==void 0&&(N.resolve(S),this._whenDefinedPromises.delete(x)),S}upgrade(){C.push(this),o.upgrade.apply(o,arguments),C.pop()}get(x){return this._definitionsByTag.get(x)?.elementClass}_getDefinition(x){return this._definitionsByTag.get(x)}whenDefined(x){let S=this._getDefinition(x);if(S!==void 0)return Promise.resolve(S.elementClass);let w=this._whenDefinedPromises.get(x);return w===void 0&&(w={},w.promise=new Promise(I=>w.resolve=I),this._whenDefinedPromises.set(x,w)),w.promise}_upgradeWhenDefined(x,S,w){let I=this._awaitingUpgrade.get(S);I||this._awaitingUpgrade.set(S,I=new Set),w?I.add(x):I.delete(x)}};let l;window.HTMLElement=function(){let S=l;if(S)return l=void 0,S;let w=s.get(this.constructor);if(!w)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return S=Reflect.construct(r,[],w.standInClass),Object.setPrototypeOf(S,this.constructor.prototype),i.set(S,w),S},window.HTMLElement.prototype=r.prototype;let d=x=>x===document||x instanceof ShadowRoot,h=x=>{let S=x.getRootNode();if(!d(S)){let w=C[C.length-1];if(w instanceof CustomElementRegistry)return w;S=w.getRootNode(),d(S)||(S=c.get(S)?.getRootNode()||document)}return S.customElements},p=x=>class{static get formAssociated(){return!0}constructor(){let w=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(w,HTMLElement.prototype);let I=h(w)||window.customElements,k=I._getDefinition(x);return k?b(w,k):a.set(w,I),w}connectedCallback(){let w=i.get(this);w?w.connectedCallback&&w.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,x,!0)}disconnectedCallback(){let w=i.get(this);w?w.disconnectedCallback&&w.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,x,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let w=i.get(this);w&&w.formAssociated&&w?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let w=i.get(this);w?.formAssociated&&w?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let w=i.get(this);w?.formAssociated&&w?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let w=i.get(this);w?.formAssociated&&w?.formStateRestoreCallback?.apply(this,arguments)}},g=(x,S,w)=>{if(S.size===0||w===void 0)return;let I=x.prototype.setAttribute;I&&(x.prototype.setAttribute=function(U,N){let m=U.toLowerCase();if(S.has(m)){let v=this.getAttribute(m);I.call(this,m,N),w.call(this,m,v,N)}else I.call(this,m,N)});let k=x.prototype.removeAttribute;k&&(x.prototype.removeAttribute=function(U){let N=U.toLowerCase();if(S.has(N)){let m=this.getAttribute(N);k.call(this,N),w.call(this,N,m,null)}else k.call(this,N)});let M=x.prototype.toggleAttribute;M&&(x.prototype.toggleAttribute=function(U,N){let m=U.toLowerCase();if(S.has(m)){let v=this.getAttribute(m);M.call(this,m,N);let R=this.getAttribute(m);w.call(this,m,v,R)}else M.call(this,m,N)})},y=x=>{let S=Object.getPrototypeOf(x);if(S!==window.HTMLElement)return S===r?Object.setPrototypeOf(x,window.HTMLElement):y(S)},b=(x,S,w=!1)=>{Object.setPrototypeOf(x,S.elementClass.prototype),i.set(x,S),l=x;try{new S.elementClass}catch{y(S.elementClass),new S.elementClass}S.attributeChangedCallback&&S.observedAttributes.forEach(I=>{x.hasAttribute(I)&&S.attributeChangedCallback.call(x,I,null,x.getAttribute(I))}),w&&S.connectedCallback&&x.isConnected&&S.connectedCallback.call(x)},O=Element.prototype.attachShadow;Element.prototype.attachShadow=function(x){let S=O.apply(this,arguments);return x.customElements&&(S.customElements=x.customElements),S};let C=[document],E=(x,S,w=void 0)=>{let I=(w?Object.getPrototypeOf(w):x.prototype)[S];x.prototype[S]=function(){C.push(this);let k=I.apply(w||this,arguments);return k!==void 0&&c.set(k,this),C.pop(),k}};E(ShadowRoot,"createElement",document),E(ShadowRoot,"importNode",document),E(Element,"insertAdjacentHTML");let A=(x,S)=>{let w=Object.getOwnPropertyDescriptor(x.prototype,S);Object.defineProperty(x.prototype,S,{...w,set(I){C.push(this),w.set.call(this,I),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 x=new WeakMap,S=HTMLElement.prototype.attachInternals,w=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...U){let N=S.call(this,...U);return x.set(N,this),N},w.forEach(U=>{let N=window.ElementInternals.prototype,m=N[U];N[U]=function(...v){let R=x.get(this);if(i.get(R).formAssociated===!0)return m?.call(this,...v);throw new DOMException(`Failed to execute ${m} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class I extends Array{constructor(N){super(...N),this._elements=N}get value(){return this._elements.find(N=>N.checked===!0)?.value||""}}class k{constructor(N){let m=new Map;N.forEach((v,R)=>{let L=v.getAttribute("name"),D=m.get(L)||[];this[+R]=v,D.push(v),m.set(L,D)}),this.length=N.length,m.forEach((v,R)=>{v&&(v.length===1?this[R]=v[0]:this[R]=new I(v))})}namedItem(N){return this[N]}}let M=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let U=M.get.call(this,[]),N=[];for(let m of U){let v=i.get(m);(!v||v.formAssociated===!0)&&N.push(m)}return new k(N)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,o,i)=>{if(o!==null)try{e.bind(window.customElements)(t,o,i)}catch(a){console.info(t,o,i,a)}}}var Ro={};F(Ro,{CSSResult:()=>st,LitElement:()=>ye,ReactiveElement:()=>ce,_$LE:()=>$c,_$LH:()=>Fc,adoptStyles:()=>yr,css:()=>V,defaultConverter:()=>br,getCompatibleStyle:()=>Tt,html:()=>lt,isServer:()=>Pd,noChange:()=>Ae,notEqual:()=>So,nothing:()=>z,render:()=>Co,supportsAdoptingStyleSheets:()=>It,svg:()=>Uc,unsafeCSS:()=>_t});var or=globalThis,ir=or.ShadowRoot&&(or.ShadyCSS===void 0||or.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,li=Symbol(),ci=new WeakMap,nr=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==li)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(ir&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=ci.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&ci.set(t,e))}return e}toString(){return this.cssText}},ui=r=>new nr(typeof r=="string"?r:r+"",void 0,li);var mo=(r,e)=>{if(ir)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),i=or.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)}},ar=ir?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return ui(t)})(r):r;var{is:gc,defineProperty:yc,getOwnPropertyDescriptor:bc,getOwnPropertyNames:vc,getOwnPropertySymbols:xc,getPrototypeOf:Sc}=Object,sr=globalThis,di=sr.trustedTypes,Oc=di?di.emptyScript:"",wc=sr.reactiveElementPolyfillSupport,wt=(r,e)=>r,Et={toAttribute(r,e){switch(e){case Boolean:r=r?Oc: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}},cr=(r,e)=>!gc(r,e),fi={attribute:!0,type:String,converter:Et,reflect:!1,hasChanged:cr};Symbol.metadata??=Symbol("metadata"),sr.litPropertyMetadata??=new WeakMap;var We=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=fi){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,t);i!==void 0&&yc(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){let{get:i,set:a}=bc(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return i?.call(this)},set(s){let c=i?.call(this);a.call(this,s),this.requestUpdate(e,c,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??fi}static _$Ei(){if(this.hasOwnProperty(wt("elementProperties")))return;let e=Sc(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(wt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(wt("properties"))){let t=this.properties,o=[...vc(t),...xc(t)];for(let i of o)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,i]of t)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let i=this._$Eu(t,o);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)t.unshift(ar(i))}else e!==void 0&&t.push(ar(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$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 o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return mo(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,o){this._$AK(e,o)}_$EO(e,t){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Et).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Et;this._$Em=i,this[i]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,o,i=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??cr)(i?a:this[e],t))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.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[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[i,a]of o)a.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.C(i,this[i],a)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}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){}};We.elementStyles=[],We.shadowRootOptions={mode:"open"},We[wt("elementProperties")]=new Map,We[wt("finalized")]=new Map,wc?.({ReactiveElement:We}),(sr.reactiveElementVersions??=[]).push("2.0.2");var yo=globalThis,lr=yo.trustedTypes,pi=lr?lr.createPolicy("lit-html",{createHTML:r=>r}):void 0,bo="$lit$",me=`lit$${(Math.random()+"").slice(9)}$`,vo="?"+me,Ec=`<${vo}>`,je=document,ur=()=>je.createComment(""),Ct=r=>r===null||typeof r!="object"&&typeof r!="function",vi=Array.isArray,xi=r=>vi(r)||typeof r?.[Symbol.iterator]=="function",go=`[
|
|
3
|
-
\f\r]`,
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),gi=/'/g,yi=/"/g,Si=/^(?:script|style|textarea|title)$/i,Oi=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),vd=Oi(1),xd=Oi(2),X=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),bi=new WeakMap,ze=je.createTreeWalker(je,129);function wi(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return pi!==void 0?pi.createHTML(e):e}var Ei=(r,e)=>{let t=r.length-1,o=[],i,a=e===2?"<svg>":"",s=At;for(let c=0;c<t;c++){let l=r[c],d,h,p=-1,g=0;for(;g<l.length&&(s.lastIndex=g,h=s.exec(l),h!==null);)g=s.lastIndex,s===At?h[1]==="!--"?s=hi:h[1]!==void 0?s=mi:h[2]!==void 0?(Si.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=He):h[3]!==void 0&&(s=He):s===He?h[0]===">"?(s=i??At,p=-1):h[1]===void 0?p=-2:(p=s.lastIndex-h[2].length,d=h[1],s=h[3]===void 0?He:h[3]==='"'?yi:gi):s===yi||s===gi?s=He:s===hi||s===mi?s=At:(s=He,i=void 0);let y=s===He&&r[c+1].startsWith("/>")?" ":"";a+=s===At?l+Ec:p>=0?(o.push(d),l.slice(0,p)+bo+l.slice(p)+me+y):l+me+(p===-2?c:y)}return[wi(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),o]},Rt=class r{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let a=0,s=0,c=e.length-1,l=this.parts,[d,h]=Ei(e,t);if(this.el=r.createElement(d,o),ze.currentNode=this.el.content,t===2){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=ze.nextNode())!==null&&l.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let p of i.getAttributeNames())if(p.endsWith(bo)){let g=h[s++],y=i.getAttribute(p).split(me),b=/([.?@])?(.*)/.exec(g);l.push({type:1,index:a,name:b[2],strings:y,ctor:b[1]==="."?fr:b[1]==="?"?pr:b[1]==="@"?hr:Ke}),i.removeAttribute(p)}else p.startsWith(me)&&(l.push({type:6,index:a}),i.removeAttribute(p));if(Si.test(i.tagName)){let p=i.textContent.split(me),g=p.length-1;if(g>0){i.textContent=lr?lr.emptyScript:"";for(let y=0;y<g;y++)i.append(p[y],ur()),ze.nextNode(),l.push({type:2,index:++a});i.append(p[g],ur())}}}else if(i.nodeType===8)if(i.data===vo)l.push({type:2,index:a});else{let p=-1;for(;(p=i.data.indexOf(me,p+1))!==-1;)l.push({type:7,index:a}),p+=me.length-1}a++}}static createElement(e,t){let o=je.createElement("template");return o.innerHTML=e,o}};function Ve(r,e,t=r,o){if(e===X)return e;let i=o!==void 0?t._$Co?.[o]:t._$Cl,a=Ct(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(r),i._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=i:t._$Cl=i),i!==void 0&&(e=Ve(r,i._$AS(r,e.values),i,o)),e}var dr=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,i=(e?.creationScope??je).importNode(t,!0);ze.currentNode=i;let a=ze.nextNode(),s=0,c=0,l=o[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new Nt(a,a.nextSibling,this,e):l.type===1?d=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(d=new mr(a,this,e)),this._$AV.push(d),l=o[++c]}s!==l?.index&&(a=ze.nextNode(),s++)}return ze.currentNode=je,i}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},Nt=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,i){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=i,this._$Cv=i?.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=Ve(this,e,t),Ct(e)?e===H||e==null||e===""?(this._$AH!==H&&this._$AR(),this._$AH=H):e!==this._$AH&&e!==X&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):xi(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!==H&&Ct(this._$AH)?this._$AA.nextSibling.data=e:this.$(je.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Rt.createElement(wi(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(t);else{let a=new dr(i,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=bi.get(e.strings);return t===void 0&&bi.set(e.strings,t=new Rt(e)),t}T(e){vi(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,i=0;for(let a of e)i===t.length?t.push(o=new r(this.k(ur()),this.k(ur()),this,this.options)):o=t[i],o._$AI(a),i++;i<t.length&&(this._$AR(o&&o._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ke=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,i,a){this.type=1,this._$AH=H,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=H}_$AI(e,t=this,o,i){let a=this.strings,s=!1;if(a===void 0)e=Ve(this,e,t,0),s=!Ct(e)||e!==this._$AH&&e!==X,s&&(this._$AH=e);else{let c=e,l,d;for(e=a[0],l=0;l<a.length-1;l++)d=Ve(this,c[o+l],t,l),d===X&&(d=this._$AH[l]),s||=!Ct(d)||d!==this._$AH[l],d===H?e=H:e!==H&&(e+=(d??"")+a[l+1]),this._$AH[l]=d}s&&!i&&this.O(e)}O(e){e===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},fr=class extends Ke{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===H?void 0:e}},pr=class extends Ke{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==H)}},hr=class extends Ke{constructor(e,t,o,i,a){super(e,t,o,i,a),this.type=5}_$AI(e,t=this){if((e=Ve(this,e,t,0)??H)===X)return;let o=this._$AH,i=e===H&&o!==H||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==H&&(o===H||i);i&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},mr=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Ve(this,e)}},Ai={j:bo,P:me,A:vo,C:1,M:Ei,L:dr,R:xi,V:Ve,D:Nt,I:Ke,H:pr,N:hr,U:fr,B:mr},Ac=yo.litHtmlPolyfillSupport;Ac?.(Rt,Nt),(yo.litHtmlVersions??=[]).push("3.1.0");var gr=globalThis,It=gr.ShadowRoot&&(gr.ShadyCSS===void 0||gr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,xo=Symbol(),Ci=new WeakMap,st=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==xo)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(It&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=Ci.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Ci.set(t,e))}return e}toString(){return this.cssText}},_t=r=>new st(typeof r=="string"?r:r+"",void 0,xo),V=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((o,i,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[a+1],r[0]);return new st(t,r,xo)},yr=(r,e)=>{if(It)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),i=gr.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)}},Tt=It?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return _t(t)})(r):r;var{is:Cc,defineProperty:Rc,getOwnPropertyDescriptor:Nc,getOwnPropertyNames:Ic,getOwnPropertySymbols:_c,getPrototypeOf:Tc}=Object,vr=globalThis,Ri=vr.trustedTypes,Pc=Ri?Ri.emptyScript:"",Lc=vr.reactiveElementPolyfillSupport,Pt=(r,e)=>r,br={toAttribute(r,e){switch(e){case Boolean:r=r?Pc: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}},So=(r,e)=>!Cc(r,e),Ni={attribute:!0,type:String,converter:br,reflect:!1,hasChanged:So};Symbol.metadata??=Symbol("metadata"),vr.litPropertyMetadata??=new WeakMap;var ce=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=Ni){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,t);i!==void 0&&Rc(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){let{get:i,set:a}=Nc(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return i?.call(this)},set(s){let c=i?.call(this);a.call(this,s),this.requestUpdate(e,c,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ni}static _$Ei(){if(this.hasOwnProperty(Pt("elementProperties")))return;let e=Tc(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,o=[...Ic(t),..._c(t)];for(let i of o)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,i]of t)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let i=this._$Eu(t,o);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)t.unshift(Tt(i))}else e!==void 0&&t.push(Tt(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$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 o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return yr(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,o){this._$AK(e,o)}_$EO(e,t){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:br).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:br;this._$Em=i,this[i]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,o,i=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??So)(i?a:this[e],t))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.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[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[i,a]of o)a.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.C(i,this[i],a)}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}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){}};ce.elementStyles=[],ce.shadowRootOptions={mode:"open"},ce[Pt("elementProperties")]=new Map,ce[Pt("finalized")]=new Map,Lc?.({ReactiveElement:ce}),(vr.reactiveElementVersions??=[]).push("2.0.2");var wo=globalThis,xr=wo.trustedTypes,Ii=xr?xr.createPolicy("lit-html",{createHTML:r=>r}):void 0,Eo="$lit$",ge=`lit$${(Math.random()+"").slice(9)}$`,Ao="?"+ge,kc=`<${Ao}>`,qe=document,kt=()=>qe.createComment(""),Ut=r=>r===null||typeof r!="object"&&typeof r!="function",Ui=Array.isArray,Fi=r=>Ui(r)||typeof r?.[Symbol.iterator]=="function",Oo=`[
|
|
5
|
-
\f\r]`,
|
|
6
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Pi=/'/g,Li=/"/g,Mi=/^(?:script|style|textarea|title)$/i,Di=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),lt=Di(1),Uc=Di(2),Ae=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),ki=new WeakMap,Ze=qe.createTreeWalker(qe,129);function $i(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ii!==void 0?Ii.createHTML(e):e}var Bi=(r,e)=>{let t=r.length-1,o=[],i,a=e===2?"<svg>":"",s=Lt;for(let c=0;c<t;c++){let l=r[c],d,h,p=-1,g=0;for(;g<l.length&&(s.lastIndex=g,h=s.exec(l),h!==null);)g=s.lastIndex,s===Lt?h[1]==="!--"?s=_i:h[1]!==void 0?s=Ti:h[2]!==void 0?(Mi.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Ge):h[3]!==void 0&&(s=Ge):s===Ge?h[0]===">"?(s=i??Lt,p=-1):h[1]===void 0?p=-2:(p=s.lastIndex-h[2].length,d=h[1],s=h[3]===void 0?Ge:h[3]==='"'?Li:Pi):s===Li||s===Pi?s=Ge:s===_i||s===Ti?s=Lt:(s=Ge,i=void 0);let y=s===Ge&&r[c+1].startsWith("/>")?" ":"";a+=s===Lt?l+kc:p>=0?(o.push(d),l.slice(0,p)+Eo+l.slice(p)+ge+y):l+ge+(p===-2?c:y)}return[$i(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),o]},Ft=class r{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let a=0,s=0,c=e.length-1,l=this.parts,[d,h]=Bi(e,t);if(this.el=r.createElement(d,o),Ze.currentNode=this.el.content,t===2){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(i=Ze.nextNode())!==null&&l.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let p of i.getAttributeNames())if(p.endsWith(Eo)){let g=h[s++],y=i.getAttribute(p).split(ge),b=/([.?@])?(.*)/.exec(g);l.push({type:1,index:a,name:b[2],strings:y,ctor:b[1]==="."?Or:b[1]==="?"?wr:b[1]==="@"?Er:Je}),i.removeAttribute(p)}else p.startsWith(ge)&&(l.push({type:6,index:a}),i.removeAttribute(p));if(Mi.test(i.tagName)){let p=i.textContent.split(ge),g=p.length-1;if(g>0){i.textContent=xr?xr.emptyScript:"";for(let y=0;y<g;y++)i.append(p[y],kt()),Ze.nextNode(),l.push({type:2,index:++a});i.append(p[g],kt())}}}else if(i.nodeType===8)if(i.data===Ao)l.push({type:2,index:a});else{let p=-1;for(;(p=i.data.indexOf(ge,p+1))!==-1;)l.push({type:7,index:a}),p+=ge.length-1}a++}}static createElement(e,t){let o=qe.createElement("template");return o.innerHTML=e,o}};function Ye(r,e,t=r,o){if(e===Ae)return e;let i=o!==void 0?t._$Co?.[o]:t._$Cl,a=Ut(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(r),i._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=i:t._$Cl=i),i!==void 0&&(e=Ye(r,i._$AS(r,e.values),i,o)),e}var Sr=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,i=(e?.creationScope??qe).importNode(t,!0);Ze.currentNode=i;let a=Ze.nextNode(),s=0,c=0,l=o[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new ct(a,a.nextSibling,this,e):l.type===1?d=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(d=new Ar(a,this,e)),this._$AV.push(d),l=o[++c]}s!==l?.index&&(a=Ze.nextNode(),s++)}return Ze.currentNode=qe,i}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},ct=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,i){this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=i,this._$Cv=i?.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=Ye(this,e,t),Ut(e)?e===z||e==null||e===""?(this._$AH!==z&&this._$AR(),this._$AH=z):e!==this._$AH&&e!==Ae&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Fi(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.$(qe.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Ft.createElement($i(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(t);else{let a=new Sr(i,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=ki.get(e.strings);return t===void 0&&ki.set(e.strings,t=new Ft(e)),t}T(e){Ui(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,i=0;for(let a of e)i===t.length?t.push(o=new r(this.k(kt()),this.k(kt()),this,this.options)):o=t[i],o._$AI(a),i++;i<t.length&&(this._$AR(o&&o._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Je=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,i,a){this.type=1,this._$AH=z,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=z}_$AI(e,t=this,o,i){let a=this.strings,s=!1;if(a===void 0)e=Ye(this,e,t,0),s=!Ut(e)||e!==this._$AH&&e!==Ae,s&&(this._$AH=e);else{let c=e,l,d;for(e=a[0],l=0;l<a.length-1;l++)d=Ye(this,c[o+l],t,l),d===Ae&&(d=this._$AH[l]),s||=!Ut(d)||d!==this._$AH[l],d===z?e=z:e!==z&&(e+=(d??"")+a[l+1]),this._$AH[l]=d}s&&!i&&this.O(e)}O(e){e===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Or=class extends Je{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===z?void 0:e}},wr=class extends Je{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==z)}},Er=class extends Je{constructor(e,t,o,i,a){super(e,t,o,i,a),this.type=5}_$AI(e,t=this){if((e=Ye(this,e,t,0)??z)===Ae)return;let o=this._$AH,i=e===z&&o!==z||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==z&&(o===z||i);i&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ar=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Ye(this,e)}},Fc={j:Eo,P:ge,A:Ao,C:1,M:Bi,L:Sr,R:Fi,V:Ye,D:ct,I:Je,H:wr,N:Er,U:Or,B:Ar},Mc=wo.litHtmlPolyfillSupport;Mc?.(Ft,ct),(wo.litHtmlVersions??=[]).push("3.1.0");var Co=(r,e,t)=>{let o=t?.renderBefore??e,i=o._$litPart$;if(i===void 0){let a=t?.renderBefore??null;o._$litPart$=i=new ct(e.insertBefore(kt(),a),a,void 0,t??{})}return i._$AI(r),i};var ye=class extends ce{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=Co(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ae}};ye._$litElement$=!0,ye.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ye});var Dc=globalThis.litElementPolyfillSupport;Dc?.({LitElement:ye});var $c={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Pd=!1;var Io={};F(Io,{customElement:()=>Bc,eventOptions:()=>Hc,property:()=>T,query:()=>zc,queryAll:()=>Vc,queryAssignedElements:()=>Gc,queryAssignedNodes:()=>Zc,queryAsync:()=>Kc,standardProperty:()=>Wi,state:()=>No});var Bc=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)};var Wc={attribute:!0,type:String,converter:Et,reflect:!1,hasChanged:cr},Wi=(r=Wc,e,t)=>{let{kind:o,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(t.name,r),o==="accessor"){let{name:s}=t;return{set(c){let l=e.get.call(this);e.set.call(this,c),this.requestUpdate(s,l,r)},init(c){return c!==void 0&&this.C(s,void 0,r),c}}}if(o==="setter"){let{name:s}=t;return function(c){let l=this[s];e.call(this,c),this.requestUpdate(s,l,r)}}throw Error("Unsupported decorator location: "+o)};function T(r){return(e,t)=>typeof t=="object"?Wi(r,e,t):((o,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,s?{...o,wrapped:!0}:o),s?Object.getOwnPropertyDescriptor(i,a):void 0})(r,e,t)}function No(r){return T({...r,state:!0,attribute:!1})}function Hc(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var ne=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function zc(r,e){return(t,o,i)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:c}=typeof o=="object"?t:i??(()=>{let l=Symbol();return{get(){return this[l]},set(d){this[l]=d}}})();return ne(t,o,{get(){let l=s.call(this);return l===void 0&&(l=a(this),(l!==null||this.hasUpdated)&&c.call(this,l)),l}})}return ne(t,o,{get(){return a(this)}})}}var jc;function Vc(r){return(e,t)=>ne(e,t,{get(){return(this.renderRoot??(jc??=document.createDocumentFragment())).querySelectorAll(r)}})}function Kc(r){return(e,t)=>ne(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function Gc(r){return(e,t)=>{let{slot:o,selector:i}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return ne(e,t,{get(){let s=this.renderRoot?.querySelector(a),c=s?.assignedElements(r)??[];return i===void 0?c:c.filter(l=>l.matches(i))}})}}function Zc(r){return(e,t)=>{let{slot:o}=r??{},i="slot"+(o?`[name=${o}]`:":not([name])");return ne(e,t,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(r)??[]}})}}var _o={};F(_o,{repeat:()=>Jc});var Ce={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Re=r=>(...e)=>({_$litDirective$:r,values:e}),le=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{D:qc}=Ai;var Hi=()=>document.createComment(""),ut=(r,e,t)=>{let o=r._$AA.parentNode,i=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=o.insertBefore(Hi(),i),s=o.insertBefore(Hi(),i);t=new qc(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,c=s!==r;if(c){let l;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(l=r._$AU)!==s._$AU&&t._$AP(l)}if(a!==i||c){let l=t._$AA;for(;l!==a;){let d=l.nextSibling;o.insertBefore(l,i),l=d}}}return t},Ne=(r,e,t=r)=>(r._$AI(e,t),r),Yc={},zi=(r,e=Yc)=>r._$AH=e,ji=r=>r._$AH,Cr=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let o=e.nextSibling;e.remove(),e=o}};var Vi=(r,e,t)=>{let o=new Map;for(let i=e;i<=t;i++)o.set(r[i],i);return o},Jc=Re(class extends le{constructor(r){if(super(r),r.type!==Ce.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);let i=[],a=[],s=0;for(let c of r)i[s]=o?o(c,s):s,a[s]=t(c,s),s++;return{values:a,keys:i}}render(r,e,t){return this.ht(r,e,t).values}update(r,[e,t,o]){let i=ji(r),{values:a,keys:s}=this.ht(e,t,o);if(!Array.isArray(i))return this.dt=s,a;let c=this.dt??=[],l=[],d,h,p=0,g=i.length-1,y=0,b=a.length-1;for(;p<=g&&y<=b;)if(i[p]===null)p++;else if(i[g]===null)g--;else if(c[p]===s[y])l[y]=Ne(i[p],a[y]),p++,y++;else if(c[g]===s[b])l[b]=Ne(i[g],a[b]),g--,b--;else if(c[p]===s[b])l[b]=Ne(i[p],a[b]),ut(r,l[b+1],i[p]),p++,b--;else if(c[g]===s[y])l[y]=Ne(i[g],a[y]),ut(r,i[p],i[g]),g--,y++;else if(d===void 0&&(d=Vi(s,y,b),h=Vi(c,p,g)),d.has(c[p]))if(d.has(c[g])){let O=h.get(s[y]),C=O!==void 0?i[O]:null;if(C===null){let E=ut(r,i[p]);Ne(E,a[y]),l[y]=E}else l[y]=Ne(C,a[y]),ut(r,i[p],C),i[O]=null;y++}else Cr(i[g]),g--;else Cr(i[p]),p++;for(;y<=b;){let O=ut(r,l[b+1]);Ne(O,a[y]),l[y++]=O}for(;p<=g;){let O=i[p++];O!==null&&Cr(O)}return this.dt=s,zi(r,l),X}});var To={};F(To,{classMap:()=>Xc});var Xc=Re(class extends le{constructor(r){if(super(r),r.type!==Ce.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(o=>o!=="")));for(let o in e)e[o]&&!this.st?.has(o)&&this.it.add(o);return this.render(e)}let t=r.element.classList;for(let o of this.it)o in e||(t.remove(o),this.it.delete(o));for(let o in e){let i=!!e[o];i===this.it.has(o)||this.st?.has(o)||(i?(t.add(o),this.it.add(o)):(t.remove(o),this.it.delete(o)))}return X}});var Po={};F(Po,{styleMap:()=>el});var Ki="important",Qc=" !"+Ki,el=Re(class extends le{constructor(r){if(super(r),r.type!==Ce.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((e,t)=>{let o=r[t];return o==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(r,[e]){let{style:t}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(e)),this.render(e);for(let o of this.ut)e[o]==null&&(this.ut.delete(o),o.includes("-")?t.removeProperty(o):t[o]=null);for(let o in e){let i=e[o];if(i!=null){this.ut.add(o);let a=typeof i=="string"&&i.endsWith(Qc);o.includes("-")||a?t.setProperty(o,a?i.slice(0,-11):i,a?Ki:""):t[o]=i}}return X}});var Lo={};F(Lo,{UnsafeHTMLDirective:()=>dt,unsafeHTML:()=>tl});var dt=class extends le{constructor(e){if(super(e),this.et=H,e.type!==Ce.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===H||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:[]}}};dt.directiveName="unsafeHTML",dt.resultType=1;var tl=Re(dt);var Fo={};F(Fo,{CacheRegistry:()=>ue});var Uo={};F(Uo,{CancelablePromise:()=>ft,CanceledPromiseError:()=>Xe,cancelable:()=>ko});var Xe=class extends Error{constructor(e,t,o){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=o}},ft=class extends Promise{constructor(e){super((t,o)=>e(i=>{this.isCanceled?o(new Xe("Promise has been canceled",i)):t(i)},i=>{this.isCanceled?o(new Xe("Promise has been canceled",void 0,i)):o(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},ko=r=>new ft((e,t)=>r.then(e).catch(t));var ue=class{constructor(){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(){for(let e in this.content)this.clear(e)}clear(e){this.finalContent.has(e)||this.forceClear(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,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,o){if(this.content[e]===void 0){if(t=t??this.loaders[e],t==null)throw new Error("Unknown cache key "+e);let i=ko(t());return this.content[e]=i,i.then(a=>(this.content[e]=a,o!=null&&(this.clearClearTimeout(e),this.clearTimeouts[e]=window.setTimeout(()=>this.clear(e),o)),a))}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 Mo={};F(Mo,{ClusteringHelper:()=>Mt});var Mt=class r{constructor(e,t,o,i){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=o,this.metadataDescriptors=i}static extractResultMetadata(e,t){var o,i;let a=((i=(o=e?.map)!==null&&o!==void 0?o:e?.document)!==null&&i!==void 0?i:e?.topic).metadata;return t==null?r.flattenMetadata(a):r.flattenMetadata(a.find(s=>s.key===t))}static flattenMetadata(e){if(Array.isArray(e))return e.map(o=>r.flattenMetadata(o)).filter(o=>o!=null);let t=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!t))if(t){let o=[],i=[];return e.hierarchicalValues.forEach(a=>{o.push(a.join(" > ")),a.length>2?i.push(`... > ${a[a.length-1]}`):i.push(a.join(" > "))}),{key:e.key,label:e.label,value:o.join(", "),displayValue:i.join(", ")}}else{let o=e.values.join(", ");return{key:e.key,label:e.label,value:o,displayValue:o}}}computeClustersItemsForMetadata(e,t,o="No value"){var i,a;let s=r.extractResultMetadata(this.selectedResult,e),c=(i=s?.label)!==null&&i!==void 0?i:(a=this.getMetadataDescriptor(e))===null||a===void 0?void 0:a.label;return this.allResults.map(d=>r.extractResultMetadata(d,e)).map(d=>d??{key:e,label:c,value:void 0,displayValue:o}).filter(d=>d.value!=s?.value).filter((d,h,p)=>p.findIndex(g=>g.value===d.value)===h).map(d=>({result:this.findBestResultForMetadataValue(e,d.value),metadata:d})).sort((d,h)=>this.compareMetadata(d.metadata.value,h.metadata.value,e,t))}compareMetadata(e,t,o,i){if(e==null)return-1;if(t==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",c=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let l=e.localeCompare(t,i,{numeric:!0});return c?l*-1:l}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let o=this.allResults.filter(l=>{var d;return((d=r.extractResultMetadata(l,e))===null||d===void 0?void 0:d.value)==t}),a=[...r.extractResultMetadata(this.selectedResult).filter(l=>this.clusteringMetadata.has(l.key)).filter(l=>l.key!==e)],s,c=-1;for(let l of o){let d=this.countMatchingMetadata(l,a);if(d>c&&(c=d,s=l,d===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata(e).filter(o=>t.some(i=>i.key===o.key&&i.value===o.value)).length}};var Do={};F(Do,{Debouncer:()=>Q});var Q=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,o)=>{this.resolvePromise=t,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let o=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(t=this.resolvePromise)!==null&&t!==void 0?t:()=>null;this.clearPromise();for(let s of o)try{await s()}catch(c){i(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ho={};F(Ho,{customElement:()=>Bt,isNumber:()=>qi,jsonProperty:()=>Ie,optionalNumberProperty:()=>al});var Wo={};F(Wo,{dateReviver:()=>rl,deepEqual:()=>ie,delay:()=>Rr,eventPathContainsMatchingElement:()=>nl,flatDeep:()=>Gi,hasChanged:()=>$t,last:()=>il,minmax:()=>Bo,parseDate:()=>Zi,waitFor:()=>Dt,waitUntil:()=>$o});var Rr=r=>new Promise(e=>setTimeout(e,r));async function $o(r,e=10,t=2e4){await Dt(async()=>await r()||void 0,e,t)}async function Dt(r,e=10,t=2e4){let o=await r(),i,a;for(i=a=performance.now();o==null&&(!t||a-i<t);)await Rr(e),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function Gi(r,e){return r.flatMap(t=>[t,...Gi(e(t),e)])}function rl(...r){return function(e,t){return r.includes(e)?Zi(t):t}}function Zi(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,o,i)=>t+o+":"+i),new Date(r)}function ol(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,o,i;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(o=t;o--!==0;)if(!ie(r[o],e[o]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;for(o of r.entries())if(!ie(o[1],e.get(o[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();if(i=Object.keys(r),t=i.length,t!==Object.keys(e).length)return!1;for(o=t;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[o]))return!1;for(o=t;o--!==0;){var a=i[o];if(!ie(r[a],e[a]))return!1}return!0}return r!==r&&e!==e}function ie(r,e){try{return ol(r,e)}catch{return!1}}function $t(r,e){return!ie(r,e)}function nl(r,e,t=window.document.body){if(e.length>0){let o=r.composedPath();for(let i of o){if(i===t)return!1;if(i.matches&&e.some(a=>i.matches(a)))return!0}}return!1}function Bo(r,e,t){return Math.min(Math.max(r,e),t)}function il(r){return r[r.length-1]}var Bt=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)};function Ie(r,e){let t=()=>JSON.parse(JSON.stringify(r));return T({type:Object,converter:{fromAttribute:o=>{if(o==null)return t();try{return JSON.parse(o)}catch{return t()}},toAttribute:o=>JSON.stringify(o)},hasChanged:$t,...e??{}})}function al(r){return T({type:Object,converter:{fromAttribute:e=>{if(e!=null)return qi(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...r??{}})}function qi(r){return!isNaN(parseFloat(r))}var Ko={};F(Ko,{designSystemVariables:()=>Ul});var Vo={};F(Vo,{DesignSystemFamily:()=>Wt,DesignSystemSize:()=>Ht,FtCssVariableFactory:()=>n,badge:()=>hl,banner:()=>pl,breadcrumb:()=>ml,button:()=>ll,chart:()=>Nl,checkbox:()=>_l,chip:()=>dl,chipChoice:()=>ul,collapsible:()=>Cl,comboboxMultiSelect:()=>El,comboboxSingleSelect:()=>wl,drawer:()=>bl,floatingMenu:()=>Ol,foundation:()=>u,link:()=>fl,modal:()=>yl,notice:()=>Il,notification:()=>Ll,pageHeader:()=>gl,popover:()=>Al,radio:()=>Pl,resolveFamilyClass:()=>zo,resolveSizeClass:()=>jo,semantic:()=>f,setVariable:()=>Nr,switch_:()=>Rl,tabs:()=>vl,textArea:()=>Sl,textInput:()=>xl,toggle:()=>Tl,tooltip:()=>kl,typographies:()=>sl,typographyBody1Medium:()=>ta,typographyBody1Regular:()=>ea,typographyBody1Semibold:()=>ra,typographyBody2Medium:()=>na,typographyBody2MediumUnderline:()=>ia,typographyBody2Regular:()=>oa,typographyBody2Semibold:()=>aa,typographyCaption1Bold:()=>ma,typographyCaption1Medium:()=>pa,typographyCaption1Semibold:()=>ha,typographyCaption2Bold:()=>ba,typographyCaption2Medium:()=>ga,typographyCaption2Semibold:()=>ya,typographyCaption3Bold:()=>Sa,typographyCaption3Medium:()=>va,typographyCaption3Semibold:()=>xa,typographyDisplay:()=>Yi,typographyLabel1Bold:()=>la,typographyLabel1Medium:()=>sa,typographyLabel1Semibold:()=>ca,typographyLabel2Bold:()=>fa,typographyLabel2Medium:()=>ua,typographyLabel2Semibold:()=>da,typographyTitle1:()=>Ji,typographyTitle2:()=>Xi,typographyTitle3:()=>Qi,typographyVariants:()=>cl});var be=r=>typeof r=="string"?_t(r):r,n=class{static create(e,t,o,i){let a=c=>be(c??i),s=V`var(${be(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=o,s.defaultValue=i,s.defaultCssValue=a,s.get=c=>V`var(${be(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(e,t,o,i){let a=c=>o.get(c??i),s=V`var(${be(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=o.category,s.fallbackVariable=o,s.defaultValue=i,s.defaultCssValue=a,s.get=c=>V`var(${be(e)}, ${a(c)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>i??o.lastResortDefaultValue(),s}static external(e,t){let o=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):be(a??e.lastResortDefaultValue()),i=V`var(${be(e.name)}, ${o(e.defaultValue)})`;return i.name=e.name,i.category=e.category,i.fallbackVariable=e.fallbackVariable,i.defaultValue=e.defaultValue,i.context=t,i.defaultCssValue=o,i.get=a=>V`var(${be(e.name)}, ${o(a)})`,i.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};function Nr(r,e){return be(`${r.name}: ${e}`)}var u={colorWhite:n.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:n.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:n.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:n.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:n.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:n.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:n.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:n.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:n.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:n.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:n.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:n.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:n.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:n.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:n.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:n.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:n.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:n.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:n.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:n.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:n.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:n.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:n.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:n.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:n.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:n.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:n.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:n.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:n.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:n.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:n.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:n.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:n.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:n.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:n.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:n.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:n.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:n.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:n.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:n.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:n.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:n.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:n.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:n.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:n.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:n.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:n.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:n.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:n.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:n.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:n.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:n.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:n.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:n.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:n.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:n.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:n.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:n.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:n.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:n.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:n.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:n.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:n.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:n.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:n.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:n.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:n.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:n.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:n.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:n.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:n.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:n.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:n.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:n.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:n.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:n.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:n.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:n.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:n.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:n.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:n.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:n.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:n.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:n.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:n.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:n.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:n.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:n.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:n.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:n.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:n.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:n.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:n.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:n.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:n.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:n.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:n.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:n.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:n.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:n.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:n.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:n.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:n.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:n.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:n.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:n.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:n.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:n.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:n.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:n.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:n.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:n.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:n.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:n.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:n.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:n.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:n.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:n.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:n.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:n.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:n.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:n.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:n.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:n.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:n.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:n.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:n.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:n.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:n.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:n.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:n.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:n.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:n.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:n.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:n.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:n.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:n.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:n.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:n.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:n.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:n.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:n.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:n.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:n.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:n.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:n.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:n.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:n.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:n.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:n.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:n.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:n.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:n.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:n.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:n.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:n.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:n.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:n.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:n.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:n.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:n.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:n.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:n.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:n.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:n.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:n.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:n.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:n.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:n.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:n.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:n.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:n.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:n.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:n.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:n.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:n.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:n.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:n.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:n.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:n.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:n.create("--ft-opacity-0","","NUMBER","0"),opacity8:n.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:n.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:n.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:n.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:n.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:n.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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)")},Yi={fontFamily:n.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:n.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:n.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-display-textCase","","UNKNOWN","none")},Ji={fontFamily:n.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:n.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:n.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Xi={fontFamily:n.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:n.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:n.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Qi={fontFamily:n.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:n.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:n.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:n.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},ea={fontFamily:n.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:n.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:n.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},ta={fontFamily:n.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:n.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},ra={fontFamily:n.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:n.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},oa={fontFamily:n.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:n.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},na={fontFamily:n.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},ia={fontFamily:n.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:n.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:n.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},aa={fontFamily:n.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},sa={fontFamily:n.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},ca={fontFamily:n.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},la={fontFamily:n.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},ua={fontFamily:n.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},da={fontFamily:n.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},fa={fontFamily:n.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},pa={fontFamily:n.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},ha={fontFamily:n.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},ma={fontFamily:n.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},ga={fontFamily:n.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:n.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},ya={fontFamily:n.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:n.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},ba={fontFamily:n.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:n.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},va={fontFamily:n.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:n.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},xa={fontFamily:n.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:n.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},Sa={fontFamily:n.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:n.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},sl={display:Yi,"title-1":Ji,"title-2":Xi,"title-3":Qi,"body-1-regular":ea,"body-1-medium":ta,"body-1-semibold":ra,"body-2-regular":oa,"body-2-medium":na,"body-2-medium-underline":ia,"body-2-semibold":aa,"label-1-medium":sa,"label-1-semibold":ca,"label-1-bold":la,"label-2-medium":ua,"label-2-semibold":da,"label-2-bold":fa,"caption-1-medium":pa,"caption-1-semibold":ha,"caption-1-bold":ma,"caption-2-medium":ga,"caption-2-semibold":ya,"caption-2-bold":ba,"caption-3-medium":va,"caption-3-semibold":xa,"caption-3-bold":Sa},cl=["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 f={backgroundActionPrimary:n.extend("--ft-background-action-primary","Used as backgorund of primary action components.",u.colorBrand0),backgroundErrorSubtle:n.extend("--ft-background-error-subtle","Used as background of subtle error components.",u.colorRed10),backgroundInfoSubtle:n.extend("--ft-background-info-subtle","Used as background of subtle information components.",u.colorCyan10),backgroundWarningSubtle:n.extend("--ft-background-warning-subtle","Used as background of subtle information components.",u.colorOrange10),backgroundSuccessSubtle:n.extend("--ft-background-success-subtle","Used as background of subtle success components.",u.colorGreen10),backgroundGlobalSurface:n.extend("--ft-background-global-surface","Used as app background.",u.colorWhite),backgroundGlobalOnSurface:n.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",u.colorGray10),backgroundGlobalOnSurfaceDark:n.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",u.colorGray30),contentActionPrimary:n.extend("--ft-content-action-primary","Used on label of primary action on light surface.",u.colorBrand0),contentWarningPrimary:n.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",u.colorOrange200),contentWarningIconOnly:n.extend("--ft-content-warning-icon-only","Used on warning status icons alone",u.colorOrange0),contentErrorPrimary:n.extend("--ft-content-error-primary","Used on label of error messages on light surface.",u.colorRed0),contentErrorIconOnly:n.extend("--ft-content-error-icon-only","Used on error status icons alone",u.colorRed70),contentInfoPrimary:n.extend("--ft-content-info-primary","Used on label of information messages on light surface.",u.colorCyan200),contentInfoIconOnly:n.extend("--ft-content-info-icon-only","Used on info status icons alone",u.colorCyan0),contentSuccessPrimary:n.extend("--ft-content-success-primary","Used on label of success messages on light surface.",u.colorGreen200),contentSuccessIconOnly:n.extend("--ft-content-success-icon-only","Used on success status icons alone",u.colorGreen0),contentGlobalPrimary:n.extend("--ft-content-global-primary","Used for main content on the page.",u.colorGray500),contentGlobalSecondary:n.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
7
|
-
Also for action icons.`,u.colorGray200),contentGlobalSubtle:n.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",u.colorGray0),contentGlobalOnColor:n.extend("--ft-content-global-on-color","Used for content on a dominant color.",u.colorWhite),borderActionPrimary:n.extend("--ft-border-action-primary","Used as border for primary action components.",u.colorBrand0),borderActionFocusRing:n.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",u.colorCyan0),borderWarningPrimary:n.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",u.colorOrange200),borderWarningSubtle:n.extend("--ft-border-warning-subtle","Used as border for warning components.",u.colorOrange30),borderSuccessPrimary:n.extend("--ft-border-success-primary","Used as border for success buttons.",u.colorGreen200),borderSuccessSubtle:n.extend("--ft-border-success-subtle","Used as border for success components.",u.colorGreen30),borderErrorPrimary:n.extend("--ft-border-error-primary","Used as border for text fields in error states.",u.colorRed0),borderErrorSubtle:n.extend("--ft-border-error-subtle","Used as border for error components.",u.colorRed30),borderInfoPrimary:n.extend("--ft-border-info-primary","Used as border for buttons in info color.",u.colorCyan200),borderInfoSubtle:n.extend("--ft-border-info-subtle","Used as border for information components.",u.colorCyan30),borderGlobalPrimary:n.extend("--ft-border-global-primary","Used as border for element like input.",u.colorGray50),borderGlobalSubtle:n.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",u.colorGray30),borderInputPrimary:n.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",u.colorGray80)};var ll={largeHeight:n.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:n.extend("--ft-button-large-horizontal-padding","",u.spacing4),largeGap:n.extend("--ft-button-large-gap","",u.spacing2),largeBorderRadius:n.extend("--ft-button-large-border-radius","",u.borderRadiusS),largeIconSize:n.extend("--ft-button-large-icon-size","",u.iconSize3),largeBorderWidth:n.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:n.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:n.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:n.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:n.extend("--ft-button-medium-horizontal-padding","",u.spacing3),mediumGap:n.extend("--ft-button-medium-gap","",u.spacing2),mediumBorderRadius:n.extend("--ft-button-medium-border-radius","",u.borderRadiusS),mediumIconSize:n.extend("--ft-button-medium-icon-size","",u.iconSize2),mediumBorderWidth:n.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:n.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:n.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:n.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:n.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:n.extend("--ft-button-small-horizontal-padding","",u.spacing2),smallGap:n.extend("--ft-button-small-gap","",u.spacing1),smallBorderRadius:n.extend("--ft-button-small-border-radius","",u.borderRadiusS),smallIconSize:n.extend("--ft-button-small-icon-size","",u.iconSize1),smallBorderWidth:n.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:n.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:n.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:n.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:n.extend("--ft-button-x-small-icon-size","",u.iconSize1),xSmallFocusOutlineOffset:n.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:n.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:n.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:n.extend("--ft-button-round-border-radius","",u.borderRadiusPill),primaryBackgroundColor:n.extend("--ft-button-primary-background-color","",f.backgroundActionPrimary),primaryColor:n.extend("--ft-button-primary-color","",f.contentGlobalOnColor),primaryIconColor:n.extend("--ft-button-primary-icon-color","",f.contentGlobalOnColor),primaryStateLayerColor:n.extend("--ft-button-primary-state-layer-color","",f.contentGlobalOnColor),primaryHoverStateLayerOpacity:n.extend("--ft-button-primary-hover-state-layer-opacity","",u.opacity16),primaryFocusStateLayerOpacity:n.extend("--ft-button-primary-focus-state-layer-opacity","",u.opacity16),primaryActiveStateLayerOpacity:n.extend("--ft-button-primary-active-state-layer-opacity","",u.opacity24),primaryDisabledComponentOpacity:n.extend("--ft-button-primary-disabled-component-opacity","",u.opacity40),focusFocusRingColor:n.extend("--ft-button-focus-focus-ring-color","",f.borderActionFocusRing),tertiaryBackgroundColor:n.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:n.extend("--ft-button-tertiary-color","",f.contentActionPrimary),tertiaryIconColor:n.extend("--ft-button-tertiary-icon-color","",f.contentActionPrimary),tertiaryStateLayerColor:n.extend("--ft-button-tertiary-state-layer-color","",f.contentActionPrimary),tertiaryHoverStateLayerOpacity:n.extend("--ft-button-tertiary-hover-state-layer-opacity","",u.opacity8),tertiaryFocusStateLayerOpacity:n.extend("--ft-button-tertiary-focus-state-layer-opacity","",u.opacity8),tertiaryActiveStateLayerOpacity:n.extend("--ft-button-tertiary-active-state-layer-opacity","",u.opacity16),tertiaryDisabledComponentOpacity:n.extend("--ft-button-tertiary-disabled-component-opacity","",u.opacity40),secondaryBackgroundColor:n.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:n.extend("--ft-button-secondary-color","",f.contentActionPrimary),secondaryIconColor:n.extend("--ft-button-secondary-icon-color","",f.contentActionPrimary),secondaryStateLayerColor:n.extend("--ft-button-secondary-state-layer-color","",f.contentActionPrimary),secondaryHoverStateLayerOpacity:n.extend("--ft-button-secondary-hover-state-layer-opacity","",u.opacity8),secondaryFocusStateLayerOpacity:n.extend("--ft-button-secondary-focus-state-layer-opacity","",u.opacity8),secondaryActiveStateLayerOpacity:n.extend("--ft-button-secondary-active-state-layer-opacity","",u.opacity16),secondaryDisabledComponentOpacity:n.extend("--ft-button-secondary-disabled-component-opacity","",u.opacity40),secondaryBorderColor:n.extend("--ft-button-secondary-border-color","",f.borderActionPrimary),neutralBackgroundColor:n.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:n.extend("--ft-button-neutral-icon-color","",f.contentGlobalSecondary),neutralColor:n.extend("--ft-button-neutral-color","",f.contentGlobalSecondary),neutralStateLayerColor:n.extend("--ft-button-neutral-state-layer-color","",f.contentGlobalSecondary),neutralHoverStateLayerOpacity:n.extend("--ft-button-neutral-hover-state-layer-opacity","",u.opacity8),neutralFocusStateLayerOpacity:n.extend("--ft-button-neutral-focus-state-layer-opacity","",u.opacity8),neutralActiveStateLayerOpacity:n.extend("--ft-button-neutral-active-state-layer-opacity","",u.opacity16),neutralDisabledComponentOpacity:n.extend("--ft-button-neutral-disabled-component-opacity","",u.opacity40)};var ul={neutralOffHoverStateLayerOpacity:n.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",u.opacity8),neutralOffFocusStateLayerOpacity:n.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",u.opacity8),neutralOffFocusFocusRingColor:n.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",f.borderActionFocusRing),neutralOffActiveStateLayerOpacity:n.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",u.opacity16),neutralOffBackgroundColor:n.extend("--ft-chip-choice-neutral-off-background-color","",f.backgroundGlobalOnSurface),neutralOffBorderColor:n.extend("--ft-chip-choice-neutral-off-border-color","",f.borderGlobalPrimary),neutralOffColor:n.extend("--ft-chip-choice-neutral-off-color","",f.contentGlobalSecondary),neutralOffStateLayerColor:n.extend("--ft-chip-choice-neutral-off-state-layer-color","",f.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:n.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",u.opacity16),neutralOnHoverStateLayerOpacity:n.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",u.opacity24),neutralOnFocusStateLayerOpacity:n.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",u.opacity24),neutralOnFocusFocusRingColor:n.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",f.borderActionFocusRing),neutralOnActiveStateLayerOpacity:n.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",u.opacity32),neutralOnBackgroundColor:n.extend("--ft-chip-choice-neutral-on-background-color","",f.backgroundGlobalOnSurface),neutralOnBorderColor:n.extend("--ft-chip-choice-neutral-on-border-color","",f.borderGlobalPrimary),neutralOnColor:n.extend("--ft-chip-choice-neutral-on-color","",f.contentGlobalPrimary),neutralOnIconColor:n.extend("--ft-chip-choice-neutral-on-icon-color","",f.contentGlobalPrimary),neutralOnStateLayerColor:n.extend("--ft-chip-choice-neutral-on-state-layer-color","",f.contentGlobalPrimary),largeMinHeight:n.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:n.extend("--ft-chip-choice-large-horizontal-padding","",u.spacing3),largeGap:n.extend("--ft-chip-choice-large-gap","",u.spacing1),largeBorderRadius:n.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:n.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:n.extend("--ft-chip-choice-large-icon-size","",u.iconSize3),mediumMinHeight:n.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:n.extend("--ft-chip-choice-medium-horizontal-padding","",u.spacing2),mediumGap:n.extend("--ft-chip-choice-medium-gap","",u.spacing1),mediumBorderRadius:n.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:n.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:n.extend("--ft-chip-choice-medium-icon-size","",u.iconSize2)};var dl={largeMinHeight:n.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:n.extend("--ft-chip-large-horizontal-padding","",u.spacing3),largeButtonRightPadding:n.extend("--ft-chip-large-button-right-padding","",u.spacing1),largeGap:n.extend("--ft-chip-large-gap","",u.spacing1),largeFocusOutlineOffset:n.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:n.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:n.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:n.extend("--ft-chip-large-icon-size","",u.iconSize3),mediumMinHeight:n.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:n.extend("--ft-chip-medium-horizontal-padding","",u.spacing2),mediumButtonRightPadding:n.extend("--ft-chip-medium-button-right-padding","",u.spacing05),mediumGap:n.extend("--ft-chip-medium-gap","",u.spacing1),mediumFocusOutlineOffset:n.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:n.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:n.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:n.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:n.extend("--ft-chip-medium-icon-size","",u.iconSize2),smallMinHeight:n.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:n.extend("--ft-chip-small-horizontal-padding","",u.spacing1),smallButtonRightPadding:n.extend("--ft-chip-small-button-right-padding","",u.spacing05),smallGap:n.extend("--ft-chip-small-gap","",u.spacing1),smallFocusOutlineOffset:n.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:n.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:n.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:n.extend("--ft-chip-small-icon-size","",u.iconSize1),neutralBackgroundColor:n.extend("--ft-chip-neutral-background-color","",f.backgroundGlobalOnSurface),neutralColor:n.extend("--ft-chip-neutral-color","",f.contentGlobalSecondary),neutralIconColor:n.extend("--ft-chip-neutral-icon-color","",f.contentGlobalSecondary),neutralBorderColor:n.extend("--ft-chip-neutral-border-color","",f.borderGlobalSubtle),infoBackgroundColor:n.extend("--ft-chip-info-background-color","",f.backgroundInfoSubtle),infoColor:n.extend("--ft-chip-info-color","",f.contentInfoPrimary),infoIconColor:n.extend("--ft-chip-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:n.extend("--ft-chip-info-border-color","",f.borderInfoSubtle),successBackgroundColor:n.extend("--ft-chip-success-background-color","",f.backgroundSuccessSubtle),successColor:n.extend("--ft-chip-success-color","",f.contentSuccessPrimary),successIconColor:n.extend("--ft-chip-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:n.extend("--ft-chip-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:n.extend("--ft-chip-warning-background-color","",f.backgroundWarningSubtle),warningColor:n.extend("--ft-chip-warning-color","",f.contentWarningPrimary),warningIconColor:n.extend("--ft-chip-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:n.extend("--ft-chip-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:n.extend("--ft-chip-error-background-color","",f.backgroundErrorSubtle),errorColor:n.extend("--ft-chip-error-color","",f.contentErrorPrimary),errorIconColor:n.extend("--ft-chip-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:n.extend("--ft-chip-error-border-color","",f.borderErrorSubtle)};var fl={brandHoverOpacity:n.extend("--ft-link-brand-hover-opacity","",u.opacity80),brandHoverColor:n.extend("--ft-link-brand-hover-color","",f.contentActionPrimary),brandFocusFocusRingColor:n.extend("--ft-link-brand-focus-focus-ring-color","",f.borderActionFocusRing),brandFocusColor:n.extend("--ft-link-brand-focus-color","",f.contentActionPrimary),brandDefaultColor:n.extend("--ft-link-brand-default-color","",f.contentActionPrimary),brandActiveColor:n.extend("--ft-link-brand-active-color","",f.contentActionPrimary),infoHoverOpacity:n.extend("--ft-link-info-hover-opacity","",u.opacity80),infoHoverColor:n.extend("--ft-link-info-hover-color","",f.contentInfoPrimary),infoFocusFocusRingColor:n.extend("--ft-link-info-focus-focus-ring-color","",f.borderActionFocusRing),infoFocusColor:n.extend("--ft-link-info-focus-color","",f.contentInfoPrimary),infoDefaultColor:n.extend("--ft-link-info-default-color","",f.contentInfoPrimary),infoActiveColor:n.extend("--ft-link-info-active-color","",f.contentInfoPrimary),neutralFocusFocusRingColor:n.extend("--ft-link-neutral-focus-focus-ring-color","",f.borderActionFocusRing),neutralFocusColor:n.extend("--ft-link-neutral-focus-color","",f.contentActionPrimary),neutralDefaultColor:n.extend("--ft-link-neutral-default-color","",f.contentGlobalPrimary),neutralHoverColor:n.extend("--ft-link-neutral-hover-color","",f.contentActionPrimary),neutralActiveColor:n.extend("--ft-link-neutral-active-color","",f.contentActionPrimary)};var pl={iconSize:n.extend("--ft-banner-icon-size","",u.iconSize5),borderWidth:n.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:n.extend("--ft-banner-left-padding","",u.spacing6),rightPadding:n.extend("--ft-banner-right-padding","",u.spacing6),verticalPadding:n.extend("--ft-banner-vertical-padding","",u.spacing6),horizontalSideGap:n.extend("--ft-banner-horizontal-side-gap","",u.spacing6),horizontalMobileGap:n.extend("--ft-banner-horizontal-mobile-gap","",u.spacing4),verticalMobileGap:n.extend("--ft-banner-vertical-mobile-gap","",u.spacing6),horizontalMiddleGap:n.extend("--ft-banner-horizontal-middle-gap","",u.spacing20),infoBackgroundColor:n.extend("--ft-banner-info-background-color","",f.backgroundInfoSubtle),infoColor:n.extend("--ft-banner-info-color","",f.contentInfoPrimary),infoIconColor:n.extend("--ft-banner-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:n.extend("--ft-banner-info-border-color","",f.borderInfoSubtle)};var hl={horizontalPadding:n.extend("--ft-badge-horizontal-padding","",u.spacing1),verticalPadding:n.extend("--ft-badge-vertical-padding","",u.spacing1),borderRadius:n.extend("--ft-badge-border-radius","",u.borderRadiusPill),color:n.extend("--ft-badge-color","",f.contentGlobalOnColor),backgroundColor:n.extend("--ft-badge-background-color","",f.contentActionPrimary)};var ml={horizontalGap:n.extend("--ft-breadcrumb-horizontal-gap","",u.spacing1),verticalGap:n.extend("--ft-breadcrumb-vertical-gap","",u.spacing2),currentColor:n.extend("--ft-breadcrumb-current-color","",f.contentGlobalPrimary),previousNonClickableColor:n.extend("--ft-breadcrumb-previous-non-clickable-color","",f.contentGlobalSecondary),iconColor:n.extend("--ft-breadcrumb-icon-color","",f.contentGlobalSubtle)};var gl={horizontalPadding:n.extend("--ft-page-header-horizontal-padding","",u.spacing6),horizontalGap:n.extend("--ft-page-header-horizontal-gap","",u.spacing4),verticalGap:n.extend("--ft-page-header-vertical-gap","",u.spacing2),classicVerticalPadding:n.extend("--ft-page-header-classic-vertical-padding","",u.spacing6),multilineVerticalPadding:n.extend("--ft-page-header-multiline-vertical-padding","",u.spacing4),inlineVerticalPadding:n.extend("--ft-page-header-inline-vertical-padding","",u.spacing2),backgroundColor:n.extend("--ft-page-header-background-color","",u.colorWhite),bottomBorderColor:n.extend("--ft-page-header-bottom-border-color","",f.borderGlobalSubtle),titleColor:n.extend("--ft-page-header-title-color","",f.contentGlobalPrimary),subtitleColor:n.extend("--ft-page-header-subtitle-color","",f.contentGlobalSecondary)};var yl={smallContainerWidth:n.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:n.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:n.extend("--ft-modal-overlay-background-color","",u.colorGray700),overlayOpacity:n.extend("--ft-modal-overlay-opacity","",u.opacity40),shadow:n.extend("--ft-modal-shadow","",u.shadowElevation03),bodyBackgroundColor:n.extend("--ft-modal-body-background-color","",u.colorWhite),bodyColor:n.extend("--ft-modal-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ft-modal-body-horizontal-padding","",u.spacing6),bodyVerticalPadding:n.extend("--ft-modal-body-vertical-padding","",u.spacing6),bodyVerticalGap:n.extend("--ft-modal-body-vertical-gap","",u.spacing6),containerMargin:n.extend("--ft-modal-container-margin","",u.spacing3),headerBackgroundColor:n.extend("--ft-modal-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ft-modal-header-border-color","",f.borderGlobalSubtle),headerColor:n.extend("--ft-modal-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:n.extend("--ft-modal-header-trailing-icon-color","",f.contentGlobalSecondary),headerVerticalPadding:n.extend("--ft-modal-header-vertical-padding","",u.spacing1),headerRightPadding:n.extend("--ft-modal-header-right-padding","",u.spacing1),headerLeftPadding:n.extend("--ft-modal-header-left-padding","",u.spacing6),headerGap:n.extend("--ft-modal-header-gap","",u.spacing2),headerBorderBottom:n.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:n.extend("--ft-modal-border-radius","",u.borderRadiusM)};var bl={overlayOpacity:n.extend("--ft-drawer-overlay-opacity","",u.opacity40),shadow:n.extend("--ft-drawer-shadow","",u.shadowElevation03),bodyColor:n.extend("--ft-drawer-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ft-drawer-body-horizontal-padding","",u.spacing6),bodyVerticalPadding:n.extend("--ft-drawer-body-vertical-padding","",u.spacing6),bodyGap:n.extend("--ft-drawer-body-gap","",u.spacing6),bodyBackgroundColor:n.extend("--ft-drawer-body-background-color","",u.colorWhite),headerBackgroundColor:n.extend("--ft-drawer-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ft-drawer-header-border-color","",f.borderGlobalSubtle),headerColor:n.extend("--ft-drawer-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:n.extend("--ft-drawer-header-trailing-icon-color","",f.contentGlobalSecondary),headerHeight:n.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:n.extend("--ft-drawer-header-horizontal-padding","",u.spacing2),headerBorderWidth:n.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:n.extend("--ft-drawer-header-gap","",u.spacing3),buttonsBarBackgroundColor:n.extend("--ft-drawer-buttons-bar-background-color","",f.backgroundGlobalOnSurface),buttonsBarBorderColor:n.extend("--ft-drawer-buttons-bar-border-color","",f.borderGlobalSubtle),buttonsBarColor:n.extend("--ft-drawer-buttons-bar-color","",f.contentGlobalPrimary),buttonsBarHorizontalPadding:n.extend("--ft-drawer-buttons-bar-horizontal-padding","",u.spacing6),buttonsBarVerticalPadding:n.extend("--ft-drawer-buttons-bar-vertical-padding","",u.spacing4),buttonsBarGap:n.extend("--ft-drawer-buttons-bar-gap","",u.spacing3),buttonsBarBorderWidth:n.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:n.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:n.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:n.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:n.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:n.extend("--ft-drawer-overlay-background-color","",u.colorGray700)};var vl={offBorderBottomWidth:n.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:n.extend("--ft-tabs-off-hover-state-layer-opacity","",u.opacity8),offDefaultStateLayerOpacity:n.extend("--ft-tabs-off-default-state-layer-opacity","",u.opacity0),offFocusStateLayerOpacity:n.extend("--ft-tabs-off-focus-state-layer-opacity","",u.opacity8),offDisabledComponentOpacity:n.extend("--ft-tabs-off-disabled-component-opacity","",u.opacity40),offColor:n.extend("--ft-tabs-off-color","",f.contentGlobalSubtle),offStateLayerColor:n.extend("--ft-tabs-off-state-layer-color","",f.contentGlobalSubtle),offBorderBottomColor:n.extend("--ft-tabs-off-border-bottom-color","",f.borderGlobalSubtle),activeTabIndicatorHeight:n.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:n.extend("--ft-tabs-top-left-border-radius","",u.borderRadiusS),topRightBorderRadius:n.extend("--ft-tabs-top-right-border-radius","",u.borderRadiusS),withLabelHorizontalPadding:n.extend("--ft-tabs-with-label-horizontal-padding","",u.spacing4),withLabelVerticalPadding:n.extend("--ft-tabs-with-label-vertical-padding","",u.spacing3),horizontalGap:n.extend("--ft-tabs-horizontal-gap","",u.spacing1),verticalGap:n.extend("--ft-tabs-vertical-gap","",u.spacing1),onHoverStateLayerOpacity:n.extend("--ft-tabs-on-hover-state-layer-opacity","",u.opacity16),onDefaultStateLayerOpacity:n.extend("--ft-tabs-on-default-state-layer-opacity","",u.opacity8),onFocusStateLayerOpacity:n.extend("--ft-tabs-on-focus-state-layer-opacity","",u.opacity16),onActiveStateLayerOpacity:n.extend("--ft-tabs-on-active-state-layer-opacity","",u.opacity24),onColor:n.extend("--ft-tabs-on-color","",f.contentActionPrimary),onStateLayerColor:n.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),onActiveTabIndicatorColor:n.extend("--ft-tabs-on-active-tab-indicator-color","",f.contentActionPrimary),iconOnlyHorizontalPadding:n.extend("--ft-tabs-icon-only-horizontal-padding","",u.spacing4),iconOnlyVerticalPadding:n.extend("--ft-tabs-icon-only-vertical-padding","",u.spacing4),alertTopPadding:n.extend("--ft-tabs-alert-top-padding","",u.spacing1),alertRightPadding:n.extend("--ft-tabs-alert-right-padding","",u.spacing05),focusOutlineWidth:n.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-tabs-focus-focus-ring-color","",f.borderActionFocusRing)};var xl={fieldHorizontalPadding:n.extend("--ft-text-input-field-horizontal-padding","",u.spacing4),fieldHorizontalGap:n.extend("--ft-text-input-field-horizontal-gap","",u.spacing3),fieldVerticalGap:n.extend("--ft-text-input-field-vertical-gap","",u.spacing05),fieldIconSize:n.extend("--ft-text-input-field-icon-size","",u.iconSize3),fieldHeight:n.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:n.extend("--ft-text-input-helper-horizontal-padding","",u.spacing4),helperHorizontalGap:n.extend("--ft-text-input-helper-horizontal-gap","",u.spacing1),helperIconSize:n.extend("--ft-text-input-helper-icon-size","",u.iconSize2),borderRadius:n.extend("--ft-text-input-border-radius","",u.borderRadiusM),backgroundColor:n.extend("--ft-text-input-background-color","",u.colorWhite),contentValueColor:n.extend("--ft-text-input-content-value-color","",f.contentGlobalPrimary),trailingIconColor:n.extend("--ft-text-input-trailing-icon-color","",f.contentGlobalSubtle),labelColor:n.extend("--ft-text-input-label-color","",f.contentGlobalSubtle),defaultBorderColor:n.extend("--ft-text-input-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:n.extend("--ft-text-input-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:n.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ft-text-input-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:n.extend("--ft-text-input-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:n.extend("--ft-text-input-error-helper-icon-color","",f.contentErrorIconOnly),warningBorderWidth:n.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:n.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-text-input-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:n.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ft-text-input-disabled-component-opacity","",u.opacity40)};var Sl={backgroundColor:n.extend("--ft-text-area-background-color","",u.colorWhite),contentValueColor:n.extend("--ft-text-area-content-value-color","",f.contentGlobalPrimary),labelColor:n.extend("--ft-text-area-label-color","",f.contentGlobalSubtle),defaultBorderColor:n.extend("--ft-text-area-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:n.extend("--ft-text-area-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:n.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ft-text-area-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:n.extend("--ft-text-area-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:n.extend("--ft-text-area-error-helper-icon-color","",f.contentErrorIconOnly),focusFocusRingColor:n.extend("--ft-text-area-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:n.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:n.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ft-text-area-disabled-component-opacity","",u.opacity40),fieldHorizontalLeftPadding:n.extend("--ft-text-area-field-horizontal-left-padding","",u.spacing4),fieldHorizontalGap:n.extend("--ft-text-area-field-horizontal-gap","",u.spacing3),fieldVerticalGap:n.extend("--ft-text-area-field-vertical-gap","",u.spacing05),fieldMinHeight:n.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:n.extend("--ft-text-area-helper-horizontal-padding","",u.spacing4),helperHorizontalGap:n.extend("--ft-text-area-helper-horizontal-gap","",u.spacing1),helperIconSize:n.extend("--ft-text-area-helper-icon-size","",u.iconSize2),borderRadius:n.extend("--ft-text-area-border-radius","",u.borderRadiusM)};var Ol={height:n.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:n.extend("--ft-floating-menu-horizontal-padding","",u.spacing4),offIconColor:n.extend("--ft-floating-menu-off-icon-color","",f.contentGlobalPrimary),offColor:n.extend("--ft-floating-menu-off-color","",f.contentGlobalPrimary),onColor:n.extend("--ft-floating-menu-on-color","",f.contentActionPrimary),onStateLayerColor:n.extend("--ft-floating-menu-on-state-layer-color","",f.contentActionPrimary),gap:n.extend("--ft-floating-menu-gap","",u.spacing3),focusFocusRingColor:n.extend("--ft-floating-menu-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:n.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:n.extend("--ft-floating-menu-focus-state-layer-opacity","",u.opacity8),hoverStateLayerOpacity:n.extend("--ft-floating-menu-hover-state-layer-opacity","",u.opacity8),activeStateLayerOpacity:n.extend("--ft-floating-menu-active-state-layer-opacity","",u.opacity16),disabledComponentOpacity:n.extend("--ft-floating-menu-disabled-component-opacity","",u.opacity40),iconSize:n.extend("--ft-floating-menu-icon-size","",u.iconSize3),backgroundColor:n.extend("--ft-floating-menu-background-color","",f.backgroundGlobalOnSurface),shadow:n.extend("--ft-floating-menu-shadow","",u.shadowElevation02)};var wl={fieldHorizontalPadding:n.extend("--ft-combobox-single-select-field-horizontal-padding","",u.spacing4),fieldHorizontalGap:n.extend("--ft-combobox-single-select-field-horizontal-gap","",u.spacing3),fieldVerticalGap:n.extend("--ft-combobox-single-select-field-vertical-gap","",u.spacing05),fieldIconSize:n.extend("--ft-combobox-single-select-field-icon-size","",u.iconSize3),fieldHeight:n.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:n.extend("--ft-combobox-single-select-helper-horizontal-padding","",u.spacing4),helperHorizontalGap:n.extend("--ft-combobox-single-select-helper-horizontal-gap","",u.spacing1),helperVerticalGap:n.extend("--ft-combobox-single-select-helper-vertical-gap","",u.spacing1),helperIconSize:n.extend("--ft-combobox-single-select-helper-icon-size","",u.iconSize2),menuVerticalGap:n.extend("--ft-combobox-single-select-menu-vertical-gap","",u.spacing2),borderRadius:n.extend("--ft-combobox-single-select-border-radius","",u.borderRadiusM),backgroundColor:n.extend("--ft-combobox-single-select-background-color","",u.colorWhite),labelColor:n.extend("--ft-combobox-single-select-label-color","",f.contentGlobalSubtle),contentValueColor:n.extend("--ft-combobox-single-select-content-value-color","",f.contentGlobalPrimary),trailingIconColor:n.extend("--ft-combobox-single-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:n.extend("--ft-combobox-single-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:n.extend("--ft-combobox-single-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:n.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ft-combobox-single-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:n.extend("--ft-combobox-single-select-error-helper-text-color","",f.contentErrorPrimary),warningBorderWidth:n.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:n.extend("--ft-combobox-single-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:n.extend("--ft-combobox-single-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:n.extend("--ft-combobox-single-select-warning-helper-icon-color","",f.contentWarningIconOnly),focusOutlineWidth:n.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-combobox-single-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:n.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ft-combobox-single-select-disabled-component-opacity","",u.opacity40)};var El={backgroundColor:n.extend("--ft-combobox-multi-select-background-color","",u.colorWhite),labelColor:n.extend("--ft-combobox-multi-select-label-color","",f.contentGlobalSubtle),trailingIconColor:n.extend("--ft-combobox-multi-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:n.extend("--ft-combobox-multi-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:n.extend("--ft-combobox-multi-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:n.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:n.extend("--ft-combobox-multi-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:n.extend("--ft-combobox-multi-select-error-helper-text-color","",f.contentErrorPrimary),errorHelperIcon:n.extend("--ft-combobox-multi-select-error-helper-icon","",f.contentErrorIconOnly),errorBorderWidth:n.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:n.extend("--ft-combobox-multi-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:n.extend("--ft-combobox-multi-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:n.extend("--ft-combobox-multi-select-warning-helper-icon-color","",f.contentWarningIconOnly),warningBorderWidth:n.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-combobox-multi-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:n.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:n.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ft-combobox-multi-select-disabled-component-opacity","",u.opacity40),helperHorizontalPadding:n.extend("--ft-combobox-multi-select-helper-horizontal-padding","",u.spacing4),helperHorizontalGap:n.extend("--ft-combobox-multi-select-helper-horizontal-gap","",u.spacing1),helperVerticalGap:n.extend("--ft-combobox-multi-select-helper-vertical-gap","",u.spacing1),helperIconSize:n.extend("--ft-combobox-multi-select-helper-icon-size","",u.iconSize2),fieldHorizontalPadding:n.extend("--ft-combobox-multi-select-field-horizontal-padding","",u.spacing4),fieldHorizontalGap:n.extend("--ft-combobox-multi-select-field-horizontal-gap","",u.spacing3),fieldVerticalGap:n.extend("--ft-combobox-multi-select-field-vertical-gap","",u.spacing05),fieldIconSize:n.extend("--ft-combobox-multi-select-field-icon-size","",u.iconSize3),fieldMaxHeight:n.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:n.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",u.spacing1),contentValuesVerticalGap:n.extend("--ft-combobox-multi-select-content-values-vertical-gap","",u.spacing1),borderRadius:n.extend("--ft-combobox-multi-select-border-radius","",u.borderRadiusM)};var Al={backgroundColor:n.extend("--ft-popover-background-color","",f.backgroundGlobalOnSurface),horizontalPadding:n.extend("--ft-popover-horizontal-padding","",u.spacing6),verticalPadding:n.extend("--ft-popover-vertical-padding","",u.spacing6),titleColor:n.extend("--ft-popover-title-color","",f.contentGlobalPrimary),bodyColor:n.extend("--ft-popover-body-color","",f.contentGlobalSecondary),linkColor:n.extend("--ft-popover-link-color","",f.contentActionPrimary),gap:n.extend("--ft-popover-gap","",u.spacing3),borderRadius:n.extend("--ft-popover-border-radius","",u.borderRadiusM),shadow:n.extend("--ft-popover-shadow","",u.shadowElevation02)};var Cl={hoverStateLayerOpacity:n.extend("--ft-collapsible-hover-state-layer-opacity","",u.opacity8),focusStateLayerOpacity:n.extend("--ft-collapsible-focus-state-layer-opacity","",u.opacity8),focusOutlineWidth:n.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:n.extend("--ft-collapsible-focus-focus-ring-color","",f.borderActionFocusRing),activeStateLayerOpacity:n.extend("--ft-collapsible-active-state-layer-opacity","",u.opacity16),disabledComponentOpacity:n.extend("--ft-collapsible-disabled-component-opacity","",u.opacity40),horizontalPadding:n.extend("--ft-collapsible-horizontal-padding","",u.spacing4),verticalPadding:n.extend("--ft-collapsible-vertical-padding","",u.spacing3),color:n.extend("--ft-collapsible-color","",f.contentGlobalPrimary),stateLayerColor:n.extend("--ft-collapsible-state-layer-color","",f.contentGlobalPrimary),backgroundColor:n.extend("--ft-collapsible-background-color","",f.backgroundGlobalOnSurface),borderColor:n.extend("--ft-collapsible-border-color","",f.borderGlobalSubtle),iconSize:n.extend("--ft-collapsible-icon-size","",u.iconSize3)};var Rl={groupHorizontalPadding:n.extend("--ft-switch-group-horizontal-padding","",u.spacing1),groupVerticalPadding:n.extend("--ft-switch-group-vertical-padding","",u.spacing1),groupGap:n.extend("--ft-switch-group-gap","",u.spacing1),groupBackgroundColor:n.extend("--ft-switch-group-background-color","",f.backgroundGlobalSurface),groupBorderColor:n.extend("--ft-switch-group-border-color","",f.borderGlobalSubtle),groupBorderRadius:n.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:n.extend("--ft-switch-label-horizontal-padding","",u.spacing2),labelVerticalPadding:n.extend("--ft-switch-label-vertical-padding","",u.spacing1),offHoverStateLayerOpacity:n.extend("--ft-switch-off-hover-state-layer-opacity","",u.opacity8),offFocusStateLayerOpacity:n.extend("--ft-switch-off-focus-state-layer-opacity","",u.opacity8),offActiveStateLayerOpacity:n.extend("--ft-switch-off-active-state-layer-opacity","",u.opacity16),offDisabledComponentOpacity:n.extend("--ft-switch-off-disabled-component-opacity","",u.opacity40),offColor:n.extend("--ft-switch-off-color","",f.contentGlobalSubtle),offStateLayerColor:n.extend("--ft-switch-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ft-switch-on-hover-state-layer-opacity","",u.opacity8),onFocusStateLayerOpacity:n.extend("--ft-switch-on-focus-state-layer-opacity","",u.opacity8),onActiveStateLayerOpacity:n.extend("--ft-switch-on-active-state-layer-opacity","",u.opacity16),onDisabledComponentOpacity:n.extend("--ft-switch-on-disabled-component-opacity","",u.opacity40),onColor:n.extend("--ft-switch-on-color","",f.contentActionPrimary),onStateLayerColor:n.extend("--ft-switch-on-state-layer-color","",f.contentActionPrimary),iconHorizontalPadding:n.extend("--ft-switch-icon-horizontal-padding","",u.spacing1),iconVerticalPadding:n.extend("--ft-switch-icon-vertical-padding","",u.spacing1),focusOutlineWidth:n.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-switch-focus-focus-ring-color","",f.borderActionFocusRing),optionBorderRadius:n.extend("--ft-switch-option-border-radius","",u.borderRadiusS)};var Nl={color1Light:n.extend("--ft-chart-1-light","for area color charts",u.colorBrand40),color1Base:n.extend("--ft-chart-1-base","for line charts",u.colorBrand0),color2Light:n.extend("--ft-chart-2-light","for area color charts",u.colorYellow60),color2Base:n.extend("--ft-chart-2-base","for line charts",u.colorYellow100),color3Light:n.extend("--ft-chart-3-light","",u.colorUltramarine40),color3Base:n.extend("--ft-chart-3-base","",u.colorUltramarine70),color4Light:n.extend("--ft-chart-4-light","",u.colorCyan50),color4Base:n.extend("--ft-chart-4-base","",u.colorCyan100),color5Light:n.extend("--ft-chart-5-light","",u.colorRed40),color5Base:n.extend("--ft-chart-5-base","",u.colorRed60),color6Light:n.extend("--ft-chart-6-light","",u.colorGreen40),color6Base:n.extend("--ft-chart-6-base","",u.colorGreen70),color7Light:n.extend("--ft-chart-7-light","",u.colorOrange70),color7Base:n.extend("--ft-chart-7-base","",u.colorOrange100),color8Light:n.extend("--ft-chart-8-light","",u.colorAvocado70),color8Base:n.extend("--ft-chart-8-base","",u.colorAvocado200),color9Light:n.extend("--ft-chart-9-light","",u.colorBrown50),color9Base:n.extend("--ft-chart-9-base","",u.colorBrown200),color10Light:n.extend("--ft-chart-10-light","",u.colorGray50),color10Base:n.extend("--ft-chart-10-base","",u.colorGray80),monochrome10:n.extend("--ft-chart-monochrome-10","",u.colorBrand10),monochrome20:n.extend("--ft-chart-monochrome-20","",u.colorBrand20),monochrome30:n.extend("--ft-chart-monochrome-30","",u.colorBrand40),monochrome40:n.extend("--ft-chart-monochrome-40","",u.colorBrand60),monochrome50:n.extend("--ft-chart-monochrome-50","",u.colorBrand0),monochrome60:n.extend("--ft-chart-monochrome-60","",u.colorBrand200)};var Il={borderWidth:n.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:n.extend("--ft-notice-horizontal-padding","",u.spacing3),verticalPadding:n.extend("--ft-notice-vertical-padding","",u.spacing2),borderRadius:n.extend("--ft-notice-border-radius","",u.borderRadiusS),gap:n.extend("--ft-notice-gap","",u.spacing2),iconSize:n.extend("--ft-notice-icon-size","",u.iconSize3),infoBackgroundColor:n.extend("--ft-notice-info-background-color","",f.backgroundInfoSubtle),infoBorderColor:n.extend("--ft-notice-info-border-color","",f.borderInfoSubtle),infoColor:n.extend("--ft-notice-info-color","",f.contentInfoPrimary),infoIconColor:n.extend("--ft-notice-info-icon-color","",f.contentInfoIconOnly),warningBackgroundColor:n.extend("--ft-notice-warning-background-color","",f.backgroundWarningSubtle),warningBorderColor:n.extend("--ft-notice-warning-border-color","",f.borderWarningSubtle),warningColor:n.extend("--ft-notice-warning-color","",f.contentWarningPrimary),warningIconColor:n.extend("--ft-notice-warning-icon-color","",f.contentWarningIconOnly),errorBackgroundColor:n.extend("--ft-notice-error-background-color","",f.backgroundErrorSubtle),errorBorderColor:n.extend("--ft-notice-error-border-color","",f.borderErrorSubtle),errorColor:n.extend("--ft-notice-error-color","",f.contentErrorPrimary),errorIconColor:n.extend("--ft-notice-error-icon-color","",f.contentErrorIconOnly),successBackgroundColor:n.extend("--ft-notice-success-background-color","",f.backgroundSuccessSubtle),successBorderColor:n.extend("--ft-notice-success-border-color","",f.borderSuccessSubtle),successColor:n.extend("--ft-notice-success-color","",f.contentSuccessPrimary),successIconColor:n.extend("--ft-notice-success-icon-color","",f.contentSuccessIconOnly)};var _l={color:n.extend("--ft-checkbox-color","",f.contentGlobalPrimary),checkedBackgroundColor:n.extend("--ft-checkbox-checked-background-color","",f.contentActionPrimary),checkedStateLayerColor:n.extend("--ft-checkbox-checked-state-layer-color","",f.contentActionPrimary),checkedIconColor:n.extend("--ft-checkbox-checked-icon-color","",f.contentGlobalOnColor),checkedHoverStateLayerOpacity:n.extend("--ft-checkbox-checked-hover-state-layer-opacity","",u.opacity16),checkedFocusStateLayerOpacity:n.extend("--ft-checkbox-checked-focus-state-layer-opacity","",u.opacity16),checkedActiveStateLayerOpacity:n.extend("--ft-checkbox-checked-active-state-layer-opacity","",u.opacity24),checkedDisabledComponentOpacity:n.extend("--ft-checkbox-checked-disabled-component-opacity","",u.opacity40),uncheckedBorderColor:n.extend("--ft-checkbox-unchecked-border-color","",u.colorGray80),uncheckedStateLayerColor:n.extend("--ft-checkbox-unchecked-state-layer-color","",u.colorGray80),uncheckedHoverStateLayerOpacity:n.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",u.opacity16),uncheckedFocusStateLayerOpacity:n.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",u.opacity16),uncheckedActiveStateLayerOpacity:n.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",u.opacity24),uncheckedDisabledComponentOpacity:n.extend("--ft-checkbox-unchecked-disabled-component-opacity","",u.opacity40),focusFocusRingColor:n.extend("--ft-checkbox-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:n.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:n.extend("--ft-checkbox-gap","",u.spacing3)};var Tl={offHoverStateLayerOpacity:n.extend("--ft-toggle-off-hover-state-layer-opacity","",u.opacity16),offFocusStateLayerOpacity:n.extend("--ft-toggle-off-focus-state-layer-opacity","",u.opacity16),offActiveStateLayerOpacity:n.extend("--ft-toggle-off-active-state-layer-opacity","",u.opacity24),offDisabledComponentOpacity:n.extend("--ft-toggle-off-disabled-component-opacity","",u.opacity40),offBackgroundColor:n.extend("--ft-toggle-off-background-color","",f.contentGlobalSubtle),offIconColor:n.extend("--ft-toggle-off-icon-color","",f.contentGlobalSubtle),offStateLayerColor:n.extend("--ft-toggle-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ft-toggle-on-hover-state-layer-opacity","",u.opacity16),onFocusStateLayerOpacity:n.extend("--ft-toggle-on-focus-state-layer-opacity","",u.opacity16),onActiveStateLayerOpacity:n.extend("--ft-toggle-on-active-state-layer-opacity","",u.opacity24),onDisabledComponentOpacity:n.extend("--ft-toggle-on-disabled-component-opacity","",u.opacity40),onBackgroundColor:n.extend("--ft-toggle-on-background-color","",f.contentActionPrimary),onStateLayerColor:n.extend("--ft-toggle-on-state-layer-color","",f.contentActionPrimary),onIconColor:n.extend("--ft-toggle-on-icon-color","",f.contentActionPrimary),color:n.extend("--ft-toggle-color","",f.contentGlobalPrimary),focusFocusRingColor:n.extend("--ft-toggle-focus-focus-ring-color","",f.borderActionFocusRing),gap:n.extend("--ft-toggle-gap","",u.spacing3)};var Pl={color:n.extend("--ft-radio-color","",f.contentGlobalPrimary),selectedRadioColor:n.extend("--ft-radio-selected-radio-color","",f.contentActionPrimary),selectedStateLayerColor:n.extend("--ft-radio-selected-state-layer-color","",f.contentActionPrimary),selectedHoverStateLayerOpacity:n.extend("--ft-radio-selected-hover-state-layer-opacity","",u.opacity16),selectedFocusStateLayerOpacity:n.extend("--ft-radio-selected-focus-state-layer-opacity","",u.opacity16),selectedActiveStateLayerOpacity:n.extend("--ft-radio-selected-active-state-layer-opacity","",u.opacity24),selectedDisabledComponentOpacity:n.extend("--ft-radio-selected-disabled-component-opacity","",u.opacity40),unselectedStateLayerColor:n.extend("--ft-radio-unselected-state-layer-color","",f.borderInputPrimary),unselectedBorderColor:n.extend("--ft-radio-unselected-border-color","",f.borderInputPrimary),unselectedHoverStateLayerOpacity:n.extend("--ft-radio-unselected-hover-state-layer-opacity","",u.opacity16),unselectedFocusStateLayerOpacity:n.extend("--ft-radio-unselected-focus-state-layer-opacity","",u.opacity16),unselectedActiveStateLayerOpacity:n.extend("--ft-radio-unselected-active-state-layer-opacity","",u.opacity24),unselectedDisabledComponentOpacity:n.extend("--ft-radio-unselected-disabled-component-opacity","",u.opacity40),focusFocusRingColor:n.extend("--ft-radio-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:n.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:n.extend("--ft-radio-gap","",u.spacing3)};var Ll={iconSize:n.extend("--ft-notification-icon-size","",u.iconSize4),leftPadding:n.extend("--ft-notification-left-padding","",u.spacing5),rightPadding:n.extend("--ft-notification-right-padding","",u.spacing4),verticalPadding:n.extend("--ft-notification-vertical-padding","",u.spacing3),infoBackgroundColor:n.extend("--ft-notification-info-background-color","",f.backgroundInfoSubtle),infoColor:n.extend("--ft-notification-info-color","",f.contentInfoPrimary),infoIconColor:n.extend("--ft-notification-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:n.extend("--ft-notification-info-border-color","",f.borderInfoSubtle),successBackgroundColor:n.extend("--ft-notification-success-background-color","",f.backgroundSuccessSubtle),successColor:n.extend("--ft-notification-success-color","",f.contentSuccessPrimary),successIconColor:n.extend("--ft-notification-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:n.extend("--ft-notification-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:n.extend("--ft-notification-warning-background-color","",f.backgroundWarningSubtle),warningColor:n.extend("--ft-notification-warning-color","",f.contentWarningPrimary),warningIconColor:n.extend("--ft-notification-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:n.extend("--ft-notification-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:n.extend("--ft-notification-error-background-color","",f.backgroundErrorSubtle),errorColor:n.extend("--ft-notification-error-color","",f.contentErrorPrimary),errorIconColor:n.extend("--ft-notification-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:n.extend("--ft-notification-error-border-color","",f.borderErrorSubtle),borderRadius:n.extend("--ft-notification-border-radius","",u.borderRadiusPill),borderWidth:n.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:n.extend("--ft-notification-leading-gap","",u.spacing2),trailingGap:n.extend("--ft-notification-trailing-gap","",u.spacing8)};var kl={horizontalPadding:n.extend("--ft-tooltip-horizontal-padding","",u.spacing2),verticalPadding:n.extend("--ft-tooltip-vertical-padding","",u.spacing2),borderRadius:n.extend("--ft-tooltip-border-radius","",u.borderRadiusS),color:n.extend("--ft-tooltip-color","",f.contentGlobalOnColor),backgroundColor:n.extend("--ft-tooltip-background-color","",f.contentGlobalPrimary),backgroundOpacity:n.extend("--ft-tooltip-background-opacity","",u.opacity80),shadow:n.extend("--ft-tooltip-shadow","",u.shadowElevation02),maxWidth:n.create("--ft-tooltip-max-width","","SIZE","256px"),gap:n.extend("--ft-tooltip-gap","",u.spacing05)};var Wt;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Wt||(Wt={}));var Ht;(function(r){r.large="large",r.medium="medium",r.small="small"})(Ht||(Ht={}));function zo(r){return`ftds--family-${r}`}function jo(r){return`ftds--size-${r}`}var Ul={colorPrimary:n.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:n.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:n.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:n.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:n.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:n.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:n.create("--ft-color-error","","COLOR","#B00020"),colorOutline:n.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:n.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:n.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:n.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:n.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:n.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:n.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:n.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:n.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:n.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:n.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:n.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:n.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:n.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:n.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:n.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:n.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:n.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:n.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:n.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:n.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:n.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:n.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:n.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:n.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:n.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:n.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:n.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:n.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:n.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:n.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:n.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:n.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:n.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:n.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:n.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:n.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:n.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:n.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:n.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:n.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:n.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:n.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:n.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Yo={};F(Yo,{FtNotificationEvent:()=>Go,PostResizeEvent:()=>qo,PreResizeEvent:()=>Zo});var Go=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},Zo=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},qo=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var cn={};F(cn,{computeOffsetPosition:()=>eu});var wa=["top","right","bottom","left"],Oa=["start","end"],Xo=wa.reduce((r,e)=>r.concat(e,e+"-"+Oa[0],e+"-"+Oa[1]),[]),zt=Math.min,_e=Math.max,jt=Math.round;var ve=r=>({x:r,y:r}),Fl={left:"right",right:"left",bottom:"top",top:"bottom"},Ml={start:"end",end:"start"};function Qo(r,e,t){return _e(r,zt(e,t))}function Ir(r,e){return typeof r=="function"?r(e):r}function pt(r){return r.split("-")[0]}function Te(r){return r.split("-")[1]}function en(r){return r==="x"?"y":"x"}function tn(r){return r==="y"?"height":"width"}function _r(r){return["top","bottom"].includes(pt(r))?"y":"x"}function rn(r){return en(_r(r))}function Ea(r,e,t){t===void 0&&(t=!1);let o=Te(r),i=rn(r),a=tn(i),s=i==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Jo(s)),[s,Jo(s)]}function Aa(r){return r.replace(/start|end/g,e=>Ml[e])}function Jo(r){return r.replace(/left|right|bottom|top/g,e=>Fl[e])}function Dl(r){return{top:0,right:0,bottom:0,left:0,...r}}function Ca(r){return typeof r!="number"?Dl(r):{top:r,right:r,bottom:r,left:r}}function Qe(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function Ra(r,e,t){let{reference:o,floating:i}=r,a=_r(e),s=rn(e),c=tn(s),l=pt(e),d=a==="y",h=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,g=o[c]/2-i[c]/2,y;switch(l){case"top":y={x:h,y:o.y-i.height};break;case"bottom":y={x:h,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:p};break;case"left":y={x:o.x-i.width,y:p};break;default:y={x:o.x,y:o.y}}switch(Te(e)){case"start":y[s]-=g*(t&&d?-1:1);break;case"end":y[s]+=g*(t&&d?-1:1);break}return y}var Na=async(r,e,t)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:s}=t,c=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e)),d=await s.getElementRects({reference:r,floating:e,strategy:i}),{x:h,y:p}=Ra(d,o,l),g=o,y={},b=0;for(let O=0;O<c.length;O++){let{name:C,fn:E}=c[O],{x:A,y:x,data:S,reset:w}=await E({x:h,y:p,initialPlacement:o,placement:g,strategy:i,middlewareData:y,rects:d,platform:s,elements:{reference:r,floating:e}});if(h=A??h,p=x??p,y={...y,[C]:{...y[C],...S}},w&&b<=50){b++,typeof w=="object"&&(w.placement&&(g=w.placement),w.rects&&(d=w.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:i}):w.rects),{x:h,y:p}=Ra(d,g,l)),O=-1;continue}}return{x:h,y:p,placement:g,strategy:i,middlewareData:y}};async function on(r,e){var t;e===void 0&&(e={});let{x:o,y:i,platform:a,rects:s,elements:c,strategy:l}=r,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:g=!1,padding:y=0}=Ir(e,r),b=Ca(y),C=c[g?p==="floating"?"reference":"floating":p],E=Qe(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(C)))==null||t?C:C.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:l})),A=p==="floating"?{...s.floating,x:o,y:i}:s.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),S=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},w=Qe(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:A,offsetParent:x,strategy:l}):A);return{top:(E.top-w.top+b.top)/S.y,bottom:(w.bottom-E.bottom+b.bottom)/S.y,left:(E.left-w.left+b.left)/S.x,right:(w.right-E.right+b.right)/S.x}}function $l(r,e,t){return(r?[...t.filter(i=>Te(i)===r),...t.filter(i=>Te(i)!==r)]:t.filter(i=>pt(i)===i)).filter(i=>r?Te(i)===r||(e?Aa(i)!==i:!1):!0)}var nn=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,o,i;let{rects:a,middlewareData:s,placement:c,platform:l,elements:d}=e,{crossAxis:h=!1,alignment:p,allowedPlacements:g=Xo,autoAlignment:y=!0,...b}=Ir(r,e),O=p!==void 0||g===Xo?$l(p||null,y,g):g,C=await on(e,b),E=((t=s.autoPlacement)==null?void 0:t.index)||0,A=O[E];if(A==null)return{};let x=Ea(A,a,await(l.isRTL==null?void 0:l.isRTL(d.floating)));if(c!==A)return{reset:{placement:O[0]}};let S=[C[pt(A)],C[x[0]],C[x[1]]],w=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:A,overflows:S}],I=O[E+1];if(I)return{data:{index:E+1,overflows:w},reset:{placement:I}};let k=w.map(N=>{let m=Te(N.placement);return[N.placement,m&&h?N.overflows.slice(0,2).reduce((v,R)=>v+R,0):N.overflows[0],N.overflows]}).sort((N,m)=>N[1]-m[1]),U=((i=k.filter(N=>N[2].slice(0,Te(N[0])?2:3).every(m=>m<=0))[0])==null?void 0:i[0])||k[0][0];return U!==c?{data:{index:E+1,overflows:w},reset:{placement:U}}:{}}}};var an=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:o,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:C=>{let{x:E,y:A}=C;return{x:E,y:A}}},...l}=Ir(r,e),d={x:t,y:o},h=await on(e,l),p=_r(pt(i)),g=en(p),y=d[g],b=d[p];if(a){let C=g==="y"?"top":"left",E=g==="y"?"bottom":"right",A=y+h[C],x=y-h[E];y=Qo(A,y,x)}if(s){let C=p==="y"?"top":"left",E=p==="y"?"bottom":"right",A=b+h[C],x=b-h[E];b=Qo(A,b,x)}let O=c.fn({...e,[g]:y,[p]:b});return{...O,data:{x:O.x-t,y:O.y-o}}}}};function xe(r){return _a(r)?(r.nodeName||"").toLowerCase():"#document"}function Y(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Se(r){var e;return(e=(_a(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function _a(r){return r instanceof Node||r instanceof Y(r).Node}function de(r){return r instanceof Element||r instanceof Y(r).Element}function ae(r){return r instanceof HTMLElement||r instanceof Y(r).HTMLElement}function Ia(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Y(r).ShadowRoot}function ht(r){let{overflow:e,overflowX:t,overflowY:o,display:i}=ee(r);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&!["inline","contents"].includes(i)}function Ta(r){return["table","td","th"].includes(xe(r))}function Pr(r){let e=Lr(),t=ee(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(o=>(t.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(t.contain||"").includes(o))}function Pa(r){let e=et(r);for(;ae(e)&&!Vt(e);){if(Pr(e))return e;e=et(e)}return null}function Lr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Vt(r){return["html","body","#document"].includes(xe(r))}function ee(r){return Y(r).getComputedStyle(r)}function Kt(r){return de(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function et(r){if(xe(r)==="html")return r;let e=r.assignedSlot||r.parentNode||Ia(r)&&r.host||Se(r);return Ia(e)?e.host:e}function La(r){let e=et(r);return Vt(e)?r.ownerDocument?r.ownerDocument.body:r.body:ae(e)&&ht(e)?e:La(e)}function Tr(r,e,t){var o;e===void 0&&(e=[]),t===void 0&&(t=!0);let i=La(r),a=i===((o=r.ownerDocument)==null?void 0:o.body),s=Y(i);return a?e.concat(s,s.visualViewport||[],ht(i)?i:[],s.frameElement&&t?Tr(s.frameElement):[]):e.concat(i,Tr(i,[],t))}function Fa(r){let e=ee(r),t=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=ae(r),a=i?r.offsetWidth:t,s=i?r.offsetHeight:o,c=jt(t)!==a||jt(o)!==s;return c&&(t=a,o=s),{width:t,height:o,$:c}}function Ma(r){return de(r)?r:r.contextElement}function mt(r){let e=Ma(r);if(!ae(e))return ve(1);let t=e.getBoundingClientRect(),{width:o,height:i,$:a}=Fa(e),s=(a?jt(t.width):t.width)/o,c=(a?jt(t.height):t.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Bl=ve(0);function Da(r){let e=Y(r);return!Lr()||!e.visualViewport?Bl:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Wl(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==Y(r)?!1:e}function Gt(r,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);let i=r.getBoundingClientRect(),a=Ma(r),s=ve(1);e&&(o?de(o)&&(s=mt(o)):s=mt(r));let c=Wl(a,t,o)?Da(a):ve(0),l=(i.left+c.x)/s.x,d=(i.top+c.y)/s.y,h=i.width/s.x,p=i.height/s.y;if(a){let g=Y(a),y=o&&de(o)?Y(o):o,b=g.frameElement;for(;b&&o&&y!==g;){let O=mt(b),C=b.getBoundingClientRect(),E=ee(b),A=C.left+(b.clientLeft+parseFloat(E.paddingLeft))*O.x,x=C.top+(b.clientTop+parseFloat(E.paddingTop))*O.y;l*=O.x,d*=O.y,h*=O.x,p*=O.y,l+=A,d+=x,b=Y(b).frameElement}}return Qe({width:h,height:p,x:l,y:d})}function Hl(r){let{rect:e,offsetParent:t,strategy:o}=r,i=ae(t),a=Se(t);if(t===a)return e;let s={scrollLeft:0,scrollTop:0},c=ve(1),l=ve(0);if((i||!i&&o!=="fixed")&&((xe(t)!=="body"||ht(a))&&(s=Kt(t)),ae(t))){let d=Gt(t);c=mt(t),l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+l.x,y:e.y*c.y-s.scrollTop*c.y+l.y}}function zl(r){return Array.from(r.getClientRects())}function $a(r){return Gt(Se(r)).left+Kt(r).scrollLeft}function jl(r){let e=Se(r),t=Kt(r),o=r.ownerDocument.body,i=_e(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=_e(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-t.scrollLeft+$a(r),c=-t.scrollTop;return ee(o).direction==="rtl"&&(s+=_e(e.clientWidth,o.clientWidth)-i),{width:i,height:a,x:s,y:c}}function Vl(r,e){let t=Y(r),o=Se(r),i=t.visualViewport,a=o.clientWidth,s=o.clientHeight,c=0,l=0;if(i){a=i.width,s=i.height;let d=Lr();(!d||d&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:c,y:l}}function Kl(r,e){let t=Gt(r,!0,e==="fixed"),o=t.top+r.clientTop,i=t.left+r.clientLeft,a=ae(r)?mt(r):ve(1),s=r.clientWidth*a.x,c=r.clientHeight*a.y,l=i*a.x,d=o*a.y;return{width:s,height:c,x:l,y:d}}function ka(r,e,t){let o;if(e==="viewport")o=Vl(r,t);else if(e==="document")o=jl(Se(r));else if(de(e))o=Kl(e,t);else{let i=Da(r);o={...e,x:e.x-i.x,y:e.y-i.y}}return Qe(o)}function Ba(r,e){let t=et(r);return t===e||!de(t)||Vt(t)?!1:ee(t).position==="fixed"||Ba(t,e)}function Gl(r,e){let t=e.get(r);if(t)return t;let o=Tr(r,[],!1).filter(c=>de(c)&&xe(c)!=="body"),i=null,a=ee(r).position==="fixed",s=a?et(r):r;for(;de(s)&&!Vt(s);){let c=ee(s),l=Pr(s);!l&&c.position==="fixed"&&(i=null),(a?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ht(s)&&!l&&Ba(r,s))?o=o.filter(h=>h!==s):i=c,s=et(s)}return e.set(r,o),o}function Zl(r){let{element:e,boundary:t,rootBoundary:o,strategy:i}=r,s=[...t==="clippingAncestors"?Gl(e,this._c):[].concat(t),o],c=s[0],l=s.reduce((d,h)=>{let p=ka(e,h,i);return d.top=_e(p.top,d.top),d.right=zt(p.right,d.right),d.bottom=zt(p.bottom,d.bottom),d.left=_e(p.left,d.left),d},ka(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ql(r){return Fa(r)}function Yl(r,e,t){let o=ae(e),i=Se(e),a=t==="fixed",s=Gt(r,!0,a,e),c={scrollLeft:0,scrollTop:0},l=ve(0);if(o||!o&&!a)if((xe(e)!=="body"||ht(i))&&(c=Kt(e)),o){let d=Gt(e,!0,a,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else i&&(l.x=$a(i));return{x:s.left+c.scrollLeft-l.x,y:s.top+c.scrollTop-l.y,width:s.width,height:s.height}}function Ua(r,e){return!ae(r)||ee(r).position==="fixed"?null:e?e(r):r.offsetParent}function Wa(r,e){let t=Y(r);if(!ae(r))return t;let o=Ua(r,e);for(;o&&Ta(o)&&ee(o).position==="static";)o=Ua(o,e);return o&&(xe(o)==="html"||xe(o)==="body"&&ee(o).position==="static"&&!Pr(o))?t:o||Pa(r)||t}var Jl=async function(r){let{reference:e,floating:t,strategy:o}=r,i=this.getOffsetParent||Wa,a=this.getDimensions;return{reference:Yl(e,await i(t),o),floating:{x:0,y:0,...await a(t)}}};function Xl(r){return ee(r).direction==="rtl"}var kr={convertOffsetParentRelativeRectToViewportRelativeRect:Hl,getDocumentElement:Se,getClippingRect:Zl,getOffsetParent:Wa,getElementRects:Jl,getClientRects:zl,getDimensions:ql,getScale:mt,isElement:de,isRTL:Xl};var Ha=(r,e,t)=>{let o=new Map,i={platform:kr,...t},a={...i.platform,_c:o};return Na(r,e,{...i,platform:a})};function za(r){return Ql(r)}function sn(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Ql(r){for(let e=r;e;e=sn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=sn(r);e;e=sn(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 eu(r,e,t){return Ha(r,e,{platform:{...kr,getOffsetParent:o=>kr.getOffsetParent(o,za)},middleware:[an({crossAxis:!0}),nn({allowedPlacements:[t]})]})}var fn={};F(fn,{FtdsBase:()=>dn,toFtdsBase:()=>Ja});var un={};F(un,{FtLitElement:()=>te});var ln={};F(ln,{ScopedRegistryLitElement:()=>Zt});var Ur=window,tu=Ur.ShadowRoot&&(Ur.ShadyCSS===void 0||Ur.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jm=Symbol();var ja=(r,e)=>{tu?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let o=document.createElement("style"),i=Ur.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)})};var Zt=class extends ye{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let t={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(t);return ja(o,e.elementStyles),o}};var Fr=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a},Za,Va=Symbol("constructorPrototype"),Ka=Symbol("constructorName"),qa=Symbol("exportpartsDebouncer"),Ga=Symbol("dynamicDependenciesLoaded"),te=class extends Zt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Za]=new Q(5),this[Ka]=this.constructor.name,this[Va]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ka]&&Object.setPrototypeOf(this,this[Va])}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[Ga]||(e[Ga]=!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,o,i;if(((o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,t,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&o!==void 0&&o)&&this[qa].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var t,o,i,a,s,c;let l=g=>g!=null&&g.trim().length>0,d=e.filter(l).map(g=>g.trim());if(d.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let y=(a=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],b=(c=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...y,...b).filter(l).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let p=[...h.values()].flatMap(g=>d.map(y=>`${g}:${y}--${g}`));this.setAttribute("exportparts",[...this.part,...p].join(", "))}};Za=qa;Fr([T()],te.prototype,"exportpartsPrefix",void 0);Fr([Ie([])],te.prototype,"exportpartsPrefixes",void 0);Fr([T()],te.prototype,"customStylesheet",void 0);Fr([No()],te.prototype,"useAdoptedStyleSheets",void 0);var Ya=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var c=r.length-1;c>=0;c--)(s=r[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a};function Ja(r){class e extends r{constructor(){super(...arguments),this.size=Ht.medium,this.family=Wt.neutral}getDesignSystemBaseClasses(){return{[zo(this.family)]:!0,[jo(this.size)]:!0}}}return Ya([T()],e.prototype,"size",void 0),Ya([T()],e.prototype,"family",void 0),e}var dn=class extends Ja(te){};var Xa={};var mn={};F(mn,{highlightHtml:()=>hn,highlightHtmlColorCssVariable:()=>Qa,highlightHtmlStyles:()=>ou});var tt=class r{constructor(e,t=!0,o=[],i=5e3){this.ctx=e,this.iframes=t,this.exclude=o,this.iframesTimeout=i}static matches(e,t){let o=typeof t=="string"?[t]:t,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(i){let a=!1;return o.every(s=>i.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let i=t.filter(a=>a.contains(o)).length>0;t.indexOf(o)===-1&&!i&&t.push(o)}),t}getIframeContents(e,t,o=()=>{}){let i;try{let a=e.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{o()}i&&t(i)}isIframeBlank(e){let t="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&o!==t&&o}observeIframeLoad(e,t,o){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,o):this.getIframeContents(e,t,o):this.observeIframeLoad(e,t,o)}catch{o()}}waitForIframes(e,t){let o=0;this.forEachIframe(e,()=>!0,i=>{o++,this.waitForIframes(i.querySelector("html"),()=>{--o||t()})},i=>{i||t()})}forEachIframe(e,t,o,i=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,c=0;a=Array.prototype.slice.call(a);let l=()=>{--s<=0&&i(c)};s||l(),a.forEach(d=>{r.matches(d,this.exclude)?l():this.onIframeReady(d,h=>{t(d)&&(c++,o(h)),l()},l)})}createIterator(e,t,o){return document.createNodeIterator(e,t,o,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,o){let i=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(t!==null){let s=t.compareDocumentPosition(o),c=Node.DOCUMENT_POSITION_FOLLOWING;if(s&c)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),o;return t===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:t,node:o}}checkIframeFilter(e,t,o,i){let a=!1,s=!1;return i.forEach((c,l)=>{c.val===o&&(a=l,s=c.handled)}),this.compareNodeIframe(e,t,o)?(a===!1&&!s?i.push({val:o,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:o,handled:!1}),!1)}handleOpenIframes(e,t,o,i){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,o,i)})})}iterateThroughNodes(e,t,o,i,a){let s=this.createIterator(t,e,i),c=[],l=[],d,h,p=()=>({prevNode:h,node:d}=this.getIteratorNode(s),d);for(;p();)this.iframes&&this.forEachIframe(t,g=>this.checkIframeFilter(d,h,g,c),g=>{this.createInstanceOnIframe(g).forEachNode(e,y=>l.push(y),i)}),l.push(d);l.forEach(g=>{o(g)}),this.iframes&&this.handleOpenIframes(c,e,o,i),a()}forEachNode(e,t,o,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(c=>{let l=()=>{this.iterateThroughNodes(e,c,t,o,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(c,l):l()})}};var qt=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new tt(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[t]=="function"&&o[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);c!==""&&l!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(c)}|${this.escapeStr(l)})`,`gm${o}`),i+`(${this.processSynomyms(c)}|${this.processSynomyms(l)})`+i))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,o,i)=>{let a=i.charAt(o+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&t.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],i=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),i.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,i=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(c=>{s+=`|${this.escapeStr(c)}`}),i){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(i=>{i.trim()&&t.indexOf(i)===-1&&t.push(i)}):o.trim()&&t.indexOf(o)===-1&&t.push(o)}),{keywords:t.sort((o,i)=>i.length-o.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],o=0;return e.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:c}=this.callNoMatchOnInvalidRanges(i,o);c&&(i.start=a,i.length=s-a,t.push(i),o=s)}),t}callNoMatchOnInvalidRanges(e,t){let o,i,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),i=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&i-t>0&&i-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:i,valid:a}}checkWhitespaceRanges(e,t,o){let i,a=!0,s=o.length,c=t-s,l=parseInt(e.start,10)-c;return l=l>s?s:l,i=l+parseInt(e.length,10),i>s&&(i=s,this.log(`End range automatically set to the max value of ${s}`)),l<0||i-l<0||l>s||i>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):o.substring(l,i).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:l,end:i,valid:a}}getTextNodes(e){let t="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{o.push({start:t.length,end:(t+=i.textContent).length,node:i})},i=>this.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:o})})}matchesExclude(e){return tt.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,o){let i=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(o-t),c=document.createElement(i);return c.setAttribute("data-markjs","true"),this.opt.className&&c.setAttribute("class",this.opt.className),c.textContent=a.textContent,a.parentNode.replaceChild(c,a),s}wrapRangeInMappedTextNode(e,t,o,i,a){e.nodes.every((s,c)=>{let l=e.nodes[c+1];if(typeof l>"u"||l.start>t){if(!i(s.node))return!1;let d=t-s.start,h=(o>s.end?s.end:o)-s.start,p=e.value.substr(0,s.start),g=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,d,h),e.value=p+g,e.nodes.forEach((y,b)=>{b>=c&&(e.nodes[b].start>0&&b!==c&&(e.nodes[b].start-=h),e.nodes[b].end-=h)}),o-=h,a(s.node.previousSibling,s.start),o>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,o,i,a){let s=t===0?0:t+1;this.getTextNodes(c=>{c.nodes.forEach(l=>{l=l.node;let d;for(;(d=e.exec(l.textContent))!==null&&d[s]!=="";){if(!o(d[s],l))continue;let h=d.index;if(s!==0)for(let p=1;p<s;p++)h+=d[p].length;l=this.wrapRangeInTextNode(l,h,h+d[s].length),i(l.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,o,i,a){let s=t===0?0:t+1;this.getTextNodes(c=>{let l;for(;(l=e.exec(c.value))!==null&&l[s]!=="";){let d=l.index;if(s!==0)for(let p=1;p<s;p++)d+=l[p].length;let h=d+l[s].length;this.wrapRangeInMappedTextNode(c,d,h,p=>o(l[s],p),(p,g)=>{e.lastIndex=g,i(p)})}a()})}wrapRangeFromIndex(e,t,o,i){this.getTextNodes(a=>{let s=a.value.length;e.forEach((c,l)=>{let{start:d,end:h,valid:p}=this.checkWhitespaceRanges(c,s,a.value);p&&this.wrapRangeInMappedTextNode(a,d,h,g=>t(g,c,a.value.substring(d,h),l),g=>{o(g,c)})}),i()})}unwrapMatches(e){let t=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));t.replaceChild(o,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let o=0,i="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](e,this.opt.ignoreGroups,(s,c)=>this.opt.filter(c,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,t){this.opt=t;let o=0,i="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),c=this.opt.caseSensitive?"":"i",l=d=>{let h=new RegExp(this.createRegExp(d),`gm${c}`),p=0;this.log(`Searching with expression "${h}"`),this[i](h,1,(g,y)=>this.opt.filter(y,d,o,p),g=>{p++,o++,this.opt.each(g)},()=>{p===0&&this.opt.noMatch(d),a[s-1]===d?this.opt.done(o):l(a[a.indexOf(d)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(o):l(a[0])}markRanges(e,t){this.opt=t;let o=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(a,s,c,l)=>this.opt.filter(a,s,c,l),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let i=tt.matches(o,t),a=this.matchesExclude(o);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function pn(r){let e=new qt(r);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this}var ru=pn,Qa=n.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),ou=V`
|
|
1
|
+
"use strict";(()=>{var fc=Object.create;var go=Object.defineProperty;var pc=Object.getOwnPropertyDescriptor;var hc=Object.getOwnPropertyNames;var yc=Object.getPrototypeOf,mc=Object.prototype.hasOwnProperty;var gc=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),D=(r,e)=>{for(var t in e)go(r,t,{get:e[t],enumerable:!0})},bc=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of hc(e))!mc.call(r,a)&&a!==t&&go(r,a,{get:()=>e[a],enumerable:!(n=pc(e,a))||n.enumerable});return r};var vc=(r,e,t)=>(t=r!=null?fc(yc(r)):{},bc(e||!r||!r.__esModule?go(t,"default",{value:r,enumerable:!0}):t,r));var Ds=gc((We,Ms)=>{var qr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Yr=function(){function r(){this.fetch=!1,this.DOMException=qr.DOMException}return r.prototype=qr,new r}();(function(r){var e=function(t){var n=typeof r<"u"&&r||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(m){return m&&DataView.prototype.isPrototypeOf(m)}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(m){return m&&s.indexOf(Object.prototype.toString.call(m))>-1};function d(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(m)||m==="")throw new TypeError('Invalid character in header field name: "'+m+'"');return m.toLowerCase()}function u(m){return typeof m!="string"&&(m=String(m)),m}function h(m){var v={next:function(){var R=m.shift();return{done:R===void 0,value:R}}};return a.iterable&&(v[Symbol.iterator]=function(){return v}),v}function p(m){this.map={},m instanceof p?m.forEach(function(v,R){this.append(R,v)},this):Array.isArray(m)?m.forEach(function(v){if(v.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+v.length);this.append(v[0],v[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(v){this.append(v,m[v])},this)}p.prototype.append=function(m,v){m=d(m),v=u(v);var R=this.map[m];this.map[m]=R?R+", "+v:v},p.prototype.delete=function(m){delete this.map[d(m)]},p.prototype.get=function(m){return m=d(m),this.has(m)?this.map[m]:null},p.prototype.has=function(m){return this.map.hasOwnProperty(d(m))},p.prototype.set=function(m,v){this.map[d(m)]=u(v)},p.prototype.forEach=function(m,v){for(var R in this.map)this.map.hasOwnProperty(R)&&m.call(v,this.map[R],R,this)},p.prototype.keys=function(){var m=[];return this.forEach(function(v,R){m.push(R)}),h(m)},p.prototype.values=function(){var m=[];return this.forEach(function(v){m.push(v)}),h(m)},p.prototype.entries=function(){var m=[];return this.forEach(function(v,R){m.push([R,v])}),h(m)},a.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function y(m){if(!m._noBody){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}}function g(m){return new Promise(function(v,R){m.onload=function(){v(m.result)},m.onerror=function(){R(m.error)}})}function b(m){var v=new FileReader,R=g(v);return v.readAsArrayBuffer(m),R}function O(m){var v=new FileReader,R=g(v),P=/charset=([A-Za-z0-9_-]+)/.exec(m.type),U=P?P[1]:"utf-8";return v.readAsText(m,U),R}function A(m){for(var v=new Uint8Array(m),R=new Array(v.length),P=0;P<v.length;P++)R[P]=String.fromCharCode(v[P]);return R.join("")}function E(m){if(m.slice)return m.slice(0);var v=new Uint8Array(m.byteLength);return v.set(new Uint8Array(m)),v.buffer}function C(){return this.bodyUsed=!1,this._initBody=function(m){this.bodyUsed=this.bodyUsed,this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:a.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:a.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():a.arrayBuffer&&a.blob&&i(m)?(this._bodyArrayBuffer=E(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||l(m))?this._bodyArrayBuffer=E(m):this._bodyText=m=Object.prototype.toString.call(m):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof m=="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(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var m=y(this);if(m)return m;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 m=y(this);return m||(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 m=y(this);if(m)return m;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(A(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(I)}),this.json=function(){return this.text().then(JSON.parse)},this}var x=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function S(m){var v=m.toUpperCase();return x.indexOf(v)>-1?v:m}function w(m,v){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var R=v.body;if(m instanceof w){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,v.headers||(this.headers=new p(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!R&&m._bodyInit!=null&&(R=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new p(v.headers)),this.method=S(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in n){var T=new AbortController;return T.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&R)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(R),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var P=/([?&])_=[^&]*/;if(P.test(this.url))this.url=this.url.replace(P,"$1_="+new Date().getTime());else{var U=/\?/;this.url+=(U.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})};function I(m){var v=new FormData;return m.trim().split("&").forEach(function(R){if(R){var P=R.split("="),U=P.shift().replace(/\+/g," "),T=P.join("=").replace(/\+/g," ");v.append(decodeURIComponent(U),decodeURIComponent(T))}}),v}function k(m){var v=new p,R=m.replace(/\r?\n[\t ]+/g," ");return R.split("\r").map(function(P){return P.indexOf(`
|
|
2
|
+
`)===0?P.substr(1,P.length):P}).forEach(function(P){var U=P.split(":"),T=U.shift().trim();if(T){var ce=U.join(":").trim();try{v.append(T,ce)}catch(At){console.warn("Response "+At.message)}}}),v}C.call(w.prototype);function F(m,v){if(!(this instanceof F))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=v.statusText===void 0?"":""+v.statusText,this.headers=new p(v.headers),this.url=v.url||"",this._initBody(m)}C.call(F.prototype),F.prototype.clone=function(){return new F(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},F.error=function(){var m=new F(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var M=[301,302,303,307,308];F.redirect=function(m,v){if(M.indexOf(v)===-1)throw new RangeError("Invalid status code");return new F(null,{status:v,headers:{location:m}})},t.DOMException=n.DOMException;try{new t.DOMException}catch{t.DOMException=function(v,R){this.message=v,this.name=R;var P=Error(v);this.stack=P.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function N(m,v){return new Promise(function(R,P){var U=new w(m,v);if(U.signal&&U.signal.aborted)return P(new t.DOMException("Aborted","AbortError"));var T=new XMLHttpRequest;function ce(){T.abort()}T.onload=function(){var G={statusText:T.statusText,headers:k(T.getAllResponseHeaders()||"")};U.url.indexOf("file://")===0&&(T.status<200||T.status>599)?G.status=200:G.status=T.status,G.url="responseURL"in T?T.responseURL:G.headers.get("X-Request-URL");var He="response"in T?T.response:T.responseText;setTimeout(function(){R(new F(He,G))},0)},T.onerror=function(){setTimeout(function(){P(new TypeError("Network request failed"))},0)},T.ontimeout=function(){setTimeout(function(){P(new TypeError("Network request timed out"))},0)},T.onabort=function(){setTimeout(function(){P(new t.DOMException("Aborted","AbortError"))},0)};function At(G){try{return G===""&&n.location.href?n.location.href:G}catch{return G}}if(T.open(U.method,At(U.url),!0),U.credentials==="include"?T.withCredentials=!0:U.credentials==="omit"&&(T.withCredentials=!1),"responseType"in T&&(a.blob?T.responseType="blob":a.arrayBuffer&&(T.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof p||n.Headers&&v.headers instanceof n.Headers)){var pa=[];Object.getOwnPropertyNames(v.headers).forEach(function(G){pa.push(d(G)),T.setRequestHeader(G,u(v.headers[G]))}),U.headers.forEach(function(G,He){pa.indexOf(He)===-1&&T.setRequestHeader(He,G)})}else U.headers.forEach(function(G,He){T.setRequestHeader(He,G)});U.signal&&(U.signal.addEventListener("abort",ce),T.onreadystatechange=function(){T.readyState===4&&U.signal.removeEventListener("abort",ce)}),T.send(typeof U._bodyInit>"u"?null:U._bodyInit)})}return N.polyfill=!0,n.fetch||(n.fetch=N,n.Headers=p,n.Request=w,n.Response=F),t.Headers=p,t.Request=w,t.Response=F,t.fetch=N,t}({})})(Yr);Yr.fetch.ponyfill=!0;delete Yr.fetch.polyfill;var Et=qr.fetch?qr:Yr;We=Et.fetch;We.default=Et.fetch;We.fetch=Et.fetch;We.Headers=Et.Headers;We.Request=Et.Request;We.Response=Et.Response;Ms.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(x,S){if(x=x.toLowerCase(),this._getDefinition(x)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${x}" has already been used with this registry`);if(this._definitionsByClass.get(S)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let w=S.prototype.attributeChangedCallback,I=new Set(S.observedAttributes||[]);y(S,I,w);let k={elementClass:S,connectedCallback:S.prototype.connectedCallback,disconnectedCallback:S.prototype.disconnectedCallback,adoptedCallback:S.prototype.adoptedCallback,attributeChangedCallback:w,formAssociated:S.formAssociated,formAssociatedCallback:S.prototype.formAssociatedCallback,formDisabledCallback:S.prototype.formDisabledCallback,formResetCallback:S.prototype.formResetCallback,formStateRestoreCallback:S.prototype.formStateRestoreCallback,observedAttributes:I};this._definitionsByTag.set(x,k),this._definitionsByClass.set(S,k);let F=t.call(n,x);F||(F=p(x),e.call(n,x,F)),this===window.customElements&&(s.set(S,k),k.standInClass=F);let M=this._awaitingUpgrade.get(x);if(M){this._awaitingUpgrade.delete(x);for(let m of M)i.delete(m),b(m,k,!0)}let N=this._whenDefinedPromises.get(x);return N!==void 0&&(N.resolve(S),this._whenDefinedPromises.delete(x)),S}upgrade(){A.push(this),n.upgrade.apply(n,arguments),A.pop()}get(x){return this._definitionsByTag.get(x)?.elementClass}_getDefinition(x){return this._definitionsByTag.get(x)}whenDefined(x){let S=this._getDefinition(x);if(S!==void 0)return Promise.resolve(S.elementClass);let w=this._whenDefinedPromises.get(x);return w===void 0&&(w={},w.promise=new Promise(I=>w.resolve=I),this._whenDefinedPromises.set(x,w)),w.promise}_upgradeWhenDefined(x,S,w){let I=this._awaitingUpgrade.get(S);I||this._awaitingUpgrade.set(S,I=new Set),w?I.add(x):I.delete(x)}};let d;window.HTMLElement=function(){let S=d;if(S)return d=void 0,S;let w=s.get(this.constructor);if(!w)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return S=Reflect.construct(r,[],w.standInClass),Object.setPrototypeOf(S,this.constructor.prototype),a.set(S,w),S},window.HTMLElement.prototype=r.prototype;let u=x=>x===document||x instanceof ShadowRoot,h=x=>{let S=x.getRootNode();if(!u(S)){let w=A[A.length-1];if(w instanceof CustomElementRegistry)return w;S=w.getRootNode(),u(S)||(S=l.get(S)?.getRootNode()||document)}return S.customElements},p=x=>class{static get formAssociated(){return!0}constructor(){let w=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(w,HTMLElement.prototype);let I=h(w)||window.customElements,k=I._getDefinition(x);return k?b(w,k):i.set(w,I),w}connectedCallback(){let w=a.get(this);w?w.connectedCallback&&w.connectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,x,!0)}disconnectedCallback(){let w=a.get(this);w?w.disconnectedCallback&&w.disconnectedCallback.apply(this,arguments):i.get(this)._upgradeWhenDefined(this,x,!1)}adoptedCallback(){a.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let w=a.get(this);w&&w.formAssociated&&w?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let w=a.get(this);w?.formAssociated&&w?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let w=a.get(this);w?.formAssociated&&w?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let w=a.get(this);w?.formAssociated&&w?.formStateRestoreCallback?.apply(this,arguments)}},y=(x,S,w)=>{if(S.size===0||w===void 0)return;let I=x.prototype.setAttribute;I&&(x.prototype.setAttribute=function(M,N){let m=M.toLowerCase();if(S.has(m)){let v=this.getAttribute(m);I.call(this,m,N),w.call(this,m,v,N)}else I.call(this,m,N)});let k=x.prototype.removeAttribute;k&&(x.prototype.removeAttribute=function(M){let N=M.toLowerCase();if(S.has(N)){let m=this.getAttribute(N);k.call(this,N),w.call(this,N,m,null)}else k.call(this,N)});let F=x.prototype.toggleAttribute;F&&(x.prototype.toggleAttribute=function(M,N){let m=M.toLowerCase();if(S.has(m)){let v=this.getAttribute(m);F.call(this,m,N);let R=this.getAttribute(m);w.call(this,m,v,R)}else F.call(this,m,N)})},g=x=>{let S=Object.getPrototypeOf(x);if(S!==window.HTMLElement)return S===r?Object.setPrototypeOf(x,window.HTMLElement):g(S)},b=(x,S,w=!1)=>{Object.setPrototypeOf(x,S.elementClass.prototype),a.set(x,S),d=x;try{new S.elementClass}catch{g(S.elementClass),new S.elementClass}S.attributeChangedCallback&&S.observedAttributes.forEach(I=>{x.hasAttribute(I)&&S.attributeChangedCallback.call(x,I,null,x.getAttribute(I))}),w&&S.connectedCallback&&x.isConnected&&S.connectedCallback.call(x)},O=Element.prototype.attachShadow;Element.prototype.attachShadow=function(x){let S=O.apply(this,arguments);return x.customElements&&(S.customElements=x.customElements),S};let A=[document],E=(x,S,w=void 0)=>{let I=(w?Object.getPrototypeOf(w):x.prototype)[S];x.prototype[S]=function(){A.push(this);let k=I.apply(w||this,arguments);return k!==void 0&&l.set(k,this),A.pop(),k}};E(ShadowRoot,"createElement",document),E(ShadowRoot,"importNode",document),E(Element,"insertAdjacentHTML");let C=(x,S)=>{let w=Object.getOwnPropertyDescriptor(x.prototype,S);Object.defineProperty(x.prototype,S,{...w,set(I){A.push(this),w.set.call(this,I),A.pop()}})};if(C(Element,"innerHTML"),C(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let x=new WeakMap,S=HTMLElement.prototype.attachInternals,w=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...M){let N=S.call(this,...M);return x.set(N,this),N},w.forEach(M=>{let N=window.ElementInternals.prototype,m=N[M];N[M]=function(...v){let R=x.get(this);if(a.get(R).formAssociated===!0)return m?.call(this,...v);throw new DOMException(`Failed to execute ${m} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class I extends Array{constructor(N){super(...N),this._elements=N}get value(){return this._elements.find(N=>N.checked===!0)?.value||""}}class k{constructor(N){let m=new Map;N.forEach((v,R)=>{let P=v.getAttribute("name"),U=m.get(P)||[];this[+R]=v,U.push(v),m.set(P,U)}),this.length=N.length,m.forEach((v,R)=>{v&&(v.length===1?this[R]=v[0]:this[R]=new I(v))})}namedItem(N){return this[N]}}let F=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let M=F.get.call(this,[]),N=[];for(let m of M){let v=a.get(m);(!v||v.formAssociated===!0)&&N.push(m)}return new k(N)}})}}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 _o={};D(_o,{CSSResult:()=>lt,LitElement:()=>xe,ReactiveElement:()=>le,_$LE:()=>zc,_$LH:()=>Bc,adoptStyles:()=>wr,css:()=>V,defaultConverter:()=>Er,getCompatibleStyle:()=>Ut,html:()=>ut,isServer:()=>Bu,noChange:()=>Ne,notEqual:()=>Eo,nothing:()=>z,render:()=>Io,supportsAdoptingStyleSheets:()=>Lt,svg:()=>$c,unsafeCSS:()=>kt});var lr=globalThis,ur=lr.ShadowRoot&&(lr.ShadyCSS===void 0||lr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ya=Symbol(),ha=new WeakMap,dr=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==ya)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(ur&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=ha.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&ha.set(t,e))}return e}toString(){return this.cssText}},ma=r=>new dr(typeof r=="string"?r:r+"",void 0,ya);var bo=(r,e)=>{if(ur)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let n=document.createElement("style"),a=lr.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=t.cssText,r.appendChild(n)}},fr=ur?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return ma(t)})(r):r;var{is:xc,defineProperty:Sc,getOwnPropertyDescriptor:Oc,getOwnPropertyNames:wc,getOwnPropertySymbols:Ec,getPrototypeOf:Cc}=Object,pr=globalThis,ga=pr.trustedTypes,Ac=ga?ga.emptyScript:"",Rc=pr.reactiveElementPolyfillSupport,Rt=(r,e)=>r,Nt={toAttribute(r,e){switch(e){case Boolean:r=r?Ac: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}},hr=(r,e)=>!xc(r,e),ba={attribute:!0,type:String,converter:Nt,reflect:!1,hasChanged:hr};Symbol.metadata??=Symbol("metadata"),pr.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=ba){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&&Sc(this.prototype,e,a)}}static getPropertyDescriptor(e,t,n){let{get:a,set:i}=Oc(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)??ba}static _$Ei(){if(this.hasOwnProperty(Rt("elementProperties")))return;let e=Cc(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Rt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Rt("properties"))){let t=this.properties,n=[...wc(t),...Ec(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(fr(a))}else e!==void 0&&t.push(fr(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 bo(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:Nt).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:Nt;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??hr)(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[Rt("elementProperties")]=new Map,ze[Rt("finalized")]=new Map,Rc?.({ReactiveElement:ze}),(pr.reactiveElementVersions??=[]).push("2.0.2");var xo=globalThis,yr=xo.trustedTypes,va=yr?yr.createPolicy("lit-html",{createHTML:r=>r}):void 0,So="$lit$",be=`lit$${(Math.random()+"").slice(9)}$`,Oo="?"+be,Nc=`<${Oo}>`,Ke=document,mr=()=>Ke.createComment(""),_t=r=>r===null||typeof r!="object"&&typeof r!="function",Ca=Array.isArray,Aa=r=>Ca(r)||typeof r?.[Symbol.iterator]=="function",vo=`[
|
|
3
|
+
\f\r]`,It=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xa=/-->/g,Sa=/>/g,je=RegExp(`>|${vo}(?:([^\\s"'>=/]+)(${vo}*=${vo}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Oa=/'/g,wa=/"/g,Ra=/^(?:script|style|textarea|title)$/i,Na=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),Ru=Na(1),Nu=Na(2),X=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),Ea=new WeakMap,Ve=Ke.createTreeWalker(Ke,129);function Ia(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return va!==void 0?va.createHTML(e):e}var _a=(r,e)=>{let t=r.length-1,n=[],a,i=e===2?"<svg>":"",s=It;for(let l=0;l<t;l++){let d=r[l],u,h,p=-1,y=0;for(;y<d.length&&(s.lastIndex=y,h=s.exec(d),h!==null);)y=s.lastIndex,s===It?h[1]==="!--"?s=xa:h[1]!==void 0?s=Sa:h[2]!==void 0?(Ra.test(h[2])&&(a=RegExp("</"+h[2],"g")),s=je):h[3]!==void 0&&(s=je):s===je?h[0]===">"?(s=a??It,p=-1):h[1]===void 0?p=-2:(p=s.lastIndex-h[2].length,u=h[1],s=h[3]===void 0?je:h[3]==='"'?wa:Oa):s===wa||s===Oa?s=je:s===xa||s===Sa?s=It:(s=je,a=void 0);let g=s===je&&r[l+1].startsWith("/>")?" ":"";i+=s===It?d+Nc:p>=0?(n.push(u),d.slice(0,p)+So+d.slice(p)+be+g):d+be+(p===-2?l:g)}return[Ia(r,i+(r[t]||"<?>")+(e===2?"</svg>":"")),n]},Tt=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]=_a(e,t);if(this.el=r.createElement(u,n),Ve.currentNode=this.el.content,t===2){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(a=Ve.nextNode())!==null&&d.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let p of a.getAttributeNames())if(p.endsWith(So)){let y=h[s++],g=a.getAttribute(p).split(be),b=/([.?@])?(.*)/.exec(y);d.push({type:1,index:i,name:b[2],strings:g,ctor:b[1]==="."?br:b[1]==="?"?vr:b[1]==="@"?xr:Ze}),a.removeAttribute(p)}else p.startsWith(be)&&(d.push({type:6,index:i}),a.removeAttribute(p));if(Ra.test(a.tagName)){let p=a.textContent.split(be),y=p.length-1;if(y>0){a.textContent=yr?yr.emptyScript:"";for(let g=0;g<y;g++)a.append(p[g],mr()),Ve.nextNode(),d.push({type:2,index:++i});a.append(p[y],mr())}}}else if(a.nodeType===8)if(a.data===Oo)d.push({type:2,index:i});else{let p=-1;for(;(p=a.data.indexOf(be,p+1))!==-1;)d.push({type:7,index:i}),p+=be.length-1}i++}}static createElement(e,t){let n=Ke.createElement("template");return n.innerHTML=e,n}};function Ge(r,e,t=r,n){if(e===X)return e;let a=n!==void 0?t._$Co?.[n]:t._$Cl,i=_t(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=Ge(r,a._$AS(r,e.values),a,n)),e}var gr=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??Ke).importNode(t,!0);Ve.currentNode=a;let i=Ve.nextNode(),s=0,l=0,d=n[0];for(;d!==void 0;){if(s===d.index){let u;d.type===2?u=new Pt(i,i.nextSibling,this,e):d.type===1?u=new d.ctor(i,d.name,d.strings,this,e):d.type===6&&(u=new Sr(i,this,e)),this._$AV.push(u),d=n[++l]}s!==d?.index&&(i=Ve.nextNode(),s++)}return Ve.currentNode=Ke,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++}},Pt=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,a){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ge(this,e,t),_t(e)?e===H||e==null||e===""?(this._$AH!==H&&this._$AR(),this._$AH=H):e!==this._$AH&&e!==X&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Aa(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!==H&&_t(this._$AH)?this._$AA.nextSibling.data=e:this.$(Ke.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=Tt.createElement(Ia(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(t);else{let i=new gr(a,this),s=i.u(this.options);i.p(t),this.$(s),this._$AH=i}}_$AC(e){let t=Ea.get(e.strings);return t===void 0&&Ea.set(e.strings,t=new Tt(e)),t}T(e){Ca(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(mr()),this.k(mr()),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=H,this._$AN=void 0,this.element=e,this.name=t,this._$AM=a,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=H}_$AI(e,t=this,n,a){let i=this.strings,s=!1;if(i===void 0)e=Ge(this,e,t,0),s=!_t(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=Ge(this,l[n+d],t,d),u===X&&(u=this._$AH[d]),s||=!_t(u)||u!==this._$AH[d],u===H?e=H:e!==H&&(e+=(u??"")+i[d+1]),this._$AH[d]=u}s&&!a&&this.O(e)}O(e){e===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},br=class extends Ze{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===H?void 0:e}},vr=class extends Ze{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==H)}},xr=class extends Ze{constructor(e,t,n,a,i){super(e,t,n,a,i),this.type=5}_$AI(e,t=this){if((e=Ge(this,e,t,0)??H)===X)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)}},Sr=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){Ge(this,e)}},Ta={j:So,P:be,A:Oo,C:1,M:_a,L:gr,R:Aa,V:Ge,D:Pt,I:Ze,H:vr,N:xr,U:br,B:Sr},Ic=xo.litHtmlPolyfillSupport;Ic?.(Tt,Pt),(xo.litHtmlVersions??=[]).push("3.1.0");var Or=globalThis,Lt=Or.ShadowRoot&&(Or.ShadyCSS===void 0||Or.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wo=Symbol(),Pa=new WeakMap,lt=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==wo)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(Lt&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=Pa.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Pa.set(t,e))}return e}toString(){return this.cssText}},kt=r=>new lt(typeof r=="string"?r:r+"",void 0,wo),V=(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 lt(t,r,wo)},wr=(r,e)=>{if(Lt)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let n=document.createElement("style"),a=Or.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=t.cssText,r.appendChild(n)}},Ut=Lt?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return kt(t)})(r):r;var{is:_c,defineProperty:Tc,getOwnPropertyDescriptor:Pc,getOwnPropertyNames:Lc,getOwnPropertySymbols:kc,getPrototypeOf:Uc}=Object,Cr=globalThis,La=Cr.trustedTypes,Fc=La?La.emptyScript:"",Mc=Cr.reactiveElementPolyfillSupport,Ft=(r,e)=>r,Er={toAttribute(r,e){switch(e){case Boolean:r=r?Fc: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}},Eo=(r,e)=>!_c(r,e),ka={attribute:!0,type:String,converter:Er,reflect:!1,hasChanged:Eo};Symbol.metadata??=Symbol("metadata"),Cr.litPropertyMetadata??=new WeakMap;var le=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=ka){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&&Tc(this.prototype,e,a)}}static getPropertyDescriptor(e,t,n){let{get:a,set:i}=Pc(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)??ka}static _$Ei(){if(this.hasOwnProperty(Ft("elementProperties")))return;let e=Uc(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ft("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ft("properties"))){let t=this.properties,n=[...Lc(t),...kc(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(Ut(a))}else e!==void 0&&t.push(Ut(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 wr(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:Er).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:Er;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??Eo)(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){}};le.elementStyles=[],le.shadowRootOptions={mode:"open"},le[Ft("elementProperties")]=new Map,le[Ft("finalized")]=new Map,Mc?.({ReactiveElement:le}),(Cr.reactiveElementVersions??=[]).push("2.0.2");var Ao=globalThis,Ar=Ao.trustedTypes,Ua=Ar?Ar.createPolicy("lit-html",{createHTML:r=>r}):void 0,Ro="$lit$",ve=`lit$${(Math.random()+"").slice(9)}$`,No="?"+ve,Dc=`<${No}>`,Je=document,Dt=()=>Je.createComment(""),$t=r=>r===null||typeof r!="object"&&typeof r!="function",Wa=Array.isArray,Ha=r=>Wa(r)||typeof r?.[Symbol.iterator]=="function",Co=`[
|
|
5
|
+
\f\r]`,Mt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Fa=/-->/g,Ma=/>/g,qe=RegExp(`>|${Co}(?:([^\\s"'>=/]+)(${Co}*=${Co}*(?:[^
|
|
6
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Da=/'/g,$a=/"/g,za=/^(?:script|style|textarea|title)$/i,ja=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),ut=ja(1),$c=ja(2),Ne=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),Ba=new WeakMap,Ye=Je.createTreeWalker(Je,129);function Va(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ua!==void 0?Ua.createHTML(e):e}var Ka=(r,e)=>{let t=r.length-1,n=[],a,i=e===2?"<svg>":"",s=Mt;for(let l=0;l<t;l++){let d=r[l],u,h,p=-1,y=0;for(;y<d.length&&(s.lastIndex=y,h=s.exec(d),h!==null);)y=s.lastIndex,s===Mt?h[1]==="!--"?s=Fa:h[1]!==void 0?s=Ma:h[2]!==void 0?(za.test(h[2])&&(a=RegExp("</"+h[2],"g")),s=qe):h[3]!==void 0&&(s=qe):s===qe?h[0]===">"?(s=a??Mt,p=-1):h[1]===void 0?p=-2:(p=s.lastIndex-h[2].length,u=h[1],s=h[3]===void 0?qe:h[3]==='"'?$a:Da):s===$a||s===Da?s=qe:s===Fa||s===Ma?s=Mt:(s=qe,a=void 0);let g=s===qe&&r[l+1].startsWith("/>")?" ":"";i+=s===Mt?d+Dc:p>=0?(n.push(u),d.slice(0,p)+Ro+d.slice(p)+ve+g):d+ve+(p===-2?l:g)}return[Va(r,i+(r[t]||"<?>")+(e===2?"</svg>":"")),n]},Bt=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]=Ka(e,t);if(this.el=r.createElement(u,n),Ye.currentNode=this.el.content,t===2){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(a=Ye.nextNode())!==null&&d.length<l;){if(a.nodeType===1){if(a.hasAttributes())for(let p of a.getAttributeNames())if(p.endsWith(Ro)){let y=h[s++],g=a.getAttribute(p).split(ve),b=/([.?@])?(.*)/.exec(y);d.push({type:1,index:i,name:b[2],strings:g,ctor:b[1]==="."?Nr:b[1]==="?"?Ir:b[1]==="@"?_r:Qe}),a.removeAttribute(p)}else p.startsWith(ve)&&(d.push({type:6,index:i}),a.removeAttribute(p));if(za.test(a.tagName)){let p=a.textContent.split(ve),y=p.length-1;if(y>0){a.textContent=Ar?Ar.emptyScript:"";for(let g=0;g<y;g++)a.append(p[g],Dt()),Ye.nextNode(),d.push({type:2,index:++i});a.append(p[y],Dt())}}}else if(a.nodeType===8)if(a.data===No)d.push({type:2,index:i});else{let p=-1;for(;(p=a.data.indexOf(ve,p+1))!==-1;)d.push({type:7,index:i}),p+=ve.length-1}i++}}static createElement(e,t){let n=Je.createElement("template");return n.innerHTML=e,n}};function Xe(r,e,t=r,n){if(e===Ne)return e;let a=n!==void 0?t._$Co?.[n]:t._$Cl,i=$t(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=Xe(r,a._$AS(r,e.values),a,n)),e}var Rr=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 dt(i,i.nextSibling,this,e):d.type===1?u=new d.ctor(i,d.name,d.strings,this,e):d.type===6&&(u=new Tr(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++}},dt=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=Xe(this,e,t),$t(e)?e===z||e==null||e===""?(this._$AH!==z&&this._$AR(),this._$AH=z):e!==this._$AH&&e!==Ne&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Ha(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&&$t(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=Bt.createElement(Va(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(t);else{let i=new Rr(a,this),s=i.u(this.options);i.p(t),this.$(s),this._$AH=i}}_$AC(e){let t=Ba.get(e.strings);return t===void 0&&Ba.set(e.strings,t=new Bt(e)),t}T(e){Wa(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(Dt()),this.k(Dt()),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))}},Qe=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=Xe(this,e,t,0),s=!$t(e)||e!==this._$AH&&e!==Ne,s&&(this._$AH=e);else{let l=e,d,u;for(e=i[0],d=0;d<i.length-1;d++)u=Xe(this,l[n+d],t,d),u===Ne&&(u=this._$AH[d]),s||=!$t(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??"")}},Nr=class extends Qe{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===z?void 0:e}},Ir=class extends Qe{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==z)}},_r=class extends Qe{constructor(e,t,n,a,i){super(e,t,n,a,i),this.type=5}_$AI(e,t=this){if((e=Xe(this,e,t,0)??z)===Ne)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)}},Tr=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){Xe(this,e)}},Bc={j:Ro,P:ve,A:No,C:1,M:Ka,L:Rr,R:Ha,V:Xe,D:dt,I:Qe,H:Ir,N:_r,U:Nr,B:Tr},Wc=Ao.litHtmlPolyfillSupport;Wc?.(Bt,dt),(Ao.litHtmlVersions??=[]).push("3.1.0");var Io=(r,e,t)=>{let n=t?.renderBefore??e,a=n._$litPart$;if(a===void 0){let i=t?.renderBefore??null;n._$litPart$=a=new dt(e.insertBefore(Dt(),i),i,void 0,t??{})}return a._$AI(r),a};var xe=class extends le{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=Io(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ne}};xe._$litElement$=!0,xe.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:xe});var Hc=globalThis.litElementPolyfillSupport;Hc?.({LitElement:xe});var zc={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Bu=!1;var Po={};D(Po,{customElement:()=>jc,eventOptions:()=>Kc,property:()=>L,query:()=>Gc,queryAll:()=>qc,queryAssignedElements:()=>Jc,queryAssignedNodes:()=>Xc,queryAsync:()=>Yc,standardProperty:()=>Ga,state:()=>To});var jc=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)};var Vc={attribute:!0,type:String,converter:Nt,reflect:!1,hasChanged:hr},Ga=(r=Vc,e,t)=>{let{kind:n,metadata:a}=t,i=globalThis.litPropertyMetadata.get(a);if(i===void 0&&globalThis.litPropertyMetadata.set(a,i=new Map),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 L(r){return(e,t)=>typeof t=="object"?Ga(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 To(r){return L({...r,state:!0,attribute:!1})}function Kc(r){return(e,t)=>{let n=typeof e=="function"?e:e[t];Object.assign(n,r)}}var ne=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function Gc(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 ne(t,n,{get(){let d=s.call(this);return d===void 0&&(d=i(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return ne(t,n,{get(){return i(this)}})}}var Zc;function qc(r){return(e,t)=>ne(e,t,{get(){return(this.renderRoot??(Zc??=document.createDocumentFragment())).querySelectorAll(r)}})}function Yc(r){return(e,t)=>ne(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function Jc(r){return(e,t)=>{let{slot:n,selector:a}=r??{},i="slot"+(n?`[name=${n}]`:":not([name])");return ne(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 Xc(r){return(e,t)=>{let{slot:n}=r??{},a="slot"+(n?`[name=${n}]`:":not([name])");return ne(e,t,{get(){return this.renderRoot?.querySelector(a)?.assignedNodes(r)??[]}})}}var Lo={};D(Lo,{repeat:()=>tl});var Ie={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},_e=r=>(...e)=>({_$litDirective$:r,values:e}),de=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:Qc}=Ta;var Za=()=>document.createComment(""),ft=(r,e,t)=>{let n=r._$AA.parentNode,a=e===void 0?r._$AB:e._$AA;if(t===void 0){let i=n.insertBefore(Za(),a),s=n.insertBefore(Za(),a);t=new Qc(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},Te=(r,e,t=r)=>(r._$AI(e,t),r),el={},qa=(r,e=el)=>r._$AH=e,Ya=r=>r._$AH,Pr=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 Ja=(r,e,t)=>{let n=new Map;for(let a=e;a<=t;a++)n.set(r[a],a);return n},tl=_e(class extends de{constructor(r){if(super(r),r.type!==Ie.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=Ya(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,p=0,y=a.length-1,g=0,b=i.length-1;for(;p<=y&&g<=b;)if(a[p]===null)p++;else if(a[y]===null)y--;else if(l[p]===s[g])d[g]=Te(a[p],i[g]),p++,g++;else if(l[y]===s[b])d[b]=Te(a[y],i[b]),y--,b--;else if(l[p]===s[b])d[b]=Te(a[p],i[b]),ft(r,d[b+1],a[p]),p++,b--;else if(l[y]===s[g])d[g]=Te(a[y],i[g]),ft(r,a[p],a[y]),y--,g++;else if(u===void 0&&(u=Ja(s,g,b),h=Ja(l,p,y)),u.has(l[p]))if(u.has(l[y])){let O=h.get(s[g]),A=O!==void 0?a[O]:null;if(A===null){let E=ft(r,a[p]);Te(E,i[g]),d[g]=E}else d[g]=Te(A,i[g]),ft(r,a[p],A),a[O]=null;g++}else Pr(a[y]),y--;else Pr(a[p]),p++;for(;g<=b;){let O=ft(r,d[b+1]);Te(O,i[g]),d[g++]=O}for(;p<=y;){let O=a[p++];O!==null&&Pr(O)}return this.dt=s,qa(r,d),X}});var ko={};D(ko,{classMap:()=>rl});var rl=_e(class extends de{constructor(r){if(super(r),r.type!==Ie.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 Uo={};D(Uo,{styleMap:()=>nl});var Xa="important",ol=" !"+Xa,nl=_e(class extends de{constructor(r){if(super(r),r.type!==Ie.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(ol);n.includes("-")||i?t.setProperty(n,i?a.slice(0,-11):a,i?Xa:""):t[n]=a}}return X}});var Fo={};D(Fo,{UnsafeHTMLDirective:()=>pt,unsafeHTML:()=>al});var pt=class extends de{constructor(e){if(super(e),this.et=H,e.type!==Ie.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===H||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:[]}}};pt.directiveName="unsafeHTML",pt.resultType=1;var al=_e(pt);var $o={};D($o,{CacheRegistry:()=>ue});var Do={};D(Do,{CancelablePromise:()=>ht,CanceledPromiseError:()=>et,cancelable:()=>Mo});var et=class extends Error{constructor(e,t,n){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=n}},ht=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}},Mo=r=>new ht((e,t)=>r.then(e).catch(t));var ue=class{constructor(){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(){for(let e in this.content)this.clear(e)}clear(e){this.finalContent.has(e)||this.forceClear(e)}forceClear(e){this.clearClearTimeout(e),this.content[e]instanceof ht&&this.content[e].cancel(),delete this.content[e]}clearClearTimeout(e){this.clearTimeouts[e]!=null&&(window.clearTimeout(this.clearTimeouts[e]),delete this.clearTimeouts[e])}set(e,t){this.forceClear(e),this.register(e,async()=>t),this.content[e]=t}setFinal(e,t){this.forceClear(e),this.registerFinal(e,async()=>t),this.content[e]=t}async get(e,t,n){if(this.content[e]===void 0){if(t=t??this.loaders[e],t==null)throw new Error("Unknown cache key "+e);let a=Mo(t());return this.content[e]=a,a.then(i=>(this.content[e]=i,n!=null&&(this.clearClearTimeout(e),this.clearTimeouts[e]=window.setTimeout(()=>this.clear(e),n)),i))}if(this.content[e]instanceof Error)throw this.content[e];return this.content[e]}isResolvedValue(e){return e!=null&&!(e instanceof Promise)&&!(e instanceof Error)}getNow(e){if(this.isResolvedValue(this.content[e]))return this.content[e]}has(e){return this.content[e]!=null}resolvedKeys(){return Object.keys(this.content).filter(e=>this.isResolvedValue(this.content[e]))}resolvedValues(){return Object.values(this.content).filter(e=>this.isResolvedValue(e))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var Bo={};D(Bo,{ClusteringHelper:()=>Wt});var Wt=class r{constructor(e,t,n,a){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=n,this.metadataDescriptors=a}static extractResultMetadata(e,t){var n,a;let i=((a=(n=e?.map)!==null&&n!==void 0?n:e?.document)!==null&&a!==void 0?a:e?.topic).metadata;return t==null?r.flattenMetadata(i):r.flattenMetadata(i.find(s=>s.key===t))}static flattenMetadata(e){if(Array.isArray(e))return e.map(n=>r.flattenMetadata(n)).filter(n=>n!=null);let t=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!t))if(t){let n=[],a=[];return e.hierarchicalValues.forEach(i=>{n.push(i.join(" > ")),i.length>2?a.push(`... > ${i[i.length-1]}`):a.push(i.join(" > "))}),{key:e.key,label:e.label,value:n.join(", "),displayValue:a.join(", ")}}else{let n=e.values.join(", ");return{key:e.key,label:e.label,value:n,displayValue:n}}}computeClustersItemsForMetadata(e,t,n="No value"){var a,i;let s=r.extractResultMetadata(this.selectedResult,e),l=(a=s?.label)!==null&&a!==void 0?a:(i=this.getMetadataDescriptor(e))===null||i===void 0?void 0:i.label;return this.allResults.map(u=>r.extractResultMetadata(u,e)).map(u=>u??{key:e,label:l,value:void 0,displayValue:n}).filter(u=>u.value!=s?.value).filter((u,h,p)=>p.findIndex(y=>y.value===u.value)===h).map(u=>({result:this.findBestResultForMetadataValue(e,u.value),metadata:u})).sort((u,h)=>this.compareMetadata(u.metadata.value,h.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(d,e))===null||u===void 0?void 0:u.value)==t}),i=[...r.extractResultMetadata(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(e).filter(n=>t.some(a=>a.key===n.key&&a.value===n.value)).length}};var Wo={};D(Wo,{Debouncer:()=>Q});var Q=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,n)=>{this.resolvePromise=t,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,i=(t=this.resolvePromise)!==null&&t!==void 0?t:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){a(l);return}i(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Vo={};D(Vo,{customElement:()=>jt,isNumber:()=>ti,jsonProperty:()=>Pe,optionalNumberProperty:()=>dl});var jo={};D(jo,{dateReviver:()=>il,deepEqual:()=>ae,delay:()=>Lr,eventPathContainsMatchingElement:()=>cl,flatDeep:()=>Qa,hasChanged:()=>zt,last:()=>ll,minmax:()=>zo,parseDate:()=>ei,waitFor:()=>Ht,waitUntil:()=>Ho});var Lr=r=>new Promise(e=>setTimeout(e,r));async function Ho(r,e=10,t=2e4){await Ht(async()=>await r()||void 0,e,t)}async function Ht(r,e=10,t=2e4){let n=await r(),a,i;for(a=i=performance.now();n==null&&(!t||i-a<t);)await Lr(e),n=await r(),i=performance.now();if(n==null)throw new Error("Timeout exceeded");return n}function Qa(r,e){return r.flatMap(t=>[t,...Qa(e(t),e)])}function il(...r){return function(e,t){return r.includes(e)?ei(t):t}}function ei(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(!ae(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(!ae(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();if(a=Object.keys(r),t=a.length,t!==Object.keys(e).length)return!1;for(n=t;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[n]))return!1;for(n=t;n--!==0;){var i=a[n];if(!ae(r[i],e[i]))return!1}return!0}return r!==r&&e!==e}function ae(r,e){try{return sl(r,e)}catch{return!1}}function zt(r,e){return!ae(r,e)}function cl(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 zo(r,e,t){return Math.min(Math.max(r,e),t)}function ll(r){return r[r.length-1]}var jt=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)};function Pe(r,e){let t=()=>JSON.parse(JSON.stringify(r));return L({type:Object,converter:{fromAttribute:n=>{if(n==null)return t();try{return JSON.parse(n)}catch{return t()}},toAttribute:n=>JSON.stringify(n)},hasChanged:zt,...e??{}})}function dl(r){return L({type:Object,converter:{fromAttribute:e=>{if(e!=null)return ti(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...r??{}})}function ti(r){return!isNaN(parseFloat(r))}var qo={};D(qo,{designSystemVariables:()=>Bl});var Zo={};D(Zo,{DesignSystemFamily:()=>Vt,DesignSystemSize:()=>Kt,FtCssVariableFactory:()=>o,badge:()=>bl,banner:()=>gl,breadcrumb:()=>vl,button:()=>pl,chart:()=>Pl,checkbox:()=>Ul,chip:()=>yl,chipChoice:()=>hl,collapsible:()=>_l,comboboxMultiSelect:()=>Nl,comboboxSingleSelect:()=>Rl,drawer:()=>Ol,floatingMenu:()=>Al,foundation:()=>c,link:()=>ml,modal:()=>Sl,notice:()=>kl,notification:()=>Dl,pageDesigner:()=>Ll,pageHeader:()=>xl,popover:()=>Il,radio:()=>Ml,resolveFamilyClass:()=>Ko,resolveSizeClass:()=>Go,semantic:()=>f,setVariable:()=>kr,switch_:()=>Tl,tabs:()=>wl,textArea:()=>Cl,textInput:()=>El,toggle:()=>Fl,tooltip:()=>$l,typographies:()=>ul,typographyBody1Medium:()=>si,typographyBody1Regular:()=>ii,typographyBody1Semibold:()=>ci,typographyBody2Medium:()=>di,typographyBody2MediumUnderline:()=>ui,typographyBody2Regular:()=>li,typographyBody2Semibold:()=>fi,typographyCaption1Bold:()=>Si,typographyCaption1Medium:()=>vi,typographyCaption1Semibold:()=>xi,typographyCaption2Bold:()=>Ei,typographyCaption2Medium:()=>Oi,typographyCaption2Semibold:()=>wi,typographyCaption3Bold:()=>Ri,typographyCaption3Medium:()=>Ci,typographyCaption3Semibold:()=>Ai,typographyDisplay:()=>ri,typographyLabel1Bold:()=>yi,typographyLabel1Medium:()=>pi,typographyLabel1Semibold:()=>hi,typographyLabel2Bold:()=>bi,typographyLabel2Medium:()=>mi,typographyLabel2Semibold:()=>gi,typographyTitle1:()=>oi,typographyTitle2:()=>ni,typographyTitle3:()=>ai,typographyVariants:()=>fl});var Se=r=>typeof r=="string"?kt(r):r,o=class{static create(e,t,n,a){let i=l=>Se(l??a),s=V`var(${Se(e)}, ${i(a)})`;return s.name=e,s.description=t,s.category=n,s.defaultValue=a,s.defaultCssValue=i,s.get=l=>V`var(${Se(e)}, ${i(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>a,s}static extend(e,t,n,a){let i=l=>n.get(l??a),s=V`var(${Se(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=>V`var(${Se(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):Se(i??e.lastResortDefaultValue()),a=V`var(${Se(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=>V`var(${Se(e.name)}, ${n(i)})`,a.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],a.lastResortDefaultValue=()=>e.lastResortDefaultValue(),a}};function kr(r,e){return Se(`${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(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 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"),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)")},ri={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")},oi={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")},ni={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")},ai={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")},ii={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")},si={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")},ci={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")},li={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")},di={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")},ui={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")},fi={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")},pi={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")},hi={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")},yi={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")},mi={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")},gi={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")},bi={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")},vi={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")},xi={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")},Si={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")},Oi={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")},wi={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")},Ei={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")},Ci={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")},Ai={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")},Ri={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")},ul={display:ri,"title-1":oi,"title-2":ni,"title-3":ai,"body-1-regular":ii,"body-1-medium":si,"body-1-semibold":ci,"body-2-regular":li,"body-2-medium":di,"body-2-medium-underline":ui,"body-2-semibold":fi,"label-1-medium":pi,"label-1-semibold":hi,"label-1-bold":yi,"label-2-medium":mi,"label-2-semibold":gi,"label-2-bold":bi,"caption-1-medium":vi,"caption-1-semibold":xi,"caption-1-bold":Si,"caption-2-medium":Oi,"caption-2-semibold":wi,"caption-2-bold":Ei,"caption-3-medium":Ci,"caption-3-semibold":Ai,"caption-3-bold":Ri},fl=["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 f={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 pl={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","",f.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",f.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",f.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",f.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","",f.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",f.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",f.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",f.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","",f.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",f.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",f.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","",f.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",f.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",f.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","",f.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",f.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",f.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","",f.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",f.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",f.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","",f.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",f.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",f.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","",f.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",f.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",f.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","",f.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","",f.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",f.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",f.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",f.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","",f.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",f.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",f.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",f.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","",f.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",f.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",f.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",f.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","",f.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",f.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",f.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",f.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","",f.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",f.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",f.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",f.contentErrorPrimary)};var hl={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","",f.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","",f.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",f.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",f.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",f.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","",f.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","",f.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",f.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",f.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",f.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",f.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 yl={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","",f.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",f.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",f.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",f.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",f.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",f.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",f.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",f.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",f.borderErrorSubtle)};var ml={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",f.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",f.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",f.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",f.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",f.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",f.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",f.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",f.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",f.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",f.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",f.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",f.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",f.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",f.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",f.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)};var gl={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","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",f.borderInfoSubtle)};var bl={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","",f.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",f.contentActionPrimary)};var vl={horizontalGap:o.extend("--ft-breadcrumb-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-breadcrumb-vertical-gap","",c.spacing2),currentColor:o.extend("--ft-breadcrumb-current-color","",f.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-breadcrumb-previous-non-clickable-color","",f.contentGlobalSecondary),iconColor:o.extend("--ft-breadcrumb-icon-color","",f.contentGlobalSubtle)};var xl={horizontalPadding:o.extend("--ft-page-header-horizontal-padding","",c.spacing6),horizontalGap:o.extend("--ft-page-header-horizontal-gap","",c.spacing4),verticalGap:o.extend("--ft-page-header-vertical-gap","",c.spacing2),classicVerticalPadding:o.extend("--ft-page-header-classic-vertical-padding","",c.spacing6),multilineVerticalPadding:o.extend("--ft-page-header-multiline-vertical-padding","",c.spacing4),inlineVerticalPadding:o.extend("--ft-page-header-inline-vertical-padding","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",f.borderGlobalSubtle),titleColor:o.extend("--ft-page-header-title-color","",f.contentGlobalPrimary),subtitleColor:o.extend("--ft-page-header-subtitle-color","",f.contentGlobalSecondary)};var Sl={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","",f.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","",f.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",f.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",f.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",f.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 Ol={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",f.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","",f.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",f.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",f.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","",f.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",f.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",f.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 wl={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","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",f.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",f.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","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",f.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","",f.borderActionFocusRing)};var El={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","",f.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",f.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",f.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","",f.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var Cl={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",f.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",f.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",f.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 Al={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","",f.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",f.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",f.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",f.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","",f.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var Rl={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","",f.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",f.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",f.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","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",f.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",f.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",f.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 Nl={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",f.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",f.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",f.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",f.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",f.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 Il={backgroundColor:o.extend("--ft-popover-background-color","",f.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","",f.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",f.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",f.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 _l={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","",f.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","",f.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",f.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",f.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",f.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)};var Tl={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","",f.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",f.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","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",f.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","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",f.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","",f.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var Pl={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)};var Ll={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 kl={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","",f.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",f.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",f.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",f.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",f.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",f.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",f.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",f.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",f.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",f.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",f.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",f.contentSuccessIconOnly)};var Ul={color:o.extend("--ft-checkbox-color","",f.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",f.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",f.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",f.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","",f.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 Fl={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","",f.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",f.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",f.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","",f.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",f.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",f.contentActionPrimary),color:o.extend("--ft-toggle-color","",f.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",f.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)};var Ml={color:o.extend("--ft-radio-color","",f.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",f.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",f.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","",f.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",f.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","",f.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 Dl={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","",f.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",f.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",f.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",f.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",f.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",f.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",f.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",f.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",f.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",f.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 $l={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","",f.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",f.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 Vt;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Vt||(Vt={}));var Kt;(function(r){r.large="large",r.medium="medium",r.small="small"})(Kt||(Kt={}));function Ko(r){return`ftds--family-${r}`}function Go(r){return`ftds--size-${r}`}var Bl={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 Qo={};D(Qo,{FtNotificationEvent:()=>Yo,PostResizeEvent:()=>Xo,PreResizeEvent:()=>Jo});var Yo=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})}},Xo=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var hn={};D(hn,{computeFlipOffsetPosition:()=>cd,computeOffsetPosition:()=>sd});var Ii=["top","right","bottom","left"],Ni=["start","end"],en=Ii.reduce((r,e)=>r.concat(e,e+"-"+Ni[0],e+"-"+Ni[1]),[]),qt=Math.min,Le=Math.max,Yt=Math.round;var Oe=r=>({x:r,y:r}),Wl={left:"right",right:"left",bottom:"top",top:"bottom"},Hl={start:"end",end:"start"};function tn(r,e,t){return Le(r,qt(e,t))}function yt(r,e){return typeof r=="function"?r(e):r}function fe(r){return r.split("-")[0]}function pe(r){return r.split("-")[1]}function rn(r){return r==="x"?"y":"x"}function on(r){return r==="y"?"height":"width"}function Jt(r){return["top","bottom"].includes(fe(r))?"y":"x"}function nn(r){return rn(Jt(r))}function an(r,e,t){t===void 0&&(t=!1);let n=pe(r),a=nn(r),i=on(a),s=a==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=Zt(s)),[s,Zt(s)]}function _i(r){let e=Zt(r);return[Gt(r),e,Gt(e)]}function Gt(r){return r.replace(/start|end/g,e=>Hl[e])}function zl(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 Ti(r,e,t,n){let a=pe(r),i=zl(fe(r),t==="start",n);return a&&(i=i.map(s=>s+"-"+a),e&&(i=i.concat(i.map(Gt)))),i}function Zt(r){return r.replace(/left|right|bottom|top/g,e=>Wl[e])}function jl(r){return{top:0,right:0,bottom:0,left:0,...r}}function Pi(r){return typeof r!="number"?jl(r):{top:r,right:r,bottom:r,left:r}}function tt(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function Li(r,e,t){let{reference:n,floating:a}=r,i=Jt(e),s=nn(e),l=on(s),d=fe(e),u=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,g;switch(d){case"top":g={x:h,y:n.y-a.height};break;case"bottom":g={x:h,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:p};break;case"left":g={x:n.x-a.width,y:p};break;default:g={x:n.x,y:n.y}}switch(pe(e)){case"start":g[s]-=y*(t&&u?-1:1);break;case"end":g[s]+=y*(t&&u?-1:1);break}return g}var ki=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:p}=Li(u,n,d),y=n,g={},b=0;for(let O=0;O<l.length;O++){let{name:A,fn:E}=l[O],{x:C,y:x,data:S,reset:w}=await E({x:h,y:p,initialPlacement:n,placement:y,strategy:a,middlewareData:g,rects:u,platform:s,elements:{reference:r,floating:e}});if(h=C??h,p=x??p,g={...g,[A]:{...g[A],...S}},w&&b<=50){b++,typeof w=="object"&&(w.placement&&(y=w.placement),w.rects&&(u=w.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:a}):w.rects),{x:h,y:p}=Li(u,y,d)),O=-1;continue}}return{x:h,y:p,placement:y,strategy:a,middlewareData:g}};async function Ur(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:p="floating",altBoundary:y=!1,padding:g=0}=yt(e,r),b=Pi(g),A=l[y?p==="floating"?"reference":"floating":p],E=tt(await i.getClippingRect({element:(t=await(i.isElement==null?void 0:i.isElement(A)))==null||t?A:A.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:h,strategy:d})),C=p==="floating"?{...s.floating,x:n,y:a}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),S=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},w=tt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:C,offsetParent:x,strategy:d}):C);return{top:(E.top-w.top+b.top)/S.y,bottom:(w.bottom-E.bottom+b.bottom)/S.y,left:(E.left-w.left+b.left)/S.x,right:(w.right-E.right+b.right)/S.x}}function Vl(r,e,t){return(r?[...t.filter(a=>pe(a)===r),...t.filter(a=>pe(a)!==r)]:t.filter(a=>fe(a)===a)).filter(a=>r?pe(a)===r||(e?Gt(a)!==a:!1):!0)}var sn=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:p,allowedPlacements:y=en,autoAlignment:g=!0,...b}=yt(r,e),O=p!==void 0||y===en?Vl(p||null,g,y):y,A=await Ur(e,b),E=((t=s.autoPlacement)==null?void 0:t.index)||0,C=O[E];if(C==null)return{};let x=an(C,i,await(d.isRTL==null?void 0:d.isRTL(u.floating)));if(l!==C)return{reset:{placement:O[0]}};let S=[A[fe(C)],A[x[0]],A[x[1]]],w=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:C,overflows:S}],I=O[E+1];if(I)return{data:{index:E+1,overflows:w},reset:{placement:I}};let k=w.map(N=>{let m=pe(N.placement);return[N.placement,m&&h?N.overflows.slice(0,2).reduce((v,R)=>v+R,0):N.overflows[0],N.overflows]}).sort((N,m)=>N[1]-m[1]),M=((a=k.filter(N=>N[2].slice(0,pe(N[0])?2:3).every(m=>m<=0))[0])==null?void 0:a[0])||k[0][0];return M!==l?{data:{index:E+1,overflows:w},reset:{placement:M}}:{}}}},cn=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:p=!0,fallbackPlacements:y,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:O=!0,...A}=yt(r,e);if((t=i.arrow)!=null&&t.alignmentOffset)return{};let E=fe(a),C=fe(l)===l,x=await(d.isRTL==null?void 0:d.isRTL(u.floating)),S=y||(C||!O?[Zt(l)]:_i(l));!y&&b!=="none"&&S.push(...Ti(l,O,b,x));let w=[l,...S],I=await Ur(e,A),k=[],F=((n=i.flip)==null?void 0:n.overflows)||[];if(h&&k.push(I[E]),p){let v=an(a,s,x);k.push(I[v[0]],I[v[1]])}if(F=[...F,{placement:a,overflows:k}],!k.every(v=>v<=0)){var M,N;let v=(((M=i.flip)==null?void 0:M.index)||0)+1,R=w[v];if(R)return{data:{index:v,overflows:F},reset:{placement:R}};let P=(N=F.filter(U=>U.overflows[0]<=0).sort((U,T)=>U.overflows[1]-T.overflows[1])[0])==null?void 0:N.placement;if(!P)switch(g){case"bestFit":{var m;let U=(m=F.map(T=>[T.placement,T.overflows.filter(ce=>ce>0).reduce((ce,At)=>ce+At,0)]).sort((T,ce)=>T[1]-ce[1])[0])==null?void 0:m[0];U&&(P=U);break}case"initialPlacement":P=l;break}if(a!==P)return{reset:{placement:P}}}return{}}}};async function Kl(r,e){let{placement:t,platform:n,elements:a}=r,i=await(n.isRTL==null?void 0:n.isRTL(a.floating)),s=fe(t),l=pe(t),d=Jt(t)==="y",u=["left","top"].includes(s)?-1:1,h=i&&d?-1:1,p=yt(e,r),{mainAxis:y,crossAxis:g,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return l&&typeof b=="number"&&(g=l==="end"?b*-1:b),d?{x:g*h,y:y*u}:{x:y*u,y:g*h}}var ln=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 Kl(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}}}}},dn=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:A=>{let{x:E,y:C}=A;return{x:E,y:C}}},...d}=yt(r,e),u={x:t,y:n},h=await Ur(e,d),p=Jt(fe(a)),y=rn(p),g=u[y],b=u[p];if(i){let A=y==="y"?"top":"left",E=y==="y"?"bottom":"right",C=g+h[A],x=g-h[E];g=tn(C,g,x)}if(s){let A=p==="y"?"top":"left",E=p==="y"?"bottom":"right",C=b+h[A],x=b-h[E];b=tn(C,b,x)}let O=l.fn({...e,[y]:g,[p]:b});return{...O,data:{x:O.x-t,y:O.y-n}}}}};function we(r){return Fi(r)?(r.nodeName||"").toLowerCase():"#document"}function Y(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Ee(r){var e;return(e=(Fi(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function Fi(r){return r instanceof Node||r instanceof Y(r).Node}function he(r){return r instanceof Element||r instanceof Y(r).Element}function ie(r){return r instanceof HTMLElement||r instanceof Y(r).HTMLElement}function Ui(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Y(r).ShadowRoot}function mt(r){let{overflow:e,overflowX:t,overflowY:n,display:a}=ee(r);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(a)}function Mi(r){return["table","td","th"].includes(we(r))}function Mr(r){let e=Dr(),t=ee(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 Di(r){let e=rt(r);for(;ie(e)&&!Xt(e);){if(Mr(e))return e;e=rt(e)}return null}function Dr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xt(r){return["html","body","#document"].includes(we(r))}function ee(r){return Y(r).getComputedStyle(r)}function Qt(r){return he(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function rt(r){if(we(r)==="html")return r;let e=r.assignedSlot||r.parentNode||Ui(r)&&r.host||Ee(r);return Ui(e)?e.host:e}function $i(r){let e=rt(r);return Xt(e)?r.ownerDocument?r.ownerDocument.body:r.body:ie(e)&&mt(e)?e:$i(e)}function Fr(r,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);let a=$i(r),i=a===((n=r.ownerDocument)==null?void 0:n.body),s=Y(a);return i?e.concat(s,s.visualViewport||[],mt(a)?a:[],s.frameElement&&t?Fr(s.frameElement):[]):e.concat(a,Fr(a,[],t))}function Hi(r){let e=ee(r),t=parseFloat(e.width)||0,n=parseFloat(e.height)||0,a=ie(r),i=a?r.offsetWidth:t,s=a?r.offsetHeight:n,l=Yt(t)!==i||Yt(n)!==s;return l&&(t=i,n=s),{width:t,height:n,$:l}}function zi(r){return he(r)?r:r.contextElement}function gt(r){let e=zi(r);if(!ie(e))return Oe(1);let t=e.getBoundingClientRect(),{width:n,height:a,$:i}=Hi(e),s=(i?Yt(t.width):t.width)/n,l=(i?Yt(t.height):t.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Gl=Oe(0);function ji(r){let e=Y(r);return!Dr()||!e.visualViewport?Gl:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Zl(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==Y(r)?!1:e}function er(r,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);let a=r.getBoundingClientRect(),i=zi(r),s=Oe(1);e&&(n?he(n)&&(s=gt(n)):s=gt(r));let l=Zl(i,t,n)?ji(i):Oe(0),d=(a.left+l.x)/s.x,u=(a.top+l.y)/s.y,h=a.width/s.x,p=a.height/s.y;if(i){let y=Y(i),g=n&&he(n)?Y(n):n,b=y.frameElement;for(;b&&n&&g!==y;){let O=gt(b),A=b.getBoundingClientRect(),E=ee(b),C=A.left+(b.clientLeft+parseFloat(E.paddingLeft))*O.x,x=A.top+(b.clientTop+parseFloat(E.paddingTop))*O.y;d*=O.x,u*=O.y,h*=O.x,p*=O.y,d+=C,u+=x,b=Y(b).frameElement}}return tt({width:h,height:p,x:d,y:u})}function ql(r){let{rect:e,offsetParent:t,strategy:n}=r,a=ie(t),i=Ee(t);if(t===i)return e;let s={scrollLeft:0,scrollTop:0},l=Oe(1),d=Oe(0);if((a||!a&&n!=="fixed")&&((we(t)!=="body"||mt(i))&&(s=Qt(t)),ie(t))){let u=er(t);l=gt(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 Yl(r){return Array.from(r.getClientRects())}function Vi(r){return er(Ee(r)).left+Qt(r).scrollLeft}function Jl(r){let e=Ee(r),t=Qt(r),n=r.ownerDocument.body,a=Le(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Le(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-t.scrollLeft+Vi(r),l=-t.scrollTop;return ee(n).direction==="rtl"&&(s+=Le(e.clientWidth,n.clientWidth)-a),{width:a,height:i,x:s,y:l}}function Xl(r,e){let t=Y(r),n=Ee(r),a=t.visualViewport,i=n.clientWidth,s=n.clientHeight,l=0,d=0;if(a){i=a.width,s=a.height;let u=Dr();(!u||u&&e==="fixed")&&(l=a.offsetLeft,d=a.offsetTop)}return{width:i,height:s,x:l,y:d}}function Ql(r,e){let t=er(r,!0,e==="fixed"),n=t.top+r.clientTop,a=t.left+r.clientLeft,i=ie(r)?gt(r):Oe(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 Bi(r,e,t){let n;if(e==="viewport")n=Xl(r,t);else if(e==="document")n=Jl(Ee(r));else if(he(e))n=Ql(e,t);else{let a=ji(r);n={...e,x:e.x-a.x,y:e.y-a.y}}return tt(n)}function Ki(r,e){let t=rt(r);return t===e||!he(t)||Xt(t)?!1:ee(t).position==="fixed"||Ki(t,e)}function ed(r,e){let t=e.get(r);if(t)return t;let n=Fr(r,[],!1).filter(l=>he(l)&&we(l)!=="body"),a=null,i=ee(r).position==="fixed",s=i?rt(r):r;for(;he(s)&&!Xt(s);){let l=ee(s),d=Mr(s);!d&&l.position==="fixed"&&(a=null),(i?!d&&!a:!d&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||mt(s)&&!d&&Ki(r,s))?n=n.filter(h=>h!==s):a=l,s=rt(s)}return e.set(r,n),n}function td(r){let{element:e,boundary:t,rootBoundary:n,strategy:a}=r,s=[...t==="clippingAncestors"?ed(e,this._c):[].concat(t),n],l=s[0],d=s.reduce((u,h)=>{let p=Bi(e,h,a);return u.top=Le(p.top,u.top),u.right=qt(p.right,u.right),u.bottom=qt(p.bottom,u.bottom),u.left=Le(p.left,u.left),u},Bi(e,l,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function rd(r){return Hi(r)}function od(r,e,t){let n=ie(e),a=Ee(e),i=t==="fixed",s=er(r,!0,i,e),l={scrollLeft:0,scrollTop:0},d=Oe(0);if(n||!n&&!i)if((we(e)!=="body"||mt(a))&&(l=Qt(e)),n){let u=er(e,!0,i,e);d.x=u.x+e.clientLeft,d.y=u.y+e.clientTop}else a&&(d.x=Vi(a));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function Wi(r,e){return!ie(r)||ee(r).position==="fixed"?null:e?e(r):r.offsetParent}function Gi(r,e){let t=Y(r);if(!ie(r))return t;let n=Wi(r,e);for(;n&&Mi(n)&&ee(n).position==="static";)n=Wi(n,e);return n&&(we(n)==="html"||we(n)==="body"&&ee(n).position==="static"&&!Mr(n))?t:n||Di(r)||t}var nd=async function(r){let{reference:e,floating:t,strategy:n}=r,a=this.getOffsetParent||Gi,i=this.getDimensions;return{reference:od(e,await a(t),n),floating:{x:0,y:0,...await i(t)}}};function ad(r){return ee(r).direction==="rtl"}var bt={convertOffsetParentRelativeRectToViewportRelativeRect:ql,getDocumentElement:Ee,getClippingRect:td,getOffsetParent:Gi,getElementRects:nd,getClientRects:Yl,getDimensions:rd,getScale:gt,isElement:he,isRTL:ad};var un=(r,e,t)=>{let n=new Map,a={platform:bt,...t},i={...a.platform,_c:n};return ki(r,e,{...a,platform:i})};function pn(r){return id(r)}function fn(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function id(r){for(let e=r;e;e=fn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=fn(r);e;e=fn(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 sd(r,e,t){return un(r,e,{platform:{...bt,getOffsetParent:n=>bt.getOffsetParent(n,pn)},middleware:[dn({crossAxis:!0}),sn({allowedPlacements:[t]})]})}async function cd(r,e,t,n,a){return un(r,e,{placement:t,strategy:a,platform:{...bt,getOffsetParent:i=>bt.getOffsetParent(i,pn)},middleware:[ln(4),cn({fallbackPlacements:n})]})}var bn={};D(bn,{FtdsBase:()=>gn,toFtdsBase:()=>ts});var mn={};D(mn,{FtLitElement:()=>te});var yn={};D(yn,{ScopedRegistryLitElement:()=>tr});var $r=window,ld=$r.ShadowRoot&&($r.ShadyCSS===void 0||$r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xy=Symbol();var Zi=(r,e)=>{ld?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let n=document.createElement("style"),a=$r.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=t.cssText,r.appendChild(n)})};var tr=class extends xe{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 Zi(n,e.elementStyles),n}};var Br=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},Xi,qi=Symbol("constructorPrototype"),Yi=Symbol("constructorName"),Qi=Symbol("exportpartsDebouncer"),Ji=Symbol("dynamicDependenciesLoaded"),te=class extends tr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Xi]=new Q(5),this[Yi]=this.constructor.name,this[qi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Yi]&&Object.setPrototypeOf(this,this[qi])}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[Ji]||(e[Ji]=!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[Qi].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=y=>y!=null&&y.trim().length>0,u=e.filter(d).map(y=>y.trim());if(u.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let y of(n=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let g=(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(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...g,...b).filter(d).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let p=[...h.values()].flatMap(y=>u.map(g=>`${y}:${g}--${y}`));this.setAttribute("exportparts",[...this.part,...p].join(", "))}};Xi=Qi;Br([L()],te.prototype,"exportpartsPrefix",void 0);Br([Pe([])],te.prototype,"exportpartsPrefixes",void 0);Br([L()],te.prototype,"customStylesheet",void 0);Br([To()],te.prototype,"useAdoptedStyleSheets",void 0);var es=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 ts(r){class e extends r{constructor(){super(...arguments),this.size=Kt.medium,this.family=Vt.neutral}getDesignSystemBaseClasses(){return{[Ko(this.family)]:!0,[Go(this.size)]:!0}}}return es([L()],e.prototype,"size",void 0),es([L()],e.prototype,"family",void 0),e}var gn=class extends ts(te){};var rs={};var Sn={};D(Sn,{highlightHtml:()=>xn,highlightHtmlColorCssVariable:()=>os,highlightHtmlStyles:()=>ud});var ot=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,p=()=>({prevNode:h,node:u}=this.getIteratorNode(s),u);for(;p();)this.iframes&&this.forEachIframe(t,y=>this.checkIframeFilter(u,h,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(e,g=>d.push(g),a)}),d.push(u);d.forEach(y=>{n(y)}),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 rr=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 ot(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 ot.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,p=e.value.substr(0,s.start),y=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,u,h),e.value=p+y,e.nodes.forEach((g,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 p=1;p<s;p++)h+=u[p].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 p=1;p<s;p++)u+=d[p].length;let h=u+d[s].length;this.wrapRangeInMappedTextNode(l,u,h,p=>n(d[s],p),(p,y)=>{e.lastIndex=y,a(p)})}i()})}wrapRangeFromIndex(e,t,n,a){this.getTextNodes(i=>{let s=i.value.length;e.forEach((l,d)=>{let{start:u,end:h,valid:p}=this.checkWhitespaceRanges(l,s,i.value);p&&this.wrapRangeInMappedTextNode(i,u,h,y=>t(y,l,i.value.substring(u,h),d),y=>{n(y,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}`),p=0;this.log(`Searching with expression "${h}"`),this[a](h,1,(y,g)=>this.opt.filter(g,u,n,p),y=>{p++,n++,this.opt.each(y)},()=>{p===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=ot.matches(n,t),i=this.matchesExclude(n);return!a||i?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function vn(r){let e=new rr(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 dd=vn,os=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),ud=V`
|
|
8
8
|
.highlight-html-match {
|
|
9
|
-
background: ${
|
|
9
|
+
background: ${os};
|
|
10
10
|
}
|
|
11
|
-
`;function
|
|
11
|
+
`;function xn(r,e,t){var n,a;let i=r.getAttribute("data-highlight-html-query");if((i??"")!==(e??"")){let s=new dd(r);if(s.unmark(),e&&e.trim()){let l={className:(n=t?.className)!==null&&n!==void 0?n:"highlight-html-match"};t?.attributes!=null&&(l.each=u=>{for(let h in t.attributes)u.setAttribute(h,t.attributes[h])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((a=e.match(/"[^"]+"/g))!==null&&a!==void 0?a:[]).forEach(u=>s.mark(u.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var On={};D(On,{noTextInputDefaultClearButton:()=>yd,noTextSelect:()=>fd,safariEllipsisFix:()=>hd,wordWrap:()=>pd});var fd=V`
|
|
12
12
|
.ft-no-text-select {
|
|
13
13
|
-webkit-touch-callout: none;
|
|
14
14
|
-webkit-user-select: none;
|
|
@@ -17,7 +17,7 @@ Also for action icons.`,u.colorGray200),contentGlobalSubtle:n.extend("--ft-conte
|
|
|
17
17
|
-ms-user-select: none;
|
|
18
18
|
user-select: none;
|
|
19
19
|
}
|
|
20
|
-
`,
|
|
20
|
+
`,pd=V`
|
|
21
21
|
.ft-word-wrap {
|
|
22
22
|
white-space: normal;
|
|
23
23
|
word-wrap: break-word;
|
|
@@ -29,7 +29,7 @@ Also for action icons.`,u.colorGray200),contentGlobalSubtle:n.extend("--ft-conte
|
|
|
29
29
|
-webkit-hyphens: auto;
|
|
30
30
|
hyphens: auto
|
|
31
31
|
}
|
|
32
|
-
`,
|
|
32
|
+
`,hd=V`
|
|
33
33
|
.ft-safari-ellipsis-fix {
|
|
34
34
|
margin-right: 0;
|
|
35
35
|
|
|
@@ -40,25 +40,25 @@ Also for action icons.`,u.colorGray200),contentGlobalSubtle:n.extend("--ft-conte
|
|
|
40
40
|
display: inline-block;
|
|
41
41
|
width: 0;
|
|
42
42
|
}
|
|
43
|
-
`,
|
|
43
|
+
`,yd=V`
|
|
44
44
|
input::-webkit-search-cancel-button,
|
|
45
45
|
input::-webkit-search-decoration,
|
|
46
46
|
input::-webkit-search-results-button,
|
|
47
47
|
input::-webkit-search-results-decoration {
|
|
48
48
|
display: none;
|
|
49
49
|
}
|
|
50
|
-
`;var es={};var yn={};F(yn,{ParametrizedLabelResolver:()=>Yt});var Yt=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var o,i;e=this.resolvePluralKey(e,t);let a=(i=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&i!==void 0?i:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((o,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(o,s))),e}resolvePluralKey(e,t){for(let o of t)if(typeof o=="number"){let i=`${String(e)}[\\=${o}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let o=i=>t?.includes("date")?e.toLocaleDateString(i):t?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return o(document.documentElement.lang)}catch{return o()}}};var zn={};F(zn,{FtCommandQueue:()=>Jt,FtLitElementRedux:()=>Le,FtReduxStore:()=>we,clearAllStores:()=>Ku,isFtReduxStore:()=>rt,redux:()=>fe,reduxEventListener:()=>lu,reduxReactive:()=>cu});var cu=()=>(r,e)=>{var t;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(t=o.reduxReactiveProperties)===null||t===void 0||t.add(e)},fe=r=>{let e=r??{};return(t,o)=>{var i;let a={hasChanged:$t,attribute:!1,...e};T(a)(t,o);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(i=e.selector)!==null&&i!==void 0?i:c=>c[o],store:e.store})}},lu=r=>(e,t)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(t,r)};var Jt=class{constructor(){this.queue=[]}add(e,t=!1){t&&(this.queue=this.queue.filter(o=>o.type!==e.type)),this.queue.push(e)}consume(e){let t=this.queue.find(o=>o.type===e);return t&&(this.queue=this.queue.filter(o=>o!==t)),t}};function rt(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ts,rs,os,Mr=Symbol("internalReduxEventsUnsubscribers"),Pe=Symbol("internalStoresUnsubscribers"),ot=Symbol("internalStores"),Le=class extends te{constructor(){super(...arguments),this[ts]=new Map,this[rs]=new Map,this[os]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(t=>e.has(t))&&this.updateFromStores()}getUnnamedStore(){if(this[ot].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ot].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[ot].get(e)}addStore(e,t){var o;t=(o=t??(rt(e)?e.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(t),this.setupStore(t,e)}removeStore(e){let t=typeof e=="string"?e:e.name;this.unsubscribeFromStore(t),this[ot].delete(t)}setupStore(e,t){this[ot].set(e,t),this.subscribeToStore(e,t),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ot].forEach((e,t)=>this.subscribeToStore(t,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,t)=>{let o=this.constructor.getPropertyOptions(t);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:t)){let i=this.getStore(e.store);i&&(e.store?this[Pe].has(e.store):this[Pe].size>0)&&(this[t]=e.selector(i.getState(),this))}})}subscribeToStore(e,t){var o;this[Pe].set(e,t.subscribe(()=>this.updateFromStores())),rt(t)&&t.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||t.name===i.store)){let s=c=>this[a](c);t.eventBus.addEventListener(i.eventName,s),this[Mr].push(()=>t.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Pe].forEach((e,t)=>this.unsubscribeFromStore(t)),this[Mr].forEach(e=>e()),this[Mr]=[]}unsubscribeFromStore(e){this[Pe].has(e)&&this[Pe].get(e)(),this[Pe].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};ts=Pe,rs=ot,os=Mr;Le.reduxProperties=new Map;Le.reduxReactiveProperties=new Set;Le.reduxEventListeners=new Map;function oe(r){for(var e=arguments.length,t=Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];if(0)var i,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Oe(r){return!!r&&!!r[B]}function se(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var o=Object.getPrototypeOf(t);if(o===null)return!0;var i=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===yu}(r)||Array.isArray(r)||!!r[us]||!!(!((e=r.constructor)===null||e===void 0)&&e[us])||Cn(r)||Rn(r))}function nt(r,e,t){t===void 0&&(t=!1),bt(r)===0?(t?Object.keys:yt)(r).forEach(function(o){t&&typeof o=="symbol"||e(o,r[o],r)}):r.forEach(function(o,i){return e(i,o,r)})}function bt(r){var e=r[B];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:Cn(r)?2:Rn(r)?3:0}function gt(r,e){return bt(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function uu(r,e){return bt(r)===2?r.get(e):r[e]}function ds(r,e,t){var o=bt(r);o===2?r.set(e,t):o===3?r.add(t):r[e]=t}function fs(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function Cn(r){return mu&&r instanceof Map}function Rn(r){return gu&&r instanceof Set}function ke(r){return r.o||r.t}function Nn(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=ms(r);delete e[B];for(var t=yt(e),o=0;o<t.length;o++){var i=t[o],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[i]})}return Object.create(Object.getPrototypeOf(r),e)}function In(r,e){return e===void 0&&(e=!1),_n(r)||Oe(r)||!se(r)||(bt(r)>1&&(r.set=r.add=r.clear=r.delete=du),Object.freeze(r),e&&nt(r,function(t,o){return In(o,!0)},!0)),r}function du(){oe(2)}function _n(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function pe(r){var e=An[r];return e||oe(18,r),e}function fu(r,e){An[r]||(An[r]=e)}function On(){return Qt}function bn(r,e){e&&(pe("Patches"),r.u=[],r.s=[],r.v=e)}function Dr(r){wn(r),r.p.forEach(pu),r.p=null}function wn(r){r===Qt&&(Qt=r.l)}function ns(r){return Qt={p:[],l:Qt,h:r,m:!0,_:0}}function pu(r){var e=r[B];e.i===0||e.i===1?e.j():e.g=!0}function vn(r,e){e._=e.p.length;var t=e.p[0],o=r!==void 0&&r!==t;return e.h.O||pe("ES5").S(e,r,o),o?(t[B].P&&(Dr(e),oe(4)),se(r)&&(r=$r(e,r),e.l||Br(e,r)),e.u&&pe("Patches").M(t[B].t,r,e.u,e.s)):r=$r(e,t,[]),Dr(e),e.u&&e.v(e.u,e.s),r!==hs?r:void 0}function $r(r,e,t){if(_n(e))return e;var o=e[B];if(!o)return nt(e,function(c,l){return is(r,o,e,c,l,t)},!0),e;if(o.A!==r)return e;if(!o.P)return Br(r,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var i=o.i===4||o.i===5?o.o=Nn(o.k):o.o,a=i,s=!1;o.i===3&&(a=new Set(i),i.clear(),s=!0),nt(a,function(c,l){return is(r,o,i,c,l,t,s)}),Br(r,i,!1),t&&r.u&&pe("Patches").N(o,t,r.u,r.s)}return o.o}function is(r,e,t,o,i,a,s){if(Oe(i)){var c=$r(r,i,a&&e&&e.i!==3&&!gt(e.R,o)?a.concat(o):void 0);if(ds(t,o,c),!Oe(c))return;r.m=!1}else s&&t.add(i);if(se(i)&&!_n(i)){if(!r.h.D&&r._<1)return;$r(r,i),e&&e.A.l||Br(r,i)}}function Br(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&In(e,t)}function xn(r,e){var t=r[B];return(t?ke(t):r)[e]}function as(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var o=Object.getOwnPropertyDescriptor(t,e);if(o)return o;t=Object.getPrototypeOf(t)}}function Ue(r){r.P||(r.P=!0,r.l&&Ue(r.l))}function Sn(r){r.o||(r.o=Nn(r.t))}function En(r,e,t){var o=Cn(e)?pe("MapSet").F(e,t):Rn(e)?pe("MapSet").T(e,t):r.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:On(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=c,d=er;s&&(l=[c],d=Xt);var h=Proxy.revocable(l,d),p=h.revoke,g=h.proxy;return c.k=g,c.j=p,g}(e,t):pe("ES5").J(e,t);return(t?t.A:On()).p.push(o),o}function hu(r){return Oe(r)||oe(22,r),function e(t){if(!se(t))return t;var o,i=t[B],a=bt(t);if(i){if(!i.P&&(i.i<4||!pe("ES5").K(i)))return i.t;i.I=!0,o=ss(t,a),i.I=!1}else o=ss(t,a);return nt(o,function(s,c){i&&uu(i.t,s)===c||ds(o,s,e(c))}),a===3?new Set(o):o}(r)}function ss(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return Nn(r)}function ps(){function r(s,c){var l=a[s];return l?l.enumerable=c:a[s]=l={configurable:!0,enumerable:c,get:function(){var d=this[B];return er.get(d,s)},set:function(d){var h=this[B];er.set(h,s,d)}},l}function e(s){for(var c=s.length-1;c>=0;c--){var l=s[c][B];if(!l.P)switch(l.i){case 5:o(l)&&Ue(l);break;case 4:t(l)&&Ue(l)}}}function t(s){for(var c=s.t,l=s.k,d=yt(l),h=d.length-1;h>=0;h--){var p=d[h];if(p!==B){var g=c[p];if(g===void 0&&!gt(c,p))return!0;var y=l[p],b=y&&y[B];if(b?b.t!==g:!fs(y,g))return!0}}var O=!!c[B];return d.length!==yt(c).length+(O?0:1)}function o(s){var c=s.k;if(c.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(c,c.length-1);if(l&&!l.get)return!0;for(var d=0;d<c.length;d++)if(!c.hasOwnProperty(d))return!0;return!1}function i(s){s.g&&oe(3,JSON.stringify(ke(s)))}var a={};fu("ES5",{J:function(s,c){var l=Array.isArray(s),d=function(p,g){if(p){for(var y=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(y,""+b,r(b,!0));return y}var O=ms(g);delete O[B];for(var C=yt(O),E=0;E<C.length;E++){var A=C[E];O[A]=r(A,p||!!O[A].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(l,s),h={i:l?5:4,A:c?c.A:On(),P:!1,I:!1,R:{},l:c,t:s,k:d,o:null,g:!1,C:!1};return Object.defineProperty(d,B,{value:h,writable:!0}),d},S:function(s,c,l){l?Oe(c)&&c[B].A===s&&e(s.p):(s.u&&function d(h){if(h&&typeof h=="object"){var p=h[B];if(p){var g=p.t,y=p.k,b=p.R,O=p.i;if(O===4)nt(y,function(S){S!==B&&(g[S]!==void 0||gt(g,S)?b[S]||d(y[S]):(b[S]=!0,Ue(p)))}),nt(g,function(S){y[S]!==void 0||gt(y,S)||(b[S]=!1,Ue(p))});else if(O===5){if(o(p)&&(Ue(p),b.length=!0),y.length<g.length)for(var C=y.length;C<g.length;C++)b[C]=!1;else for(var E=g.length;E<y.length;E++)b[E]=!0;for(var A=Math.min(y.length,g.length),x=0;x<A;x++)y.hasOwnProperty(x)||(b[x]=!0),b[x]===void 0&&d(y[x])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):o(s)}})}var cs,Qt,Tn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",mu=typeof Map<"u",gu=typeof Set<"u",ls=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",hs=Tn?Symbol.for("immer-nothing"):((cs={})["immer-nothing"]=!0,cs),us=Tn?Symbol.for("immer-draftable"):"__$immer_draftable",B=Tn?Symbol.for("immer-state"):"__$immer_state";var yu=""+Object.prototype.constructor,yt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,ms=Object.getOwnPropertyDescriptors||function(r){var e={};return yt(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},An={},er={get:function(r,e){if(e===B)return r;var t=ke(r);if(!gt(t,e))return function(i,a,s){var c,l=as(a,s);return l?"value"in l?l.value:(c=l.get)===null||c===void 0?void 0:c.call(i.k):void 0}(r,t,e);var o=t[e];return r.I||!se(o)?o:o===xn(r.t,e)?(Sn(r),r.o[e]=En(r.A.h,o,r)):o},has:function(r,e){return e in ke(r)},ownKeys:function(r){return Reflect.ownKeys(ke(r))},set:function(r,e,t){var o=as(ke(r),e);if(o?.set)return o.set.call(r.k,t),!0;if(!r.P){var i=xn(ke(r),e),a=i?.[B];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(fs(t,i)&&(t!==void 0||gt(r.t,e)))return!0;Sn(r),Ue(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 xn(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,Sn(r),Ue(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=ke(r),o=Reflect.getOwnPropertyDescriptor(t,e);return o&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:o.enumerable,value:t[e]}},defineProperty:function(){oe(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){oe(12)}},Xt={};nt(er,function(r,e){Xt[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Xt.deleteProperty=function(r,e){return Xt.set.call(this,r,e,void 0)},Xt.set=function(r,e,t){return er.set.call(this,r[0],e,t,r[0])};var bu=function(){function r(t){var o=this;this.O=ls,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var l=o;return function(O){var C=this;O===void 0&&(O=c);for(var E=arguments.length,A=Array(E>1?E-1:0),x=1;x<E;x++)A[x-1]=arguments[x];return l.produce(O,function(S){var w;return(w=a).call.apply(w,[C,S].concat(A))})}}var d;if(typeof a!="function"&&oe(6),s!==void 0&&typeof s!="function"&&oe(7),se(i)){var h=ns(o),p=En(o,i,void 0),g=!0;try{d=a(p),g=!1}finally{g?Dr(h):wn(h)}return typeof Promise<"u"&&d instanceof Promise?d.then(function(O){return bn(h,s),vn(O,h)},function(O){throw Dr(h),O}):(bn(h,s),vn(d,h))}if(!i||typeof i!="object"){if((d=a(i))===void 0&&(d=i),d===hs&&(d=void 0),o.D&&In(d,!0),s){var y=[],b=[];pe("Patches").M(i,d,y,b),s(y,b)}return d}oe(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(d){for(var h=arguments.length,p=Array(h>1?h-1:0),g=1;g<h;g++)p[g-1]=arguments[g];return o.produceWithPatches(d,function(y){return i.apply(void 0,[y].concat(p))})};var s,c,l=o.produce(i,a,function(d,h){s=d,c=h});return typeof Promise<"u"&&l instanceof Promise?l.then(function(d){return[d,s,c]}):[l,s,c]},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){se(t)||oe(8),Oe(t)&&(t=hu(t));var o=ns(this),i=En(this,t,void 0);return i[B].C=!0,wn(o),i},e.finishDraft=function(t,o){var i=t&&t[B],a=i.A;return bn(a,o),vn(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!ls&&oe(20),this.O=t},e.applyPatches=function(t,o){var i;for(i=o.length-1;i>=0;i--){var a=o[i];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}i>-1&&(o=o.slice(i+1));var s=pe("Patches").$;return Oe(t)?s(t,o):this.produce(t,function(c){return s(c,o)})},r}(),re=new bu,vu=re.produce,bg=re.produceWithPatches.bind(re),vg=re.setAutoFreeze.bind(re),xg=re.setUseProxies.bind(re),Sg=re.applyPatches.bind(re),Og=re.createDraft.bind(re),wg=re.finishDraft.bind(re),Wr=vu;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 Pn(r,e){if(Fe(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(Fe(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Ln(r){var e=Pn(r,"string");return Fe(e)==="symbol"?e:String(e)}function kn(r,e,t){return e=Ln(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function gs(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,o)}return t}function Hr(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?gs(Object(t),!0).forEach(function(o){kn(r,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):gs(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o))})}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 ys=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Un=function(){return Math.random().toString(36).substring(7).split("").join(".")},zr={INIT:"@@redux/INIT"+Un(),REPLACE:"@@redux/REPLACE"+Un(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Un()}};function xu(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 Fn(r,e,t){var o;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(Fn)(r,e)}if(typeof r!="function")throw new Error(Z(2));var i=r,a=e,s=[],c=s,l=!1;function d(){c===s&&(c=s.slice())}function h(){if(l)throw new Error(Z(3));return a}function p(O){if(typeof O!="function")throw new Error(Z(4));if(l)throw new Error(Z(5));var C=!0;return d(),c.push(O),function(){if(C){if(l)throw new Error(Z(6));C=!1,d();var A=c.indexOf(O);c.splice(A,1),s=null}}}function g(O){if(!xu(O))throw new Error(Z(7));if(typeof O.type>"u")throw new Error(Z(8));if(l)throw new Error(Z(9));try{l=!0,a=i(a,O)}finally{l=!1}for(var C=s=c,E=0;E<C.length;E++){var A=C[E];A()}return O}function y(O){if(typeof O!="function")throw new Error(Z(10));i=O,g({type:zr.REPLACE})}function b(){var O,C=p;return O={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(Z(11));function x(){A.next&&A.next(h())}x();var S=C(x);return{unsubscribe:S}}},O[ys]=function(){return this},O}return g({type:zr.INIT}),o={dispatch:g,subscribe:p,getState:h,replaceReducer:y},o[ys]=b,o}function Su(r){Object.keys(r).forEach(function(e){var t=r[e],o=t(void 0,{type:zr.INIT});if(typeof o>"u")throw new Error(Z(12));if(typeof t(void 0,{type:zr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Z(13))})}function bs(r){for(var e=Object.keys(r),t={},o=0;o<e.length;o++){var i=e[o];typeof r[i]=="function"&&(t[i]=r[i])}var a=Object.keys(t),s,c;try{Su(t)}catch(l){c=l}return function(d,h){if(d===void 0&&(d={}),c)throw c;if(0)var p;for(var g=!1,y={},b=0;b<a.length;b++){var O=a[b],C=t[O],E=d[O],A=C(E,h);if(typeof A>"u"){var x=h&&h.type;throw new Error(Z(14))}y[O]=A,g=g||A!==E}return g=g||a.length!==Object.keys(d).length,g?y:d}}function vt(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,i){return function(){return o(i.apply(void 0,arguments))}})}function vs(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(o){return function(){var i=o.apply(void 0,arguments),a=function(){throw new Error(Z(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(l){return l(s)});return a=vt.apply(void 0,c)(i.dispatch),Hr(Hr({},i),{},{dispatch:a})}}}function xs(r){var e=function(o){var i=o.dispatch,a=o.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,r):s(c)}}};return e}var Ss=xs();Ss.withExtraArgument=xs;var Mn=Ss;var Cs=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}}(),Ou=function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(d){return function(h){return l([d,h])}}function l(d){if(o)throw new TypeError("Generator is already executing.");for(;t;)try{if(o=1,i&&(a=d[0]&2?i.return:d[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,d[1])).done)return a;switch(i=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,i=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){t.label=d[1];break}if(d[0]===6&&t.label<a[1]){t.label=a[1],a=d;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(d);break}a[2]&&t.ops.pop(),t.trys.pop();continue}d=e.call(r,t)}catch(h){d=[6,h],i=0}finally{o=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},xt=function(r,e){for(var t=0,o=e.length,i=r.length;t<o;t++,i++)r[i]=e[t];return r},wu=Object.defineProperty,Eu=Object.defineProperties,Au=Object.getOwnPropertyDescriptors,Os=Object.getOwnPropertySymbols,Cu=Object.prototype.hasOwnProperty,Ru=Object.prototype.propertyIsEnumerable,ws=function(r,e,t){return e in r?wu(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Me=function(r,e){for(var t in e||(e={}))Cu.call(e,t)&&ws(r,t,e[t]);if(Os)for(var o=0,i=Os(e);o<i.length;o++){var t=i[o];Ru.call(e,t)&&ws(r,t,e[t])}return r},Dn=function(r,e){return Eu(r,Au(e))},Nu=function(r,e,t){return new Promise(function(o,i){var a=function(l){try{c(t.next(l))}catch(d){i(d)}},s=function(l){try{c(t.throw(l))}catch(d){i(d)}},c=function(l){return l.done?o(l.value):Promise.resolve(l.value).then(a,s)};c((t=t.apply(r,e)).next())})};var Iu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?vt:vt.apply(null,arguments)},Wg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function _u(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 Tu=function(r){Cs(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i=r.apply(this,t)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,xt([void 0],t[0].concat(this)))):new(e.bind.apply(e,xt([void 0],t.concat(this))))},e}(Array),Pu=function(r){Cs(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i=r.apply(this,t)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,xt([void 0],t[0].concat(this)))):new(e.bind.apply(e,xt([void 0],t.concat(this))))},e}(Array);function Wn(r){return se(r)?Wr(r,function(){}):r}function Lu(r){return typeof r=="boolean"}function ku(){return function(e){return Uu(e)}}function Uu(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,o=r.immutableCheck,i=o===void 0?!0:o,a=r.serializableCheck,s=a===void 0?!0:a,c=new Tu;if(t&&(Lu(t)?c.push(Mn):c.push(Mn.withExtraArgument(t.extraArgument))),0){if(i)var l;if(s)var d}return c}var $n=!0;function Rs(r){var e=ku(),t=r||{},o=t.reducer,i=o===void 0?void 0:o,a=t.middleware,s=a===void 0?e():a,c=t.devTools,l=c===void 0?!0:c,d=t.preloadedState,h=d===void 0?void 0:d,p=t.enhancers,g=p===void 0?void 0:p,y;if(typeof i=="function")y=i;else if(_u(i))y=bs(i);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),!$n&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!$n&&b.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=vs.apply(void 0,b),C=vt;l&&(C=Iu(Me({trace:!$n},typeof l=="object"&&l)));var E=new Pu(O),A=E;Array.isArray(g)?A=xt([O],g):typeof g=="function"&&(A=g(E));var x=C.apply(void 0,A);return Fn(y,h,x)}function De(r,e){function t(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return Me(Me({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:o[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(o){return o.type===r},t}function Ns(r){var e={},t=[],o,i={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,i},addMatcher:function(a,s){return t.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return o=a,i}};return r(i),[e,t,o]}function Fu(r){return typeof r=="function"}function Mu(r,e,t,o){t===void 0&&(t=[]);var i=typeof e=="function"?Ns(e):[e,t,o],a=i[0],s=i[1],c=i[2],l;if(Fu(r))l=function(){return Wn(r())};else{var d=Wn(r);l=function(){return d}}function h(p,g){p===void 0&&(p=l());var y=xt([a[g.type]],s.filter(function(b){var O=b.matcher;return O(g)}).map(function(b){var O=b.reducer;return O}));return y.filter(function(b){return!!b}).length===0&&(y=[c]),y.reduce(function(b,O){if(O)if(Oe(b)){var C=b,E=O(C,g);return E===void 0?b:E}else{if(se(b))return Wr(b,function(A){return O(A,g)});var E=O(b,g);if(E===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return b},p)}return h.getInitialState=l,h}function Du(r,e){return r+"/"+e}function Is(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:Wn(r.initialState),o=r.reducers||{},i=Object.keys(o),a={},s={},c={};i.forEach(function(h){var p=o[h],g=Du(e,h),y,b;"reducer"in p?(y=p.reducer,b=p.prepare):y=p,a[h]=y,s[g]=y,c[h]=b?De(g,b):De(g)});function l(){var h=typeof r.extraReducers=="function"?Ns(r.extraReducers):[r.extraReducers],p=h[0],g=p===void 0?{}:p,y=h[1],b=y===void 0?[]:y,O=h[2],C=O===void 0?void 0:O,E=Me(Me({},g),s);return Mu(t,function(A){for(var x in E)A.addCase(x,E[x]);for(var S=0,w=b;S<w.length;S++){var I=w[S];A.addMatcher(I.matcher,I.reducer)}C&&A.addDefaultCase(C)})}var d;return{name:e,reducer:function(h,p){return d||(d=l()),d(h,p)},actions:c,caseReducers:a,getInitialState:function(){return d||(d=l()),d.getInitialState()}}}var $u="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Bu=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=$u[Math.random()*64|0];return e},Wu=["name","message","stack","code"],Bn=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Es=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Hu=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,o=Wu;t<o.length;t++){var i=o[t];typeof r[i]=="string"&&(e[i]=r[i])}return e}return{message:String(r)}},Vg=function(){function r(e,t,o){var i=De(e+"/fulfilled",function(h,p,g,y){return{payload:h,meta:Dn(Me({},y||{}),{arg:g,requestId:p,requestStatus:"fulfilled"})}}),a=De(e+"/pending",function(h,p,g){return{payload:void 0,meta:Dn(Me({},g||{}),{arg:p,requestId:h,requestStatus:"pending"})}}),s=De(e+"/rejected",function(h,p,g,y,b){return{payload:y,error:(o&&o.serializeError||Hu)(h||"Rejected"),meta:Dn(Me({},b||{}),{arg:g,requestId:p,rejectedWithValue:!!y,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,l=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 d(h){return function(p,g,y){var b=o?.idGenerator?o.idGenerator(h):Bu(),O=new l,C,E=!1;function A(S){C=S,O.abort()}var x=function(){return Nu(this,null,function(){var S,w,I,k,M,U,N;return Ou(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),k=(S=o?.condition)==null?void 0:S.call(o,h,{getState:g,extra:y}),ju(k)?[4,k]:[3,2];case 1:k=m.sent(),m.label=2;case 2:if(k===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,M=new Promise(function(v,R){return O.signal.addEventListener("abort",function(){return R({name:"AbortError",message:C||"Aborted"})})}),p(a(b,h,(w=o?.getPendingMeta)==null?void 0:w.call(o,{requestId:b,arg:h},{getState:g,extra:y}))),[4,Promise.race([M,Promise.resolve(t(h,{dispatch:p,getState:g,extra:y,requestId:b,signal:O.signal,abort:A,rejectWithValue:function(v,R){return new Bn(v,R)},fulfillWithValue:function(v,R){return new Es(v,R)}})).then(function(v){if(v instanceof Bn)throw v;return v instanceof Es?i(v.payload,b,h,v.meta):i(v,b,h)})])];case 3:return I=m.sent(),[3,5];case 4:return U=m.sent(),I=U instanceof Bn?s(null,b,h,U.payload,U.meta):s(U,b,h),[3,5];case 5:return N=o&&!o.dispatchConditionRejection&&s.match(I)&&I.meta.condition,N||p(I),[2,I]}})})}();return Object.assign(x,{abort:A,requestId:b,arg:h,unwrap:function(){return x.then(zu)}})}}return Object.assign(d,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return r.withTypes=function(){return r},r}();function zu(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function ju(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var _s="listener",Ts="completed",Ps="cancelled",Kg="task-"+Ps,Gg="task-"+Ts,Zg=_s+"-"+Ps,qg=_s+"-"+Ts;var Hn="listenerMiddleware";var Yg=De(Hn+"/add"),Jg=De(Hn+"/removeAll"),Xg=De(Hn+"/remove");var As,Qg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(As||(As=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},Vu=function(r){return function(e){setTimeout(e,r)}},ey=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Vu(10);ps();window.ftReduxStores||(window.ftReduxStores={});var we=class r{static get(e){var t;let o=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(rt(a))return a;if(i==null)return;let s=Is({...i,reducers:(t=i.reducers)!==null&&t!==void 0?t:{}}),c=Rs({reducer:(l,d)=>d.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__")?{...l,...d.overwrites}:s.reducer(l,d)});return window.ftReduxStores[i.name]=new r(s,c)}constructor(e,t){this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Jt,this.actions=new Proxy(this.reduxSlice.actions,{get:(o,i,a)=>{let s=i,c=o[s];return c?(...l)=>{let d=c(...l);return this.reduxStore.dispatch(d),d}:l=>{this.setState({[s]:l})}}})}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 Ku(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))rt(e)&&e.clear()}var Kn={};F(Kn,{scrollHelper:()=>Gu});var jn,jr=new Map,Vn=class{lock(e,t){if(t){let o=jr.get(t);if(o==null||o===e)return jr.set(t,e),t}}release(e,t){t&&jr.get(t)===e&&jr.delete(t)}findFirstScrollableParent(e){let t,o=i=>{var a;i.stopPropagation();let s,c;for(let l of i.composedPath()){let d=l,h=this.elementCanScroll(d);if(h&&d.clientHeight&&d.clientHeight<d.scrollHeight){s=d;break}else h&&c==null&&(c=d)}t=(a=s??c)!==null&&a!==void 0?a:document.body};return e.addEventListener("find-scrollable-parent",o),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",o),t}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){let o=0;for(;t&&t.offsetParent!==e.offsetParent;)o+=t.offsetTop,t=t.offsetParent;return o+t.offsetTop-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let i=this.getAbsoluteScrollOffset(o,e),a=i-o.clientHeight+e.clientHeight,s=i,c=Bo(0,(s-o.scrollTop)/(s-a),1),l=this.computeTopOffsetRatio(t?.position,c)*(a-s)+s;o.scrollTo({behavior:t?.behavior,top:l})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(jn=window.FluidTopicsScrollHelper)!==null&&jn!==void 0?jn:new Vn;var Gu=window.FluidTopicsScrollHelper;var Gn={};F(Gn,{shadowQuerySelector:()=>Zu,shadowQuerySelectorAll:()=>qu});function Zu(r,e,...t){var o;let i=r.querySelector(e);for(let a of t)i=(o=i?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return i}function qu(r,e,...t){let o=[...r.querySelectorAll(e)];for(let i of t)o=o.flatMap(a=>{var s,c;return[...(c=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&c!==void 0?c:[]]});return o}var Zn={};F(Zn,{SearchPlaceConverter:()=>Zr,SearchPlaceQueryParams:()=>$,isSearchPlaceQueryParams:()=>tc,serializeRequest:()=>ed});var Ju=mc(ks(),1);var Us;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Us||(Us={}));var Fs;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Fs||(Fs={}));var Ms;(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"})(Ms||(Ms={}));var Ds;(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"})(Ds||(Ds={}));var $s;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})($s||($s={}));var Bs;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Bs||(Bs={}));var Ws;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Ws||(Ws={}));var Gr;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Gr||(Gr={}));var Hs;(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"})(Hs||(Hs={}));var zs;(function(r){r.ASC="ASC",r.DESC="DESC"})(zs||(zs={}));var js;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(js||(js={}));var Vs;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Vs||(Vs={}));var Js=r=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(r);var Ks;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Ks||(Ks={}));var Gs;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Gs||(Gs={}));var Zs;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Zs||(Zs={}));var tr;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(tr||(tr={}));var Xs=r=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(r);var qs;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(qs||(qs={}));var Ys;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(Ys||(Ys={}));var W;(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.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"})(W||(W={}));var Qs;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Qs||(Qs={}));var Yu={[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]};function ec(r,e){return r===e||(Yu[r]??[]).some(t=>ec(t,e))}function it(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>ec(o,e))}function Xu(r){return`"${r}"`}function Qu(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function ed(r,e){return new Zr(r,{}).serialize(e)}var $;(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"})($||($={}));var td=new Set(Object.values($));function tc(r){return td.has(r)}var Zr=class{constructor(e,t){this.baseUrl=e,this.predefinedSorts=t,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,t="/search"){let o=this.toURLSearchParams(e).toString();return new URL(`${this.baseUrl.replace(/\/+$/,"")}${t}?${o}`).href}toURLSearchParams(e){var t,o,i,a,s,c,l,d,h,p;let g=new URLSearchParams({[$.LOCALE]:(t=e.contentLocale)!==null&&t!==void 0?t:"all"});((o=e.query)===null||o===void 0?void 0:o.length)>0&&g.append($.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&g.append($.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&g.append($.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((i=e.sort)===null||i===void 0?void 0:i.length)>0&&e.sort[0].key==="ft:lastEdition"&&g.append($.SORT,"last_update");let y=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(E=>E.valueFilter))!==null&&s!==void 0?s:[];if(y.length>0){let E=y.map(A=>{var x,S;let w=((S=(x=A.valueFilter)===null||x===void 0?void 0:x.values)!==null&&S!==void 0?S:[]).map(I=>this.escapeFilters(I)).map(I=>encodeURIComponent(Xu(I))).join("_");return`${A.key}~${w}`}).join("*");g.append($.VALUE_FILTERS,E)}let b=(l=(c=e.metadataFilters)===null||c===void 0?void 0:c.filter(E=>E.dateFilter))!==null&&l!==void 0?l:[];if(b.length>0){let E=b.map(A=>{var x;return`${A.key}~${(x=A.dateFilter)===null||x===void 0?void 0:x.type.toLowerCase()}`}).join("*");g.append($.DATE_FILTERS,E)}let O=(h=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(E=>E.rangeFilter))!==null&&h!==void 0?h:[];if(O.length>0){let E=O.map(A=>{var x,S;return`${A.key}~${(x=A.rangeFilter)===null||x===void 0?void 0:x.from}_${(S=A.rangeFilter)===null||S===void 0?void 0:S.to}`}).join("*");g.append($.RANGE_FILTERS,E)}let C=(p=e.otherQueryParams)!==null&&p!==void 0?p:{};for(let E in C)g.append(E,C[E]);return g}parse(e){var t;let o=e.split("?"),i=this.fromURLSearchParams(new URLSearchParams(o.slice(1).join("?"))),a=o[0].split("/search/")[1];return a==null?i:{...i,scope:(t=this.scopeMapping[a])!==null&&t!==void 0?t:i.scope}}fromURLSearchParams(e){var t,o,i,a,s,c,l,d;let h=((t=e.get($.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),p=((o=e.get($.SORT))!==null&&o!==void 0?o:"DEFAULT").toUpperCase(),g=(i=e.get($.SCOPE))!==null&&i!==void 0?i:"default",y={};for(let b of e.keys())tc(b)||(y[b]=e.get(b));return{contentLocale:e.get($.LOCALE)==="all"?void 0:(a=e.get($.LOCALE))!==null&&a!==void 0?a:void 0,query:decodeURIComponent((s=e.get($.QUERY))!==null&&s!==void 0?s:""),scope:(c=this.scopeMapping[g])!==null&&c!==void 0?c:"DEFAULT",virtualField:Js(h)?h:"EVERYWHERE",sort:(d=(l=this.predefinedSorts[p])!==null&&l!==void 0?l:this.predefinedSorts.DEFAULT)!==null&&d!==void 0?d:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:20},otherQueryParams:y}}parseCompatFilters(e){var t,o,i,a,s,c;let l=[];return e.has($.FILTERS)&&(l=this.parseValueFilters((t=e.get($.FILTERS))!==null&&t!==void 0?t:"")),(o=e.has($.PERIOD))!==null&&o!==void 0&&o&&(l=[...l,...this.parseLegacyPeriodFilter(((i=e.get($.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...l,...this.parseValueFilters((a=e.get($.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get($.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((c=e.get($.RANGE_FILTERS))!==null&&c!==void 0?c:"")]}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(Qu).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:tr[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}escapeFilters(e){for(let[t,o,i]of this.filtersEscapeMapping)e=e.replaceAll(t,o);return e}superEscapeFilters(e){for(let[t,o,i]of this.filtersEscapeMapping)e=e.replaceAll(o,i);return e}unescapeFilterValue(e){for(let[t,o,i]of this.filtersEscapeMapping)e=e.replace(i,t);return e}parseLegacyPeriodFilter(e){if(Xs(e))return[{key:"ft:lastEdition",dateFilter:{type:tr[e]}}];if(e.startsWith("CUSTOM_")){let[t,o,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:i}}]}return[]}};var qn={};F(qn,{toFtFormComponent:()=>rd});var qr=Symbol("elementInternals");function rd(r,e){class t extends r{static get formAssociated(){return!0}get form(){return this[qr].form}constructor(...i){super(i),this[qr]=this.attachInternals(),this[qr].role=e}setFormValue(i){this[qr].setFormValue(i)}}return t}var Yn={};F(Yn,{DateFormatter:()=>Ot});var Ot=class{static format(e,t,o,i){return window.moment?window.moment(e).locale(t).format(this.getDateFormat(o,i)):e}static getDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}};var Jn,Xn,Qn,ei,od=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Qn=(Xn=(Jn=window.safari)===null||Jn===void 0?void 0:Jn.pushNotification)===null||Xn===void 0?void 0:Xn.toString())!==null&&Qn!==void 0?Qn:"")==="[object SafariRemoteNotification]",nd="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ei=window.ftGlobals)!==null&&ei!==void 0?ei:{lit:Ro,litDecorators:Io,litRepeat:_o,litClassMap:To,litStyleMap:Po,litUnsafeHTML:Lo,wcUtils:{...Fo,...Uo,...Mo,...Yn,...Do,...Ho,...Ko,...Yo,...cn,...Vo,...fn,...un,...Xa,...Wo,...mn,...gn,...es,...yn,...zn,...ln,...Kn,...Gn,...Zn,...qn,isSafari:od,isTouchScreen:nd,setVariable:Nr}};var rc=r=>we.get({name:"ft-reader-"+r,initialState:{mapId:void 0,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 ti=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,o){return e.flatMap(i=>(i.pageConfiguration&&this.registerPage(this.buildPage(i,o)),i.tocId==null?this.extractPagesToc(i.children,t,o):[{tocId:i.tocId,title:i.title,depth:t,children:this.extractPagesToc(i.children,t+1,i.tocId)}]))}convertNodes(e,t,o){return e.flatMap(i=>{var a,s,c;if(i.tocId==null)return[...this.convertSectionNodes((a=i.pageToc)!==null&&a!==void 0?a:[],t,i.tocId),...this.convertNodes(i.children,t,i.tocId)];let l=(s=i.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),d={tocId:i.tocId,contentId:i.contentId,title:i.title,hasRating:i.hasRating,origin:i.origin,prettyUrl:l,depth:t,parentTocId:o,children:[]};this.register(d);let h=this.convertSectionNodes((c=i.pageToc)!==null&&c!==void 0?c:[],t+1,i.tocId),p=this.convertNodes(i.children,t+1,d.tocId);return d.children=[...h,...p],[d]})}convertSectionNodes(e,t,o){return e.flatMap(i=>{var a;let s=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),c={...i,prettyUrl:s,depth:t,parentTocId:o,children:[]};return this.register(c),c.children=this.convertSectionNodes(i.children,t+1,i.tocId),[c]})}buildPage(e,t){var o,i,a,s,c,l;let d={number:this.pages.length+1,title:(o=e.title)!==null&&o!==void 0?o:"",rootTocId:(i=e.tocId)!==null&&i!==void 0?i:"root",toc:((a=e.pageToc)!==null&&a!==void 0?a:[]).map(g=>this.nodeByTocId[g.tocId]),topics:[],hiddenTopics:[],breadcrumb:t?this.buildBreadcrumb(this.nodeByTocId[t]):[]},h=(g,y)=>(y?d.topics:d.hiddenTopics).push(g),p=(c=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&c!==void 0?c:[];return d.breadcrumb.forEach((g,y)=>{h(g,p[y])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),d.topics.push(...this.tocIds((l=e.pageToc)!==null&&l!==void 0?l:[])),d}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}},Yr=class{convertPaginatedToc(e,t){return new ti(e,t).build()}};var Ee;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ee||(Ee={}));var oc=V`
|
|
51
|
-
`;var
|
|
50
|
+
`;var ns={};var wn={};D(wn,{ParametrizedLabelResolver:()=>or});var or=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 qn={};D(qn,{FtCommandQueue:()=>nr,FtLitElementRedux:()=>Ue,FtReduxStore:()=>Ae,clearAllStores:()=>eu,isFtReduxStore:()=>nt,redux:()=>ye,reduxEventListener:()=>gd,reduxReactive:()=>md});var md=()=>(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:zt,attribute:!1,...e};L(i)(t,n);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}},gd=r=>(e,t)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(t,r)};var nr=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 nt(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var as,is,ss,Wr=Symbol("internalReduxEventsUnsubscribers"),ke=Symbol("internalStoresUnsubscribers"),at=Symbol("internalStores"),Ue=class extends te{constructor(){super(...arguments),this[as]=new Map,this[is]=new Map,this[ss]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(t=>e.has(t))&&this.updateFromStores()}getUnnamedStore(){if(this[at].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[at].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[at].get(e)}addStore(e,t){var n;t=(n=t??(nt(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(t),this.setupStore(t,e)}removeStore(e){let t=typeof e=="string"?e:e.name;this.unsubscribeFromStore(t),this[at].delete(t)}setupStore(e,t){this[at].set(e,t),this.subscribeToStore(e,t),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[at].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())),nt(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.eventBus.addEventListener(a.eventName,s),this[Wr].push(()=>t.eventBus.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[ke].forEach((e,t)=>this.unsubscribeFromStore(t)),this[Wr].forEach(e=>e()),this[Wr]=[]}unsubscribeFromStore(e){this[ke].has(e)&&this[ke].get(e)(),this[ke].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};as=ke,is=at,ss=Wr;Ue.reduxProperties=new Map;Ue.reduxReactiveProperties=new Set;Ue.reduxEventListeners=new Map;function oe(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 Ce(r){return!!r&&!!r[B]}function se(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)===Cd}(r)||Array.isArray(r)||!!r[hs]||!!(!((e=r.constructor)===null||e===void 0)&&e[hs])||Pn(r)||Ln(r))}function it(r,e,t){t===void 0&&(t=!1),St(r)===0?(t?Object.keys:xt)(r).forEach(function(n){t&&typeof n=="symbol"||e(n,r[n],r)}):r.forEach(function(n,a){return e(a,n,r)})}function St(r){var e=r[B];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:Pn(r)?2:Ln(r)?3:0}function vt(r,e){return St(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function bd(r,e){return St(r)===2?r.get(e):r[e]}function ys(r,e,t){var n=St(r);n===2?r.set(e,t):n===3?r.add(t):r[e]=t}function ms(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function Pn(r){return wd&&r instanceof Map}function Ln(r){return Ed&&r instanceof Set}function Fe(r){return r.o||r.t}function kn(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=vs(r);delete e[B];for(var t=xt(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 Un(r,e){return e===void 0&&(e=!1),Fn(r)||Ce(r)||!se(r)||(St(r)>1&&(r.set=r.add=r.clear=r.delete=vd),Object.freeze(r),e&&it(r,function(t,n){return Un(n,!0)},!0)),r}function vd(){oe(2)}function Fn(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function me(r){var e=Tn[r];return e||oe(18,r),e}function xd(r,e){Tn[r]||(Tn[r]=e)}function Nn(){return ir}function En(r,e){e&&(me("Patches"),r.u=[],r.s=[],r.v=e)}function Hr(r){In(r),r.p.forEach(Sd),r.p=null}function In(r){r===ir&&(ir=r.l)}function cs(r){return ir={p:[],l:ir,h:r,m:!0,_:0}}function Sd(r){var e=r[B];e.i===0||e.i===1?e.j():e.g=!0}function Cn(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[B].P&&(Hr(e),oe(4)),se(r)&&(r=zr(e,r),e.l||jr(e,r)),e.u&&me("Patches").M(t[B].t,r,e.u,e.s)):r=zr(e,t,[]),Hr(e),e.u&&e.v(e.u,e.s),r!==bs?r:void 0}function zr(r,e,t){if(Fn(e))return e;var n=e[B];if(!n)return it(e,function(l,d){return ls(r,n,e,l,d,t)},!0),e;if(n.A!==r)return e;if(!n.P)return jr(r,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=kn(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),it(i,function(l,d){return ls(r,n,a,l,d,t,s)}),jr(r,a,!1),t&&r.u&&me("Patches").N(n,t,r.u,r.s)}return n.o}function ls(r,e,t,n,a,i,s){if(Ce(a)){var l=zr(r,a,i&&e&&e.i!==3&&!vt(e.R,n)?i.concat(n):void 0);if(ys(t,n,l),!Ce(l))return;r.m=!1}else s&&t.add(a);if(se(a)&&!Fn(a)){if(!r.h.D&&r._<1)return;zr(r,a),e&&e.A.l||jr(r,a)}}function jr(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&Un(e,t)}function An(r,e){var t=r[B];return(t?Fe(t):r)[e]}function ds(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 Rn(r){r.o||(r.o=kn(r.t))}function _n(r,e,t){var n=Pn(e)?me("MapSet").F(e,t):Ln(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:Nn(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,u=sr;s&&(d=[l],u=ar);var h=Proxy.revocable(d,u),p=h.revoke,y=h.proxy;return l.k=y,l.j=p,y}(e,t):me("ES5").J(e,t);return(t?t.A:Nn()).p.push(n),n}function Od(r){return Ce(r)||oe(22,r),function e(t){if(!se(t))return t;var n,a=t[B],i=St(t);if(a){if(!a.P&&(a.i<4||!me("ES5").K(a)))return a.t;a.I=!0,n=us(t,i),a.I=!1}else n=us(t,i);return it(n,function(s,l){a&&bd(a.t,s)===l||ys(n,s,e(l))}),i===3?new Set(n):n}(r)}function us(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return kn(r)}function gs(){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[B];return sr.get(u,s)},set:function(u){var h=this[B];sr.set(h,s,u)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][B];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=xt(d),h=u.length-1;h>=0;h--){var p=u[h];if(p!==B){var y=l[p];if(y===void 0&&!vt(l,p))return!0;var g=d[p],b=g&&g[B];if(b?b.t!==y:!ms(g,y))return!0}}var O=!!l[B];return u.length!==xt(l).length+(O?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&&oe(3,JSON.stringify(Fe(s)))}var i={};xd("ES5",{J:function(s,l){var d=Array.isArray(s),u=function(p,y){if(p){for(var g=Array(y.length),b=0;b<y.length;b++)Object.defineProperty(g,""+b,r(b,!0));return g}var O=vs(y);delete O[B];for(var A=xt(O),E=0;E<A.length;E++){var C=A[E];O[C]=r(C,p||!!O[C].enumerable)}return Object.create(Object.getPrototypeOf(y),O)}(d,s),h={i:d?5:4,A:l?l.A:Nn(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,B,{value:h,writable:!0}),u},S:function(s,l,d){d?Ce(l)&&l[B].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var p=h[B];if(p){var y=p.t,g=p.k,b=p.R,O=p.i;if(O===4)it(g,function(S){S!==B&&(y[S]!==void 0||vt(y,S)?b[S]||u(g[S]):(b[S]=!0,Me(p)))}),it(y,function(S){g[S]!==void 0||vt(g,S)||(b[S]=!1,Me(p))});else if(O===5){if(n(p)&&(Me(p),b.length=!0),g.length<y.length)for(var A=g.length;A<y.length;A++)b[A]=!1;else for(var E=y.length;E<g.length;E++)b[E]=!0;for(var C=Math.min(g.length,y.length),x=0;x<C;x++)g.hasOwnProperty(x)||(b[x]=!0),b[x]===void 0&&u(g[x])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):n(s)}})}var fs,ir,Mn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wd=typeof Map<"u",Ed=typeof Set<"u",ps=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",bs=Mn?Symbol.for("immer-nothing"):((fs={})["immer-nothing"]=!0,fs),hs=Mn?Symbol.for("immer-draftable"):"__$immer_draftable",B=Mn?Symbol.for("immer-state"):"__$immer_state";var Cd=""+Object.prototype.constructor,xt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,vs=Object.getOwnPropertyDescriptors||function(r){var e={};return xt(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},Tn={},sr={get:function(r,e){if(e===B)return r;var t=Fe(r);if(!vt(t,e))return function(a,i,s){var l,d=ds(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||!se(n)?n:n===An(r.t,e)?(Rn(r),r.o[e]=_n(r.A.h,n,r)):n},has:function(r,e){return e in Fe(r)},ownKeys:function(r){return Reflect.ownKeys(Fe(r))},set:function(r,e,t){var n=ds(Fe(r),e);if(n?.set)return n.set.call(r.k,t),!0;if(!r.P){var a=An(Fe(r),e),i=a?.[B];if(i&&i.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(ms(t,a)&&(t!==void 0||vt(r.t,e)))return!0;Rn(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 An(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,Rn(r),Me(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Fe(r),n=Reflect.getOwnPropertyDescriptor(t,e);return n&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:n.enumerable,value:t[e]}},defineProperty:function(){oe(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){oe(12)}},ar={};it(sr,function(r,e){ar[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ar.deleteProperty=function(r,e){return ar.set.call(this,r,e,void 0)},ar.set=function(r,e,t){return sr.set.call(this,r[0],e,t,r[0])};var Ad=function(){function r(t){var n=this;this.O=ps,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(O){var A=this;O===void 0&&(O=l);for(var E=arguments.length,C=Array(E>1?E-1:0),x=1;x<E;x++)C[x-1]=arguments[x];return d.produce(O,function(S){var w;return(w=i).call.apply(w,[A,S].concat(C))})}}var u;if(typeof i!="function"&&oe(6),s!==void 0&&typeof s!="function"&&oe(7),se(a)){var h=cs(n),p=_n(n,a,void 0),y=!0;try{u=i(p),y=!1}finally{y?Hr(h):In(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(O){return En(h,s),Cn(O,h)},function(O){throw Hr(h),O}):(En(h,s),Cn(u,h))}if(!a||typeof a!="object"){if((u=i(a))===void 0&&(u=a),u===bs&&(u=void 0),n.D&&Un(u,!0),s){var g=[],b=[];me("Patches").M(a,u,g,b),s(g,b)}return u}oe(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(u){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(u,function(g){return a.apply(void 0,[g].concat(p))})};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){se(t)||oe(8),Ce(t)&&(t=Od(t));var n=cs(this),a=_n(this,t,void 0);return a[B].C=!0,In(n),a},e.finishDraft=function(t,n){var a=t&&t[B],i=a.A;return En(i,n),Cn(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!ps&&oe(20),this.O=t},e.applyPatches=function(t,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}a>-1&&(n=n.slice(a+1));var s=me("Patches").$;return Ce(t)?s(t,n):this.produce(t,function(l){return s(l,n)})},r}(),re=new Ad,Rd=re.produce,Am=re.produceWithPatches.bind(re),Rm=re.setAutoFreeze.bind(re),Nm=re.setUseProxies.bind(re),Im=re.applyPatches.bind(re),_m=re.createDraft.bind(re),Tm=re.finishDraft.bind(re),Vr=Rd;function De(r){"@babel/helpers - typeof";return De=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},De(r)}function Dn(r,e){if(De(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(De(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function $n(r){var e=Dn(r,"string");return De(e)==="symbol"?e:String(e)}function Bn(r,e,t){return e=$n(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function xs(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 Kr(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?xs(Object(t),!0).forEach(function(n){Bn(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):xs(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 Ss=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Wn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Gr={INIT:"@@redux/INIT"+Wn(),REPLACE:"@@redux/REPLACE"+Wn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Wn()}};function Nd(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 Hn(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(Hn)(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 p(O){if(typeof O!="function")throw new Error(Z(4));if(d)throw new Error(Z(5));var A=!0;return u(),l.push(O),function(){if(A){if(d)throw new Error(Z(6));A=!1,u();var C=l.indexOf(O);l.splice(C,1),s=null}}}function y(O){if(!Nd(O))throw new Error(Z(7));if(typeof O.type>"u")throw new Error(Z(8));if(d)throw new Error(Z(9));try{d=!0,i=a(i,O)}finally{d=!1}for(var A=s=l,E=0;E<A.length;E++){var C=A[E];C()}return O}function g(O){if(typeof O!="function")throw new Error(Z(10));a=O,y({type:Gr.REPLACE})}function b(){var O,A=p;return O={subscribe:function(C){if(typeof C!="object"||C===null)throw new Error(Z(11));function x(){C.next&&C.next(h())}x();var S=A(x);return{unsubscribe:S}}},O[Ss]=function(){return this},O}return y({type:Gr.INIT}),n={dispatch:y,subscribe:p,getState:h,replaceReducer:g},n[Ss]=b,n}function Id(r){Object.keys(r).forEach(function(e){var t=r[e],n=t(void 0,{type:Gr.INIT});if(typeof n>"u")throw new Error(Z(12));if(typeof t(void 0,{type:Gr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Z(13))})}function Os(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{Id(t)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var p;for(var y=!1,g={},b=0;b<i.length;b++){var O=i[b],A=t[O],E=u[O],C=A(E,h);if(typeof C>"u"){var x=h&&h.type;throw new Error(Z(14))}g[O]=C,y=y||C!==E}return y=y||i.length!==Object.keys(u).length,y?g:u}}function Ot(){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 ws(){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=Ot.apply(void 0,l)(a.dispatch),Kr(Kr({},a),{},{dispatch:i})}}}function Es(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 Cs=Es();Cs.withExtraArgument=Es;var zn=Cs;var _s=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)}}(),_d=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}}},wt=function(r,e){for(var t=0,n=e.length,a=r.length;t<n;t++,a++)r[a]=e[t];return r},Td=Object.defineProperty,Pd=Object.defineProperties,Ld=Object.getOwnPropertyDescriptors,As=Object.getOwnPropertySymbols,kd=Object.prototype.hasOwnProperty,Ud=Object.prototype.propertyIsEnumerable,Rs=function(r,e,t){return e in r?Td(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},$e=function(r,e){for(var t in e||(e={}))kd.call(e,t)&&Rs(r,t,e[t]);if(As)for(var n=0,a=As(e);n<a.length;n++){var t=a[n];Ud.call(e,t)&&Rs(r,t,e[t])}return r},jn=function(r,e){return Pd(r,Ld(e))},Fd=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 Md=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ot:Ot.apply(null,arguments)},qm=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function Dd(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 $d=function(r){_s(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,wt([void 0],t[0].concat(this)))):new(e.bind.apply(e,wt([void 0],t.concat(this))))},e}(Array),Bd=function(r){_s(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,wt([void 0],t[0].concat(this)))):new(e.bind.apply(e,wt([void 0],t.concat(this))))},e}(Array);function Gn(r){return se(r)?Vr(r,function(){}):r}function Wd(r){return typeof r=="boolean"}function Hd(){return function(e){return zd(e)}}function zd(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 $d;if(t&&(Wd(t)?l.push(zn):l.push(zn.withExtraArgument(t.extraArgument))),0){if(a)var d;if(s)var u}return l}var Vn=!0;function Ts(r){var e=Hd(),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,p=t.enhancers,y=p===void 0?void 0:p,g;if(typeof a=="function")g=a;else if(Dd(a))g=Os(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),!Vn&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Vn&&b.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=ws.apply(void 0,b),A=Ot;d&&(A=Md($e({trace:!Vn},typeof d=="object"&&d)));var E=new Bd(O),C=E;Array.isArray(y)?C=wt([O],y):typeof y=="function"&&(C=y(E));var x=A.apply(void 0,C);return Hn(g,h,x)}function Be(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 $e($e({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 Ps(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 jd(r){return typeof r=="function"}function Vd(r,e,t,n){t===void 0&&(t=[]);var a=typeof e=="function"?Ps(e):[e,t,n],i=a[0],s=a[1],l=a[2],d;if(jd(r))d=function(){return Gn(r())};else{var u=Gn(r);d=function(){return u}}function h(p,y){p===void 0&&(p=d());var g=wt([i[y.type]],s.filter(function(b){var O=b.matcher;return O(y)}).map(function(b){var O=b.reducer;return O}));return g.filter(function(b){return!!b}).length===0&&(g=[l]),g.reduce(function(b,O){if(O)if(Ce(b)){var A=b,E=O(A,y);return E===void 0?b:E}else{if(se(b))return Vr(b,function(C){return O(C,y)});var E=O(b,y);if(E===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return b},p)}return h.getInitialState=d,h}function Kd(r,e){return r+"/"+e}function Ls(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:Gn(r.initialState),n=r.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var p=n[h],y=Kd(e,h),g,b;"reducer"in p?(g=p.reducer,b=p.prepare):g=p,i[h]=g,s[y]=g,l[h]=b?Be(y,b):Be(y)});function d(){var h=typeof r.extraReducers=="function"?Ps(r.extraReducers):[r.extraReducers],p=h[0],y=p===void 0?{}:p,g=h[1],b=g===void 0?[]:g,O=h[2],A=O===void 0?void 0:O,E=$e($e({},y),s);return Vd(t,function(C){for(var x in E)C.addCase(x,E[x]);for(var S=0,w=b;S<w.length;S++){var I=w[S];C.addMatcher(I.matcher,I.reducer)}A&&C.addDefaultCase(A)})}var u;return{name:e,reducer:function(h,p){return u||(u=d()),u(h,p)},actions:l,caseReducers:i,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var Gd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Zd=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=Gd[Math.random()*64|0];return e},qd=["name","message","stack","code"],Kn=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Ns=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Yd=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,n=qd;t<n.length;t++){var a=n[t];typeof r[a]=="string"&&(e[a]=r[a])}return e}return{message:String(r)}},Qm=function(){function r(e,t,n){var a=Be(e+"/fulfilled",function(h,p,y,g){return{payload:h,meta:jn($e({},g||{}),{arg:y,requestId:p,requestStatus:"fulfilled"})}}),i=Be(e+"/pending",function(h,p,y){return{payload:void 0,meta:jn($e({},y||{}),{arg:p,requestId:h,requestStatus:"pending"})}}),s=Be(e+"/rejected",function(h,p,y,g,b){return{payload:g,error:(n&&n.serializeError||Yd)(h||"Rejected"),meta:jn($e({},b||{}),{arg:y,requestId:p,rejectedWithValue:!!g,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(p,y,g){var b=n?.idGenerator?n.idGenerator(h):Zd(),O=new d,A,E=!1;function C(S){A=S,O.abort()}var x=function(){return Fd(this,null,function(){var S,w,I,k,F,M,N;return _d(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),k=(S=n?.condition)==null?void 0:S.call(n,h,{getState:y,extra:g}),Xd(k)?[4,k]:[3,2];case 1:k=m.sent(),m.label=2;case 2:if(k===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,F=new Promise(function(v,R){return O.signal.addEventListener("abort",function(){return R({name:"AbortError",message:A||"Aborted"})})}),p(i(b,h,(w=n?.getPendingMeta)==null?void 0:w.call(n,{requestId:b,arg:h},{getState:y,extra:g}))),[4,Promise.race([F,Promise.resolve(t(h,{dispatch:p,getState:y,extra:g,requestId:b,signal:O.signal,abort:C,rejectWithValue:function(v,R){return new Kn(v,R)},fulfillWithValue:function(v,R){return new Ns(v,R)}})).then(function(v){if(v instanceof Kn)throw v;return v instanceof Ns?a(v.payload,b,h,v.meta):a(v,b,h)})])];case 3:return I=m.sent(),[3,5];case 4:return M=m.sent(),I=M instanceof Kn?s(null,b,h,M.payload,M.meta):s(M,b,h),[3,5];case 5:return N=n&&!n.dispatchConditionRejection&&s.match(I)&&I.meta.condition,N||p(I),[2,I]}})})}();return Object.assign(x,{abort:C,requestId:b,arg:h,unwrap:function(){return x.then(Jd)}})}}return Object.assign(u,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return r.withTypes=function(){return r},r}();function Jd(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Xd(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var ks="listener",Us="completed",Fs="cancelled",eg="task-"+Fs,tg="task-"+Us,rg=ks+"-"+Fs,og=ks+"-"+Us;var Zn="listenerMiddleware";var ng=Be(Zn+"/add"),ag=Be(Zn+"/removeAll"),ig=Be(Zn+"/remove");var Is,sg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Is||(Is=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},Qd=function(r){return function(e){setTimeout(e,r)}},cg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Qd(10);gs();window.ftReduxStores||(window.ftReduxStores={});var Ae=class r{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(nt(i))return i;if(a==null)return;let s=Ls({...a,reducers:(t=a.reducers)!==null&&t!==void 0?t:{}}),l=Ts({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)}constructor(e,t){this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new nr,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let s=a,l=n[s];return l?(...d)=>{let u=l(...d);return this.reduxStore.dispatch(u),u}:d=>{this.setState({[s]:d})}}})}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 eu(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))nt(e)&&e.clear()}var Xn={};D(Xn,{scrollHelper:()=>tu});var Yn,Zr=new Map,Jn=class{lock(e,t){if(t){let n=Zr.get(t);if(n==null||n===e)return Zr.set(t,e),t}}release(e,t){t&&Zr.get(t)===e&&Zr.delete(t)}findFirstScrollableParent(e){let t,n=a=>{var i;a.stopPropagation();let s,l;for(let d of a.composedPath()){let u=d,h=this.elementCanScroll(u);if(h&&u.clientHeight&&u.clientHeight<u.scrollHeight){s=u;break}else h&&l==null&&(l=u)}t=(i=s??l)!==null&&i!==void 0?i:document.body};return e.addEventListener("find-scrollable-parent",n),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",n),t}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){let n=0;for(;t&&t.offsetParent!==e.offsetParent;)n+=t.offsetTop,t=t.offsetParent;return n+t.offsetTop-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=zo(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=(Yn=window.FluidTopicsScrollHelper)!==null&&Yn!==void 0?Yn:new Jn;var tu=window.FluidTopicsScrollHelper;var Qn={};D(Qn,{shadowQuerySelector:()=>ru,shadowQuerySelectorAll:()=>ou});function ru(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 ou(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 ea={};D(ea,{SearchPlaceConverter:()=>Xr,SearchPlaceQueryParams:()=>$,isSearchPlaceQueryParams:()=>ac,serializeRequest:()=>cu});var au=vc(Ds(),1);var $s;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})($s||($s={}));var Bs;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Bs||(Bs={}));var Ws;(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"})(Ws||(Ws={}));var Hs;(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"})(Hs||(Hs={}));var zs;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(zs||(zs={}));var js;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(js||(js={}));var Vs;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Vs||(Vs={}));var Jr;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Jr||(Jr={}));var Ks;(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"})(Ks||(Ks={}));var Gs;(function(r){r.ASC="ASC",r.DESC="DESC"})(Gs||(Gs={}));var Zs;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Zs||(Zs={}));var qs;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(qs||(qs={}));var tc=r=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(r);var Ys;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Ys||(Ys={}));var Js;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Js||(Js={}));var Xs;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Xs||(Xs={}));var cr;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(cr||(cr={}));var rc=r=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(r);var Qs;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(Qs||(Qs={}));var ec;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(ec||(ec={}));var W;(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.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"})(W||(W={}));var oc;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(oc||(oc={}));var nu={[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]};function nc(r,e){return r===e||(nu[r]??[]).some(t=>nc(t,e))}function st(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=>nc(n,e))}function iu(r){return`"${r}"`}function su(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function cu(r,e){return new Xr(r,{}).serialize(e)}var $;(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"})($||($={}));var lu=new Set(Object.values($));function ac(r){return lu.has(r)}var Xr=class{constructor(e,t){this.baseUrl=e,this.predefinedSorts=t,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,t="/search"){let n=this.toURLSearchParams(e).toString();return new URL(`${this.baseUrl.replace(/\/+$/,"")}${t}?${n}`).href}toURLSearchParams(e){var t,n,a,i,s,l,d,u,h,p;let y=new URLSearchParams({[$.LOCALE]:(t=e.contentLocale)!==null&&t!==void 0?t:"all"});((n=e.query)===null||n===void 0?void 0:n.length)>0&&y.append($.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&y.append($.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&y.append($.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((a=e.sort)===null||a===void 0?void 0:a.length)>0&&e.sort[0].key==="ft:lastEdition"&&y.append($.SORT,"last_update");let g=(s=(i=e.metadataFilters)===null||i===void 0?void 0:i.filter(E=>E.valueFilter))!==null&&s!==void 0?s:[];if(g.length>0){let E=g.map(C=>{var x,S;let w=((S=(x=C.valueFilter)===null||x===void 0?void 0:x.values)!==null&&S!==void 0?S:[]).map(I=>this.escapeFilters(I)).map(I=>encodeURIComponent(iu(I))).join("_");return`${C.key}~${w}`}).join("*");y.append($.VALUE_FILTERS,E)}let b=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(E=>E.dateFilter))!==null&&d!==void 0?d:[];if(b.length>0){let E=b.map(C=>{var x;return`${C.key}~${(x=C.dateFilter)===null||x===void 0?void 0:x.type.toLowerCase()}`}).join("*");y.append($.DATE_FILTERS,E)}let O=(h=(u=e.metadataFilters)===null||u===void 0?void 0:u.filter(E=>E.rangeFilter))!==null&&h!==void 0?h:[];if(O.length>0){let E=O.map(C=>{var x,S;return`${C.key}~${(x=C.rangeFilter)===null||x===void 0?void 0:x.from}_${(S=C.rangeFilter)===null||S===void 0?void 0:S.to}`}).join("*");y.append($.RANGE_FILTERS,E)}let A=(p=e.otherQueryParams)!==null&&p!==void 0?p:{};for(let E in A)y.append(E,A[E]);return y}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=((t=e.get($.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),p=((n=e.get($.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),y=(a=e.get($.SCOPE))!==null&&a!==void 0?a:"default",g={};for(let b of e.keys())ac(b)||(g[b]=e.get(b));return{contentLocale:e.get($.LOCALE)==="all"?void 0:(i=e.get($.LOCALE))!==null&&i!==void 0?i:void 0,query:decodeURIComponent((s=e.get($.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:tc(h)?h:"EVERYWHERE",sort:(u=(d=this.predefinedSorts[p])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&u!==void 0?u:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:20},otherQueryParams:g}}parseCompatFilters(e){var t,n,a,i,s,l;let d=[];return e.has($.FILTERS)&&(d=this.parseValueFilters((t=e.get($.FILTERS))!==null&&t!==void 0?t:"")),(n=e.has($.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get($.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get($.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get($.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get($.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(su).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:cr[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(rc(e))return[{key:"ft:lastEdition",dateFilter:{type:cr[e]}}];if(e.startsWith("CUSTOM_")){let[t,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var ta={};D(ta,{toFtFormComponent:()=>du});var Qr=Symbol("elementInternals");function du(r,e){class t extends r{static get formAssociated(){return!0}get form(){return this[Qr].form}constructor(...a){super(a),this[Qr]=this.attachInternals(),this[Qr].role=e}setFormValue(a){this[Qr].setFormValue(a)}}return t}var ra={};D(ra,{DateFormatter:()=>Ct});var Ct=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 oa,na,aa,ia,uu=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((aa=(na=(oa=window.safari)===null||oa===void 0?void 0:oa.pushNotification)===null||na===void 0?void 0:na.toString())!==null&&aa!==void 0?aa:"")==="[object SafariRemoteNotification]",fu="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ia=window.ftGlobals)!==null&&ia!==void 0?ia:{lit:_o,litDecorators:Po,litRepeat:Lo,litClassMap:ko,litStyleMap:Uo,litUnsafeHTML:Fo,wcUtils:{...$o,...Do,...Bo,...ra,...Wo,...Vo,...qo,...Qo,...hn,...Zo,...bn,...mn,...rs,...jo,...Sn,...On,...ns,...wn,...qn,...yn,...Xn,...Qn,...ea,...ta,isSafari:uu,isTouchScreen:fu,setVariable:kr}};var ic=r=>Ae.get({name:"ft-reader-"+r,initialState:{mapId:void 0,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 sa=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),p=this.convertNodes(a.children,t+1,u.tocId);return u.children=[...h,...p],[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(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:t?this.buildBreadcrumb(this.nodeByTocId[t]):[]},h=(y,g)=>(g?u.topics:u.hiddenTopics).push(y),p=(l=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return u.breadcrumb.forEach((y,g)=>{h(y,p[g])}),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}},eo=class{convertPaginatedToc(e,t){return new sa(e,t).build()}};var Re;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Re||(Re={}));var sc=V`
|
|
51
|
+
`;var pu="ft-app-info",ca=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},hu={session:(r,e)=>{ae(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>_.eventBus.dispatchEvent(new ca(e.payload)),0))}},_=Ae.get({name:pu,reducers:hu,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var ct=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:n}=_.getState(),a=e??n;if(t&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,a,!0)}static await(e){return new Promise(t=>{let n=r.get(e);if(n)t(n);else{let a=_.subscribe(()=>{n=r.get(e),n&&(a(),t(n))})}})}};var ge=class{constructor(e=!0,t){var n;this.overrideApi=t;let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new ue,this.cache=e?a.commonCache:new ue}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:ct.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ct.await()}clearCache(){this.cache.clearAll()}};var cc,yu=Symbol("clearAfterUnitTest"),to=class extends ge{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[cc]=()=>{this.defaultMessages={},this.cache=new ue,this.listeners={}},this.currentUiLocale=_.getState().uiLocale,_.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=_.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var n;if(e=e.toLowerCase(),Object.keys(t).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...t};ae(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var t,n;return this.fetchContext(e),(n=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,t){let n=e.toLowerCase();return this.resolveContext(n)[t]}resolveMessage(e,t,...n){var a;let i=e.toLowerCase(),s=this.resolveContext(i);return new or((a=this.defaultMessages[i])!==null&&a!==void 0?a:{},s).resolve(t,...n)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(t){console.error(t)}}subscribe(e,t){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(t),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(t)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(t=>Lr(0).then(()=>t()).catch(()=>null)))}};cc=yu;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends to{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends to{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});var lc=window.FluidTopicsI18nService,Cb=window.FluidTopicsCustomI18nService;var q=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},j=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=()=>ct.get(),this.messageContexts=[],this.cache=new ue,this.cleanSessionDebouncer=new Q}render(){return ut`
|
|
52
52
|
<slot></slot>
|
|
53
|
-
`}update(e){super.update(e),e.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&_.actions.noCustom(this.noCustom),e.has("editorMode")&&_.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&_.actions.session(this.session),e.has("availableUiLocales")&&_.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(t=>ic.addContext(t)),e.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}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 updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};j.elementDefinitions={};j.styles=oc;q([T()],j.prototype,"baseUrl",void 0);q([T()],j.prototype,"apiIntegrationIdentifier",void 0);q([T()],j.prototype,"uiLocale",void 0);q([Ie(null)],j.prototype,"availableUiLocales",void 0);q([Ie(null)],j.prototype,"metadataConfiguration",void 0);q([T({type:Boolean})],j.prototype,"editorMode",void 0);q([T({type:Boolean})],j.prototype,"noCustom",void 0);q([T({type:Boolean})],j.prototype,"openExternalDocumentInNewTab",void 0);q([T({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],j.prototype,"noCustomComponent",void 0);q([T({type:Boolean})],j.prototype,"withManualResources",void 0);q([T({type:Boolean})],j.prototype,"navigatorOnline",void 0);q([T({type:Boolean})],j.prototype,"forcedOffline",void 0);q([T({type:Object})],j.prototype,"apiProvider",void 0);q([Ie([])],j.prototype,"messageContexts",void 0);q([Ie(void 0)],j.prototype,"session",void 0);var Xr=class extends he{async listMySearches(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Qr=class extends he{async listMyBookmarks(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var cd="ft-user-assets",eo=we.get({name:cd,initialState:{savedSearches:void 0,bookmarks:void 0}}),oi=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Qr,this.savedSearchesService=new Xr,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=_.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(),eo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),eo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();eo.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;eo.actions.bookmarks(t)}}},ac=new oi;var ni=class{addCommand(e,t=!1){_.commands.add(e,t)}consumeCommand(e){return _.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ni;var ii=class{highlightHtml(e,t,o){hn(e,t,o)}};window.FluidTopicsHighlightHtmlService=new ii;var ai=class{isDate(e){var t,o,i,a;return(a=(i=((o=(t=_.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&o!==void 0?o:[]).find(c=>c.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,t){var o,i,a;return Ot.format(e,(o=t?.locale)!==null&&o!==void 0?o:_.getState().uiLocale,(i=t?.longFormat)!==null&&i!==void 0?i:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new ai;Bt("ft-app-context")(j);var to=class extends he{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,t,o){super(!1,t),this.converter=e,this._mapId=o,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 it((t=(e=_.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&t!==void 0?t:[],"RATING_USER")?this.withMapId(i=>this.fetchMapRating(i)):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,o;let i=this.getMapNow();return i?.prettyUrl==e||`${i?.id}/root`===e?(t=this.enrichedToc)===null||t===void 0?void 0:t.toc[0]:(o=this.enrichedToc)===null||o===void 0?void 0:o.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,o){return this.cache.get("topic-relatives-"+[e,t,...o].join("-"),()=>this.fetchRelativesForTopicInMap(e,t,o))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true`)}getLink(e,t,o){let i=this.getNavigationData(e,t,o),a=this.getReaderLinkPrefix()+(i.prettyUrl?i.prettyUrl:`${i.mapId}/${i.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return i.page!=null&&s.searchParams.set("page",`${i.page}`),i.prettyUrlDuplicated&&s.searchParams.set("tocId",i.tocId),i.section!=null&&s.searchParams.set("section",i.section),s.href}getNavigationData(e,t,o){var i,a;e=e||"root";let s=this.enrichedToc,c=s?.pageByTocId[e],l=s?.nodeByTocId[e],d=l?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(i=l?.title)!==null&&i!==void 0?i:"",page:t&&c&&c.number!==t?t:void 0,prettyUrl:d?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(d??""))!==null&&a!==void 0?a:!1,section:o}}async getAccurateNavigationData(e,t,o){return await this.getEnrichedToc(),this.getNavigationData(e,t,o)}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 o;return t?{type:t.topics.type,rating:(o=t.topics)===null||o===void 0?void 0:o.ratings.find(i=>i.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,o){return this.makeRateTopicRequest(e,t,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=_.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,t,o){return this.makeTopicFeedbackRequest(e,t,o)}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),o=[{tocId:t.tocId,title:t.title}],i=this.getTocNodeNow(t.parentTocId);for(;i;)o.unshift({tocId:i.tocId,title:i.title}),i=this.getTocNodeNow(i.parentTocId);return o}isFeatureAccessible(e,{session:t,ratingType:o}){var i;if(!this.isFeatureAvailable(e))return!1;switch(e){case Ee.FEEDBACK:return it(t??[],W.FEEDBACK_USER);case Ee.RATING:return it(t??[],W.RATING_USER)&&o!=null&&o!==Gr.NO_RATING;case Ee.PRINT:return it(t??[],W.PRINT_USER);case Ee.BOOKMARK:return!!t?.sessionAuthenticated;case Ee.COLLECTIONS:return it(t??[],W.COLLECTION_USER);case Ee.PERSONAL_BOOKS:return it(t??[],W.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var ro=class r extends to{static async build(e){return new r(new Yr,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 o={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:t}}],sort:[],facets:[]};return this.api.search(o)}fetchRelativesForTopicInMap(e,t,o){let i={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:o}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(i)}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,o){return this.api.rateTopic(this.mapId,e,t,o)}makeTopicFeedbackRequest(e,t,o){return this.api.sendTopicFeedback(this.mapId,e,t,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var oo=class r{static build(e,t){return new r(rc(e.trim()||"context"),t??ro.build)}loaded(){return $o(()=>this._loaded)}constructor(e,t,o){this.store=e,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new Q(10),this.initService(t)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return Dt(()=>this.service)}async navigateToTopic(e,t,o){await this.loaded();let i=await this.awaitService(),a=await(o!=null?i.getPage(o):i.getPageByTocId(e??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(e,a),section:t})}resolveValidNonRootTocId(e,t){var o,i,a;let s=(o=e==="root"?void 0:e)!==null&&o!==void 0?o:t.rootTocId;return t.topics.includes(s)?s:(a=(i=t.topics[0])!==null&&i!==void 0?i:t.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(e){await this.loaded();let o=await(await this.awaitService()).getPage(e);this.store.actions.currentPage(o)}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),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var e,t,o,i,a;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)),(o=this.service)===null||o===void 0?void 0:o.getToc().then(s=>this.store.actions.toc(s)),(i=this.service)===null||i===void 0?void 0:i.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof Xe)&&this.errorHandler(s)}}fetchRelatives(){var e,t,o;let i=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);i!==void 0&&i.length>0?(t=this.service)===null||t===void 0||t.getRelativesForDocument((o=this.store.getState().configuration)===null||o===void 0?void 0:o.relativePivotMetadata,i).then(a=>{let s=a.results.flatMap(c=>c.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var e,t;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let i=o.find(s=>{var c;return((c=s.map)===null||c===void 0?void 0:c.mapId)==this.store.getState().mapId}),a=(t=(e=_.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&t!==void 0?t:[];return new Mt(o,i,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var t,o,i;await this.loaded();let a=await Dt(()=>{var d;return(d=this.store.getState().configuration)===null||d===void 0?void 0:d.relativeTopicPivotMetadata}),s=this.store.getState().mapId,l=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((i=(o=(t=l?.results)===null||t===void 0?void 0:t[0])===null||o===void 0?void 0:o.entries)===null||i===void 0)&&i[0]){let d=l.results[0].entries[0].topic.tocId;return await this.navigateToTopic(d),!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 _0={},sc=V`
|
|
54
|
-
`;var
|
|
53
|
+
`}update(e){super.update(e),e.has("baseUrl")&&(_.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&_.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&_.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&_.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&_.actions.noCustom(this.noCustom),e.has("editorMode")&&_.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&_.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&_.actions.session(this.session),e.has("availableUiLocales")&&_.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(t=>lc.addContext(t)),e.has("openExternalDocumentInNewTab")&&_.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&_.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&_.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}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 updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};j.elementDefinitions={};j.styles=sc;q([L()],j.prototype,"baseUrl",void 0);q([L()],j.prototype,"apiIntegrationIdentifier",void 0);q([L()],j.prototype,"uiLocale",void 0);q([Pe(null)],j.prototype,"availableUiLocales",void 0);q([Pe(null)],j.prototype,"metadataConfiguration",void 0);q([L({type:Boolean})],j.prototype,"editorMode",void 0);q([L({type:Boolean})],j.prototype,"noCustom",void 0);q([L({type:Boolean})],j.prototype,"openExternalDocumentInNewTab",void 0);q([L({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],j.prototype,"noCustomComponent",void 0);q([L({type:Boolean})],j.prototype,"withManualResources",void 0);q([L({type:Boolean})],j.prototype,"navigatorOnline",void 0);q([L({type:Boolean})],j.prototype,"forcedOffline",void 0);q([L({type:Object})],j.prototype,"apiProvider",void 0);q([Pe([])],j.prototype,"messageContexts",void 0);q([Pe(void 0)],j.prototype,"session",void 0);var ro=class extends ge{async listMySearches(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var oo=class extends ge{async listMyBookmarks(){let e=_.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var mu="ft-user-assets",no=Ae.get({name:mu,initialState:{savedSearches:void 0,bookmarks:void 0}}),la=class{constructor(){this.currentSession=_.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new oo,this.savedSearchesService=new ro,_.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=_.getState();ae((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(),no.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),no.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();no.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;no.actions.bookmarks(t)}}},dc=new la;var da=class{addCommand(e,t=!1){_.commands.add(e,t)}consumeCommand(e){return _.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new da;var ua=class{highlightHtml(e,t,n){xn(e,t,n)}};window.FluidTopicsHighlightHtmlService=new ua;var fa=class{isDate(e){var t,n,a,i;return(i=(a=((n=(t=_.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 Ct.format(e,(n=t?.locale)!==null&&n!==void 0?n:_.getState().uiLocale,(a=t?.longFormat)!==null&&a!==void 0?a:!1,(i=t?.withTime)!==null&&i!==void 0?i:!1)}};window.FluidTopicsDateService=new fa;jt("ft-app-context")(j);var ao=class extends ge{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 st((t=(e=_.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=_.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,ratingType:n}){var a;if(!this.isFeatureAvailable(e))return!1;switch(e){case Re.FEEDBACK:return st(t??[],W.FEEDBACK_USER);case Re.RATING:return st(t??[],W.RATING_USER)&&n!=null&&n!==Jr.NO_RATING;case Re.PRINT:return st(t??[],W.PRINT_USER);case Re.BOOKMARK:return!!t?.sessionAuthenticated;case Re.COLLECTIONS:return st(t??[],W.COLLECTION_USER);case Re.PERSONAL_BOOKS:return st(t??[],W.PERSONAL_BOOK_USER)&&!(!((a=this.getMapNow())===null||a===void 0)&&a.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var io=class r extends ao{static async build(e){return new r(new eo,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 so=class r{static build(e,t){return new r(ic(e.trim()||"context"),t??io.build)}loaded(){return Ho(()=>this._loaded)}constructor(e,t,n){this.store=e,this.clusteringHelperProvider=n,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new Q(10),this.initService(t)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return Ht(()=>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),(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.eventBus.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=_.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&t!==void 0?t:[];return new Wt(n,a,this.metadataForSwitchToRelatives,i)}}async navigateToRelativeTopicIfFound(e){var t,n,a;await this.loaded();let i=await Ht(()=>{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 D0={},uc=V`
|
|
54
|
+
`;var co=class extends CustomEvent{constructor(e,t){super("ft-reader-map-loaded",{detail:{map:e,toc:t}})}},lo=class extends CustomEvent{constructor(e,t){super("ft-reader-visible-topics-change",{detail:{visibleTopics:t}})}},uo=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},fo=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},po=class extends Event{constructor(){super("ft-reader-map-not-found")}},ho=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},yo=class extends Event{constructor(){super("ft-reader-map-forbidden")}},mo=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var J=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},gu=r=>e=>+(e??"NaN")>0?+e:r,K=class extends Ue{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new Q(5),this.navigationDebouncer=new Q(10),this.mapLoadedEventDebouncer=new Q(50),this.addStore(_)}render(){return ut`
|
|
55
55
|
${this.importStyleIfNeeded()}
|
|
56
56
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
57
|
-
`}importStyleIfNeeded(){var e,t;let
|
|
57
|
+
`}importStyleIfNeeded(){var e,t;let n=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!n||window.location.href.startsWith((t=this.baseUrl)!==null&&t!==void 0?t:"")?z:ut`
|
|
58
58
|
<style>
|
|
59
|
-
@import "${
|
|
59
|
+
@import "${n}"
|
|
60
60
|
</style>
|
|
61
|
-
`}get stateManager(){return this._stateManager==null&&(this._stateManager=
|
|
61
|
+
`}get stateManager(){return this._stateManager==null&&(this._stateManager=so.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let t=e.fontsStylesheet();if(t&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${t}"]`)){let n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("href",t),document.head.append(n)}})}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(t=>e.has(t))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var t;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((t=this.scrollTarget)===null||t===void 0?void 0:t.tocId)==null){let n=e.get("scrollTarget");n?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var a;return this.stateManager.service.getAccurateNavigationData(n.tocId,(a=this.currentPage)===null||a===void 0?void 0:a.number,n.section).then(i=>this.dispatchEvent(new uo(i)))})}e.has("visibleTopics")&&Promise.all(this.visibleTopics.map(n=>{var a;return this.stateManager.service.getAccurateNavigationData(n,(a=this.currentPage)===null||a===void 0?void 0:a.number)})).then(n=>{let a=n.filter(i=>i!=null&&i.topicTitle!=="").map(i=>{var s;return{tocId:i.tocId,title:i.topicTitle,page:i.page,prettyUrl:i.prettyUrl,prettyUrlDuplicated:i.prettyUrlDuplicated,breadcrumb:(s=this.stateManager.service)===null||s===void 0?void 0:s.buildBreadcrumb(i.tocId)}});this.dispatchEvent(new lo(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new mo),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 t=e.composedPath()[0];this.register(t)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let t=e;t.status===401?this.dispatchEvent(new ho):t.status===403?this.dispatchEvent(new yo):t.status===404?this.dispatchEvent(new po):this.dispatchEvent(new fo(e))}reloadBookmarks(){dc.reloadBookmarks()}async reloadRating(){var e,t;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(t=this.stateManager.store)===null||t===void 0||t.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new co(this.map,this.toc))})}};K.styles=uc;J([ye({store:_.name})],K.prototype,"baseUrl",void 0);J([ye({store:_.name})],K.prototype,"session",void 0);J([L()],K.prototype,"mapId",void 0);J([L()],K.prototype,"tocId",void 0);J([L()],K.prototype,"section",void 0);J([L()],K.prototype,"topicPivot",void 0);J([L()],K.prototype,"searchInDocumentQuery",void 0);J([L({type:Number,converter:{fromAttribute:gu()}})],K.prototype,"page",void 0);J([ye({store:"reader"})],K.prototype,"map",void 0);J([ye({store:"reader"})],K.prototype,"toc",void 0);J([ye({store:"reader"})],K.prototype,"visibleTopics",void 0);J([ye({store:"reader"})],K.prototype,"currentPage",void 0);J([ye({store:"reader"})],K.prototype,"scrollTarget",void 0);J([L({attribute:!1})],K.prototype,"readerServiceProvider",void 0);jt("ft-reader-context")(K);})();
|
|
62
62
|
/*! Bundled license information:
|
|
63
63
|
|
|
64
64
|
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|