@fluid-topics/ft-reader-metadata 1.2.68 → 1.2.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- "use strict";(()=>{var Id=Object.create;var In=Object.defineProperty;var Nd=Object.getOwnPropertyDescriptor;var _d=Object.getOwnPropertyNames;var Ld=Object.getPrototypeOf,Pd=Object.prototype.hasOwnProperty;var kd=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Z=(e,t)=>{for(var r in t)In(e,r,{get:t[r],enumerable:!0})},Dd=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of _d(t))!Pd.call(e,i)&&i!==r&&In(e,i,{get:()=>t[i],enumerable:!(n=Nd(t,i))||n.enumerable});return e};var Md=(e,t,r)=>(r=e!=null?Id(Ld(e)):{},Dd(t||!e||!e.__esModule?In(r,"default",{value:e,enumerable:!0}):r,e));var ec=kd((_e,tc)=>{var Go=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Ko=function(){function e(){this.fetch=!1,this.DOMException=Go.DOMException}return e.prototype=Go,new e}();(function(e){var t=function(r){var n=typeof e<"u"&&e||typeof self<"u"&&self||typeof global<"u"&&global||{},i={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 a(y){return y&&DataView.prototype.isPrototypeOf(y)}if(i.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(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function d(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var O={next:function(){var P=y.shift();return{done:P===void 0,value:P}}};return i.iterable&&(O[Symbol.iterator]=function(){return O}),O}function f(y){this.map={},y instanceof f?y.forEach(function(O,P){this.append(P,O)},this):Array.isArray(y)?y.forEach(function(O){if(O.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+O.length);this.append(O[0],O[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(O){this.append(O,y[O])},this)}f.prototype.append=function(y,O){y=d(y),O=p(O);var P=this.map[y];this.map[y]=P?P+", "+O:O},f.prototype.delete=function(y){delete this.map[d(y)]},f.prototype.get=function(y){return y=d(y),this.has(y)?this.map[y]:null},f.prototype.has=function(y){return this.map.hasOwnProperty(d(y))},f.prototype.set=function(y,O){this.map[d(y)]=p(O)},f.prototype.forEach=function(y,O){for(var P in this.map)this.map.hasOwnProperty(P)&&y.call(O,this.map[P],P,this)},f.prototype.keys=function(){var y=[];return this.forEach(function(O,P){y.push(P)}),h(y)},f.prototype.values=function(){var y=[];return this.forEach(function(O){y.push(O)}),h(y)},f.prototype.entries=function(){var y=[];return this.forEach(function(O,P){y.push([P,O])}),h(y)},i.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function m(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function b(y){return new Promise(function(O,P){y.onload=function(){O(y.result)},y.onerror=function(){P(y.error)}})}function x(y){var O=new FileReader,P=b(O);return O.readAsArrayBuffer(y),P}function C(y){var O=new FileReader,P=b(O),K=/charset=([A-Za-z0-9_-]+)/.exec(y.type),Q=K?K[1]:"utf-8";return O.readAsText(y,Q),P}function I(y){for(var O=new Uint8Array(y),P=new Array(O.length),K=0;K<O.length;K++)P[K]=String.fromCharCode(O[K]);return P.join("")}function T(y){if(y.slice)return y.slice(0);var O=new Uint8Array(y.byteLength);return O.set(new Uint8Array(y)),O.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:i.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:i.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():i.arrayBuffer&&i.blob&&a(y)?(this._bodyArrayBuffer=T(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||l(y))?this._bodyArrayBuffer=T(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var y=m(this);if(y)return y;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 y=m(this);return y||(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(i.blob)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=m(this);if(y)return y;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(I(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function S(y){var O=y.toUpperCase();return w.indexOf(O)>-1?O:y}function E(y,O){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');O=O||{};var P=O.body;if(y instanceof E){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,O.headers||(this.headers=new f(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!P&&y._bodyInit!=null&&(P=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=O.credentials||this.credentials||"same-origin",(O.headers||!this.headers)&&(this.headers=new f(O.headers)),this.method=S(O.method||this.method||"GET"),this.mode=O.mode||this.mode||null,this.signal=O.signal||this.signal||function(){if("AbortController"in n){var V=new AbortController;return V.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(P),(this.method==="GET"||this.method==="HEAD")&&(O.cache==="no-store"||O.cache==="no-cache")){var K=/([?&])_=[^&]*/;if(K.test(this.url))this.url=this.url.replace(K,"$1_="+new Date().getTime());else{var Q=/\?/;this.url+=(Q.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})};function k(y){var O=new FormData;return y.trim().split("&").forEach(function(P){if(P){var K=P.split("="),Q=K.shift().replace(/\+/g," "),V=K.join("=").replace(/\+/g," ");O.append(decodeURIComponent(Q),decodeURIComponent(V))}}),O}function U(y){var O=new f,P=y.replace(/\r?\n[\t ]+/g," ");return P.split("\r").map(function(K){return K.indexOf(`
2
- `)===0?K.substr(1,K.length):K}).forEach(function(K){var Q=K.split(":"),V=Q.shift().trim();if(V){var vo=Q.join(":").trim();try{O.append(V,vo)}catch(Tn){console.warn("Response "+Tn.message)}}}),O}_.call(E.prototype);function G(y,O){if(!(this instanceof G))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(O||(O={}),this.type="default",this.status=O.status===void 0?200:O.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=O.statusText===void 0?"":""+O.statusText,this.headers=new f(O.headers),this.url=O.url||"",this._initBody(y)}_.call(G.prototype),G.prototype.clone=function(){return new G(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},G.error=function(){var y=new G(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var j=[301,302,303,307,308];G.redirect=function(y,O){if(j.indexOf(O)===-1)throw new RangeError("Invalid status code");return new G(null,{status:O,headers:{location:y}})},r.DOMException=n.DOMException;try{new r.DOMException}catch{r.DOMException=function(O,P){this.message=O,this.name=P;var K=Error(O);this.stack=K.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function D(y,O){return new Promise(function(P,K){var Q=new E(y,O);if(Q.signal&&Q.signal.aborted)return K(new r.DOMException("Aborted","AbortError"));var V=new XMLHttpRequest;function vo(){V.abort()}V.onload=function(){var xt={statusText:V.statusText,headers:U(V.getAllResponseHeaders()||"")};Q.url.indexOf("file://")===0&&(V.status<200||V.status>599)?xt.status=200:xt.status=V.status,xt.url="responseURL"in V?V.responseURL:xt.headers.get("X-Request-URL");var De="response"in V?V.response:V.responseText;setTimeout(function(){P(new G(De,xt))},0)},V.onerror=function(){setTimeout(function(){K(new TypeError("Network request failed"))},0)},V.ontimeout=function(){setTimeout(function(){K(new TypeError("Network request timed out"))},0)},V.onabort=function(){setTimeout(function(){K(new r.DOMException("Aborted","AbortError"))},0)};function Tn(xt){try{return xt===""&&n.location.href?n.location.href:xt}catch{return xt}}if(V.open(Q.method,Tn(Q.url),!0),Q.credentials==="include"?V.withCredentials=!0:Q.credentials==="omit"&&(V.withCredentials=!1),"responseType"in V&&(i.blob?V.responseType="blob":i.arrayBuffer&&(V.responseType="arraybuffer")),O&&typeof O.headers=="object"&&!(O.headers instanceof f||n.Headers&&O.headers instanceof n.Headers)){var xs=[];Object.getOwnPropertyNames(O.headers).forEach(function(xt){xs.push(d(xt)),V.setRequestHeader(xt,p(O.headers[xt]))}),Q.headers.forEach(function(xt,De){xs.indexOf(De)===-1&&V.setRequestHeader(De,xt)})}else Q.headers.forEach(function(xt,De){V.setRequestHeader(De,xt)});Q.signal&&(Q.signal.addEventListener("abort",vo),V.onreadystatechange=function(){V.readyState===4&&Q.signal.removeEventListener("abort",vo)}),V.send(typeof Q._bodyInit>"u"?null:Q._bodyInit)})}return D.polyfill=!0,n.fetch||(n.fetch=D,n.Headers=f,n.Request=E,n.Response=G),r.Headers=f,r.Request=E,r.Response=G,r.fetch=D,r}({})})(Ko);Ko.fetch.ponyfill=!0;delete Ko.fetch.polyfill;var xr=Go.fetch?Go:Ko;_e=xr.fetch;_e.default=xr.fetch;_e.fetch=xr.fetch;_e.Headers=xr.Headers;_e.Request=xr.Request;_e.Response=xr.Response;tc.exports=_e});if(!ShadowRoot.prototype.createElement){let e=window.HTMLElement,t=window.customElements.define,r=window.customElements.get,n=window.customElements,i=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(w,S){if(w=w.toLowerCase(),this._getDefinition(w)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${w}" 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 E=S.prototype.attributeChangedCallback,k=new Set(S.observedAttributes||[]);m(S,k,E);let U={elementClass:S,connectedCallback:S.prototype.connectedCallback,disconnectedCallback:S.prototype.disconnectedCallback,adoptedCallback:S.prototype.adoptedCallback,attributeChangedCallback:E,formAssociated:S.formAssociated,formAssociatedCallback:S.prototype.formAssociatedCallback,formDisabledCallback:S.prototype.formDisabledCallback,formResetCallback:S.prototype.formResetCallback,formStateRestoreCallback:S.prototype.formStateRestoreCallback,observedAttributes:k};this._definitionsByTag.set(w,U),this._definitionsByClass.set(S,U);let G=r.call(n,w);G||(G=f(w),t.call(n,w,G)),this===window.customElements&&(s.set(S,U),U.standInClass=G);let j=this._awaitingUpgrade.get(w);if(j){this._awaitingUpgrade.delete(w);for(let y of j)a.delete(y),x(y,U,!0)}let D=this._whenDefinedPromises.get(w);return D!==void 0&&(D.resolve(S),this._whenDefinedPromises.delete(w)),S}upgrade(){I.push(this),n.upgrade.apply(n,arguments),I.pop()}get(w){return this._definitionsByTag.get(w)?.elementClass}_getDefinition(w){return this._definitionsByTag.get(w)}whenDefined(w){let S=this._getDefinition(w);if(S!==void 0)return Promise.resolve(S.elementClass);let E=this._whenDefinedPromises.get(w);return E===void 0&&(E={},E.promise=new Promise(k=>E.resolve=k),this._whenDefinedPromises.set(w,E)),E.promise}_upgradeWhenDefined(w,S,E){let k=this._awaitingUpgrade.get(S);k||this._awaitingUpgrade.set(S,k=new Set),E?k.add(w):k.delete(w)}};let d;window.HTMLElement=function(){let S=d;if(S)return d=void 0,S;let E=s.get(this.constructor);if(!E)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return S=Reflect.construct(e,[],E.standInClass),Object.setPrototypeOf(S,this.constructor.prototype),i.set(S,E),S},window.HTMLElement.prototype=e.prototype;let p=w=>w===document||w instanceof ShadowRoot,h=w=>{let S=w.getRootNode();if(!p(S)){let E=I[I.length-1];if(E instanceof CustomElementRegistry)return E;S=E.getRootNode(),p(S)||(S=l.get(S)?.getRootNode()||document)}return S.customElements},f=w=>class{static get formAssociated(){return!0}constructor(){let E=Reflect.construct(e,[],this.constructor);Object.setPrototypeOf(E,HTMLElement.prototype);let k=h(E)||window.customElements,U=k._getDefinition(w);return U?x(E,U):a.set(E,k),E}connectedCallback(){let E=i.get(this);E?E.connectedCallback&&E.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!0)}disconnectedCallback(){let E=i.get(this);E?E.disconnectedCallback&&E.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let E=i.get(this);E&&E.formAssociated&&E?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let E=i.get(this);E?.formAssociated&&E?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let E=i.get(this);E?.formAssociated&&E?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let E=i.get(this);E?.formAssociated&&E?.formStateRestoreCallback?.apply(this,arguments)}},m=(w,S,E)=>{if(S.size===0||E===void 0)return;let k=w.prototype.setAttribute;k&&(w.prototype.setAttribute=function(j,D){let y=j.toLowerCase();if(S.has(y)){let O=this.getAttribute(y);k.call(this,y,D),E.call(this,y,O,D)}else k.call(this,y,D)});let U=w.prototype.removeAttribute;U&&(w.prototype.removeAttribute=function(j){let D=j.toLowerCase();if(S.has(D)){let y=this.getAttribute(D);U.call(this,D),E.call(this,D,y,null)}else U.call(this,D)});let G=w.prototype.toggleAttribute;G&&(w.prototype.toggleAttribute=function(j,D){let y=j.toLowerCase();if(S.has(y)){let O=this.getAttribute(y);G.call(this,y,D);let P=this.getAttribute(y);E.call(this,y,O,P)}else G.call(this,y,D)})},b=w=>{let S=Object.getPrototypeOf(w);if(S!==window.HTMLElement)return S===e?Object.setPrototypeOf(w,window.HTMLElement):b(S)},x=(w,S,E=!1)=>{Object.setPrototypeOf(w,S.elementClass.prototype),i.set(w,S),d=w;try{new S.elementClass}catch{b(S.elementClass),new S.elementClass}S.attributeChangedCallback&&S.observedAttributes.forEach(k=>{w.hasAttribute(k)&&S.attributeChangedCallback.call(w,k,null,w.getAttribute(k))}),E&&S.connectedCallback&&w.isConnected&&S.connectedCallback.call(w)},C=Element.prototype.attachShadow;Element.prototype.attachShadow=function(w){let S=C.apply(this,arguments);return w.customElements&&(S.customElements=w.customElements),S};let I=[document],T=(w,S,E=void 0)=>{let k=(E?Object.getPrototypeOf(E):w.prototype)[S];w.prototype[S]=function(){I.push(this);let U=k.apply(E||this,arguments);return U!==void 0&&l.set(U,this),I.pop(),U}};T(ShadowRoot,"createElement",document),T(ShadowRoot,"importNode",document),T(Element,"insertAdjacentHTML");let _=(w,S)=>{let E=Object.getOwnPropertyDescriptor(w.prototype,S);Object.defineProperty(w.prototype,S,{...E,set(k){I.push(this),E.set.call(this,k),I.pop()}})};if(_(Element,"innerHTML"),_(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let w=new WeakMap,S=HTMLElement.prototype.attachInternals,E=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...j){let D=S.call(this,...j);return w.set(D,this),D},E.forEach(j=>{let D=window.ElementInternals.prototype,y=D[j];D[j]=function(...O){let P=w.get(this);if(i.get(P).formAssociated===!0)return y?.call(this,...O);throw new DOMException(`Failed to execute ${y} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class k extends Array{constructor(D){super(...D),this._elements=D}get value(){return this._elements.find(D=>D.checked===!0)?.value||""}}class U{constructor(D){let y=new Map;D.forEach((O,P)=>{let K=O.getAttribute("name"),Q=y.get(K)||[];this[+P]=O,Q.push(O),y.set(K,Q)}),this.length=D.length,y.forEach((O,P)=>{O&&(O.length===1?this[P]=O[0]:this[P]=new k(O))})}namedItem(D){return this[D]}}let G=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let j=G.get.call(this,[]),D=[];for(let y of j){let O=i.get(y);(!O||O.formAssociated===!0)&&D.push(y)}return new U(D)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(r,n,i)=>{if(n!==null)try{t.bind(window.customElements)(r,n,i)}catch(a){console.info(r,n,i,a)}}}var Wn={};Z(Wn,{CSSResult:()=>tr,LitElement:()=>ae,ReactiveElement:()=>qt,_$LE:()=>Zd,_$LH:()=>Un,adoptStyles:()=>Br,css:()=>L,defaultConverter:()=>er,getCompatibleStyle:()=>Oo,html:()=>$,isServer:()=>_f,mathml:()=>Bn,noChange:()=>St,notEqual:()=>Fr,nothing:()=>H,render:()=>Fn,supportsAdoptingStyleSheets:()=>$r,svg:()=>$n,unsafeCSS:()=>ne});var So=globalThis,$r=So.ShadowRoot&&(So.ShadyCSS===void 0||So.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Nn=Symbol(),vs=new WeakMap,tr=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==Nn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if($r&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=vs.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&vs.set(r,t))}return t}toString(){return this.cssText}},ne=e=>new tr(typeof e=="string"?e:e+"",void 0,Nn),L=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,i,a)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[a+1],e[0]);return new tr(r,e,Nn)},Br=(e,t)=>{if($r)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=So.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}},Oo=$r?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return ne(r)})(e):e;var{is:$d,defineProperty:Bd,getOwnPropertyDescriptor:Ud,getOwnPropertyNames:Fd,getOwnPropertySymbols:Hd,getPrototypeOf:Wd}=Object,Co=globalThis,Ss=Co.trustedTypes,zd=Ss?Ss.emptyScript:"",jd=Co.reactiveElementPolyfillSupport,Ur=(e,t)=>e,er={toAttribute(e,t){switch(t){case Boolean:e=e?zd:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Fr=(e,t)=>!$d(e,t),Os={attribute:!0,type:String,converter:er,reflect:!1,useDefault:!1,hasChanged:Fr};Symbol.metadata??=Symbol("metadata"),Co.litPropertyMetadata??=new WeakMap;var qt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Os){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(t,n,r);i!==void 0&&Bd(this.prototype,t,i)}}static getPropertyDescriptor(t,r,n){let{get:i,set:a}=Ud(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get:i,set(s){let l=i?.call(this);a?.call(this,s),this.requestUpdate(t,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Os}static _$Ei(){if(this.hasOwnProperty(Ur("elementProperties")))return;let t=Wd(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ur("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ur("properties"))){let r=this.properties,n=[...Fd(r),...Hd(r)];for(let i of n)this.createProperty(i,r[i])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let i of n)r.unshift(Oo(i))}else t!==void 0&&r.push(Oo(t));return r}static _$Eu(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Br(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$ET(t,r){let n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){let a=(n.converter?.toAttribute!==void 0?n.converter:er).toAttribute(r,n.type);this._$Em=t,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(t,r){let n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let a=n.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:er;this._$Em=i,this[i]=s.fromAttribute(r,a.type)??this._$Ej?.get(i)??null,this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){let i=this.constructor,a=this[t];if(n??=i.getPropertyOptions(t),!((n.hasChanged??Fr)(a,r)||n.useDefault&&n.reflect&&a===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,n))))return;this.C(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:n,reflect:i,wrapped:a},s){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??r??this[t]),a!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(r=void 0),this._$AL.set(t,r)),i===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,a]of n){let{wrapped:s}=a,l=this[i];s!==!0||this._$AL.has(i)||l===void 0||this.C(i,void 0,a,l)}}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(t){}firstUpdated(t){}};qt.elementStyles=[],qt.shadowRootOptions={mode:"open"},qt[Ur("elementProperties")]=new Map,qt[Ur("finalized")]=new Map,jd?.({ReactiveElement:qt}),(Co.reactiveElementVersions??=[]).push("2.1.0");var Ln=globalThis,Eo=Ln.trustedTypes,Cs=Eo?Eo.createPolicy("lit-html",{createHTML:e=>e}):void 0,Pn="$lit$",ie=`lit$${Math.random().toFixed(9).slice(2)}$`,kn="?"+ie,Vd=`<${kn}>`,Be=document,Wr=()=>Be.createComment(""),zr=e=>e===null||typeof e!="object"&&typeof e!="function",Dn=Array.isArray,Is=e=>Dn(e)||typeof e?.[Symbol.iterator]=="function",_n=`[
3
- \f\r]`,Hr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Es=/-->/g,ws=/>/g,Me=RegExp(`>|${_n}(?:([^\\s"'>=/]+)(${_n}*=${_n}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),As=/'/g,Rs=/"/g,Ns=/^(?:script|style|textarea|title)$/i,Mn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),$=Mn(1),$n=Mn(2),Bn=Mn(3),St=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),Ts=new WeakMap,$e=Be.createTreeWalker(Be,129);function _s(e,t){if(!Dn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Cs!==void 0?Cs.createHTML(t):t}var Ls=(e,t)=>{let r=e.length-1,n=[],i,a=t===2?"<svg>":t===3?"<math>":"",s=Hr;for(let l=0;l<r;l++){let d=e[l],p,h,f=-1,m=0;for(;m<d.length&&(s.lastIndex=m,h=s.exec(d),h!==null);)m=s.lastIndex,s===Hr?h[1]==="!--"?s=Es:h[1]!==void 0?s=ws:h[2]!==void 0?(Ns.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Me):h[3]!==void 0&&(s=Me):s===Me?h[0]===">"?(s=i??Hr,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?Me:h[3]==='"'?Rs:As):s===Rs||s===As?s=Me:s===Es||s===ws?s=Hr:(s=Me,i=void 0);let b=s===Me&&e[l+1].startsWith("/>")?" ":"";a+=s===Hr?d+Vd:f>=0?(n.push(p),d.slice(0,f)+Pn+d.slice(f)+ie+b):d+ie+(f===-2?l:b)}return[_s(e,a+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},jr=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,h]=Ls(t,r);if(this.el=e.createElement(p,n),$e.currentNode=this.el.content,r===2||r===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=$e.nextNode())!==null&&d.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let f of i.getAttributeNames())if(f.endsWith(Pn)){let m=h[s++],b=i.getAttribute(f).split(ie),x=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:x[2],strings:b,ctor:x[1]==="."?Ao:x[1]==="?"?Ro:x[1]==="@"?To:Fe}),i.removeAttribute(f)}else f.startsWith(ie)&&(d.push({type:6,index:a}),i.removeAttribute(f));if(Ns.test(i.tagName)){let f=i.textContent.split(ie),m=f.length-1;if(m>0){i.textContent=Eo?Eo.emptyScript:"";for(let b=0;b<m;b++)i.append(f[b],Wr()),$e.nextNode(),d.push({type:2,index:++a});i.append(f[m],Wr())}}}else if(i.nodeType===8)if(i.data===kn)d.push({type:2,index:a});else{let f=-1;for(;(f=i.data.indexOf(ie,f+1))!==-1;)d.push({type:7,index:a}),f+=ie.length-1}a++}}static createElement(t,r){let n=Be.createElement("template");return n.innerHTML=t,n}};function Ue(e,t,r=e,n){if(t===St)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,a=zr(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=Ue(e,i._$AS(e,t.values),i,n)),t}var wo=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??Be).importNode(r,!0);$e.currentNode=i;let a=$e.nextNode(),s=0,l=0,d=n[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new rr(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new Io(a,this,t)),this._$AV.push(p),d=n[++l]}s!==d?.index&&(a=$e.nextNode(),s++)}return $e.currentNode=Be,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},rr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Ue(this,t,r),zr(t)?t===H||t==null||t===""?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==St&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Is(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==H&&zr(this._$AH)?this._$AA.nextSibling.data=t:this.T(Be.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=jr.createElement(_s(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let a=new wo(i,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(t){let r=Ts.get(t.strings);return r===void 0&&Ts.set(t.strings,r=new jr(t)),r}k(t){Dn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let a of t)i===r.length?r.push(n=new e(this.O(Wr()),this.O(Wr()),this,this.options)):n=r[i],n._$AI(a),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Fe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,a){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=H}_$AI(t,r=this,n,i){let a=this.strings,s=!1;if(a===void 0)t=Ue(this,t,r,0),s=!zr(t)||t!==this._$AH&&t!==St,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=Ue(this,l[n+d],r,d),p===St&&(p=this._$AH[d]),s||=!zr(p)||p!==this._$AH[d],p===H?t=H:t!==H&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!i&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Ao=class extends Fe{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}},Ro=class extends Fe{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==H)}},To=class extends Fe{constructor(t,r,n,i,a){super(t,r,n,i,a),this.type=5}_$AI(t,r=this){if((t=Ue(this,t,r,0)??H)===St)return;let n=this._$AH,i=t===H&&n!==H||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,a=t!==H&&(n===H||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Io=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Ue(this,t)}},Un={M:Pn,P:ie,A:kn,C:1,L:Ls,R:wo,D:Is,V:Ue,I:rr,H:Fe,N:Ro,U:To,B:Ao,F:Io},Gd=Ln.litHtmlPolyfillSupport;Gd?.(jr,rr),(Ln.litHtmlVersions??=[]).push("3.3.0");var Fn=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(i===void 0){let a=r?.renderBefore??null;n._$litPart$=i=new rr(t.insertBefore(Wr(),a),a,void 0,r??{})}return i._$AI(e),i};var Hn=globalThis,ae=class extends qt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Fn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return St}};ae._$litElement$=!0,ae.finalized=!0,Hn.litElementHydrateSupport?.({LitElement:ae});var Kd=Hn.litElementPolyfillSupport;Kd?.({LitElement:ae});var Zd={_$AK:(e,t,r)=>{e._$AK(t,r)},_$AL:e=>e._$AL};(Hn.litElementVersions??=[]).push("4.2.0");var _f=!1;var Vn={};Z(Vn,{customElement:()=>qd,eventOptions:()=>or,property:()=>v,query:()=>at,queryAll:()=>Jd,queryAssignedElements:()=>zn,queryAssignedNodes:()=>jn,queryAsync:()=>Qd,standardProperty:()=>Ps,state:()=>et});var qd=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var Yd={attribute:!0,type:String,converter:er,reflect:!1,hasChanged:Fr},Ps=(e=Yd,t,r)=>{let{kind:n,metadata:i}=r,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),n==="setter"&&((e=Object.create(e)).wrapped=!0),a.set(r.name,e),n==="accessor"){let{name:s}=r;return{set(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,d,e)},init(l){return l!==void 0&&this.C(s,void 0,e,l),l}}}if(n==="setter"){let{name:s}=r;return function(l){let d=this[s];t.call(this,l),this.requestUpdate(s,d,e)}}throw Error("Unsupported decorator location: "+n)};function v(e){return(t,r)=>typeof r=="object"?Ps(e,t,r):((n,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,n),s?Object.getOwnPropertyDescriptor(i,a):void 0})(e,t,r)}function et(e){return v({...e,state:!0,attribute:!1})}function or(e){return(t,r)=>{let n=typeof t=="function"?t:t[r];Object.assign(n,e)}}var Vt=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r);function at(e,t){return(r,n,i)=>{let a=s=>s.renderRoot?.querySelector(e)??null;if(t){let{get:s,set:l}=typeof n=="object"?r:i??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return Vt(r,n,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Vt(r,n,{get(){return a(this)}})}}var Xd;function Jd(e){return(t,r)=>Vt(t,r,{get(){return(this.renderRoot??(Xd??=document.createDocumentFragment())).querySelectorAll(e)}})}function Qd(e){return(t,r)=>Vt(t,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}function zn(e){return(t,r)=>{let{slot:n,selector:i}=e??{},a="slot"+(n?`[name=${n}]`:":not([name])");return Vt(t,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(e)??[];return i===void 0?l:l.filter(d=>d.matches(i))}})}}function jn(e){return(t,r)=>{let{slot:n}=e??{},i="slot"+(n?`[name=${n}]`:":not([name])");return Vt(t,r,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(e)??[]}})}}var Kn={};Z(Kn,{repeat:()=>Gn});var ve={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Se=e=>(...t)=>({_$litDirective$:e,values:t}),Yt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,n){this._$Ct=t,this._$AM=r,this._$Ci=n}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var{I:tp}=Un;var ks=()=>document.createComment(""),nr=(e,t,r)=>{let n=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(r===void 0){let a=n.insertBefore(ks(),i),s=n.insertBefore(ks(),i);r=new tp(a,s,e,e.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==e;if(l){let d;r._$AQ?.(e),r._$AM=e,r._$AP!==void 0&&(d=e._$AU)!==s._$AU&&r._$AP(d)}if(a!==i||l){let d=r._$AA;for(;d!==a;){let p=d.nextSibling;n.insertBefore(d,i),d=p}}}return r},Oe=(e,t,r=e)=>(e._$AI(t,r),e),ep={},Ds=(e,t=ep)=>e._$AH=t,Ms=e=>e._$AH,No=e=>{e._$AP?.(!1,!0);let t=e._$AA,r=e._$AB.nextSibling;for(;t!==r;){let n=t.nextSibling;t.remove(),t=n}};var $s=(e,t,r)=>{let n=new Map;for(let i=t;i<=r;i++)n.set(e[i],i);return n},Gn=Se(class extends Yt{constructor(e){if(super(e),e.type!==ve.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,r){let n;r===void 0?r=t:t!==void 0&&(n=t);let i=[],a=[],s=0;for(let l of e)i[s]=n?n(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:i}}render(e,t,r){return this.dt(e,t,r).values}update(e,[t,r,n]){let i=Ms(e),{values:a,keys:s}=this.dt(t,r,n);if(!Array.isArray(i))return this.ut=s,a;let l=this.ut??=[],d=[],p,h,f=0,m=i.length-1,b=0,x=a.length-1;for(;f<=m&&b<=x;)if(i[f]===null)f++;else if(i[m]===null)m--;else if(l[f]===s[b])d[b]=Oe(i[f],a[b]),f++,b++;else if(l[m]===s[x])d[x]=Oe(i[m],a[x]),m--,x--;else if(l[f]===s[x])d[x]=Oe(i[f],a[x]),nr(e,d[x+1],i[f]),f++,x--;else if(l[m]===s[b])d[b]=Oe(i[m],a[b]),nr(e,i[f],i[m]),m--,b++;else if(p===void 0&&(p=$s(s,b,x),h=$s(l,f,m)),p.has(l[f]))if(p.has(l[m])){let C=h.get(s[b]),I=C!==void 0?i[C]:null;if(I===null){let T=nr(e,i[f]);Oe(T,a[b]),d[b]=T}else d[b]=Oe(I,a[b]),nr(e,i[f],I),i[C]=null;b++}else No(i[m]),m--;else No(i[f]),f++;for(;b<=x;){let C=nr(e,d[x+1]);Oe(C,a[b]),d[b++]=C}for(;f<=m;){let C=i[f++];C!==null&&No(C)}return this.ut=s,Ds(e,d),St}});var Zn={};Z(Zn,{classMap:()=>Bt});var Bt=Se(class extends Yt{constructor(e){if(super(e),e.type!==ve.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in t)t[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(t)}let r=e.element.classList;for(let n of this.st)n in t||(r.remove(n),this.st.delete(n));for(let n in t){let i=!!t[n];i===this.st.has(n)||this.nt?.has(n)||(i?(r.add(n),this.st.add(n)):(r.remove(n),this.st.delete(n)))}return St}});var qn={};Z(qn,{styleMap:()=>op});var Bs="important",rp=" !"+Bs,op=Se(class extends Yt{constructor(e){if(super(e),e.type!==ve.ATTRIBUTE||e.name!=="style"||e.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(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return n==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(e,[t]){let{style:r}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let n of this.ft)t[n]==null&&(this.ft.delete(n),n.includes("-")?r.removeProperty(n):r[n]=null);for(let n in t){let i=t[n];if(i!=null){this.ft.add(n);let a=typeof i=="string"&&i.endsWith(rp);n.includes("-")||a?r.setProperty(n,a?i.slice(0,-11):i,a?Bs:""):r[n]=i}}return St}});var Xn={};Z(Xn,{UnsafeHTMLDirective:()=>ir,unsafeHTML:()=>Yn});var ir=class extends Yt{constructor(t){if(super(t),this.it=H,t.type!==ve.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===H||t==null)return this._t=void 0,this.it=t;if(t===St)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};ir.directiveName="unsafeHTML",ir.resultType=1;var Yn=Se(ir);var ni={};Z(ni,{CacheRegistry:()=>Xt,ClearCacheEvent:()=>Vr});var Qn={};Z(Qn,{CancelablePromise:()=>ar,CanceledPromiseError:()=>se,cancelable:()=>Jn});var se=class extends Error{constructor(t,r,n){super(t),this.canceledPromiseResult=r,this.canceledPromiseError=n}},ar=class extends Promise{constructor(t){super((r,n)=>t(i=>{this.isCanceled?n(new se("Promise has been canceled",i)):r(i)},i=>{this.isCanceled?n(new se("Promise has been canceled",void 0,i)):n(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Jn=e=>new ar((t,r)=>e.then(t).catch(r));var oi={};Z(oi,{FtNotificationEvent:()=>ti,PostResizeEvent:()=>ri,PreResizeEvent:()=>ei,WithEventBus:()=>le,withEventBus:()=>Us});var ti=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},ei=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ri=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function Us(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}var le=class extends Us(Object){};var Vr=class extends CustomEvent{constructor(t){super("clear-cache",{detail:{clearedKeys:t}})}},Xt=class extends le{constructor(){super(...arguments),this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,r){this.loaders[t]=r,this.finalContent.delete(t)}registerFinal(t,r){this.loaders[t]=r,this.finalContent.add(t)}clearAll(t=!0){let r=[];for(let n in this.content)this.clear(n,!1)!=null&&r.push(n);t&&r.length>0&&this.dispatchEvent(new Vr(r))}clear(t,r=!0){if(!this.finalContent.has(t))return this.forceClear(t),r&&this.dispatchEvent(new Vr([t])),t}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof ar&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){this.clearTimeouts[t]!=null&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,r){this.forceClear(t),this.register(t,async()=>r),this.content[t]=r}setFinal(t,r){this.forceClear(t),this.registerFinal(t,async()=>r),this.content[t]=r}async get(t,r,n){if(this.content[t]===void 0){if(r=r??this.loaders[t],r==null)throw new Error("Unknown cache key "+t);let i=Jn(r());return this.content[t]=i,i.then(a=>(this.content[t]=a,n!=null&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout(()=>this.clear(t),n)),a))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return t!=null&&!(t instanceof Promise)&&!(t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return this.content[t]!=null}resolvedKeys(){return Object.keys(this.content).filter(t=>this.isResolvedValue(this.content[t]))}resolvedValues(){return Object.values(this.content).filter(t=>this.isResolvedValue(t))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var ai={};Z(ai,{ClusteringHelper:()=>He,formatHierarchicalValues:()=>ii});function ii(e,t){return t&&t>1&&e.length>=t?`... > ${e[e.length-1]}`:e.join(" > ")}var He=class e{constructor(t,r,n,i){this.allResults=t,this.selectedResult=r,this.clusteringMetadata=n,this.metadataDescriptors=i}static extractResultMetadata(t){var r,n,i,a,s;let l=((a=(n=(r=t.result)===null||r===void 0?void 0:r.map)!==null&&n!==void 0?n:(i=t.result)===null||i===void 0?void 0:i.document)!==null&&a!==void 0?a:(s=t.result)===null||s===void 0?void 0:s.topic).metadata;return t.key==null?e.flattenMetadata(l,t.hierarchicalValueTruncatingLevel,t.dateFormatter):e.flattenMetadata(l.find(d=>d.key===t.key),t.hierarchicalValueTruncatingLevel,t.dateFormatter)}static flattenMetadata(t,r,n){if(Array.isArray(t))return t.map(a=>e.flattenMetadata(a,r,n)).filter(a=>a!=null);let i=t?.hierarchicalValues!=null&&t.hierarchicalValues.length>0;if(!(t==null||t.values.length==0&&!i))if(i){let a=[],s=[];return t.hierarchicalValues.forEach(l=>{a.push(ii(l)),s.push(ii(l,r))}),{key:t.key,label:t.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=t.values.join(", "),s=t.values.map(l=>n?n(l):l).join(", ");return{key:t.key,label:t.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(t,r,n="No value",i,a){var s,l;let d=e.extractResultMetadata({result:this.selectedResult,key:t,dateFormatter:a}),p=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(t))===null||l===void 0?void 0:l.label;return this.allResults.map(f=>e.extractResultMetadata({result:f,key:t,hierarchicalValueTruncatingLevel:i,dateFormatter:a})).map(f=>f??{key:t,label:p,value:void 0,displayValue:n}).filter(f=>f.value!=d?.value).filter((f,m,b)=>b.findIndex(x=>x.value===f.value)===m).map(f=>({result:this.findBestResultForMetadataValue(t,f.value),metadata:f})).sort((f,m)=>this.compareMetadata(f.metadata.value,m.metadata.value,t,r))}compareMetadata(t,r,n,i){if(t==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(n),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=t.localeCompare(r,i,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(r=>t==r.key)}findBestResultForMetadataValue(t,r){let n=this.allResults.filter(d=>{var p;return((p=e.extractResultMetadata({result:d,key:t}))===null||p===void 0?void 0:p.value)==r}),a=[...e.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==t)],s,l=-1;for(let d of n){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(t,r){return e.extractResultMetadata({result:t}).filter(n=>r.some(i=>i.key===n.key&&i.value===n.value)).length}};var si={};Z(si,{Debouncer:()=>ft});var ft=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){i(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ui={};Z(ui,{customElement:()=>q,isNumber:()=>Ws,jsonProperty:()=>Ut,optionalNumberProperty:()=>sp});var pi={};Z(pi,{dateReviver:()=>np,deepCopy:()=>Zr,deepEqual:()=>Lt,delay:()=>_o,eventPathContainsMatchingElement:()=>ci,flatDeep:()=>Fs,getComposedPathTo:()=>di,hasChanged:()=>Ce,last:()=>ap,minmax:()=>Kr,parseDate:()=>Hs,unslotText:()=>sr,waitFor:()=>Gr,waitUntil:()=>li});var _o=e=>new Promise(t=>setTimeout(t,e));async function li(e,t=10,r=2e4){await Gr(async()=>await e()||void 0,t,r)}async function Gr(e,t=10,r=2e4){let n=await e(),i,a;for(i=a=performance.now();n==null&&(!r||a-i<r);)await _o(t),n=await e(),a=performance.now();if(n==null)throw new Error("Timeout exceeded");return n}function Fs(e,t){return e.flatMap(r=>[r,...Fs(t(r),t)])}function np(...e){return(t,r)=>e.includes(t)?Hs(r):r}function Hs(e){return e.match(/^\d{4}-\d{2}-\d{2}$/)&&(e=e.replace(/-/g,"/")),e=e.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,r,n,i)=>r+n+":"+i),new Date(e)}function ip(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Lt(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Lt(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let a=s=>Object.keys(s).filter(l=>s[l]!=null);if(i=a(e),r=i.length,r!==a(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let s=i[n];if(!Lt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Lt(e,t){try{return ip(e,t)}catch{return!1}}function Ce(e,t){return!Lt(e,t)}function ci(e,t,r=window.document.body){if(t.length>0){let n=e.composedPath();for(let i of n){if(i===r)return!1;if(i.matches&&t.some(a=>i.matches(a)))return!0}}return!1}function Kr(e,t,r){return Math.min(Math.max(e,t),r)}function ap(e){return e[e.length-1]}function sr(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(t=>sr(t)).join(""):e?.textContent||""}function di(e){let t=[],r=n=>{n.stopPropagation(),t=n.composedPath()};return e.addEventListener("get-composed-path",r),e.dispatchEvent(new Event("get-composed-path",{composed:!0})),e.removeEventListener("get-composed-path",r),t}function Zr(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}var q=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function Ut(e,t){let r=()=>JSON.parse(JSON.stringify(e));return v({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Ce,...t??{}})}function sp(e){return v({type:Object,converter:{fromAttribute:t=>{if(t!=null)return Ws(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...e??{}})}function Ws(e){return!isNaN(parseFloat(e))}var Hi={};Z(Hi,{designSystemVariables:()=>F});var Fi={};Z(Fi,{DesignSystemFamily:()=>de,DesignSystemSize:()=>gt,FtCssVariableFactory:()=>o,badge:()=>hp,banner:()=>fp,button:()=>g,chart:()=>Np,checkbox:()=>cp,chip:()=>W,chipChoice:()=>pp,collapsible:()=>Tp,comboboxMultiSelect:()=>Ap,comboboxSingleSelect:()=>wp,drawer:()=>vp,floatingMenu:()=>Ep,foundation:()=>c,link:()=>up,modal:()=>xp,notice:()=>Lp,notification:()=>Dp,pageDesigner:()=>_p,pageFooter:()=>gp,pageHeader:()=>yp,pageLayout:()=>bp,popover:()=>Rp,radio:()=>kp,reorderableList:()=>$p,resolveFamilyClass:()=>Bi,resolveSizeClass:()=>Ui,semantic:()=>u,setVariable:()=>A,switch_:()=>Ip,table:()=>dp,tabs:()=>Sp,textArea:()=>Cp,textInput:()=>Op,titleBreadcrumb:()=>mp,toggle:()=>Pp,tooltip:()=>Mp,treeList:()=>Bp,typographies:()=>qr,typographyBody1Medium:()=>bi,typographyBody1Regular:()=>gi,typographyBody1Semibold:()=>xi,typographyBody2Medium:()=>Si,typographyBody2MediumUnderline:()=>zs,typographyBody2Regular:()=>vi,typographyBody2Semibold:()=>Oi,typographyCaption1Bold:()=>_i,typographyCaption1Medium:()=>Ii,typographyCaption1Semibold:()=>Ni,typographyCaption2Bold:()=>ki,typographyCaption2Medium:()=>Li,typographyCaption2Semibold:()=>Pi,typographyCaption3Bold:()=>$i,typographyCaption3Medium:()=>Di,typographyCaption3Semibold:()=>Mi,typographyDisplay:()=>fi,typographyLabel1Bold:()=>wi,typographyLabel1Medium:()=>Ci,typographyLabel1Semibold:()=>Ei,typographyLabel2Bold:()=>Ti,typographyLabel2Medium:()=>Ai,typographyLabel2Semibold:()=>Ri,typographyTitle1:()=>hi,typographyTitle2:()=>mi,typographyTitle3:()=>yi,typographyVariants:()=>lp});var ce=e=>typeof e=="string"?ne(e):e,o=class{static create(t,r,n,i){let a=l=>ce(l??i),s=L`var(${ce(t)}, ${a(i)})`;return s.name=t,s.description=r,s.category=n,s.defaultValue=i,s.defaultCssValue=a,s.get=l=>L`var(${ce(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,r,n,i){let a=l=>n.get(l??i),s=L`var(${ce(t)}, ${a(i)})`;return s.name=t,s.description=r,s.category=n.category,s.fallbackVariable=n,s.defaultValue=i,s.defaultCssValue=a,s.get=l=>L`var(${ce(t)}, ${a(l)})`,s.breadcrumb=()=>[n.name,...n.breadcrumb()],s.lastResortDefaultValue=()=>i??n.lastResortDefaultValue(),s}static external(t,r){let n=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):ce(a??t.lastResortDefaultValue()),i=L`var(${ce(t.name)}, ${n(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=r,i.defaultCssValue=n,i.get=a=>L`var(${ce(t.name)}, ${n(a)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}};function A(e,t){return ce(`${e.name}: ${t}`)}var c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ft-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},fi={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","1.2"),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")},hi={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","1.2"),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")},mi={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","1.2"),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")},yi={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","1.2"),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")},gi={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","1.35"),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")},bi={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","1.35"),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")},xi={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","1.35"),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")},vi={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","1.35"),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")},Si={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","1.35"),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")},zs={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","1.35"),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")},Oi={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","1.35"),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")},Ci={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")},Ei={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")},wi={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")},Ai={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")},Ri={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")},Ti={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")},Ii={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","1.3"),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")},Ni={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","1.3"),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")},_i={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","1.3"),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")},Li={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","1.3"),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")},Pi={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","1.3"),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")},ki={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","1.3"),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")},Di={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","1.3"),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")},Mi={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","1.3"),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")},$i={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","1.3"),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")},qr={display:fi,"title-1":hi,"title-2":mi,"title-3":yi,"body-1-regular":gi,"body-1-medium":bi,"body-1-semibold":xi,"body-2-regular":vi,"body-2-medium":Si,"body-2-medium-underline":zs,"body-2-semibold":Oi,"label-1-medium":Ci,"label-1-semibold":Ei,"label-1-bold":wi,"label-2-medium":Ai,"label-2-semibold":Ri,"label-2-bold":Ti,"caption-1-medium":Ii,"caption-1-semibold":Ni,"caption-1-bold":_i,"caption-2-medium":Li,"caption-2-semibold":Pi,"caption-2-bold":ki,"caption-3-medium":Di,"caption-3-semibold":Mi,"caption-3-bold":$i},lp=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var u={backgroundActionPrimary: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.
5
- 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 g={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","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",u.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","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",u.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","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",u.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","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",u.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","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",u.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","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",u.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","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",u.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","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",u.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","",u.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","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",u.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","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",u.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","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",u.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","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",u.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","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var cp={iconSize:o.extend("--ft-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ft-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ft-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ft-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",u.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","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ft-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ft-checkbox-horizontal-gap","",c.spacing3),leftPadding:o.extend("--ft-checkbox-left-padding","",c.spacing2)};var dp={headerRowBorderWidth:o.create("--ft-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ft-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ft-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:o.extend("--ft-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:o.create("--ft-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ft-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ft-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:o.extend("--ft-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ft-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ft-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ft-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ft-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ft-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ft-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ft-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ft-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ft-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ft-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ft-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ft-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ft-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ft-table-data-cell-vertical-gap","",c.spacing1)};var pp={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","",u.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","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.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","",u.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","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.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 W={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","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)};var up={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)};var fp={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","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)};var hp={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","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",u.contentActionPrimary)};var mp={horizontalGap:o.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ft-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ft-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var yp={parentHorizontalPadding:o.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ft-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:o.extend("--ft-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:o.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var gp={horizontalPadding:o.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ft-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:o.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)};var bp={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var xp={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","",u.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","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",u.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 vp={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",u.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","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",u.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","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",u.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 Sp={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","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",u.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","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",u.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","",u.borderActionFocusRing)};var Op={largeFieldHorizontalPadding:o.extend("--ft-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-text-input-medium-field-icon-size","",c.iconSize3),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.borderRadiusS),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",u.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","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:o.extend("--ft-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),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","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var Cp={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",u.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","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",u.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.borderRadiusS)};var Ep={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","",u.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",u.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","",u.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var wp={largeFieldHorizontalPadding:o.extend("--ft-combobox-single-select-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-combobox-single-select-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-combobox-single-select-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-combobox-single-select-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-combobox-single-select-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-combobox-single-select-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-combobox-single-select-medium-field-icon-size","",c.iconSize3),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.borderRadiusS),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",u.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","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.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 Ap={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.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.borderRadiusS)};var Rp={backgroundColor:o.extend("--ft-popover-background-color","",u.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","",u.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",u.contentGlobalSecondary),gap:o.extend("--ft-popover-gap","",c.spacing2),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"),contentSectionVerticalGap:o.extend("--ft-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ft-popover-multi-section-vertical-gap","",c.spacing6)};var Tp={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","",u.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","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)};var Ip={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","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",u.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","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",u.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","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",u.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","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var Np={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var _p={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 Lp={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","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ft-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ft-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ft-notice-dense-border-width","","SIZE","0")};var Pp={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","",u.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",u.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","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)};var kp={color:o.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",u.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","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",u.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","",u.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 Dp={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","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",u.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 Mp={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","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",u.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 $p={verticalPadding:o.extend("--ft-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ft-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ft-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ft-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ft-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ft-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ft-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ft-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ft-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ft-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ft-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ft-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:o.extend("--ft-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var Bp={nodeHeight:o.create("--ft-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ft-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ft-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ft-tree-list-node-root-padding-left","",c.spacing3),nodeChildPaddingLeft:o.extend("--ft-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ft-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ft-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ft-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ft-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ft-tree-list-node-unselected-counter-color","",u.contentInfoPrimary),nodeHoverBorderColor:o.extend("--ft-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ft-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ft-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ft-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ft-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ft-tree-list-node-selected-counter-color","",u.contentInfoPrimary),nodeSelectedBackgroundColor:o.create("--ft-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ft-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ft-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ft-tree-list-node-descendant-of-selected-counter-color","",u.contentInfoPrimary),nodeDescendantOfSelectedBackgroundColor:o.create("--ft-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ft-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ft-tree-list-header-section-padding-left","",c.spacing3),headerSectionPaddingRight:o.extend("--ft-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ft-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ft-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ft-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ft-tree-list-header-section-counter-color","",u.contentInfoPrimary),listContainerBorderWidth:o.create("--ft-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ft-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ft-tree-list-list-container-border-color","",u.borderGlobalSubtle),loadMorePaddingLeft:o.extend("--ft-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:o.extend("--ft-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:o.extend("--ft-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ft-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ft-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ft-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ft-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ft-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ft-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary)};var de;(function(e){e.brand="brand",e.neutral="neutral",e.info="info",e.success="success",e.warning="warning",e.error="error"})(de||(de={}));var gt;(function(e){e.large="large",e.medium="medium",e.small="small"})(gt||(gt={}));function Bi(e){return`ftds--family-${e}`}function Ui(e){return`ftds--size-${e}`}var F={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 ea={};Z(ea,{computeOffsetAutoPosition:()=>nu,computeOffsetPosition:()=>to});var Vs=["top","right","bottom","left"],js=["start","end"],zi=Vs.reduce((e,t)=>e.concat(t,t+"-"+js[0],t+"-"+js[1]),[]),Lo=Math.min,Ee=Math.max;var Up={left:"right",right:"left",bottom:"top",top:"bottom"},Fp={start:"end",end:"start"};function ji(e,t,r){return Ee(e,Lo(t,r))}function lr(e,t){return typeof e=="function"?e(t):e}function we(e){return e.split("-")[0]}function Jt(e){return e.split("-")[1]}function Vi(e){return e==="x"?"y":"x"}function Gi(e){return e==="y"?"height":"width"}function cr(e){return["top","bottom"].includes(we(e))?"y":"x"}function Ki(e){return Vi(cr(e))}function Gs(e,t,r){r===void 0&&(r=!1);let n=Jt(e),i=Ki(e),a=Gi(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Wi(s)),[s,Wi(s)]}function Ks(e){return e.replace(/start|end/g,t=>Fp[t])}function Wi(e){return e.replace(/left|right|bottom|top/g,t=>Up[t])}function Hp(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zs(e){return typeof e!="number"?Hp(e):{top:e,right:e,bottom:e,left:e}}function We(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function qs(e,t,r){let{reference:n,floating:i}=e,a=cr(t),s=Ki(t),l=Gi(s),d=we(t),p=a==="y",h=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,m=n[l]/2-i[l]/2,b;switch(d){case"top":b={x:h,y:n.y-i.height};break;case"bottom":b={x:h,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:f};break;case"left":b={x:n.x-i.width,y:f};break;default:b={x:n.x,y:n.y}}switch(Jt(t)){case"start":b[s]-=m*(r&&p?-1:1);break;case"end":b[s]+=m*(r&&p?-1:1);break}return b}var Ys=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:f}=qs(p,n,d),m=n,b={},x=0;for(let C=0;C<l.length;C++){let{name:I,fn:T}=l[C],{x:_,y:w,data:S,reset:E}=await T({x:h,y:f,initialPlacement:n,placement:m,strategy:i,middlewareData:b,rects:p,platform:s,elements:{reference:e,floating:t}});h=_??h,f=w??f,b={...b,[I]:{...b[I],...S}},E&&x<=50&&(x++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(p=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:h,y:f}=qs(p,m,d)),C=-1)}return{x:h,y:f,placement:m,strategy:i,middlewareData:b}};async function Po(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:a,rects:s,elements:l,strategy:d}=e,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:m=!1,padding:b=0}=lr(t,e),x=Zs(b),I=l[m?f==="floating"?"reference":"floating":f],T=We(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(I)))==null||r?I:I.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),_=f==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),S=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},E=We(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:w,strategy:d}):_);return{top:(T.top-E.top+x.top)/S.y,bottom:(E.bottom-T.bottom+x.bottom)/S.y,left:(T.left-E.left+x.left)/S.x,right:(E.right-T.right+x.right)/S.x}}function Wp(e,t,r){return(e?[...r.filter(i=>Jt(i)===e),...r.filter(i=>Jt(i)!==e)]:r.filter(i=>we(i)===i)).filter(i=>e?Jt(i)===e||(t?Ks(i)!==i:!1):!0)}var ko=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=t,{crossAxis:h=!1,alignment:f,allowedPlacements:m=zi,autoAlignment:b=!0,...x}=lr(e,t),C=f!==void 0||m===zi?Wp(f||null,b,m):m,I=await Po(t,x),T=((r=s.autoPlacement)==null?void 0:r.index)||0,_=C[T];if(_==null)return{};let w=Gs(_,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==_)return{reset:{placement:C[0]}};let S=[I[we(_)],I[w[0]],I[w[1]]],E=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:_,overflows:S}],k=C[T+1];if(k)return{data:{index:T+1,overflows:E},reset:{placement:k}};let U=E.map(D=>{let y=Jt(D.placement);return[D.placement,y&&h?D.overflows.slice(0,2).reduce((O,P)=>O+P,0):D.overflows[0],D.overflows]}).sort((D,y)=>D[1]-y[1]),j=((i=U.filter(D=>D[2].slice(0,Jt(D[0])?2:3).every(y=>y<=0))[0])==null?void 0:i[0])||U[0][0];return j!==l?{data:{index:T+1,overflows:E},reset:{placement:j}}:{}}}};async function zp(e,t){let{placement:r,platform:n,elements:i}=e,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=we(r),l=Jt(r),d=cr(r)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,f=lr(t,e),{mainAxis:m,crossAxis:b,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof x=="number"&&(b=l==="end"?x*-1:x),d?{x:b*h,y:m*p}:{x:m*p,y:b*h}}var Zi=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:a,placement:s,middlewareData:l}=t,d=await zp(t,e);return s===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:i+d.x,y:a+d.y,data:{...d,placement:s}}}}},qi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:I=>{let{x:T,y:_}=I;return{x:T,y:_}}},...d}=lr(e,t),p={x:r,y:n},h=await Po(t,d),f=cr(we(i)),m=Vi(f),b=p[m],x=p[f];if(a){let I=m==="y"?"top":"left",T=m==="y"?"bottom":"right",_=b+h[I],w=b-h[T];b=ji(_,b,w)}if(s){let I=f==="y"?"top":"left",T=f==="y"?"bottom":"right",_=x+h[I],w=x-h[T];x=ji(_,x,w)}let C=l.fn({...t,[m]:b,[f]:x});return{...C,data:{x:C.x-r,y:C.y-n,enabled:{[m]:a,[f]:s}}}}}};var Yi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;let{placement:i,rects:a,platform:s,elements:l}=t,{apply:d=()=>{},...p}=lr(e,t),h=await Po(t,p),f=we(i),m=Jt(i),b=cr(i)==="y",{width:x,height:C}=a.floating,I,T;f==="top"||f==="bottom"?(I=f,T=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(T=f,I=m==="end"?"top":"bottom");let _=C-h.top-h.bottom,w=x-h.left-h.right,S=Lo(C-h[I],_),E=Lo(x-h[T],w),k=!t.middlewareData.shift,U=S,G=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(G=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(U=_),k&&!m){let D=Ee(h.left,0),y=Ee(h.right,0),O=Ee(h.top,0),P=Ee(h.bottom,0);b?G=x-2*(D!==0||y!==0?D+y:Ee(h.left,h.right)):U=C-2*(O!==0||P!==0?O+P:Ee(h.top,h.bottom))}await d({...t,availableWidth:G,availableHeight:U});let j=await s.getDimensions(l.floating);return x!==j.width||C!==j.height?{reset:{rects:!0}}:{}}}};var Xi=Math.min,dr=Math.max,Yr=Math.round;var pe=e=>({x:e,y:e});function ue(e){return Js(e)?(e.nodeName||"").toLowerCase():"#document"}function Et(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fe(e){var t;return(t=(Js(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Js(e){return e instanceof Node||e instanceof Et(e).Node}function Qt(e){return e instanceof Element||e instanceof Et(e).Element}function Gt(e){return e instanceof HTMLElement||e instanceof Et(e).HTMLElement}function Xs(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Et(e).ShadowRoot}function pr(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=Pt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function Qs(e){return["table","td","th"].includes(ue(e))}function Mo(e){let t=$o(),r=Pt(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function tl(e){let t=ze(e);for(;Gt(t)&&!Xr(t);){if(Mo(t))return t;t=ze(t)}return null}function $o(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xr(e){return["html","body","#document"].includes(ue(e))}function Pt(e){return Et(e).getComputedStyle(e)}function Jr(e){return Qt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ze(e){if(ue(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Xs(e)&&e.host||fe(e);return Xs(t)?t.host:t}function el(e){let t=ze(e);return Xr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gt(t)&&pr(t)?t:el(t)}function Do(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=el(e),a=i===((n=e.ownerDocument)==null?void 0:n.body),s=Et(i);return a?t.concat(s,s.visualViewport||[],pr(i)?i:[],s.frameElement&&r?Do(s.frameElement):[]):t.concat(i,Do(i,[],r))}function nl(e){let t=Pt(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Gt(e),a=i?e.offsetWidth:r,s=i?e.offsetHeight:n,l=Yr(r)!==a||Yr(n)!==s;return l&&(r=a,n=s),{width:r,height:n,$:l}}function il(e){return Qt(e)?e:e.contextElement}function ur(e){let t=il(e);if(!Gt(t))return pe(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:a}=nl(t),s=(a?Yr(r.width):r.width)/n,l=(a?Yr(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var jp=pe(0);function al(e){let t=Et(e);return!$o()||!t.visualViewport?jp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vp(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Et(e)?!1:t}function Qr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),a=il(e),s=pe(1);t&&(n?Qt(n)&&(s=ur(n)):s=ur(e));let l=Vp(a,r,n)?al(a):pe(0),d=(i.left+l.x)/s.x,p=(i.top+l.y)/s.y,h=i.width/s.x,f=i.height/s.y;if(a){let m=Et(a),b=n&&Qt(n)?Et(n):n,x=m.frameElement;for(;x&&n&&b!==m;){let C=ur(x),I=x.getBoundingClientRect(),T=Pt(x),_=I.left+(x.clientLeft+parseFloat(T.paddingLeft))*C.x,w=I.top+(x.clientTop+parseFloat(T.paddingTop))*C.y;d*=C.x,p*=C.y,h*=C.x,f*=C.y,d+=_,p+=w,x=Et(x).frameElement}}return We({width:h,height:f,x:d,y:p})}function Gp(e){let{rect:t,offsetParent:r,strategy:n}=e,i=Gt(r),a=fe(r);if(r===a)return t;let s={scrollLeft:0,scrollTop:0},l=pe(1),d=pe(0);if((i||!i&&n!=="fixed")&&((ue(r)!=="body"||pr(a))&&(s=Jr(r)),Gt(r))){let p=Qr(r);l=ur(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+d.x,y:t.y*l.y-s.scrollTop*l.y+d.y}}function Kp(e){return Array.from(e.getClientRects())}function sl(e){return Qr(fe(e)).left+Jr(e).scrollLeft}function Zp(e){let t=fe(e),r=Jr(e),n=e.ownerDocument.body,i=dr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=dr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+sl(e),l=-r.scrollTop;return Pt(n).direction==="rtl"&&(s+=dr(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:l}}function qp(e,t){let r=Et(e),n=fe(e),i=r.visualViewport,a=n.clientWidth,s=n.clientHeight,l=0,d=0;if(i){a=i.width,s=i.height;let p=$o();(!p||p&&t==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:a,height:s,x:l,y:d}}function Yp(e,t){let r=Qr(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=Gt(e)?ur(e):pe(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y,d=i*a.x,p=n*a.y;return{width:s,height:l,x:d,y:p}}function rl(e,t,r){let n;if(t==="viewport")n=qp(e,r);else if(t==="document")n=Zp(fe(e));else if(Qt(t))n=Yp(t,r);else{let i=al(e);n={...t,x:t.x-i.x,y:t.y-i.y}}return We(n)}function ll(e,t){let r=ze(e);return r===t||!Qt(r)||Xr(r)?!1:Pt(r).position==="fixed"||ll(r,t)}function Xp(e,t){let r=t.get(e);if(r)return r;let n=Do(e,[],!1).filter(l=>Qt(l)&&ue(l)!=="body"),i=null,a=Pt(e).position==="fixed",s=a?ze(e):e;for(;Qt(s)&&!Xr(s);){let l=Pt(s),d=Mo(s);!d&&l.position==="fixed"&&(i=null),(a?!d&&!i:!d&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||pr(s)&&!d&&ll(e,s))?n=n.filter(h=>h!==s):i=l,s=ze(s)}return t.set(e,n),n}function Jp(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?Xp(t,this._c):[].concat(r),n],l=s[0],d=s.reduce((p,h)=>{let f=rl(t,h,i);return p.top=dr(f.top,p.top),p.right=Xi(f.right,p.right),p.bottom=Xi(f.bottom,p.bottom),p.left=dr(f.left,p.left),p},rl(t,l,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Qp(e){return nl(e)}function tu(e,t,r){let n=Gt(t),i=fe(t),a=r==="fixed",s=Qr(e,!0,a,t),l={scrollLeft:0,scrollTop:0},d=pe(0);if(n||!n&&!a)if((ue(t)!=="body"||pr(i))&&(l=Jr(t)),n){let p=Qr(t,!0,a,t);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else i&&(d.x=sl(i));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function ol(e,t){return!Gt(e)||Pt(e).position==="fixed"?null:t?t(e):e.offsetParent}function cl(e,t){let r=Et(e);if(!Gt(e))return r;let n=ol(e,t);for(;n&&Qs(n)&&Pt(n).position==="static";)n=ol(n,t);return n&&(ue(n)==="html"||ue(n)==="body"&&Pt(n).position==="static"&&!Mo(n))?r:n||tl(e)||r}var eu=async function(e){let{reference:t,floating:r,strategy:n}=e,i=this.getOffsetParent||cl,a=this.getDimensions;return{reference:tu(t,await i(r),n),floating:{x:0,y:0,...await a(r)}}};function ru(e){return Pt(e).direction==="rtl"}var fr={convertOffsetParentRelativeRectToViewportRelativeRect:Gp,getDocumentElement:fe,getClippingRect:Jp,getOffsetParent:cl,getElementRects:eu,getClientRects:Kp,getDimensions:Qp,getScale:ur,isElement:Qt,isRTL:ru};var Ji=(e,t,r)=>{let n=new Map,i={platform:fr,...r},a={...i.platform,_c:n};return Ys(e,t,{...i,platform:a})};function ta(e){return ou(e)}function Qi(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function ou(e){for(let t=e;t;t=Qi(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Qi(e);t;t=Qi(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||t.tagName==="BODY"))return t}return null}async function to(e,t,r){return Ji(e,t,{platform:{...fr,getOffsetParent:n=>fr.getOffsetParent(n,ta)},middleware:[qi({crossAxis:!0}),ko({allowedPlacements:[r]})]})}async function nu(e,t,r,n,i,a,s=4){return Ji(e,t,{placement:r,strategy:i,platform:{...fr,getOffsetParent:l=>fr.getOffsetParent(l,ta)},middleware:[Zi(s),ko({allowedPlacements:n}),Yi({apply({availableHeight:l,elements:d}){a?d.floating.style.maxHeight=`min(${Math.max(0,l)}px, var(${a}))`:d.floating.style.maxHeight=`${Math.max(0,l)}px`}})]})}var aa={};Z(aa,{FtdsBase:()=>oo,toFtdsBase:()=>Bo});var ia={};Z(ia,{FtLitElement:()=>z});var ra={};Z(ra,{ScopedRegistryLitElement:()=>eo});var eo=class extends ae{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([i,a])=>t.registry.define(i,a)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Br(n,t.elementStyles),n}};var na={};Z(na,{shadowQuerySelector:()=>oa,shadowQuerySelectorAll:()=>iu});function oa(e,t,...r){var n;let i=e.querySelector(t);for(let a of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function iu(e,t,...r){let n=[...e.querySelectorAll(t)];for(let i of r)n=n.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return n}var ro=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},fl,dl=Symbol("constructorPrototype"),pl=Symbol("constructorName"),hl=Symbol("exportpartsDebouncer"),ul=Symbol("dynamicDependenciesLoaded"),z=class extends eo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[fl]=new ft(5),this[pl]=this.constructor.name,this[dl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[pl]&&Object.setPrototypeOf(this,this[dl])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let t=this.constructor;t[ul]||(t[ul]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let a=[...i??[],n];r=oa(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.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 t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[hl].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(t){var r,n,i,a,s,l;let d=m=>m!=null&&m.trim().length>0,p=t.filter(d).map(m=>m.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(a=(i=m.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],x=(l=(s=m.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(C=>C.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...b,...x).filter(d).map(C=>C.trim()).forEach(C=>h.add(C))}if(h.size===0){this.removeAttribute("exportparts");return}let f=[...h.values()].flatMap(m=>p.map(b=>`${m}:${b}--${m}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};fl=hl;ro([v()],z.prototype,"exportpartsPrefix",void 0);ro([Ut([])],z.prototype,"exportpartsPrefixes",void 0);ro([v()],z.prototype,"customStylesheet",void 0);ro([v()],z.prototype,"elementToFocus",void 0);ro([et()],z.prototype,"useAdoptedStyleSheets",void 0);var ml=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};function Bo(e){class t extends e{constructor(){super(...arguments),this.size=gt.medium,this.family=de.neutral}getDesignSystemBaseClasses(){return{[Bi(this.family)]:!0,[Ui(this.size)]:!0}}}return ml([v()],t.prototype,"size",void 0),ml([v()],t.prototype,"family",void 0),t}var oo=class extends Bo(z){};var yl={};var ca={};Z(ca,{highlightHtml:()=>la,highlightHtmlColorCssVariable:()=>gl,highlightHtmlStyles:()=>su});var je=class e{constructor(t,r=!0,n=[],i=5e3){this.ctx=t,this.iframes=r,this.exclude=n,this.iframesTimeout=i}static matches(t,r){let n=typeof r=="string"?[r]:r,i=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(i){let a=!1;return n.every(s=>i.call(t,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let t,r=[];return typeof this.ctx>"u"||!this.ctx?t=[]:NodeList.prototype.isPrototypeOf(this.ctx)?t=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?t=this.ctx:typeof this.ctx=="string"?t=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):t=[this.ctx],t.forEach(n=>{let i=r.filter(a=>a.contains(n)).length>0;r.indexOf(n)===-1&&!i&&r.push(n)}),r}getIframeContents(t,r,n=()=>{}){let i;try{let a=t.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{n()}i&&r(i)}isIframeBlank(t){let r="about:blank",n=t.getAttribute("src").trim();return t.contentWindow.location.href===r&&n!==r&&n}observeIframeLoad(t,r,n){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,r,n))}catch{n()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,r,n){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,r,n):this.getIframeContents(t,r,n):this.observeIframeLoad(t,r,n)}catch{n()}}waitForIframes(t,r){let n=0;this.forEachIframe(t,()=>!0,i=>{n++,this.waitForIframes(i.querySelector("html"),()=>{--n||r()})},i=>{i||r()})}forEachIframe(t,r,n,i=()=>{}){let a=t.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&i(l)};s||d(),a.forEach(p=>{e.matches(p,this.exclude)?d():this.onIframeReady(p,h=>{r(p)&&(l++,n(h)),d()},d)})}createIterator(t,r,n){return document.createNodeIterator(t,r,n,!1)}createInstanceOnIframe(t){return new e(t.querySelector("html"),this.iframes)}compareNodeIframe(t,r,n){let i=t.compareDocumentPosition(n),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(r!==null){let s=r.compareDocumentPosition(n),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let r=t.previousNode(),n;return r===null?n=t.nextNode():n=t.nextNode()&&t.nextNode(),{prevNode:r,node:n}}checkIframeFilter(t,r,n,i){let a=!1,s=!1;return i.forEach((l,d)=>{l.val===n&&(a=d,s=l.handled)}),this.compareNodeIframe(t,r,n)?(a===!1&&!s?i.push({val:n,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:n,handled:!1}),!1)}handleOpenIframes(t,r,n,i){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,n,i)})})}iterateThroughNodes(t,r,n,i,a){let s=this.createIterator(r,t,i),l=[],d=[],p,h,f=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;f();)this.iframes&&this.forEachIframe(r,m=>this.checkIframeFilter(p,h,m,l),m=>{this.createInstanceOnIframe(m).forEachNode(t,b=>d.push(b),i)}),d.push(p);d.forEach(m=>{n(m)}),this.iframes&&this.handleOpenIframes(l,t,n,i),a()}forEachNode(t,r,n,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(t,l,r,n,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(l,d):d()})}};var no=class{constructor(t){this.ctx=t,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){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},t)}get opt(){return this._opt}get iterator(){return new je(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,r="debug"){let n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[r]=="function"&&n[r](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return this.opt.wildcards!=="disabled"&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),this.opt.wildcards!=="disabled"&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t),t}createSynonymsRegExp(t){let r=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(t=t.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${n}`),i+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+i))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return t=t.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let r=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(r,n,i)=>{let a=i.charAt(n+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(t){let r=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&r.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?t.split(/\u0000+/).join(`[${r.join("")}]*`):t}createDiacriticsRegExp(t){let r=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],i=[];return t.split("").forEach(a=>{n.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;t=t.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),i.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",n=this.opt.accuracy,i=typeof n=="string"?n:n.value,a=typeof n=="string"?[]:n.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),i){case"partially":default:return`()(${t})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let r=[];return t.forEach(n=>{this.opt.separateWordSearch?n.split(" ").forEach(i=>{i.trim()&&r.indexOf(i)===-1&&r.push(i)}):n.trim()&&r.indexOf(n)===-1&&r.push(n)}),{keywords:r.sort((n,i)=>i.length-n.length),length:r.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||Object.prototype.toString.call(t[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];let r=[],n=0;return t.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(i,n);l&&(i.start=a,i.length=s-a,r.push(i),n=s)}),r}callNoMatchOnInvalidRanges(t,r){let n,i,a=!1;return t&&typeof t.start<"u"?(n=parseInt(t.start,10),i=n+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&i-r>0&&i-n>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:n,end:i,valid:a}}checkWhitespaceRanges(t,r,n){let i,a=!0,s=n.length,l=r-s,d=parseInt(t.start,10)-l;return d=d>s?s:d,i=d+parseInt(t.length,10),i>s&&(i=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||i-d<0||d>s||i>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):n.substring(d,i).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:d,end:i,valid:a}}getTextNodes(t){let r="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{n.push({start:r.length,end:(r+=i.textContent).length,node:i})},i=>this.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:r,nodes:n})})}matchesExclude(t){return je.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,r,n){let i=this.opt.element?this.opt.element:"mark",a=t.splitText(r),s=a.splitText(n-r),l=document.createElement(i);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(t,r,n,i,a){t.nodes.every((s,l)=>{let d=t.nodes[l+1];if(typeof d>"u"||d.start>r){if(!i(s.node))return!1;let p=r-s.start,h=(n>s.end?s.end:n)-s.start,f=t.value.substr(0,s.start),m=t.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,h),t.value=f+m,t.nodes.forEach((b,x)=>{x>=l&&(t.nodes[x].start>0&&x!==l&&(t.nodes[x].start-=h),t.nodes[x].end-=h)}),n-=h,a(s.node.previousSibling,s.start),n>s.end)r=s.end;else return!1}return!0})}wrapMatches(t,r,n,i,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=t.exec(d.textContent))!==null&&p[s]!=="";){if(!n(p[s],d))continue;let h=p.index;if(s!==0)for(let f=1;f<s;f++)h+=p[f].length;d=this.wrapRangeInTextNode(d,h,h+p[s].length),i(d.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,r,n,i,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=t.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let f=1;f<s;f++)p+=d[f].length;let h=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,h,f=>n(d[s],f),(f,m)=>{t.lastIndex=m,i(f)})}a()})}wrapRangeFromIndex(t,r,n,i){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,d)=>{let{start:p,end:h,valid:f}=this.checkWhitespaceRanges(l,s,a.value);f&&this.wrapRangeInMappedTextNode(a,p,h,m=>r(m,l,a.value.substring(p,h),d),m=>{n(m,l)})}),i()})}unwrapMatches(t){let r=t.parentNode,n=document.createDocumentFragment();for(;t.firstChild;)n.appendChild(t.removeChild(t.firstChild));r.replaceChild(n,t),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(t){if(t){if(t.nodeType===3)for(;t.nextSibling&&t.nextSibling.nodeType===3;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,r){this.opt=r,this.log(`Searching with expression "${t}"`);let n=0,i="wrapMatches",a=s=>{n++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](t,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,n),a,()=>{n===0&&this.opt.noMatch(t),this.opt.done(n)})}mark(t,r){this.opt=r;let n=0,i="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",d=p=>{let h=new RegExp(this.createRegExp(p),`gm${l}`),f=0;this.log(`Searching with expression "${h}"`),this[i](h,1,(m,b)=>this.opt.filter(b,p,n,f),m=>{f++,n++,this.opt.each(m)},()=>{f===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(n):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(n):d(a[0])}markRanges(t,r){this.opt=r;let n=0,i=this.checkRanges(t);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{n++,this.opt.each(a,s)},()=>{this.opt.done(n)})):this.opt.done(n)}unmark(t){this.opt=t;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,n=>{this.unwrapMatches(n)},n=>{let i=je.matches(n,r),a=this.matchesExclude(n);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function sa(e){let t=new no(e);return this.mark=(r,n)=>(t.mark(r,n),this),this.markRegExp=(r,n)=>(t.markRegExp(r,n),this),this.markRanges=(r,n)=>(t.markRanges(r,n),this),this.unmark=r=>(t.unmark(r),this),this}var au=sa,gl=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),su=L`
1
+ "use strict";(()=>{var Nd=Object.create;var In=Object.defineProperty;var Ld=Object.getOwnPropertyDescriptor;var Pd=Object.getOwnPropertyNames;var kd=Object.getPrototypeOf,Md=Object.prototype.hasOwnProperty;var Dd=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Z=(e,t)=>{for(var r in t)In(e,r,{get:t[r],enumerable:!0})},$d=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Pd(t))!Md.call(e,i)&&i!==r&&In(e,i,{get:()=>t[i],enumerable:!(n=Ld(t,i))||n.enumerable});return e};var Bd=(e,t,r)=>(r=e!=null?Nd(kd(e)):{},$d(t||!e||!e.__esModule?In(r,"default",{value:e,enumerable:!0}):r,e));var ec=Dd((Ne,tc)=>{var Go=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Ko=function(){function e(){this.fetch=!1,this.DOMException=Go.DOMException}return e.prototype=Go,new e}();(function(e){var t=function(r){var n=typeof e<"u"&&e||typeof self<"u"&&self||typeof global<"u"&&global||{},i={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 a(y){return y&&DataView.prototype.isPrototypeOf(y)}if(i.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(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function d(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var S={next:function(){var M=y.shift();return{done:M===void 0,value:M}}};return i.iterable&&(S[Symbol.iterator]=function(){return S}),S}function f(y){this.map={},y instanceof f?y.forEach(function(S,M){this.append(M,S)},this):Array.isArray(y)?y.forEach(function(S){if(S.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+S.length);this.append(S[0],S[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(S){this.append(S,y[S])},this)}f.prototype.append=function(y,S){y=d(y),S=p(S);var M=this.map[y];this.map[y]=M?M+", "+S:S},f.prototype.delete=function(y){delete this.map[d(y)]},f.prototype.get=function(y){return y=d(y),this.has(y)?this.map[y]:null},f.prototype.has=function(y){return this.map.hasOwnProperty(d(y))},f.prototype.set=function(y,S){this.map[d(y)]=p(S)},f.prototype.forEach=function(y,S){for(var M in this.map)this.map.hasOwnProperty(M)&&y.call(S,this.map[M],M,this)},f.prototype.keys=function(){var y=[];return this.forEach(function(S,M){y.push(M)}),h(y)},f.prototype.values=function(){var y=[];return this.forEach(function(S){y.push(S)}),h(y)},f.prototype.entries=function(){var y=[];return this.forEach(function(S,M){y.push([M,S])}),h(y)},i.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function m(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function b(y){return new Promise(function(S,M){y.onload=function(){S(y.result)},y.onerror=function(){M(y.error)}})}function x(y){var S=new FileReader,M=b(S);return S.readAsArrayBuffer(y),M}function O(y){var S=new FileReader,M=b(S),K=/charset=([A-Za-z0-9_-]+)/.exec(y.type),Q=K?K[1]:"utf-8";return S.readAsText(y,Q),M}function I(y){for(var S=new Uint8Array(y),M=new Array(S.length),K=0;K<S.length;K++)M[K]=String.fromCharCode(S[K]);return M.join("")}function T(y){if(y.slice)return y.slice(0);var S=new Uint8Array(y.byteLength);return S.set(new Uint8Array(y)),S.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:i.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:i.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():i.arrayBuffer&&i.blob&&a(y)?(this._bodyArrayBuffer=T(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||l(y))?this._bodyArrayBuffer=T(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var y=m(this);if(y)return y;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 y=m(this);return y||(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(i.blob)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=m(this);if(y)return y;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(I(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(P)}),this.json=function(){return this.text().then(JSON.parse)},this}var E=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function w(y){var S=y.toUpperCase();return E.indexOf(S)>-1?S:y}function C(y,S){if(!(this instanceof C))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');S=S||{};var M=S.body;if(y instanceof C){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,S.headers||(this.headers=new f(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!M&&y._bodyInit!=null&&(M=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=S.credentials||this.credentials||"same-origin",(S.headers||!this.headers)&&(this.headers=new f(S.headers)),this.method=w(S.method||this.method||"GET"),this.mode=S.mode||this.mode||null,this.signal=S.signal||this.signal||function(){if("AbortController"in n){var V=new AbortController;return V.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&M)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(M),(this.method==="GET"||this.method==="HEAD")&&(S.cache==="no-store"||S.cache==="no-cache")){var K=/([?&])_=[^&]*/;if(K.test(this.url))this.url=this.url.replace(K,"$1_="+new Date().getTime());else{var Q=/\?/;this.url+=(Q.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}C.prototype.clone=function(){return new C(this,{body:this._bodyInit})};function P(y){var S=new FormData;return y.trim().split("&").forEach(function(M){if(M){var K=M.split("="),Q=K.shift().replace(/\+/g," "),V=K.join("=").replace(/\+/g," ");S.append(decodeURIComponent(Q),decodeURIComponent(V))}}),S}function U(y){var S=new f,M=y.replace(/\r?\n[\t ]+/g," ");return M.split("\r").map(function(K){return K.indexOf(`
2
+ `)===0?K.substr(1,K.length):K}).forEach(function(K){var Q=K.split(":"),V=Q.shift().trim();if(V){var vo=Q.join(":").trim();try{S.append(V,vo)}catch(Tn){console.warn("Response "+Tn.message)}}}),S}N.call(C.prototype);function W(y,S){if(!(this instanceof W))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(S||(S={}),this.type="default",this.status=S.status===void 0?200:S.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=S.statusText===void 0?"":""+S.statusText,this.headers=new f(S.headers),this.url=S.url||"",this._initBody(y)}N.call(W.prototype),W.prototype.clone=function(){return new W(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},W.error=function(){var y=new W(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var G=[301,302,303,307,308];W.redirect=function(y,S){if(G.indexOf(S)===-1)throw new RangeError("Invalid status code");return new W(null,{status:S,headers:{location:y}})},r.DOMException=n.DOMException;try{new r.DOMException}catch{r.DOMException=function(S,M){this.message=S,this.name=M;var K=Error(S);this.stack=K.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function k(y,S){return new Promise(function(M,K){var Q=new C(y,S);if(Q.signal&&Q.signal.aborted)return K(new r.DOMException("Aborted","AbortError"));var V=new XMLHttpRequest;function vo(){V.abort()}V.onload=function(){var xt={statusText:V.statusText,headers:U(V.getAllResponseHeaders()||"")};Q.url.indexOf("file://")===0&&(V.status<200||V.status>599)?xt.status=200:xt.status=V.status,xt.url="responseURL"in V?V.responseURL:xt.headers.get("X-Request-URL");var Me="response"in V?V.response:V.responseText;setTimeout(function(){M(new W(Me,xt))},0)},V.onerror=function(){setTimeout(function(){K(new TypeError("Network request failed"))},0)},V.ontimeout=function(){setTimeout(function(){K(new TypeError("Network request timed out"))},0)},V.onabort=function(){setTimeout(function(){K(new r.DOMException("Aborted","AbortError"))},0)};function Tn(xt){try{return xt===""&&n.location.href?n.location.href:xt}catch{return xt}}if(V.open(Q.method,Tn(Q.url),!0),Q.credentials==="include"?V.withCredentials=!0:Q.credentials==="omit"&&(V.withCredentials=!1),"responseType"in V&&(i.blob?V.responseType="blob":i.arrayBuffer&&(V.responseType="arraybuffer")),S&&typeof S.headers=="object"&&!(S.headers instanceof f||n.Headers&&S.headers instanceof n.Headers)){var xs=[];Object.getOwnPropertyNames(S.headers).forEach(function(xt){xs.push(d(xt)),V.setRequestHeader(xt,p(S.headers[xt]))}),Q.headers.forEach(function(xt,Me){xs.indexOf(Me)===-1&&V.setRequestHeader(Me,xt)})}else Q.headers.forEach(function(xt,Me){V.setRequestHeader(Me,xt)});Q.signal&&(Q.signal.addEventListener("abort",vo),V.onreadystatechange=function(){V.readyState===4&&Q.signal.removeEventListener("abort",vo)}),V.send(typeof Q._bodyInit>"u"?null:Q._bodyInit)})}return k.polyfill=!0,n.fetch||(n.fetch=k,n.Headers=f,n.Request=C,n.Response=W),r.Headers=f,r.Request=C,r.Response=W,r.fetch=k,r}({})})(Ko);Ko.fetch.ponyfill=!0;delete Ko.fetch.polyfill;var xr=Go.fetch?Go:Ko;Ne=xr.fetch;Ne.default=xr.fetch;Ne.fetch=xr.fetch;Ne.Headers=xr.Headers;Ne.Request=xr.Request;Ne.Response=xr.Response;tc.exports=Ne});if(!ShadowRoot.prototype.createElement){let e=window.HTMLElement,t=window.customElements.define,r=window.customElements.get,n=window.customElements,i=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(E,w){if(E=E.toLowerCase(),this._getDefinition(E)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${E}" has already been used with this registry`);if(this._definitionsByClass.get(w)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let C=w.prototype.attributeChangedCallback,P=new Set(w.observedAttributes||[]);m(w,P,C);let U={elementClass:w,connectedCallback:w.prototype.connectedCallback,disconnectedCallback:w.prototype.disconnectedCallback,adoptedCallback:w.prototype.adoptedCallback,attributeChangedCallback:C,formAssociated:w.formAssociated,formAssociatedCallback:w.prototype.formAssociatedCallback,formDisabledCallback:w.prototype.formDisabledCallback,formResetCallback:w.prototype.formResetCallback,formStateRestoreCallback:w.prototype.formStateRestoreCallback,observedAttributes:P};this._definitionsByTag.set(E,U),this._definitionsByClass.set(w,U);let W=r.call(n,E);W||(W=f(E),t.call(n,E,W)),this===window.customElements&&(s.set(w,U),U.standInClass=W);let G=this._awaitingUpgrade.get(E);if(G){this._awaitingUpgrade.delete(E);for(let y of G)a.delete(y),x(y,U,!0)}let k=this._whenDefinedPromises.get(E);return k!==void 0&&(k.resolve(w),this._whenDefinedPromises.delete(E)),w}upgrade(){I.push(this),n.upgrade.apply(n,arguments),I.pop()}get(E){return this._definitionsByTag.get(E)?.elementClass}_getDefinition(E){return this._definitionsByTag.get(E)}whenDefined(E){let w=this._getDefinition(E);if(w!==void 0)return Promise.resolve(w.elementClass);let C=this._whenDefinedPromises.get(E);return C===void 0&&(C={},C.promise=new Promise(P=>C.resolve=P),this._whenDefinedPromises.set(E,C)),C.promise}_upgradeWhenDefined(E,w,C){let P=this._awaitingUpgrade.get(w);P||this._awaitingUpgrade.set(w,P=new Set),C?P.add(E):P.delete(E)}};let d;window.HTMLElement=function(){let w=d;if(w)return d=void 0,w;let C=s.get(this.constructor);if(!C)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return w=Reflect.construct(e,[],C.standInClass),Object.setPrototypeOf(w,this.constructor.prototype),i.set(w,C),w},window.HTMLElement.prototype=e.prototype;let p=E=>E===document||E instanceof ShadowRoot,h=E=>{let w=E.getRootNode();if(!p(w)){let C=I[I.length-1];if(C instanceof CustomElementRegistry)return C;w=C.getRootNode(),p(w)||(w=l.get(w)?.getRootNode()||document)}return w.customElements},f=E=>class{static get formAssociated(){return!0}constructor(){let C=Reflect.construct(e,[],this.constructor);Object.setPrototypeOf(C,HTMLElement.prototype);let P=h(C)||window.customElements,U=P._getDefinition(E);return U?x(C,U):a.set(C,P),C}connectedCallback(){let C=i.get(this);C?C.connectedCallback&&C.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,E,!0)}disconnectedCallback(){let C=i.get(this);C?C.disconnectedCallback&&C.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,E,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let C=i.get(this);C&&C.formAssociated&&C?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let C=i.get(this);C?.formAssociated&&C?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let C=i.get(this);C?.formAssociated&&C?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let C=i.get(this);C?.formAssociated&&C?.formStateRestoreCallback?.apply(this,arguments)}},m=(E,w,C)=>{if(w.size===0||C===void 0)return;let P=E.prototype.setAttribute;P&&(E.prototype.setAttribute=function(G,k){let y=G.toLowerCase();if(w.has(y)){let S=this.getAttribute(y);P.call(this,y,k),C.call(this,y,S,k)}else P.call(this,y,k)});let U=E.prototype.removeAttribute;U&&(E.prototype.removeAttribute=function(G){let k=G.toLowerCase();if(w.has(k)){let y=this.getAttribute(k);U.call(this,k),C.call(this,k,y,null)}else U.call(this,k)});let W=E.prototype.toggleAttribute;W&&(E.prototype.toggleAttribute=function(G,k){let y=G.toLowerCase();if(w.has(y)){let S=this.getAttribute(y);W.call(this,y,k);let M=this.getAttribute(y);C.call(this,y,S,M)}else W.call(this,y,k)})},b=E=>{let w=Object.getPrototypeOf(E);if(w!==window.HTMLElement)return w===e?Object.setPrototypeOf(E,window.HTMLElement):b(w)},x=(E,w,C=!1)=>{Object.setPrototypeOf(E,w.elementClass.prototype),i.set(E,w),d=E;try{new w.elementClass}catch{b(w.elementClass),new w.elementClass}w.attributeChangedCallback&&w.observedAttributes.forEach(P=>{E.hasAttribute(P)&&w.attributeChangedCallback.call(E,P,null,E.getAttribute(P))}),C&&w.connectedCallback&&E.isConnected&&w.connectedCallback.call(E)},O=Element.prototype.attachShadow;Element.prototype.attachShadow=function(E){let w=O.apply(this,arguments);return E.customElements&&(w.customElements=E.customElements),w};let I=[document],T=(E,w,C=void 0)=>{let P=(C?Object.getPrototypeOf(C):E.prototype)[w];E.prototype[w]=function(){I.push(this);let U=P.apply(C||this,arguments);return U!==void 0&&l.set(U,this),I.pop(),U}};T(ShadowRoot,"createElement",document),T(ShadowRoot,"importNode",document),T(Element,"insertAdjacentHTML");let N=(E,w)=>{let C=Object.getOwnPropertyDescriptor(E.prototype,w);Object.defineProperty(E.prototype,w,{...C,set(P){I.push(this),C.set.call(this,P),I.pop()}})};if(N(Element,"innerHTML"),N(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let E=new WeakMap,w=HTMLElement.prototype.attachInternals,C=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...G){let k=w.call(this,...G);return E.set(k,this),k},C.forEach(G=>{let k=window.ElementInternals.prototype,y=k[G];k[G]=function(...S){let M=E.get(this);if(i.get(M).formAssociated===!0)return y?.call(this,...S);throw new DOMException(`Failed to execute ${y} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class P extends Array{constructor(k){super(...k),this._elements=k}get value(){return this._elements.find(k=>k.checked===!0)?.value||""}}class U{constructor(k){let y=new Map;k.forEach((S,M)=>{let K=S.getAttribute("name"),Q=y.get(K)||[];this[+M]=S,Q.push(S),y.set(K,Q)}),this.length=k.length,y.forEach((S,M)=>{S&&(S.length===1?this[M]=S[0]:this[M]=new P(S))})}namedItem(k){return this[k]}}let W=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let G=W.get.call(this,[]),k=[];for(let y of G){let S=i.get(y);(!S||S.formAssociated===!0)&&k.push(y)}return new U(k)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(r,n,i)=>{if(n!==null)try{t.bind(window.customElements)(r,n,i)}catch(a){console.info(r,n,i,a)}}}var Wn={};Z(Wn,{CSSResult:()=>tr,LitElement:()=>ae,ReactiveElement:()=>qt,_$LE:()=>Yd,_$LH:()=>Un,adoptStyles:()=>Br,css:()=>L,defaultConverter:()=>er,getCompatibleStyle:()=>Oo,html:()=>$,isServer:()=>Pf,mathml:()=>Bn,noChange:()=>St,notEqual:()=>Fr,nothing:()=>H,render:()=>Fn,supportsAdoptingStyleSheets:()=>$r,svg:()=>$n,unsafeCSS:()=>ne});var So=globalThis,$r=So.ShadowRoot&&(So.ShadyCSS===void 0||So.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_n=Symbol(),vs=new WeakMap,tr=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==_n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if($r&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=vs.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&vs.set(r,t))}return t}toString(){return this.cssText}},ne=e=>new tr(typeof e=="string"?e:e+"",void 0,_n),L=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,i,a)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[a+1],e[0]);return new tr(r,e,_n)},Br=(e,t)=>{if($r)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=So.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}},Oo=$r?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return ne(r)})(e):e;var{is:Ud,defineProperty:Fd,getOwnPropertyDescriptor:Hd,getOwnPropertyNames:Wd,getOwnPropertySymbols:zd,getPrototypeOf:jd}=Object,Co=globalThis,Ss=Co.trustedTypes,Vd=Ss?Ss.emptyScript:"",Gd=Co.reactiveElementPolyfillSupport,Ur=(e,t)=>e,er={toAttribute(e,t){switch(t){case Boolean:e=e?Vd:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Fr=(e,t)=>!Ud(e,t),Os={attribute:!0,type:String,converter:er,reflect:!1,useDefault:!1,hasChanged:Fr};Symbol.metadata??=Symbol("metadata"),Co.litPropertyMetadata??=new WeakMap;var qt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Os){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(t,n,r);i!==void 0&&Fd(this.prototype,t,i)}}static getPropertyDescriptor(t,r,n){let{get:i,set:a}=Hd(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get:i,set(s){let l=i?.call(this);a?.call(this,s),this.requestUpdate(t,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Os}static _$Ei(){if(this.hasOwnProperty(Ur("elementProperties")))return;let t=jd(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ur("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ur("properties"))){let r=this.properties,n=[...Wd(r),...zd(r)];for(let i of n)this.createProperty(i,r[i])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let i of n)r.unshift(Oo(i))}else t!==void 0&&r.push(Oo(t));return r}static _$Eu(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Br(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$ET(t,r){let n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){let a=(n.converter?.toAttribute!==void 0?n.converter:er).toAttribute(r,n.type);this._$Em=t,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(t,r){let n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let a=n.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:er;this._$Em=i,this[i]=s.fromAttribute(r,a.type)??this._$Ej?.get(i)??null,this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){let i=this.constructor,a=this[t];if(n??=i.getPropertyOptions(t),!((n.hasChanged??Fr)(a,r)||n.useDefault&&n.reflect&&a===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,n))))return;this.C(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:n,reflect:i,wrapped:a},s){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??r??this[t]),a!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(r=void 0),this._$AL.set(t,r)),i===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,a]of n){let{wrapped:s}=a,l=this[i];s!==!0||this._$AL.has(i)||l===void 0||this.C(i,void 0,a,l)}}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(t){}firstUpdated(t){}};qt.elementStyles=[],qt.shadowRootOptions={mode:"open"},qt[Ur("elementProperties")]=new Map,qt[Ur("finalized")]=new Map,Gd?.({ReactiveElement:qt}),(Co.reactiveElementVersions??=[]).push("2.1.0");var Ln=globalThis,Eo=Ln.trustedTypes,Cs=Eo?Eo.createPolicy("lit-html",{createHTML:e=>e}):void 0,Pn="$lit$",ie=`lit$${Math.random().toFixed(9).slice(2)}$`,kn="?"+ie,Kd=`<${kn}>`,Be=document,Wr=()=>Be.createComment(""),zr=e=>e===null||typeof e!="object"&&typeof e!="function",Mn=Array.isArray,Is=e=>Mn(e)||typeof e?.[Symbol.iterator]=="function",Nn=`[
3
+ \f\r]`,Hr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Es=/-->/g,ws=/>/g,De=RegExp(`>|${Nn}(?:([^\\s"'>=/]+)(${Nn}*=${Nn}*(?:[^
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),As=/'/g,Rs=/"/g,_s=/^(?:script|style|textarea|title)$/i,Dn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),$=Dn(1),$n=Dn(2),Bn=Dn(3),St=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),Ts=new WeakMap,$e=Be.createTreeWalker(Be,129);function Ns(e,t){if(!Mn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Cs!==void 0?Cs.createHTML(t):t}var Ls=(e,t)=>{let r=e.length-1,n=[],i,a=t===2?"<svg>":t===3?"<math>":"",s=Hr;for(let l=0;l<r;l++){let d=e[l],p,h,f=-1,m=0;for(;m<d.length&&(s.lastIndex=m,h=s.exec(d),h!==null);)m=s.lastIndex,s===Hr?h[1]==="!--"?s=Es:h[1]!==void 0?s=ws:h[2]!==void 0?(_s.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=De):h[3]!==void 0&&(s=De):s===De?h[0]===">"?(s=i??Hr,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?De:h[3]==='"'?Rs:As):s===Rs||s===As?s=De:s===Es||s===ws?s=Hr:(s=De,i=void 0);let b=s===De&&e[l+1].startsWith("/>")?" ":"";a+=s===Hr?d+Kd:f>=0?(n.push(p),d.slice(0,f)+Pn+d.slice(f)+ie+b):d+ie+(f===-2?l:b)}return[Ns(e,a+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},jr=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,h]=Ls(t,r);if(this.el=e.createElement(p,n),$e.currentNode=this.el.content,r===2||r===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=$e.nextNode())!==null&&d.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let f of i.getAttributeNames())if(f.endsWith(Pn)){let m=h[s++],b=i.getAttribute(f).split(ie),x=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:x[2],strings:b,ctor:x[1]==="."?Ao:x[1]==="?"?Ro:x[1]==="@"?To:Fe}),i.removeAttribute(f)}else f.startsWith(ie)&&(d.push({type:6,index:a}),i.removeAttribute(f));if(_s.test(i.tagName)){let f=i.textContent.split(ie),m=f.length-1;if(m>0){i.textContent=Eo?Eo.emptyScript:"";for(let b=0;b<m;b++)i.append(f[b],Wr()),$e.nextNode(),d.push({type:2,index:++a});i.append(f[m],Wr())}}}else if(i.nodeType===8)if(i.data===kn)d.push({type:2,index:a});else{let f=-1;for(;(f=i.data.indexOf(ie,f+1))!==-1;)d.push({type:7,index:a}),f+=ie.length-1}a++}}static createElement(t,r){let n=Be.createElement("template");return n.innerHTML=t,n}};function Ue(e,t,r=e,n){if(t===St)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,a=zr(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=Ue(e,i._$AS(e,t.values),i,n)),t}var wo=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??Be).importNode(r,!0);$e.currentNode=i;let a=$e.nextNode(),s=0,l=0,d=n[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new rr(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new Io(a,this,t)),this._$AV.push(p),d=n[++l]}s!==d?.index&&(a=$e.nextNode(),s++)}return $e.currentNode=Be,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},rr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Ue(this,t,r),zr(t)?t===H||t==null||t===""?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==St&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Is(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==H&&zr(this._$AH)?this._$AA.nextSibling.data=t:this.T(Be.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=jr.createElement(Ns(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let a=new wo(i,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(t){let r=Ts.get(t.strings);return r===void 0&&Ts.set(t.strings,r=new jr(t)),r}k(t){Mn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let a of t)i===r.length?r.push(n=new e(this.O(Wr()),this.O(Wr()),this,this.options)):n=r[i],n._$AI(a),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Fe=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,a){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=H}_$AI(t,r=this,n,i){let a=this.strings,s=!1;if(a===void 0)t=Ue(this,t,r,0),s=!zr(t)||t!==this._$AH&&t!==St,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=Ue(this,l[n+d],r,d),p===St&&(p=this._$AH[d]),s||=!zr(p)||p!==this._$AH[d],p===H?t=H:t!==H&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!i&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Ao=class extends Fe{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}},Ro=class extends Fe{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==H)}},To=class extends Fe{constructor(t,r,n,i,a){super(t,r,n,i,a),this.type=5}_$AI(t,r=this){if((t=Ue(this,t,r,0)??H)===St)return;let n=this._$AH,i=t===H&&n!==H||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,a=t!==H&&(n===H||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Io=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Ue(this,t)}},Un={M:Pn,P:ie,A:kn,C:1,L:Ls,R:wo,D:Is,V:Ue,I:rr,H:Fe,N:Ro,U:To,B:Ao,F:Io},Zd=Ln.litHtmlPolyfillSupport;Zd?.(jr,rr),(Ln.litHtmlVersions??=[]).push("3.3.0");var Fn=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(i===void 0){let a=r?.renderBefore??null;n._$litPart$=i=new rr(t.insertBefore(Wr(),a),a,void 0,r??{})}return i._$AI(e),i};var Hn=globalThis,ae=class extends qt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Fn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return St}};ae._$litElement$=!0,ae.finalized=!0,Hn.litElementHydrateSupport?.({LitElement:ae});var qd=Hn.litElementPolyfillSupport;qd?.({LitElement:ae});var Yd={_$AK:(e,t,r)=>{e._$AK(t,r)},_$AL:e=>e._$AL};(Hn.litElementVersions??=[]).push("4.2.0");var Pf=!1;var Vn={};Z(Vn,{customElement:()=>Xd,eventOptions:()=>or,property:()=>v,query:()=>at,queryAll:()=>tp,queryAssignedElements:()=>zn,queryAssignedNodes:()=>jn,queryAsync:()=>ep,standardProperty:()=>Ps,state:()=>tt});var Xd=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var Jd={attribute:!0,type:String,converter:er,reflect:!1,hasChanged:Fr},Ps=(e=Jd,t,r)=>{let{kind:n,metadata:i}=r,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),n==="setter"&&((e=Object.create(e)).wrapped=!0),a.set(r.name,e),n==="accessor"){let{name:s}=r;return{set(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,d,e)},init(l){return l!==void 0&&this.C(s,void 0,e,l),l}}}if(n==="setter"){let{name:s}=r;return function(l){let d=this[s];t.call(this,l),this.requestUpdate(s,d,e)}}throw Error("Unsupported decorator location: "+n)};function v(e){return(t,r)=>typeof r=="object"?Ps(e,t,r):((n,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,n),s?Object.getOwnPropertyDescriptor(i,a):void 0})(e,t,r)}function tt(e){return v({...e,state:!0,attribute:!1})}function or(e){return(t,r)=>{let n=typeof t=="function"?t:t[r];Object.assign(n,e)}}var Vt=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r);function at(e,t){return(r,n,i)=>{let a=s=>s.renderRoot?.querySelector(e)??null;if(t){let{get:s,set:l}=typeof n=="object"?r:i??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return Vt(r,n,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Vt(r,n,{get(){return a(this)}})}}var Qd;function tp(e){return(t,r)=>Vt(t,r,{get(){return(this.renderRoot??(Qd??=document.createDocumentFragment())).querySelectorAll(e)}})}function ep(e){return(t,r)=>Vt(t,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}function zn(e){return(t,r)=>{let{slot:n,selector:i}=e??{},a="slot"+(n?`[name=${n}]`:":not([name])");return Vt(t,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(e)??[];return i===void 0?l:l.filter(d=>d.matches(i))}})}}function jn(e){return(t,r)=>{let{slot:n}=e??{},i="slot"+(n?`[name=${n}]`:":not([name])");return Vt(t,r,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(e)??[]}})}}var Kn={};Z(Kn,{repeat:()=>Gn});var ve={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Se=e=>(...t)=>({_$litDirective$:e,values:t}),Yt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,n){this._$Ct=t,this._$AM=r,this._$Ci=n}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var{I:rp}=Un;var ks=()=>document.createComment(""),nr=(e,t,r)=>{let n=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(r===void 0){let a=n.insertBefore(ks(),i),s=n.insertBefore(ks(),i);r=new rp(a,s,e,e.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==e;if(l){let d;r._$AQ?.(e),r._$AM=e,r._$AP!==void 0&&(d=e._$AU)!==s._$AU&&r._$AP(d)}if(a!==i||l){let d=r._$AA;for(;d!==a;){let p=d.nextSibling;n.insertBefore(d,i),d=p}}}return r},Oe=(e,t,r=e)=>(e._$AI(t,r),e),op={},Ms=(e,t=op)=>e._$AH=t,Ds=e=>e._$AH,_o=e=>{e._$AP?.(!1,!0);let t=e._$AA,r=e._$AB.nextSibling;for(;t!==r;){let n=t.nextSibling;t.remove(),t=n}};var $s=(e,t,r)=>{let n=new Map;for(let i=t;i<=r;i++)n.set(e[i],i);return n},Gn=Se(class extends Yt{constructor(e){if(super(e),e.type!==ve.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,r){let n;r===void 0?r=t:t!==void 0&&(n=t);let i=[],a=[],s=0;for(let l of e)i[s]=n?n(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:i}}render(e,t,r){return this.dt(e,t,r).values}update(e,[t,r,n]){let i=Ds(e),{values:a,keys:s}=this.dt(t,r,n);if(!Array.isArray(i))return this.ut=s,a;let l=this.ut??=[],d=[],p,h,f=0,m=i.length-1,b=0,x=a.length-1;for(;f<=m&&b<=x;)if(i[f]===null)f++;else if(i[m]===null)m--;else if(l[f]===s[b])d[b]=Oe(i[f],a[b]),f++,b++;else if(l[m]===s[x])d[x]=Oe(i[m],a[x]),m--,x--;else if(l[f]===s[x])d[x]=Oe(i[f],a[x]),nr(e,d[x+1],i[f]),f++,x--;else if(l[m]===s[b])d[b]=Oe(i[m],a[b]),nr(e,i[f],i[m]),m--,b++;else if(p===void 0&&(p=$s(s,b,x),h=$s(l,f,m)),p.has(l[f]))if(p.has(l[m])){let O=h.get(s[b]),I=O!==void 0?i[O]:null;if(I===null){let T=nr(e,i[f]);Oe(T,a[b]),d[b]=T}else d[b]=Oe(I,a[b]),nr(e,i[f],I),i[O]=null;b++}else _o(i[m]),m--;else _o(i[f]),f++;for(;b<=x;){let O=nr(e,d[x+1]);Oe(O,a[b]),d[b++]=O}for(;f<=m;){let O=i[f++];O!==null&&_o(O)}return this.ut=s,Ms(e,d),St}});var Zn={};Z(Zn,{classMap:()=>Bt});var Bt=Se(class extends Yt{constructor(e){if(super(e),e.type!==ve.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in t)t[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(t)}let r=e.element.classList;for(let n of this.st)n in t||(r.remove(n),this.st.delete(n));for(let n in t){let i=!!t[n];i===this.st.has(n)||this.nt?.has(n)||(i?(r.add(n),this.st.add(n)):(r.remove(n),this.st.delete(n)))}return St}});var qn={};Z(qn,{styleMap:()=>ip});var Bs="important",np=" !"+Bs,ip=Se(class extends Yt{constructor(e){if(super(e),e.type!==ve.ATTRIBUTE||e.name!=="style"||e.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(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return n==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(e,[t]){let{style:r}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let n of this.ft)t[n]==null&&(this.ft.delete(n),n.includes("-")?r.removeProperty(n):r[n]=null);for(let n in t){let i=t[n];if(i!=null){this.ft.add(n);let a=typeof i=="string"&&i.endsWith(np);n.includes("-")||a?r.setProperty(n,a?i.slice(0,-11):i,a?Bs:""):r[n]=i}}return St}});var Xn={};Z(Xn,{UnsafeHTMLDirective:()=>ir,unsafeHTML:()=>Yn});var ir=class extends Yt{constructor(t){if(super(t),this.it=H,t.type!==ve.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===H||t==null)return this._t=void 0,this.it=t;if(t===St)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};ir.directiveName="unsafeHTML",ir.resultType=1;var Yn=Se(ir);var ni={};Z(ni,{CacheRegistry:()=>Xt,ClearCacheEvent:()=>Vr});var Qn={};Z(Qn,{CancelablePromise:()=>ar,CanceledPromiseError:()=>se,cancelable:()=>Jn});var se=class extends Error{constructor(t,r,n){super(t),this.canceledPromiseResult=r,this.canceledPromiseError=n}},ar=class extends Promise{constructor(t){super((r,n)=>t(i=>{this.isCanceled?n(new se("Promise has been canceled",i)):r(i)},i=>{this.isCanceled?n(new se("Promise has been canceled",void 0,i)):n(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Jn=e=>new ar((t,r)=>e.then(t).catch(r));var oi={};Z(oi,{FtNotificationEvent:()=>ti,PostResizeEvent:()=>ri,PreResizeEvent:()=>ei,WithEventBus:()=>le,withEventBus:()=>Us});var ti=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},ei=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ri=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function Us(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,n,i){this.eventBus.addEventListener(r,n,i)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,i){this.eventBus.removeEventListener(r,n,i)}}}var le=class extends Us(Object){};var Vr=class extends CustomEvent{constructor(t){super("clear-cache",{detail:{clearedKeys:t}})}},Xt=class extends le{constructor(){super(...arguments),this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,r){this.loaders[t]=r,this.finalContent.delete(t)}registerFinal(t,r){this.loaders[t]=r,this.finalContent.add(t)}clearAll(t=!0){let r=[];for(let n in this.content)this.clear(n,!1)!=null&&r.push(n);t&&r.length>0&&this.dispatchEvent(new Vr(r))}clear(t,r=!0){if(!this.finalContent.has(t))return this.forceClear(t),r&&this.dispatchEvent(new Vr([t])),t}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof ar&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){this.clearTimeouts[t]!=null&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,r){this.forceClear(t),this.register(t,async()=>r),this.content[t]=r}setFinal(t,r){this.forceClear(t),this.registerFinal(t,async()=>r),this.content[t]=r}async get(t,r,n){if(this.content[t]===void 0){if(r=r??this.loaders[t],r==null)throw new Error("Unknown cache key "+t);let i=Jn(r());return this.content[t]=i,i.then(a=>(this.content[t]=a,n!=null&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout(()=>this.clear(t),n)),a))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return t!=null&&!(t instanceof Promise)&&!(t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return this.content[t]!=null}resolvedKeys(){return Object.keys(this.content).filter(t=>this.isResolvedValue(this.content[t]))}resolvedValues(){return Object.values(this.content).filter(t=>this.isResolvedValue(t))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var ai={};Z(ai,{ClusteringHelper:()=>He,formatHierarchicalValues:()=>ii});function ii(e,t){return t&&t>1&&e.length>=t?`... > ${e[e.length-1]}`:e.join(" > ")}var He=class e{constructor(t,r,n,i){this.allResults=t,this.selectedResult=r,this.clusteringMetadata=n,this.metadataDescriptors=i}static extractResultMetadata(t){var r,n,i,a,s;let l=((a=(n=(r=t.result)===null||r===void 0?void 0:r.map)!==null&&n!==void 0?n:(i=t.result)===null||i===void 0?void 0:i.document)!==null&&a!==void 0?a:(s=t.result)===null||s===void 0?void 0:s.topic).metadata;return t.key==null?e.flattenMetadata(l,t.hierarchicalValueTruncatingLevel,t.dateFormatter):e.flattenMetadata(l.find(d=>d.key===t.key),t.hierarchicalValueTruncatingLevel,t.dateFormatter)}static flattenMetadata(t,r,n){if(Array.isArray(t))return t.map(a=>e.flattenMetadata(a,r,n)).filter(a=>a!=null);let i=t?.hierarchicalValues!=null&&t.hierarchicalValues.length>0;if(!(t==null||t.values.length==0&&!i))if(i){let a=[],s=[];return t.hierarchicalValues.forEach(l=>{a.push(ii(l)),s.push(ii(l,r))}),{key:t.key,label:t.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=t.values.join(", "),s=t.values.map(l=>n?n(l):l).join(", ");return{key:t.key,label:t.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(t,r,n="No value",i,a){var s,l;let d=e.extractResultMetadata({result:this.selectedResult,key:t,dateFormatter:a}),p=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(t))===null||l===void 0?void 0:l.label;return this.allResults.map(f=>e.extractResultMetadata({result:f,key:t,hierarchicalValueTruncatingLevel:i,dateFormatter:a})).map(f=>f??{key:t,label:p,value:void 0,displayValue:n}).filter(f=>f.value!=d?.value).filter((f,m,b)=>b.findIndex(x=>x.value===f.value)===m).map(f=>({result:this.findBestResultForMetadataValue(t,f.value),metadata:f})).sort((f,m)=>this.compareMetadata(f.metadata.value,m.metadata.value,t,r))}compareMetadata(t,r,n,i){if(t==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(n),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=t.localeCompare(r,i,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(r=>t==r.key)}findBestResultForMetadataValue(t,r){let n=this.allResults.filter(d=>{var p;return((p=e.extractResultMetadata({result:d,key:t}))===null||p===void 0?void 0:p.value)==r}),a=[...e.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==t)],s,l=-1;for(let d of n){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(t,r){return e.extractResultMetadata({result:t}).filter(n=>r.some(i=>i.key===n.key&&i.value===n.value)).length}};var si={};Z(si,{Debouncer:()=>ft});var ft=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let n=[...this.callbacks];this.callbacks=[];let i=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){i(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ui={};Z(ui,{customElement:()=>q,isNumber:()=>Ws,jsonProperty:()=>Ut,optionalNumberProperty:()=>cp});var pi={};Z(pi,{dateReviver:()=>ap,deepCopy:()=>Zr,deepEqual:()=>Lt,delay:()=>No,eventPathContainsMatchingElement:()=>ci,flatDeep:()=>Fs,getComposedPathTo:()=>di,hasChanged:()=>Ce,last:()=>lp,minmax:()=>Kr,parseDate:()=>Hs,unslotText:()=>sr,waitFor:()=>Gr,waitUntil:()=>li});var No=e=>new Promise(t=>setTimeout(t,e));async function li(e,t=10,r=2e4){await Gr(async()=>await e()||void 0,t,r)}async function Gr(e,t=10,r=2e4){let n=await e(),i,a;for(i=a=performance.now();n==null&&(!r||a-i<r);)await No(t),n=await e(),a=performance.now();if(n==null)throw new Error("Timeout exceeded");return n}function Fs(e,t){return e.flatMap(r=>[r,...Fs(t(r),t)])}function ap(...e){return(t,r)=>e.includes(t)?Hs(r):r}function Hs(e){return e.match(/^\d{4}-\d{2}-\d{2}$/)&&(e=e.replace(/-/g,"/")),e=e.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,r,n,i)=>r+n+":"+i),new Date(e)}function sp(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Lt(e[n],t[n]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;for(n of e.entries())if(!Lt(n[1],t.get(n[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(n of e.entries())if(!t.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let a=s=>Object.keys(s).filter(l=>s[l]!=null);if(i=a(e),r=i.length,r!==a(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){let s=i[n];if(!Lt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Lt(e,t){try{return sp(e,t)}catch{return!1}}function Ce(e,t){return!Lt(e,t)}function ci(e,t,r=window.document.body){if(t.length>0){let n=e.composedPath();for(let i of n){if(i===r)return!1;if(i.matches&&t.some(a=>i.matches(a)))return!0}}return!1}function Kr(e,t,r){return Math.min(Math.max(e,t),r)}function lp(e){return e[e.length-1]}function sr(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(t=>sr(t)).join(""):e?.textContent||""}function di(e){let t=[],r=n=>{n.stopPropagation(),t=n.composedPath()};return e.addEventListener("get-composed-path",r),e.dispatchEvent(new Event("get-composed-path",{composed:!0})),e.removeEventListener("get-composed-path",r),t}function Zr(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}var q=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function Ut(e,t){let r=()=>JSON.parse(JSON.stringify(e));return v({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Ce,...t??{}})}function cp(e){return v({type:Object,converter:{fromAttribute:t=>{if(t!=null)return Ws(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...e??{}})}function Ws(e){return!isNaN(parseFloat(e))}var Hi={};Z(Hi,{designSystemVariables:()=>F});var Fi={};Z(Fi,{DesignSystemFamily:()=>de,DesignSystemSize:()=>gt,FtCssVariableFactory:()=>o,badge:()=>yp,banner:()=>mp,button:()=>g,chart:()=>Lp,checkbox:()=>pp,chip:()=>z,chipChoice:()=>fp,collapsible:()=>_p,comboboxMultiSelect:()=>Tp,comboboxSingleSelect:()=>Rp,drawer:()=>Op,floatingMenu:()=>Ap,foundation:()=>c,link:()=>hp,modal:()=>Sp,notice:()=>kp,notification:()=>$p,pageDesigner:()=>Pp,pageFooter:()=>xp,pageHeader:()=>bp,pageLayout:()=>vp,popover:()=>Ip,radio:()=>Dp,reorderableList:()=>Up,resolveFamilyClass:()=>Bi,resolveSizeClass:()=>Ui,semantic:()=>u,setVariable:()=>A,switch_:()=>Np,table:()=>up,tabs:()=>Cp,textArea:()=>wp,textInput:()=>Ep,titleBreadcrumb:()=>gp,toggle:()=>Mp,tooltip:()=>Bp,treeList:()=>Fp,typographies:()=>qr,typographyBody1Medium:()=>bi,typographyBody1Regular:()=>gi,typographyBody1Semibold:()=>xi,typographyBody2Medium:()=>Si,typographyBody2MediumUnderline:()=>zs,typographyBody2Regular:()=>vi,typographyBody2Semibold:()=>Oi,typographyCaption1Bold:()=>Ni,typographyCaption1Medium:()=>Ii,typographyCaption1Semibold:()=>_i,typographyCaption2Bold:()=>ki,typographyCaption2Medium:()=>Li,typographyCaption2Semibold:()=>Pi,typographyCaption3Bold:()=>$i,typographyCaption3Medium:()=>Mi,typographyCaption3Semibold:()=>Di,typographyDisplay:()=>fi,typographyLabel1Bold:()=>wi,typographyLabel1Medium:()=>Ci,typographyLabel1Semibold:()=>Ei,typographyLabel2Bold:()=>Ti,typographyLabel2Medium:()=>Ai,typographyLabel2Semibold:()=>Ri,typographyTitle1:()=>hi,typographyTitle2:()=>mi,typographyTitle3:()=>yi,typographyVariants:()=>dp});var ce=e=>typeof e=="string"?ne(e):e,o=class{static create(t,r,n,i){let a=l=>ce(l??i),s=L`var(${ce(t)}, ${a(i)})`;return s.name=t,s.description=r,s.category=n,s.defaultValue=i,s.defaultCssValue=a,s.get=l=>L`var(${ce(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,r,n,i){let a=l=>n.get(l??i),s=L`var(${ce(t)}, ${a(i)})`;return s.name=t,s.description=r,s.category=n.category,s.fallbackVariable=n,s.defaultValue=i,s.defaultCssValue=a,s.get=l=>L`var(${ce(t)}, ${a(l)})`,s.breadcrumb=()=>[n.name,...n.breadcrumb()],s.lastResortDefaultValue=()=>i??n.lastResortDefaultValue(),s}static external(t,r){let n=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):ce(a??t.lastResortDefaultValue()),i=L`var(${ce(t.name)}, ${n(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=r,i.defaultCssValue=n,i.get=a=>L`var(${ce(t.name)}, ${n(a)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}};function A(e,t){return ce(`${e.name}: ${t}`)}var c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ft-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},fi={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","1.2"),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")},hi={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","1.2"),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")},mi={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","1.2"),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")},yi={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","1.2"),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")},gi={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","1.35"),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")},bi={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","1.35"),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")},xi={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","1.35"),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")},vi={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","1.35"),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")},Si={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","1.35"),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")},zs={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","1.35"),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")},Oi={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","1.35"),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")},Ci={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")},Ei={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")},wi={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")},Ai={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")},Ri={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")},Ti={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")},Ii={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","1.3"),fontSize:o.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},_i={fontFamily:o.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","1.3"),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")},Ni={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","1.3"),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")},Li={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","1.3"),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")},Pi={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","1.3"),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")},ki={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","1.3"),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")},Mi={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","1.3"),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")},Di={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","1.3"),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")},$i={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","1.3"),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")},qr={display:fi,"title-1":hi,"title-2":mi,"title-3":yi,"body-1-regular":gi,"body-1-medium":bi,"body-1-semibold":xi,"body-2-regular":vi,"body-2-medium":Si,"body-2-medium-underline":zs,"body-2-semibold":Oi,"label-1-medium":Ci,"label-1-semibold":Ei,"label-1-bold":wi,"label-2-medium":Ai,"label-2-semibold":Ri,"label-2-bold":Ti,"caption-1-medium":Ii,"caption-1-semibold":_i,"caption-1-bold":Ni,"caption-2-medium":Li,"caption-2-semibold":Pi,"caption-2-bold":ki,"caption-3-medium":Mi,"caption-3-semibold":Di,"caption-3-bold":$i},dp=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var u={backgroundActionPrimary: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.
5
+ 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 g={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","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",u.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","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",u.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","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",u.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","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",u.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","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",u.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","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",u.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","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",u.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","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",u.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","",u.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","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",u.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","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",u.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","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",u.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","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",u.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","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var pp={iconSize:o.extend("--ft-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ft-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ft-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ft-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",u.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","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ft-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ft-checkbox-horizontal-gap","",c.spacing3),leftPadding:o.extend("--ft-checkbox-left-padding","",c.spacing2)};var up={headerRowBorderWidth:o.create("--ft-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ft-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ft-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:o.extend("--ft-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:o.create("--ft-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ft-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ft-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:o.extend("--ft-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ft-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ft-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ft-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ft-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ft-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ft-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ft-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ft-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ft-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ft-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ft-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ft-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ft-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:o.extend("--ft-table-data-cell-vertical-gap","",c.spacing1)};var fp={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","",u.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","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.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","",u.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","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.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 z={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","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)};var hp={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)};var mp={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","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)};var yp={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","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",u.contentActionPrimary)};var gp={horizontalGap:o.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ft-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ft-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var bp={parentHorizontalPadding:o.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ft-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:o.extend("--ft-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:o.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var xp={horizontalPadding:o.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ft-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:o.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)};var vp={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var Sp={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","",u.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","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",u.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 Op={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",u.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","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",u.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","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",u.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 Cp={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","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",u.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","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",u.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","",u.borderActionFocusRing)};var Ep={largeFieldHorizontalPadding:o.extend("--ft-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-text-input-medium-field-icon-size","",c.iconSize3),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.borderRadiusS),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",u.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","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderColor:o.extend("--ft-text-input-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-text-input-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-text-input-warning-helper-icon-color","",u.contentWarningIconOnly),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","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var wp={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",u.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","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",u.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.borderRadiusS)};var Ap={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","",u.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",u.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","",u.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var Rp={largeFieldHorizontalPadding:o.extend("--ft-combobox-single-select-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:o.extend("--ft-combobox-single-select-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:o.extend("--ft-combobox-single-select-large-field-vertical-gap","",c.spacing05),largeFieldHeight:o.create("--ft-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ft-combobox-single-select-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:o.extend("--ft-combobox-single-select-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:o.extend("--ft-combobox-single-select-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:o.create("--ft-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ft-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ft-combobox-single-select-medium-field-icon-size","",c.iconSize3),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.borderRadiusS),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",u.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","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.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 Tp={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.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.borderRadiusS)};var Ip={backgroundColor:o.extend("--ft-popover-background-color","",u.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","",u.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",u.contentGlobalSecondary),gap:o.extend("--ft-popover-gap","",c.spacing2),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"),contentSectionVerticalGap:o.extend("--ft-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:o.extend("--ft-popover-multi-section-vertical-gap","",c.spacing6)};var _p={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","",u.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","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)};var Np={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","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",u.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","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",u.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","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",u.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","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var Lp={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var Pp={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 kp={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","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ft-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ft-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ft-notice-dense-border-width","","SIZE","0")};var Mp={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","",u.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",u.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","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)};var Dp={color:o.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",u.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","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",u.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","",u.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 $p={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","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",u.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 Bp={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","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",u.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 Up={verticalPadding:o.extend("--ft-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ft-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ft-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ft-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ft-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ft-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ft-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ft-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ft-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ft-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ft-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ft-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:o.extend("--ft-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var Fp={nodeHeight:o.create("--ft-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ft-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:o.extend("--ft-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:o.extend("--ft-tree-list-node-root-padding-left","",c.spacing3),nodeChildPaddingLeft:o.extend("--ft-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:o.extend("--ft-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ft-tree-list-node-unselected-default-border-color","",u.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ft-tree-list-node-unselected-icon-color","",u.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ft-tree-list-node-unselected-label-color","",u.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ft-tree-list-node-unselected-counter-color","",u.contentInfoPrimary),nodeHoverBorderColor:o.extend("--ft-tree-list-node-hover-border-color","",u.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ft-tree-list-node-focus-focus-ring-color","",u.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ft-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-selected-default-border-color","",u.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ft-tree-list-node-selected-icon-color","",u.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ft-tree-list-node-selected-label-color","",u.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ft-tree-list-node-selected-counter-color","",u.contentInfoPrimary),nodeSelectedBackgroundColor:o.create("--ft-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-node-descendant-of-selected-default-border-color","",u.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ft-tree-list-node-descendant-of-selected-icon-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ft-tree-list-node-descendant-of-selected-label-color","",u.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ft-tree-list-node-descendant-of-selected-counter-color","",u.contentInfoPrimary),nodeDescendantOfSelectedBackgroundColor:o.create("--ft-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ft-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ft-tree-list-header-section-padding-left","",c.spacing3),headerSectionPaddingRight:o.extend("--ft-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:o.extend("--ft-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:o.extend("--ft-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:o.extend("--ft-tree-list-header-section-color","",u.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ft-tree-list-header-section-counter-color","",u.contentInfoPrimary),listContainerBorderWidth:o.create("--ft-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ft-tree-list-list-container-background-color","",u.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ft-tree-list-list-container-border-color","",u.borderGlobalSubtle),loadMorePaddingLeft:o.extend("--ft-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-unselected-default-border-color","",u.borderGlobalSubtle),loadMoreIconColor:o.extend("--ft-tree-list-load-more-icon-color","",u.contentActionPrimary),loadMoreLabelColor:o.extend("--ft-tree-list-load-more-label-color","",u.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ft-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ft-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ft-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ft-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ft-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ft-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ft-tree-list-load-more-descendant-of-selected-default-border-color","",u.borderGlobalPrimary)};var de;(function(e){e.brand="brand",e.neutral="neutral",e.info="info",e.success="success",e.warning="warning",e.error="error"})(de||(de={}));var gt;(function(e){e.large="large",e.medium="medium",e.small="small"})(gt||(gt={}));function Bi(e){return`ftds--family-${e}`}function Ui(e){return`ftds--size-${e}`}var F={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 ea={};Z(ea,{computeOffsetAutoPosition:()=>au,computeOffsetPosition:()=>to});var Vs=["top","right","bottom","left"],js=["start","end"],zi=Vs.reduce((e,t)=>e.concat(t,t+"-"+js[0],t+"-"+js[1]),[]),Lo=Math.min,Ee=Math.max;var Hp={left:"right",right:"left",bottom:"top",top:"bottom"},Wp={start:"end",end:"start"};function ji(e,t,r){return Ee(e,Lo(t,r))}function lr(e,t){return typeof e=="function"?e(t):e}function we(e){return e.split("-")[0]}function Jt(e){return e.split("-")[1]}function Vi(e){return e==="x"?"y":"x"}function Gi(e){return e==="y"?"height":"width"}function cr(e){return["top","bottom"].includes(we(e))?"y":"x"}function Ki(e){return Vi(cr(e))}function Gs(e,t,r){r===void 0&&(r=!1);let n=Jt(e),i=Ki(e),a=Gi(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Wi(s)),[s,Wi(s)]}function Ks(e){return e.replace(/start|end/g,t=>Wp[t])}function Wi(e){return e.replace(/left|right|bottom|top/g,t=>Hp[t])}function zp(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zs(e){return typeof e!="number"?zp(e):{top:e,right:e,bottom:e,left:e}}function We(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function qs(e,t,r){let{reference:n,floating:i}=e,a=cr(t),s=Ki(t),l=Gi(s),d=we(t),p=a==="y",h=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,m=n[l]/2-i[l]/2,b;switch(d){case"top":b={x:h,y:n.y-i.height};break;case"bottom":b={x:h,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:f};break;case"left":b={x:n.x-i.width,y:f};break;default:b={x:n.x,y:n.y}}switch(Jt(t)){case"start":b[s]-=m*(r&&p?-1:1);break;case"end":b[s]+=m*(r&&p?-1:1);break}return b}var Ys=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:f}=qs(p,n,d),m=n,b={},x=0;for(let O=0;O<l.length;O++){let{name:I,fn:T}=l[O],{x:N,y:E,data:w,reset:C}=await T({x:h,y:f,initialPlacement:n,placement:m,strategy:i,middlewareData:b,rects:p,platform:s,elements:{reference:e,floating:t}});h=N??h,f=E??f,b={...b,[I]:{...b[I],...w}},C&&x<=50&&(x++,typeof C=="object"&&(C.placement&&(m=C.placement),C.rects&&(p=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):C.rects),{x:h,y:f}=qs(p,m,d)),O=-1)}return{x:h,y:f,placement:m,strategy:i,middlewareData:b}};async function Po(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:a,rects:s,elements:l,strategy:d}=e,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:m=!1,padding:b=0}=lr(t,e),x=Zs(b),I=l[m?f==="floating"?"reference":"floating":f],T=We(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(I)))==null||r?I:I.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),N=f==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),w=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},C=We(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:E,strategy:d}):N);return{top:(T.top-C.top+x.top)/w.y,bottom:(C.bottom-T.bottom+x.bottom)/w.y,left:(T.left-C.left+x.left)/w.x,right:(C.right-T.right+x.right)/w.x}}function jp(e,t,r){return(e?[...r.filter(i=>Jt(i)===e),...r.filter(i=>Jt(i)!==e)]:r.filter(i=>we(i)===i)).filter(i=>e?Jt(i)===e||(t?Ks(i)!==i:!1):!0)}var ko=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=t,{crossAxis:h=!1,alignment:f,allowedPlacements:m=zi,autoAlignment:b=!0,...x}=lr(e,t),O=f!==void 0||m===zi?jp(f||null,b,m):m,I=await Po(t,x),T=((r=s.autoPlacement)==null?void 0:r.index)||0,N=O[T];if(N==null)return{};let E=Gs(N,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==N)return{reset:{placement:O[0]}};let w=[I[we(N)],I[E[0]],I[E[1]]],C=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:w}],P=O[T+1];if(P)return{data:{index:T+1,overflows:C},reset:{placement:P}};let U=C.map(k=>{let y=Jt(k.placement);return[k.placement,y&&h?k.overflows.slice(0,2).reduce((S,M)=>S+M,0):k.overflows[0],k.overflows]}).sort((k,y)=>k[1]-y[1]),G=((i=U.filter(k=>k[2].slice(0,Jt(k[0])?2:3).every(y=>y<=0))[0])==null?void 0:i[0])||U[0][0];return G!==l?{data:{index:T+1,overflows:C},reset:{placement:G}}:{}}}};async function Vp(e,t){let{placement:r,platform:n,elements:i}=e,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=we(r),l=Jt(r),d=cr(r)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,f=lr(t,e),{mainAxis:m,crossAxis:b,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof x=="number"&&(b=l==="end"?x*-1:x),d?{x:b*h,y:m*p}:{x:m*p,y:b*h}}var Zi=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:a,placement:s,middlewareData:l}=t,d=await Vp(t,e);return s===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:i+d.x,y:a+d.y,data:{...d,placement:s}}}}},qi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:I=>{let{x:T,y:N}=I;return{x:T,y:N}}},...d}=lr(e,t),p={x:r,y:n},h=await Po(t,d),f=cr(we(i)),m=Vi(f),b=p[m],x=p[f];if(a){let I=m==="y"?"top":"left",T=m==="y"?"bottom":"right",N=b+h[I],E=b-h[T];b=ji(N,b,E)}if(s){let I=f==="y"?"top":"left",T=f==="y"?"bottom":"right",N=x+h[I],E=x-h[T];x=ji(N,x,E)}let O=l.fn({...t,[m]:b,[f]:x});return{...O,data:{x:O.x-r,y:O.y-n,enabled:{[m]:a,[f]:s}}}}}};var Yi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;let{placement:i,rects:a,platform:s,elements:l}=t,{apply:d=()=>{},...p}=lr(e,t),h=await Po(t,p),f=we(i),m=Jt(i),b=cr(i)==="y",{width:x,height:O}=a.floating,I,T;f==="top"||f==="bottom"?(I=f,T=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(T=f,I=m==="end"?"top":"bottom");let N=O-h.top-h.bottom,E=x-h.left-h.right,w=Lo(O-h[I],N),C=Lo(x-h[T],E),P=!t.middlewareData.shift,U=w,W=C;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(W=E),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(U=N),P&&!m){let k=Ee(h.left,0),y=Ee(h.right,0),S=Ee(h.top,0),M=Ee(h.bottom,0);b?W=x-2*(k!==0||y!==0?k+y:Ee(h.left,h.right)):U=O-2*(S!==0||M!==0?S+M:Ee(h.top,h.bottom))}await d({...t,availableWidth:W,availableHeight:U});let G=await s.getDimensions(l.floating);return x!==G.width||O!==G.height?{reset:{rects:!0}}:{}}}};var Xi=Math.min,dr=Math.max,Yr=Math.round;var pe=e=>({x:e,y:e});function ue(e){return Js(e)?(e.nodeName||"").toLowerCase():"#document"}function Et(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fe(e){var t;return(t=(Js(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Js(e){return e instanceof Node||e instanceof Et(e).Node}function Qt(e){return e instanceof Element||e instanceof Et(e).Element}function Gt(e){return e instanceof HTMLElement||e instanceof Et(e).HTMLElement}function Xs(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Et(e).ShadowRoot}function pr(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=Pt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function Qs(e){return["table","td","th"].includes(ue(e))}function Do(e){let t=$o(),r=Pt(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function tl(e){let t=ze(e);for(;Gt(t)&&!Xr(t);){if(Do(t))return t;t=ze(t)}return null}function $o(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xr(e){return["html","body","#document"].includes(ue(e))}function Pt(e){return Et(e).getComputedStyle(e)}function Jr(e){return Qt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ze(e){if(ue(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Xs(e)&&e.host||fe(e);return Xs(t)?t.host:t}function el(e){let t=ze(e);return Xr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gt(t)&&pr(t)?t:el(t)}function Mo(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=el(e),a=i===((n=e.ownerDocument)==null?void 0:n.body),s=Et(i);return a?t.concat(s,s.visualViewport||[],pr(i)?i:[],s.frameElement&&r?Mo(s.frameElement):[]):t.concat(i,Mo(i,[],r))}function nl(e){let t=Pt(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Gt(e),a=i?e.offsetWidth:r,s=i?e.offsetHeight:n,l=Yr(r)!==a||Yr(n)!==s;return l&&(r=a,n=s),{width:r,height:n,$:l}}function il(e){return Qt(e)?e:e.contextElement}function ur(e){let t=il(e);if(!Gt(t))return pe(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:a}=nl(t),s=(a?Yr(r.width):r.width)/n,l=(a?Yr(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Gp=pe(0);function al(e){let t=Et(e);return!$o()||!t.visualViewport?Gp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kp(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Et(e)?!1:t}function Qr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),a=il(e),s=pe(1);t&&(n?Qt(n)&&(s=ur(n)):s=ur(e));let l=Kp(a,r,n)?al(a):pe(0),d=(i.left+l.x)/s.x,p=(i.top+l.y)/s.y,h=i.width/s.x,f=i.height/s.y;if(a){let m=Et(a),b=n&&Qt(n)?Et(n):n,x=m.frameElement;for(;x&&n&&b!==m;){let O=ur(x),I=x.getBoundingClientRect(),T=Pt(x),N=I.left+(x.clientLeft+parseFloat(T.paddingLeft))*O.x,E=I.top+(x.clientTop+parseFloat(T.paddingTop))*O.y;d*=O.x,p*=O.y,h*=O.x,f*=O.y,d+=N,p+=E,x=Et(x).frameElement}}return We({width:h,height:f,x:d,y:p})}function Zp(e){let{rect:t,offsetParent:r,strategy:n}=e,i=Gt(r),a=fe(r);if(r===a)return t;let s={scrollLeft:0,scrollTop:0},l=pe(1),d=pe(0);if((i||!i&&n!=="fixed")&&((ue(r)!=="body"||pr(a))&&(s=Jr(r)),Gt(r))){let p=Qr(r);l=ur(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+d.x,y:t.y*l.y-s.scrollTop*l.y+d.y}}function qp(e){return Array.from(e.getClientRects())}function sl(e){return Qr(fe(e)).left+Jr(e).scrollLeft}function Yp(e){let t=fe(e),r=Jr(e),n=e.ownerDocument.body,i=dr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=dr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+sl(e),l=-r.scrollTop;return Pt(n).direction==="rtl"&&(s+=dr(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:l}}function Xp(e,t){let r=Et(e),n=fe(e),i=r.visualViewport,a=n.clientWidth,s=n.clientHeight,l=0,d=0;if(i){a=i.width,s=i.height;let p=$o();(!p||p&&t==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:a,height:s,x:l,y:d}}function Jp(e,t){let r=Qr(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=Gt(e)?ur(e):pe(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y,d=i*a.x,p=n*a.y;return{width:s,height:l,x:d,y:p}}function rl(e,t,r){let n;if(t==="viewport")n=Xp(e,r);else if(t==="document")n=Yp(fe(e));else if(Qt(t))n=Jp(t,r);else{let i=al(e);n={...t,x:t.x-i.x,y:t.y-i.y}}return We(n)}function ll(e,t){let r=ze(e);return r===t||!Qt(r)||Xr(r)?!1:Pt(r).position==="fixed"||ll(r,t)}function Qp(e,t){let r=t.get(e);if(r)return r;let n=Mo(e,[],!1).filter(l=>Qt(l)&&ue(l)!=="body"),i=null,a=Pt(e).position==="fixed",s=a?ze(e):e;for(;Qt(s)&&!Xr(s);){let l=Pt(s),d=Do(s);!d&&l.position==="fixed"&&(i=null),(a?!d&&!i:!d&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||pr(s)&&!d&&ll(e,s))?n=n.filter(h=>h!==s):i=l,s=ze(s)}return t.set(e,n),n}function tu(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?Qp(t,this._c):[].concat(r),n],l=s[0],d=s.reduce((p,h)=>{let f=rl(t,h,i);return p.top=dr(f.top,p.top),p.right=Xi(f.right,p.right),p.bottom=Xi(f.bottom,p.bottom),p.left=dr(f.left,p.left),p},rl(t,l,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function eu(e){return nl(e)}function ru(e,t,r){let n=Gt(t),i=fe(t),a=r==="fixed",s=Qr(e,!0,a,t),l={scrollLeft:0,scrollTop:0},d=pe(0);if(n||!n&&!a)if((ue(t)!=="body"||pr(i))&&(l=Jr(t)),n){let p=Qr(t,!0,a,t);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else i&&(d.x=sl(i));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function ol(e,t){return!Gt(e)||Pt(e).position==="fixed"?null:t?t(e):e.offsetParent}function cl(e,t){let r=Et(e);if(!Gt(e))return r;let n=ol(e,t);for(;n&&Qs(n)&&Pt(n).position==="static";)n=ol(n,t);return n&&(ue(n)==="html"||ue(n)==="body"&&Pt(n).position==="static"&&!Do(n))?r:n||tl(e)||r}var ou=async function(e){let{reference:t,floating:r,strategy:n}=e,i=this.getOffsetParent||cl,a=this.getDimensions;return{reference:ru(t,await i(r),n),floating:{x:0,y:0,...await a(r)}}};function nu(e){return Pt(e).direction==="rtl"}var fr={convertOffsetParentRelativeRectToViewportRelativeRect:Zp,getDocumentElement:fe,getClippingRect:tu,getOffsetParent:cl,getElementRects:ou,getClientRects:qp,getDimensions:eu,getScale:ur,isElement:Qt,isRTL:nu};var Ji=(e,t,r)=>{let n=new Map,i={platform:fr,...r},a={...i.platform,_c:n};return Ys(e,t,{...i,platform:a})};function ta(e){return iu(e)}function Qi(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function iu(e){for(let t=e;t;t=Qi(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Qi(e);t;t=Qi(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||t.tagName==="BODY"))return t}return null}async function to(e,t,r){return Ji(e,t,{platform:{...fr,getOffsetParent:n=>fr.getOffsetParent(n,ta)},middleware:[qi({crossAxis:!0}),ko({allowedPlacements:[r]})]})}async function au(e,t,r,n,i,a,s=4){return Ji(e,t,{placement:r,strategy:i,platform:{...fr,getOffsetParent:l=>fr.getOffsetParent(l,ta)},middleware:[Zi(s),ko({allowedPlacements:n}),Yi({apply({availableHeight:l,elements:d}){a?d.floating.style.maxHeight=`min(${Math.max(0,l)}px, var(${a}))`:d.floating.style.maxHeight=`${Math.max(0,l)}px`}})]})}var aa={};Z(aa,{FtdsBase:()=>oo,toFtdsBase:()=>Bo});var ia={};Z(ia,{FtLitElement:()=>j});var ra={};Z(ra,{ScopedRegistryLitElement:()=>eo});var eo=class extends ae{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([i,a])=>t.registry.define(i,a)));let r={...t.shadowRootOptions,customElements:t.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Br(n,t.elementStyles),n}};var na={};Z(na,{shadowQuerySelector:()=>oa,shadowQuerySelectorAll:()=>su});function oa(e,t,...r){var n;let i=e.querySelector(t);for(let a of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function su(e,t,...r){let n=[...e.querySelectorAll(t)];for(let i of r)n=n.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return n}var ro=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},fl,dl=Symbol("constructorPrototype"),pl=Symbol("constructorName"),hl=Symbol("exportpartsDebouncer"),ul=Symbol("dynamicDependenciesLoaded"),j=class extends eo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[fl]=new ft(5),this[pl]=this.constructor.name,this[dl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[pl]&&Object.setPrototypeOf(this,this[dl])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let t=this.constructor;t[ul]||(t[ul]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:i}=this.elementToFocus;if(n!=null){let a=[...i??[],n];r=oa(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.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 t,r,n;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[hl].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(t){var r,n,i,a,s,l;let d=m=>m!=null&&m.trim().length>0,p=t.filter(d).map(m=>m.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(a=(i=m.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],x=(l=(s=m.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...b,...x).filter(d).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let f=[...h.values()].flatMap(m=>p.map(b=>`${m}:${b}--${m}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};fl=hl;ro([v()],j.prototype,"exportpartsPrefix",void 0);ro([Ut([])],j.prototype,"exportpartsPrefixes",void 0);ro([v()],j.prototype,"customStylesheet",void 0);ro([v()],j.prototype,"elementToFocus",void 0);ro([tt()],j.prototype,"useAdoptedStyleSheets",void 0);var ml=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};function Bo(e){class t extends e{constructor(){super(...arguments),this.size=gt.medium,this.family=de.neutral}getDesignSystemBaseClasses(){return{[Bi(this.family)]:!0,[Ui(this.size)]:!0}}}return ml([v()],t.prototype,"size",void 0),ml([v()],t.prototype,"family",void 0),t}var oo=class extends Bo(j){};var yl={};var ca={};Z(ca,{highlightHtml:()=>la,highlightHtmlColorCssVariable:()=>gl,highlightHtmlStyles:()=>cu});var je=class e{constructor(t,r=!0,n=[],i=5e3){this.ctx=t,this.iframes=r,this.exclude=n,this.iframesTimeout=i}static matches(t,r){let n=typeof r=="string"?[r]:r,i=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(i){let a=!1;return n.every(s=>i.call(t,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let t,r=[];return typeof this.ctx>"u"||!this.ctx?t=[]:NodeList.prototype.isPrototypeOf(this.ctx)?t=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?t=this.ctx:typeof this.ctx=="string"?t=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):t=[this.ctx],t.forEach(n=>{let i=r.filter(a=>a.contains(n)).length>0;r.indexOf(n)===-1&&!i&&r.push(n)}),r}getIframeContents(t,r,n=()=>{}){let i;try{let a=t.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{n()}i&&r(i)}isIframeBlank(t){let r="about:blank",n=t.getAttribute("src").trim();return t.contentWindow.location.href===r&&n!==r&&n}observeIframeLoad(t,r,n){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,r,n))}catch{n()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,r,n){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,r,n):this.getIframeContents(t,r,n):this.observeIframeLoad(t,r,n)}catch{n()}}waitForIframes(t,r){let n=0;this.forEachIframe(t,()=>!0,i=>{n++,this.waitForIframes(i.querySelector("html"),()=>{--n||r()})},i=>{i||r()})}forEachIframe(t,r,n,i=()=>{}){let a=t.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&i(l)};s||d(),a.forEach(p=>{e.matches(p,this.exclude)?d():this.onIframeReady(p,h=>{r(p)&&(l++,n(h)),d()},d)})}createIterator(t,r,n){return document.createNodeIterator(t,r,n,!1)}createInstanceOnIframe(t){return new e(t.querySelector("html"),this.iframes)}compareNodeIframe(t,r,n){let i=t.compareDocumentPosition(n),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(r!==null){let s=r.compareDocumentPosition(n),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let r=t.previousNode(),n;return r===null?n=t.nextNode():n=t.nextNode()&&t.nextNode(),{prevNode:r,node:n}}checkIframeFilter(t,r,n,i){let a=!1,s=!1;return i.forEach((l,d)=>{l.val===n&&(a=d,s=l.handled)}),this.compareNodeIframe(t,r,n)?(a===!1&&!s?i.push({val:n,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:n,handled:!1}),!1)}handleOpenIframes(t,r,n,i){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,n,i)})})}iterateThroughNodes(t,r,n,i,a){let s=this.createIterator(r,t,i),l=[],d=[],p,h,f=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;f();)this.iframes&&this.forEachIframe(r,m=>this.checkIframeFilter(p,h,m,l),m=>{this.createInstanceOnIframe(m).forEachNode(t,b=>d.push(b),i)}),d.push(p);d.forEach(m=>{n(m)}),this.iframes&&this.handleOpenIframes(l,t,n,i),a()}forEachNode(t,r,n,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(t,l,r,n,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(l,d):d()})}};var no=class{constructor(t){this.ctx=t,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){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},t)}get opt(){return this._opt}get iterator(){return new je(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,r="debug"){let n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[r]=="function"&&n[r](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return this.opt.wildcards!=="disabled"&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),this.opt.wildcards!=="disabled"&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t),t}createSynonymsRegExp(t){let r=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(t=t.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${n}`),i+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+i))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return t=t.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let r=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(r,n,i)=>{let a=i.charAt(n+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(t){let r=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&r.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?t.split(/\u0000+/).join(`[${r.join("")}]*`):t}createDiacriticsRegExp(t){let r=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],i=[];return t.split("").forEach(a=>{n.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;t=t.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),i.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",n=this.opt.accuracy,i=typeof n=="string"?n:n.value,a=typeof n=="string"?[]:n.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),i){case"partially":default:return`()(${t})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let r=[];return t.forEach(n=>{this.opt.separateWordSearch?n.split(" ").forEach(i=>{i.trim()&&r.indexOf(i)===-1&&r.push(i)}):n.trim()&&r.indexOf(n)===-1&&r.push(n)}),{keywords:r.sort((n,i)=>i.length-n.length),length:r.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||Object.prototype.toString.call(t[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];let r=[],n=0;return t.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(i,n);l&&(i.start=a,i.length=s-a,r.push(i),n=s)}),r}callNoMatchOnInvalidRanges(t,r){let n,i,a=!1;return t&&typeof t.start<"u"?(n=parseInt(t.start,10),i=n+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&i-r>0&&i-n>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:n,end:i,valid:a}}checkWhitespaceRanges(t,r,n){let i,a=!0,s=n.length,l=r-s,d=parseInt(t.start,10)-l;return d=d>s?s:d,i=d+parseInt(t.length,10),i>s&&(i=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||i-d<0||d>s||i>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):n.substring(d,i).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:d,end:i,valid:a}}getTextNodes(t){let r="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{n.push({start:r.length,end:(r+=i.textContent).length,node:i})},i=>this.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:r,nodes:n})})}matchesExclude(t){return je.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,r,n){let i=this.opt.element?this.opt.element:"mark",a=t.splitText(r),s=a.splitText(n-r),l=document.createElement(i);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(t,r,n,i,a){t.nodes.every((s,l)=>{let d=t.nodes[l+1];if(typeof d>"u"||d.start>r){if(!i(s.node))return!1;let p=r-s.start,h=(n>s.end?s.end:n)-s.start,f=t.value.substr(0,s.start),m=t.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,h),t.value=f+m,t.nodes.forEach((b,x)=>{x>=l&&(t.nodes[x].start>0&&x!==l&&(t.nodes[x].start-=h),t.nodes[x].end-=h)}),n-=h,a(s.node.previousSibling,s.start),n>s.end)r=s.end;else return!1}return!0})}wrapMatches(t,r,n,i,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=t.exec(d.textContent))!==null&&p[s]!=="";){if(!n(p[s],d))continue;let h=p.index;if(s!==0)for(let f=1;f<s;f++)h+=p[f].length;d=this.wrapRangeInTextNode(d,h,h+p[s].length),i(d.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,r,n,i,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=t.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let f=1;f<s;f++)p+=d[f].length;let h=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,h,f=>n(d[s],f),(f,m)=>{t.lastIndex=m,i(f)})}a()})}wrapRangeFromIndex(t,r,n,i){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,d)=>{let{start:p,end:h,valid:f}=this.checkWhitespaceRanges(l,s,a.value);f&&this.wrapRangeInMappedTextNode(a,p,h,m=>r(m,l,a.value.substring(p,h),d),m=>{n(m,l)})}),i()})}unwrapMatches(t){let r=t.parentNode,n=document.createDocumentFragment();for(;t.firstChild;)n.appendChild(t.removeChild(t.firstChild));r.replaceChild(n,t),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(t){if(t){if(t.nodeType===3)for(;t.nextSibling&&t.nextSibling.nodeType===3;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,r){this.opt=r,this.log(`Searching with expression "${t}"`);let n=0,i="wrapMatches",a=s=>{n++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](t,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,n),a,()=>{n===0&&this.opt.noMatch(t),this.opt.done(n)})}mark(t,r){this.opt=r;let n=0,i="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",d=p=>{let h=new RegExp(this.createRegExp(p),`gm${l}`),f=0;this.log(`Searching with expression "${h}"`),this[i](h,1,(m,b)=>this.opt.filter(b,p,n,f),m=>{f++,n++,this.opt.each(m)},()=>{f===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(n):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(n):d(a[0])}markRanges(t,r){this.opt=r;let n=0,i=this.checkRanges(t);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{n++,this.opt.each(a,s)},()=>{this.opt.done(n)})):this.opt.done(n)}unmark(t){this.opt=t;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,n=>{this.unwrapMatches(n)},n=>{let i=je.matches(n,r),a=this.matchesExclude(n);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function sa(e){let t=new no(e);return this.mark=(r,n)=>(t.mark(r,n),this),this.markRegExp=(r,n)=>(t.markRegExp(r,n),this),this.markRanges=(r,n)=>(t.markRanges(r,n),this),this.unmark=r=>(t.unmark(r),this),this}var lu=sa,gl=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),cu=L`
6
6
  .highlight-html-match {
7
7
  background: ${gl};
8
8
  }
9
- `;function la(e,t,r){var n,i;let a=e.getAttribute("data-highlight-html-query");if((a??"")!==(t??"")){let s=new au(e);if(s.unmark(),t&&t.trim()){let l={className:(n=r?.className)!==null&&n!==void 0?n:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=p=>{for(let h in r.attributes)p.setAttribute(h,r.attributes[h])}),s.mark(t.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((i=t.match(/"[^"]+"/g))!==null&&i!==void 0?i:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}e.setAttribute("data-highlight-html-query",t??"")}var da={};Z(da,{noTextInputDefaultClearButton:()=>cu,noTextSelect:()=>he,safariEllipsisFix:()=>io,wordWrap:()=>lu});var he=L`
9
+ `;function la(e,t,r){var n,i;let a=e.getAttribute("data-highlight-html-query");if((a??"")!==(t??"")){let s=new lu(e);if(s.unmark(),t&&t.trim()){let l={className:(n=r?.className)!==null&&n!==void 0?n:"highlight-html-match",acrossElements:!0};r?.attributes!=null&&(l.each=p=>{for(let h in r.attributes)p.setAttribute(h,r.attributes[h])}),s.mark(t.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((i=t.match(/"[^"]+"/g))!==null&&i!==void 0?i:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}e.setAttribute("data-highlight-html-query",t??"")}var da={};Z(da,{noTextInputDefaultClearButton:()=>pu,noTextSelect:()=>he,safariEllipsisFix:()=>io,wordWrap:()=>du});var he=L`
10
10
  .ft-no-text-select {
11
11
  -webkit-touch-callout: none;
12
12
  -webkit-user-select: none;
@@ -15,7 +15,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
15
15
  -ms-user-select: none;
16
16
  user-select: none;
17
17
  }
18
- `,lu=L`
18
+ `,du=L`
19
19
  .ft-word-wrap {
20
20
  white-space: normal;
21
21
  word-wrap: break-word;
@@ -38,14 +38,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
38
38
  display: inline-block;
39
39
  width: 0;
40
40
  }
41
- `,cu=L`
41
+ `,pu=L`
42
42
  input::-webkit-search-cancel-button,
43
43
  input::-webkit-search-decoration,
44
44
  input::-webkit-search-results-button,
45
45
  input::-webkit-search-results-decoration {
46
46
  display: none;
47
47
  }
48
- `;var bl={};var pa={};Z(pa,{ParametrizedLabelResolver:()=>ao});var ao=class e{constructor(t,r){this.defaultLabels=t,this.labels=r}resolve(t,...r){var n,i;t=this.resolvePluralKey(t,r);let a=(i=(n=this.labels[t])!==null&&n!==void 0?n:this.defaultLabels[t])!==null&&i!==void 0?i:"";return e.replaceParameters(a,...r)}static replaceParameters(t,...r){return r.forEach((n,i)=>t=t.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>e.formatValue(n,s))),t}resolvePluralKey(t,r){for(let n of r)if(typeof n=="number"){let i=`${String(t)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return t}static formatValue(t,r){return t instanceof Date?e.formatDate(t,r):t??""}static formatDate(t,r){let n=i=>r?.includes("date")?t.toLocaleDateString(i):r?.includes("time")?t.toLocaleTimeString(i):t.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var $a={};Z($a,{FtCommandQueue:()=>so,FtLitElementRedux:()=>Ft,FtReduxStore:()=>ye,ReduxWatcher:()=>jo,clearAllStores:()=>Gu,isFtReduxStore:()=>Ve,redux:()=>bt,reduxEventListener:()=>fa,reduxReactive:()=>ua,watch:()=>Ku});var ua=()=>(e,t)=>{var r;let n=e.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(t)},bt=e=>{let t=e??{};return(r,n)=>{var i;let a={hasChanged:Ce,attribute:!1,...t};v(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:l=>l[n],store:t.store})}},fa=e=>(t,r)=>{let n=t.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,e)};var so=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};function Ve(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var xl,vl,Sl,lo=Symbol("internalReduxEventsUnsubscribers"),Ae=Symbol("internalStoresUnsubscribers"),Ge=Symbol("internalStores"),Ft=class extends z{constructor(){super(...arguments),this[xl]=new Map,this[vl]=new Map,this[Sl]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(r=>t.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[Ge].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ge].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Ge].get(t)}addStore(t,r){var n;r=(n=r??(Ve(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[Ge].set(r,t),this.subscribeToStore(r,t),this.updateFromStores()}removeStore(t){let r=typeof t=="string"?t:t.name;this.unsubscribeFromStore(r),this[Ge].delete(r)}setupStores(){this.unsubscribeFromStores(),this[Ge].forEach((t,r)=>this.subscribeToStore(r,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(t.store);i&&(t.store?this[Ae].has(t.store):this[Ae].size>0)&&(this[r]=t.selector(i.getState(),this))}})}subscribeToStore(t,r){var n;this[Ae].set(t,r.subscribe(()=>this.updateFromStores())),this[lo].set(t,[]),Ve(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let s=l=>this[a](l);r.addEventListener(i.eventName,s),this[lo].get(t).push(()=>r.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ae].forEach((t,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(t){var r;this[Ae].has(t)&&this[Ae].get(t)(),this[Ae].delete(t),(r=this[lo].get(t))===null||r===void 0||r.forEach(n=>n()),this[lo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};xl=Ae,vl=Ge,Sl=lo;Ft.reduxProperties=new Map;Ft.reduxReactiveProperties=new Set;Ft.reduxEventListeners=new Map;function Ht(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function me(e){return!!e&&!!e[rt]}function Kt(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===gu}(e)||Array.isArray(e)||!!e[Tl]||!!(!((t=e.constructor)===null||t===void 0)&&t[Tl])||Oa(e)||Ca(e))}function Ke(e,t,r){r===void 0&&(r=!1),yr(e)===0?(r?Object.keys:mr)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function yr(e){var t=e[rt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Oa(e)?2:Ca(e)?3:0}function hr(e,t){return yr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function du(e,t){return yr(e)===2?e.get(t):e[t]}function Il(e,t,r){var n=yr(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Nl(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Oa(e){return mu&&e instanceof Map}function Ca(e){return yu&&e instanceof Set}function Re(e){return e.o||e.t}function Ea(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Pl(e);delete t[rt];for(var r=mr(t),n=0;n<r.length;n++){var i=r[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function wa(e,t){return t===void 0&&(t=!1),Aa(e)||me(e)||!Kt(e)||(yr(e)>1&&(e.set=e.add=e.clear=e.delete=pu),Object.freeze(e),t&&Ke(e,function(r,n){return wa(n,!0)},!0)),e}function pu(){Ht(2)}function Aa(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function te(e){var t=Sa[e];return t||Ht(18,e),t}function uu(e,t){Sa[e]||(Sa[e]=t)}function ba(){return po}function ha(e,t){t&&(te("Patches"),e.u=[],e.s=[],e.v=t)}function Uo(e){xa(e),e.p.forEach(fu),e.p=null}function xa(e){e===po&&(po=e.l)}function Ol(e){return po={p:[],l:po,h:e,m:!0,_:0}}function fu(e){var t=e[rt];t.i===0||t.i===1?t.j():t.g=!0}function ma(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||te("ES5").S(t,e,n),n?(r[rt].P&&(Uo(t),Ht(4)),Kt(e)&&(e=Fo(t,e),t.l||Ho(t,e)),t.u&&te("Patches").M(r[rt].t,e,t.u,t.s)):e=Fo(t,r,[]),Uo(t),t.u&&t.v(t.u,t.s),e!==Ll?e:void 0}function Fo(e,t,r){if(Aa(t))return t;var n=t[rt];if(!n)return Ke(t,function(l,d){return Cl(e,n,t,l,d,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Ho(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ea(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Ke(a,function(l,d){return Cl(e,n,i,l,d,r,s)}),Ho(e,i,!1),r&&e.u&&te("Patches").N(n,r,e.u,e.s)}return n.o}function Cl(e,t,r,n,i,a,s){if(me(i)){var l=Fo(e,i,a&&t&&t.i!==3&&!hr(t.R,n)?a.concat(n):void 0);if(Il(r,n,l),!me(l))return;e.m=!1}else s&&r.add(i);if(Kt(i)&&!Aa(i)){if(!e.h.D&&e._<1)return;Fo(e,i),t&&t.A.l||Ho(e,i)}}function Ho(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&wa(t,r)}function ya(e,t){var r=e[rt];return(r?Re(r):e)[t]}function El(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Te(e){e.P||(e.P=!0,e.l&&Te(e.l))}function ga(e){e.o||(e.o=Ea(e.t))}function va(e,t,r){var n=Oa(t)?te("MapSet").F(t,r):Ca(t)?te("MapSet").T(t,r):e.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:ba(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=uo;s&&(d=[l],p=co);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(t,r):te("ES5").J(t,r);return(r?r.A:ba()).p.push(n),n}function hu(e){return me(e)||Ht(22,e),function t(r){if(!Kt(r))return r;var n,i=r[rt],a=yr(r);if(i){if(!i.P&&(i.i<4||!te("ES5").K(i)))return i.t;i.I=!0,n=wl(r,a),i.I=!1}else n=wl(r,a);return Ke(n,function(s,l){i&&du(i.t,s)===l||Il(n,s,t(l))}),a===3?new Set(n):n}(e)}function wl(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ea(e)}function _l(){function e(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[rt];return uo.get(p,s)},set:function(p){var h=this[rt];uo.set(h,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][rt];if(!d.P)switch(d.i){case 5:n(d)&&Te(d);break;case 4:r(d)&&Te(d)}}}function r(s){for(var l=s.t,d=s.k,p=mr(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==rt){var m=l[f];if(m===void 0&&!hr(l,f))return!0;var b=d[f],x=b&&b[rt];if(x?x.t!==m:!Nl(b,m))return!0}}var C=!!l[rt];return p.length!==mr(l).length+(C?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&Ht(3,JSON.stringify(Re(s)))}var a={};uu("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,m){if(f){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,e(x,!0));return b}var C=Pl(m);delete C[rt];for(var I=mr(C),T=0;T<I.length;T++){var _=I[T];C[_]=e(_,f||!!C[_].enumerable)}return Object.create(Object.getPrototypeOf(m),C)}(d,s),h={i:d?5:4,A:l?l.A:ba(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,rt,{value:h,writable:!0}),p},S:function(s,l,d){d?me(l)&&l[rt].A===s&&t(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[rt];if(f){var m=f.t,b=f.k,x=f.R,C=f.i;if(C===4)Ke(b,function(S){S!==rt&&(m[S]!==void 0||hr(m,S)?x[S]||p(b[S]):(x[S]=!0,Te(f)))}),Ke(m,function(S){b[S]!==void 0||hr(b,S)||(x[S]=!1,Te(f))});else if(C===5){if(n(f)&&(Te(f),x.length=!0),b.length<m.length)for(var I=b.length;I<m.length;I++)x[I]=!1;else for(var T=m.length;T<b.length;T++)x[T]=!0;for(var _=Math.min(b.length,m.length),w=0;w<_;w++)b.hasOwnProperty(w)||(x[w]=!0),x[w]===void 0&&p(b[w])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var Al,po,Ra=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",mu=typeof Map<"u",yu=typeof Set<"u",Rl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ll=Ra?Symbol.for("immer-nothing"):((Al={})["immer-nothing"]=!0,Al),Tl=Ra?Symbol.for("immer-draftable"):"__$immer_draftable",rt=Ra?Symbol.for("immer-state"):"__$immer_state";var gu=""+Object.prototype.constructor,mr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Pl=Object.getOwnPropertyDescriptors||function(e){var t={};return mr(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Sa={},uo={get:function(e,t){if(t===rt)return e;var r=Re(e);if(!hr(r,t))return function(i,a,s){var l,d=El(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(e,r,t);var n=r[t];return e.I||!Kt(n)?n:n===ya(e.t,t)?(ga(e),e.o[t]=va(e.A.h,n,e)):n},has:function(e,t){return t in Re(e)},ownKeys:function(e){return Reflect.ownKeys(Re(e))},set:function(e,t,r){var n=El(Re(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=ya(Re(e),t),a=i?.[rt];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Nl(r,i)&&(r!==void 0||hr(e.t,t)))return!0;ga(e),Te(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return ya(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,ga(e),Te(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Re(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Ht(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ht(12)}},co={};Ke(uo,function(e,t){co[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),co.deleteProperty=function(e,t){return co.set.call(this,e,t,void 0)},co.set=function(e,t,r){return uo.set.call(this,e[0],t,r,e[0])};var bu=function(){function e(r){var n=this;this.O=Rl,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(C){var I=this;C===void 0&&(C=l);for(var T=arguments.length,_=Array(T>1?T-1:0),w=1;w<T;w++)_[w-1]=arguments[w];return d.produce(C,function(S){var E;return(E=a).call.apply(E,[I,S].concat(_))})}}var p;if(typeof a!="function"&&Ht(6),s!==void 0&&typeof s!="function"&&Ht(7),Kt(i)){var h=Ol(n),f=va(n,i,void 0),m=!0;try{p=a(f),m=!1}finally{m?Uo(h):xa(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return ha(h,s),ma(C,h)},function(C){throw Uo(h),C}):(ha(h,s),ma(p,h))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===Ll&&(p=void 0),n.D&&wa(p,!0),s){var b=[],x=[];te("Patches").M(i,p,b,x),s(b,x)}return p}Ht(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,function(b){return i.apply(void 0,[b].concat(f))})};var s,l,d=n.produce(i,a,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Kt(r)||Ht(8),me(r)&&(r=hu(r));var n=Ol(this),i=va(this,r,void 0);return i[rt].C=!0,xa(n),i},t.finishDraft=function(r,n){var i=r&&r[rt],a=i.A;return ha(a,n),ma(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Rl&&Ht(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=te("Patches").$;return me(r)?s(r,n):this.produce(r,function(l){return s(l,n)})},e}(),kt=new bu,xu=kt.produce,jb=kt.produceWithPatches.bind(kt),Vb=kt.setAutoFreeze.bind(kt),Gb=kt.setUseProxies.bind(kt),Kb=kt.applyPatches.bind(kt),Zb=kt.createDraft.bind(kt),qb=kt.finishDraft.bind(kt),Wo=xu;function Ze(e){"@babel/helpers - typeof";return Ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ze(e)}function kl(e,t){if(Ze(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ze(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dl(e){var t=kl(e,"string");return Ze(t)=="symbol"?t:t+""}function Ml(e,t,r){return(t=Dl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ta(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$l(Object(r),!0).forEach(function(n){Ml(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$l(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ot(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Bl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ia=function(){return Math.random().toString(36).substring(7).split("").join(".")},zo={INIT:"@@redux/INIT"+Ia(),REPLACE:"@@redux/REPLACE"+Ia(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ia()}};function vu(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Na(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ot(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ot(1));return r(Na)(e,t)}if(typeof e!="function")throw new Error(Ot(2));var i=e,a=t,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Ot(3));return a}function f(C){if(typeof C!="function")throw new Error(Ot(4));if(d)throw new Error(Ot(5));var I=!0;return p(),l.push(C),function(){if(I){if(d)throw new Error(Ot(6));I=!1,p();var _=l.indexOf(C);l.splice(_,1),s=null}}}function m(C){if(!vu(C))throw new Error(Ot(7));if(typeof C.type>"u")throw new Error(Ot(8));if(d)throw new Error(Ot(9));try{d=!0,a=i(a,C)}finally{d=!1}for(var I=s=l,T=0;T<I.length;T++){var _=I[T];_()}return C}function b(C){if(typeof C!="function")throw new Error(Ot(10));i=C,m({type:zo.REPLACE})}function x(){var C,I=f;return C={subscribe:function(_){if(typeof _!="object"||_===null)throw new Error(Ot(11));function w(){_.next&&_.next(h())}w();var S=I(w);return{unsubscribe:S}}},C[Bl]=function(){return this},C}return m({type:zo.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:b},n[Bl]=x,n}function Su(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:zo.INIT});if(typeof n>"u")throw new Error(Ot(12));if(typeof r(void 0,{type:zo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ot(13))})}function Ul(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),s,l;try{Su(r)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,b={},x=0;x<a.length;x++){var C=a[x],I=r[C],T=p[C],_=I(T,h);if(typeof _>"u"){var w=h&&h.type;throw new Error(Ot(14))}b[C]=_,m=m||_!==T}return m=m||a.length!==Object.keys(p).length,m?b:p}}function gr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Fl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(Ot(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return a=gr.apply(void 0,l)(i.dispatch),Ta(Ta({},i),{},{dispatch:a})}}}function Hl(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,e):s(l)}}};return t}var Wl=Hl();Wl.withExtraArgument=Hl;var _a=Wl;var Kl=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ou=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,i=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=t.call(e,r)}catch(h){p=[6,h],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},br=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Cu=Object.defineProperty,Eu=Object.defineProperties,wu=Object.getOwnPropertyDescriptors,zl=Object.getOwnPropertySymbols,Au=Object.prototype.hasOwnProperty,Ru=Object.prototype.propertyIsEnumerable,jl=function(e,t,r){return t in e?Cu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Ie=function(e,t){for(var r in t||(t={}))Au.call(t,r)&&jl(e,r,t[r]);if(zl)for(var n=0,i=zl(t);n<i.length;n++){var r=i[n];Ru.call(t,r)&&jl(e,r,t[r])}return e},La=function(e,t){return Eu(e,wu(t))},Tu=function(e,t,r){return new Promise(function(n,i){var a=function(d){try{l(r.next(d))}catch(p){i(p)}},s=function(d){try{l(r.throw(d))}catch(p){i(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(e,t)).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"?gr:gr.apply(null,arguments)},fx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Nu(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var _u=function(e){Kl(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,br([void 0],r[0].concat(this)))):new(t.bind.apply(t,br([void 0],r.concat(this))))},t}(Array),Lu=function(e){Kl(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,br([void 0],r[0].concat(this)))):new(t.bind.apply(t,br([void 0],r.concat(this))))},t}(Array);function Da(e){return Kt(e)?Wo(e,function(){}):e}function Pu(e){return typeof e=="boolean"}function ku(){return function(t){return Du(t)}}function Du(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,s=a===void 0?!0:a,l=new _u;if(r&&(Pu(r)?l.push(_a):l.push(_a.withExtraArgument(r.extraArgument))),0){if(i)var d;if(s)var p}return l}var Pa=!0;function Zl(e){var t=ku(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?t():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,h=p===void 0?void 0:p,f=r.enhancers,m=f===void 0?void 0:f,b;if(typeof i=="function")b=i;else if(Nu(i))b=Ul(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 x=s;if(typeof x=="function"&&(x=x(t),!Pa&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Pa&&x.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=Fl.apply(void 0,x),I=gr;d&&(I=Iu(Ie({trace:!Pa},typeof d=="object"&&d)));var T=new Lu(C),_=T;Array.isArray(m)?_=br([C],m):typeof m=="function"&&(_=m(T));var w=I.apply(void 0,_);return Na(b,h,w)}function Ne(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Ie(Ie({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function ql(e){var t={},r=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return e(i),[t,r,n]}function Mu(e){return typeof e=="function"}function $u(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?ql(t):[t,r,n],a=i[0],s=i[1],l=i[2],d;if(Mu(e))d=function(){return Da(e())};else{var p=Da(e);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var b=br([a[m.type]],s.filter(function(x){var C=x.matcher;return C(m)}).map(function(x){var C=x.reducer;return C}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,C){if(C)if(me(x)){var I=x,T=C(I,m);return T===void 0?x:T}else{if(Kt(x))return Wo(x,function(_){return C(_,m)});var T=C(x,m);if(T===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return x},f)}return h.getInitialState=d,h}function Bu(e,t){return e+"/"+t}function Yl(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Da(e.initialState),n=e.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var f=n[h],m=Bu(t,h),b,x;"reducer"in f?(b=f.reducer,x=f.prepare):b=f,a[h]=b,s[m]=b,l[h]=x?Ne(m,x):Ne(m)});function d(){var h=typeof e.extraReducers=="function"?ql(e.extraReducers):[e.extraReducers],f=h[0],m=f===void 0?{}:f,b=h[1],x=b===void 0?[]:b,C=h[2],I=C===void 0?void 0:C,T=Ie(Ie({},m),s);return $u(r,function(_){for(var w in T)_.addCase(w,T[w]);for(var S=0,E=x;S<E.length;S++){var k=E[S];_.addMatcher(k.matcher,k.reducer)}I&&_.addDefaultCase(I)})}var p;return{name:t,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Uu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Fu=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=Uu[Math.random()*64|0];return t},Hu=["name","message","stack","code"],ka=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Vl=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Wu=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=Hu;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},gx=function(){function e(t,r,n){var i=Ne(t+"/fulfilled",function(h,f,m,b){return{payload:h,meta:La(Ie({},b||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),a=Ne(t+"/pending",function(h,f,m){return{payload:void 0,meta:La(Ie({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Ne(t+"/rejected",function(h,f,m,b,x){return{payload:b,error:(n&&n.serializeError||Wu)(h||"Rejected"),meta:La(Ie({},x||{}),{arg:m,requestId:f,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(f,m,b){var x=n?.idGenerator?n.idGenerator(h):Fu(),C=new d,I,T=!1;function _(S){I=S,C.abort()}var w=function(){return Tu(this,null,function(){var S,E,k,U,G,j,D;return Ou(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),U=(S=n?.condition)==null?void 0:S.call(n,h,{getState:m,extra:b}),ju(U)?[4,U]:[3,2];case 1:U=y.sent(),y.label=2;case 2:if(U===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,G=new Promise(function(O,P){return C.signal.addEventListener("abort",function(){return P({name:"AbortError",message:I||"Aborted"})})}),f(a(x,h,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:x,arg:h},{getState:m,extra:b}))),[4,Promise.race([G,Promise.resolve(r(h,{dispatch:f,getState:m,extra:b,requestId:x,signal:C.signal,abort:_,rejectWithValue:function(O,P){return new ka(O,P)},fulfillWithValue:function(O,P){return new Vl(O,P)}})).then(function(O){if(O instanceof ka)throw O;return O instanceof Vl?i(O.payload,x,h,O.meta):i(O,x,h)})])];case 3:return k=y.sent(),[3,5];case 4:return j=y.sent(),k=j instanceof ka?s(null,x,h,j.payload,j.meta):s(j,x,h),[3,5];case 5:return D=n&&!n.dispatchConditionRejection&&s.match(k)&&k.meta.condition,D||f(k),[2,k]}})})}();return Object.assign(w,{abort:_,requestId:x,arg:h,unwrap:function(){return w.then(zu)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function zu(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ju(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Xl="listener",Jl="completed",Ql="cancelled",bx="task-"+Ql,xx="task-"+Jl,vx=Xl+"-"+Ql,Sx=Xl+"-"+Jl;var Ma="listenerMiddleware";var Ox=Ne(Ma+"/add"),Cx=Ne(Ma+"/removeAll"),Ex=Ne(Ma+"/remove");var Gl,wx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Gl||(Gl=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},Vu=function(e){return function(t){setTimeout(t,e)}},Ax=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Vu(10);_l();window.ftReduxStores||(window.ftReduxStores={});var ye=class e extends le{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,a=window.ftReduxStores[n];if(Ve(a))return a;if(i==null)return;let s=Yl({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=Zl({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[i.name]=new e(s,l,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new so;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...h)=>{let f=p(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:i(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Gu(){var e;for(let t of Object.values((e=window.ftReduxStores)!==null&&e!==void 0?e:{}))Ve(t)&&t.clear()}var jo=class{constructor(t,r,n){this.store=t,this.valueSelector=r,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let t=this.store.getState(),r=this.valueSelector(t);Ce(this.lastValue,r)&&(this.callback(r,t),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Ku(e,t,r){return new jo(e,t,r).watch()}var Fa={};Z(Fa,{scrollHelper:()=>Zu});var Ba,Vo=new Map,Ua=class{lock(t,r){if(r){let n=Vo.get(r);if(n==null||n===t)return Vo.set(r,t),r}}release(t,r){r&&Vo.get(r)===t&&Vo.delete(r)}findFirstScrollableParent(t){var r;let n,i;for(let a of di(t)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(r=n??i)!==null&&r!==void 0?r:document.body}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,r){var n,i;let a=0;for(;r&&r.offsetParent!==t.offsetParent;)a+=(n=r.offsetTop)!==null&&n!==void 0?n:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i:0)-t.offsetTop}computeTopOffsetRatio(t,r){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(t,r){let n=this.findFirstScrollableParent(t);if(t&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,t),a=i-n.clientHeight+t.clientHeight,s=i,l=Kr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;n.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Ba=window.FluidTopicsScrollHelper)!==null&&Ba!==void 0?Ba:new Ua;var Zu=window.FluidTopicsScrollHelper;var Wa={};Z(Wa,{SearchPlaceConverter:()=>Or,SearchPlaceQueryParams:()=>Y,isSearchPlaceQueryParams:()=>Tc,serializeRequest:()=>Ju});var Yu=Md(ec(),1);var rc;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(rc||(rc={}));var oc;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(oc||(oc={}));var nc;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(nc||(nc={}));var ic;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(ic||(ic={}));var ac;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ac||(ac={}));var sc;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(sc||(sc={}));var lc;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(lc||(lc={}));var cc;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(cc||(cc={}));var dc;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(dc||(dc={}));var pc;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(pc||(pc={}));var uc;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(uc||(uc={}));var fc;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(fc||(fc={}));var hc;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(hc||(hc={}));var mc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(mc||(mc={}));var yc;(function(e){e.ASC="ASC",e.DESC="DESC"})(yc||(yc={}));var gc;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(gc||(gc={}));var Ha;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Ha||(Ha={}));var Sc=e=>Object.keys(Ha).includes(e);var bc;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(bc||(bc={}));var Zo;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Zo||(Zo={}));var xc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(xc||(xc={}));var vr;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(vr||(vr={}));var Oc=e=>Object.keys(vr).includes(e);var Sr;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Sr||(Sr={}));var vc;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(vc||(vc={}));var tt;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(tt||(tt={}));var Cc;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Cc||(Cc={}));var Ec;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ec||(Ec={}));var wc;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(wc||(wc={}));var qu={[tt.PERSONAL_BOOK_SHARE_USER]:[tt.PERSONAL_BOOK_USER],[tt.HTML_EXPORT_USER]:[tt.PERSONAL_BOOK_USER],[tt.PDF_EXPORT_USER]:[tt.PERSONAL_BOOK_USER],[tt.KHUB_ADMIN]:[tt.CONTENT_PUBLISHER],[tt.ADMIN]:[tt.KHUB_ADMIN,tt.USERS_ADMIN,tt.PORTAL_ADMIN],[tt.GENERATIVE_AI_EXPORT_USER]:[tt.GENERATIVE_AI_USER]};function Ac(e,t){return e===t||(qu[e]??[]).some(r=>Ac(r,t))}function ge(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Ac(n,t))}function Xu(e){return`"${e}"`}function Rc(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}function Ju(e,t){return new Or(e).serialize(t)}var Y;(function(e){e.LOCALE="content-lang",e.QUERY="query",e.SCOPE="scope",e.FILTERS="filters",e.VIRTUAL_FIELD="virtual-field",e.PERIOD="period",e.VALUE_FILTERS="value-filters",e.DATE_FILTERS="date-filters",e.RANGE_FILTERS="range-filters",e.SORT="sort",e.PER_PAGE="per-page"})(Y||(Y={}));var Qu=new Set(Object.values(Y));function Tc(e){return Qu.has(e)}var Or=class{constructor(t,r={},n=20,i=!1,a="en-US"){this.baseUrl=t,this.predefinedSorts=r,this.defaultPerPage=n,this.allLanguagesAllowed=i,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(t,r){return this.serializeToCurrentPageIfPossible(t,r??"/search")}serializeToCurrentPageIfPossible(t,r){let n=r==null||r.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=this.toURLSearchParams(t),i.toString()}toURLSearchParams(t,r=!1){var n,i,a,s,l,d,p,h,f,m,b,x;let C=new URLSearchParams;t.contentLocale?(!r||t.contentLocale!==this.defaultContentLocale)&&C.append(Y.LOCALE,t.contentLocale):C.append(Y.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=t.query)===null||n===void 0?void 0:n.length)>0&&C.append(Y.QUERY,t.query);let I=(a=(i=t.metadataFilters)===null||i===void 0?void 0:i.filter(S=>{var E;return((E=S.valueFilter)===null||E===void 0?void 0:E.negative)===!1}))!==null&&a!==void 0?a:[];if(I.length>0){let S=I.map(E=>{var k,U;let G=((U=(k=E.valueFilter)===null||k===void 0?void 0:k.values)!==null&&U!==void 0?U:[]).map(j=>this.escapeFilters(j)).map(j=>Xu(Rc(j))).join("_");return`${E.key}~${G}`}).join("*");C.append(Y.VALUE_FILTERS,S)}let T=(l=(s=t.metadataFilters)===null||s===void 0?void 0:s.filter(S=>S.dateFilter))!==null&&l!==void 0?l:[];if(T.length>0){let S=T.map(E=>{var k;return`${E.key}~${(k=E.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");C.append(Y.DATE_FILTERS,S)}let _=(p=(d=t.metadataFilters)===null||d===void 0?void 0:d.filter(S=>S.rangeFilter))!==null&&p!==void 0?p:[];if(_.length>0){let S=_.map(E=>{var k,U;return`${E.key}~${(k=E.rangeFilter)===null||k===void 0?void 0:k.from}_${(U=E.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");C.append(Y.RANGE_FILTERS,S)}t.virtualField&&t.virtualField!=="EVERYWHERE"&&C.append(Y.VIRTUAL_FIELD,t.virtualField.toLowerCase()),t.scope&&t.scope!=="DEFAULT"&&C.append(Y.SCOPE,t.scope.toLowerCase()),((h=t.sort)===null||h===void 0?void 0:h.length)>0&&t.sort[0].key==="ft:lastEdition"&&C.append(Y.SORT,"last_update"),!((f=t.paging)===null||f===void 0)&&f.perPage&&((b=(m=t.paging)===null||m===void 0?void 0:m.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&C.append(Y.PER_PAGE,String(t.paging.perPage));let w=(x=t.otherQueryParams)!==null&&x!==void 0?x:{};for(let S in w)C.append(S,w[S]);return encodeURI(C.toString()).replace(/#/g,"%23")}parse(t){var r;let n=t.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(t){var r,n,i,a,s,l,d,p;try{t=decodeURI(t).replace(/%23/g,"#")}catch(T){console.warn("Could not decode search request query params, fallback on raw value",T)}let h=new URLSearchParams(t),f=h.get(Y.LOCALE)==="all"?void 0:h.get(Y.LOCALE),m=((r=h.get(Y.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),b=((n=h.get(Y.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),x=(i=h.get(Y.SCOPE))!==null&&i!==void 0?i:"default",C=+((a=h.get(Y.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),I={};for(let T of h.keys())Tc(T)||(I[T]=h.get(T));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=h.get(Y.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[x])!==null&&l!==void 0?l:"DEFAULT",virtualField:Sc(m)?m:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[b])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(h),facets:[],paging:{page:1,perPage:Kr(1,isNaN(C)?this.defaultPerPage:C,1e3)},otherQueryParams:I}}parseCompatFilters(t){var r,n,i,a,s,l;let d=[];return t.has(Y.FILTERS)&&(d=this.parseValueFilters((r=t.get(Y.FILTERS))!==null&&r!==void 0?r:"")),(n=t.has(Y.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=t.get(Y.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=t.get(Y.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=t.get(Y.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(Y.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(t).split("*").map(r=>r.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(Rc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],dateFilter:{type:vr[r[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(t){for(let[r,n,i]of this.filtersEscapeMapping)t=t.replaceAll(r,n);return t}superEscapeFilters(t){for(let[r,n,i]of this.filtersEscapeMapping)t=t.replaceAll(n,i);return t}unescapeFilterValue(t){for(let[r,n,i]of this.filtersEscapeMapping)t=t.replace(i,r);return t}parseLegacyPeriodFilter(t){if(Oc(t))return[{key:"ft:lastEdition",dateFilter:{type:vr[t]}}];if(t.startsWith("CUSTOM_")){let[r,n,i]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Va={};Z(Va,{toFtFormComponent:()=>ja});var za=Symbol("elementInternals");function ja(e){class t extends e{static get formAssociated(){return!0}get form(){return this[za].form}constructor(...n){super(n),this[za]=this.attachInternals()}setFormValue(n){this[za].setFormValue(n)}}return t}var Ga={};Z(Ga,{DateFormatter:()=>qe});var qe=class{static format(t,r,n,i){return window.moment?window.moment(t).locale(r).format(this.getDateFormat(n,i)):t}static getDateFormat(t,r){return t?r?"lll":"ll":r?"L LT":"L"}};var Za={};Z(Za,{ALL_KEYS_VALUE:()=>Ka,SameWindowStorageEvent:()=>Cr});var Ka="__all__",Cr=class extends CustomEvent{constructor(t,r,n){super("same-window-storage",{detail:{key:t,oldValue:r,newValue:n}})}keyMatch(t){return this.detail.key.includes(t)||this.detail.key==Ka}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(e,t,r){let n=t.getItem(r[0]);Reflect.apply(e,t,r),window.dispatchEvent(new Cr(r[0],n,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(e,t,r){let n=t.getItem(r[0]);Reflect.apply(e,t,r),window.dispatchEvent(new Cr(r[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(e,t,r){Reflect.apply(e,t,r),window.dispatchEvent(new Cr(Ka))}});var Ya={};Z(Ya,{FocusMainContentEvent:()=>qa});var qa=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Ic={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1};function tf(e){(e.key==="Enter"||e.key===" "||e.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function ef(e){window.FluidTopicsA11yHints.isKeyboardNavigation=e.detail==0}document.addEventListener("keydown",tf);document.addEventListener("click",ef);var Nc=L`
48
+ `;var bl={};var pa={};Z(pa,{ParametrizedLabelResolver:()=>ao});var ao=class e{constructor(t,r){this.defaultLabels=t,this.labels=r}resolve(t,...r){var n,i;t=this.resolvePluralKey(t,r);let a=(i=(n=this.labels[t])!==null&&n!==void 0?n:this.defaultLabels[t])!==null&&i!==void 0?i:"";return e.replaceParameters(a,...r)}static replaceParameters(t,...r){return r.forEach((n,i)=>t=t.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>e.formatValue(n,s))),t}resolvePluralKey(t,r){for(let n of r)if(typeof n=="number"){let i=`${String(t)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return t}static formatValue(t,r){return t instanceof Date?e.formatDate(t,r):t??""}static formatDate(t,r){let n=i=>r?.includes("date")?t.toLocaleDateString(i):r?.includes("time")?t.toLocaleTimeString(i):t.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var $a={};Z($a,{FtCommandQueue:()=>so,FtLitElementRedux:()=>Ft,FtReduxStore:()=>ye,ReduxWatcher:()=>jo,clearAllStores:()=>Zu,isFtReduxStore:()=>Ve,redux:()=>bt,reduxEventListener:()=>fa,reduxReactive:()=>ua,watch:()=>qu});var ua=()=>(e,t)=>{var r;let n=e.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(t)},bt=e=>{let t=e??{};return(r,n)=>{var i;let a={hasChanged:Ce,attribute:!1,...t};v(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=t.selector)!==null&&i!==void 0?i:l=>l[n],store:t.store})}},fa=e=>(t,r)=>{let n=t.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,e)};var so=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(n=>n.type===t);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};function Ve(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var xl,vl,Sl,lo=Symbol("internalReduxEventsUnsubscribers"),Ae=Symbol("internalStoresUnsubscribers"),Ge=Symbol("internalStores"),Ft=class extends j{constructor(){super(...arguments),this[xl]=new Map,this[vl]=new Map,this[Sl]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(r=>t.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[Ge].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ge].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Ge].get(t)}addStore(t,r){var n;r=(n=r??(Ve(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[Ge].set(r,t),this.subscribeToStore(r,t),this.updateFromStores()}removeStore(t){let r=typeof t=="string"?t:t.name;this.unsubscribeFromStore(r),this[Ge].delete(r)}setupStores(){this.unsubscribeFromStores(),this[Ge].forEach((t,r)=>this.subscribeToStore(r,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(t.store);i&&(t.store?this[Ae].has(t.store):this[Ae].size>0)&&(this[r]=t.selector(i.getState(),this))}})}subscribeToStore(t,r){var n;this[Ae].set(t,r.subscribe(()=>this.updateFromStores())),this[lo].set(t,[]),Ve(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let s=l=>this[a](l);r.addEventListener(i.eventName,s),this[lo].get(t).push(()=>r.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ae].forEach((t,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(t){var r;this[Ae].has(t)&&this[Ae].get(t)(),this[Ae].delete(t),(r=this[lo].get(t))===null||r===void 0||r.forEach(n=>n()),this[lo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};xl=Ae,vl=Ge,Sl=lo;Ft.reduxProperties=new Map;Ft.reduxReactiveProperties=new Set;Ft.reduxEventListeners=new Map;function Ht(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function me(e){return!!e&&!!e[rt]}function Kt(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===xu}(e)||Array.isArray(e)||!!e[Tl]||!!(!((t=e.constructor)===null||t===void 0)&&t[Tl])||Oa(e)||Ca(e))}function Ke(e,t,r){r===void 0&&(r=!1),yr(e)===0?(r?Object.keys:mr)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function yr(e){var t=e[rt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Oa(e)?2:Ca(e)?3:0}function hr(e,t){return yr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function uu(e,t){return yr(e)===2?e.get(t):e[t]}function Il(e,t,r){var n=yr(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function _l(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Oa(e){return gu&&e instanceof Map}function Ca(e){return bu&&e instanceof Set}function Re(e){return e.o||e.t}function Ea(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Pl(e);delete t[rt];for(var r=mr(t),n=0;n<r.length;n++){var i=r[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function wa(e,t){return t===void 0&&(t=!1),Aa(e)||me(e)||!Kt(e)||(yr(e)>1&&(e.set=e.add=e.clear=e.delete=fu),Object.freeze(e),t&&Ke(e,function(r,n){return wa(n,!0)},!0)),e}function fu(){Ht(2)}function Aa(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function te(e){var t=Sa[e];return t||Ht(18,e),t}function hu(e,t){Sa[e]||(Sa[e]=t)}function ba(){return po}function ha(e,t){t&&(te("Patches"),e.u=[],e.s=[],e.v=t)}function Uo(e){xa(e),e.p.forEach(mu),e.p=null}function xa(e){e===po&&(po=e.l)}function Ol(e){return po={p:[],l:po,h:e,m:!0,_:0}}function mu(e){var t=e[rt];t.i===0||t.i===1?t.j():t.g=!0}function ma(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||te("ES5").S(t,e,n),n?(r[rt].P&&(Uo(t),Ht(4)),Kt(e)&&(e=Fo(t,e),t.l||Ho(t,e)),t.u&&te("Patches").M(r[rt].t,e,t.u,t.s)):e=Fo(t,r,[]),Uo(t),t.u&&t.v(t.u,t.s),e!==Ll?e:void 0}function Fo(e,t,r){if(Aa(t))return t;var n=t[rt];if(!n)return Ke(t,function(l,d){return Cl(e,n,t,l,d,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Ho(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ea(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Ke(a,function(l,d){return Cl(e,n,i,l,d,r,s)}),Ho(e,i,!1),r&&e.u&&te("Patches").N(n,r,e.u,e.s)}return n.o}function Cl(e,t,r,n,i,a,s){if(me(i)){var l=Fo(e,i,a&&t&&t.i!==3&&!hr(t.R,n)?a.concat(n):void 0);if(Il(r,n,l),!me(l))return;e.m=!1}else s&&r.add(i);if(Kt(i)&&!Aa(i)){if(!e.h.D&&e._<1)return;Fo(e,i),t&&t.A.l||Ho(e,i)}}function Ho(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&wa(t,r)}function ya(e,t){var r=e[rt];return(r?Re(r):e)[t]}function El(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function Te(e){e.P||(e.P=!0,e.l&&Te(e.l))}function ga(e){e.o||(e.o=Ea(e.t))}function va(e,t,r){var n=Oa(t)?te("MapSet").F(t,r):Ca(t)?te("MapSet").T(t,r):e.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:ba(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=uo;s&&(d=[l],p=co);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(t,r):te("ES5").J(t,r);return(r?r.A:ba()).p.push(n),n}function yu(e){return me(e)||Ht(22,e),function t(r){if(!Kt(r))return r;var n,i=r[rt],a=yr(r);if(i){if(!i.P&&(i.i<4||!te("ES5").K(i)))return i.t;i.I=!0,n=wl(r,a),i.I=!1}else n=wl(r,a);return Ke(n,function(s,l){i&&uu(i.t,s)===l||Il(n,s,t(l))}),a===3?new Set(n):n}(e)}function wl(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ea(e)}function Nl(){function e(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[rt];return uo.get(p,s)},set:function(p){var h=this[rt];uo.set(h,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][rt];if(!d.P)switch(d.i){case 5:n(d)&&Te(d);break;case 4:r(d)&&Te(d)}}}function r(s){for(var l=s.t,d=s.k,p=mr(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==rt){var m=l[f];if(m===void 0&&!hr(l,f))return!0;var b=d[f],x=b&&b[rt];if(x?x.t!==m:!_l(b,m))return!0}}var O=!!l[rt];return p.length!==mr(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 p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&Ht(3,JSON.stringify(Re(s)))}var a={};hu("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,m){if(f){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,e(x,!0));return b}var O=Pl(m);delete O[rt];for(var I=mr(O),T=0;T<I.length;T++){var N=I[T];O[N]=e(N,f||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(d,s),h={i:d?5:4,A:l?l.A:ba(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,rt,{value:h,writable:!0}),p},S:function(s,l,d){d?me(l)&&l[rt].A===s&&t(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[rt];if(f){var m=f.t,b=f.k,x=f.R,O=f.i;if(O===4)Ke(b,function(w){w!==rt&&(m[w]!==void 0||hr(m,w)?x[w]||p(b[w]):(x[w]=!0,Te(f)))}),Ke(m,function(w){b[w]!==void 0||hr(b,w)||(x[w]=!1,Te(f))});else if(O===5){if(n(f)&&(Te(f),x.length=!0),b.length<m.length)for(var I=b.length;I<m.length;I++)x[I]=!1;else for(var T=m.length;T<b.length;T++)x[T]=!0;for(var N=Math.min(b.length,m.length),E=0;E<N;E++)b.hasOwnProperty(E)||(x[E]=!0),x[E]===void 0&&p(b[E])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var Al,po,Ra=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",gu=typeof Map<"u",bu=typeof Set<"u",Rl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ll=Ra?Symbol.for("immer-nothing"):((Al={})["immer-nothing"]=!0,Al),Tl=Ra?Symbol.for("immer-draftable"):"__$immer_draftable",rt=Ra?Symbol.for("immer-state"):"__$immer_state";var xu=""+Object.prototype.constructor,mr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Pl=Object.getOwnPropertyDescriptors||function(e){var t={};return mr(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Sa={},uo={get:function(e,t){if(t===rt)return e;var r=Re(e);if(!hr(r,t))return function(i,a,s){var l,d=El(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(e,r,t);var n=r[t];return e.I||!Kt(n)?n:n===ya(e.t,t)?(ga(e),e.o[t]=va(e.A.h,n,e)):n},has:function(e,t){return t in Re(e)},ownKeys:function(e){return Reflect.ownKeys(Re(e))},set:function(e,t,r){var n=El(Re(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var i=ya(Re(e),t),a=i?.[rt];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(_l(r,i)&&(r!==void 0||hr(e.t,t)))return!0;ga(e),Te(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return ya(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,ga(e),Te(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Re(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Ht(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ht(12)}},co={};Ke(uo,function(e,t){co[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),co.deleteProperty=function(e,t){return co.set.call(this,e,t,void 0)},co.set=function(e,t,r){return uo.set.call(this,e[0],t,r,e[0])};var vu=function(){function e(r){var n=this;this.O=Rl,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(O){var I=this;O===void 0&&(O=l);for(var T=arguments.length,N=Array(T>1?T-1:0),E=1;E<T;E++)N[E-1]=arguments[E];return d.produce(O,function(w){var C;return(C=a).call.apply(C,[I,w].concat(N))})}}var p;if(typeof a!="function"&&Ht(6),s!==void 0&&typeof s!="function"&&Ht(7),Kt(i)){var h=Ol(n),f=va(n,i,void 0),m=!0;try{p=a(f),m=!1}finally{m?Uo(h):xa(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return ha(h,s),ma(O,h)},function(O){throw Uo(h),O}):(ha(h,s),ma(p,h))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===Ll&&(p=void 0),n.D&&wa(p,!0),s){var b=[],x=[];te("Patches").M(i,p,b,x),s(b,x)}return p}Ht(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,function(b){return i.apply(void 0,[b].concat(f))})};var s,l,d=n.produce(i,a,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Kt(r)||Ht(8),me(r)&&(r=yu(r));var n=Ol(this),i=va(this,r,void 0);return i[rt].C=!0,xa(n),i},t.finishDraft=function(r,n){var i=r&&r[rt],a=i.A;return ha(a,n),ma(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Rl&&Ht(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=te("Patches").$;return me(r)?s(r,n):this.produce(r,function(l){return s(l,n)})},e}(),kt=new vu,Su=kt.produce,Gb=kt.produceWithPatches.bind(kt),Kb=kt.setAutoFreeze.bind(kt),Zb=kt.setUseProxies.bind(kt),qb=kt.applyPatches.bind(kt),Yb=kt.createDraft.bind(kt),Xb=kt.finishDraft.bind(kt),Wo=Su;function Ze(e){"@babel/helpers - typeof";return Ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ze(e)}function kl(e,t){if(Ze(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ze(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ml(e){var t=kl(e,"string");return Ze(t)=="symbol"?t:t+""}function Dl(e,t,r){return(t=Ml(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ta(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$l(Object(r),!0).forEach(function(n){Dl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$l(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ot(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Bl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ia=function(){return Math.random().toString(36).substring(7).split("").join(".")},zo={INIT:"@@redux/INIT"+Ia(),REPLACE:"@@redux/REPLACE"+Ia(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ia()}};function Ou(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function _a(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ot(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ot(1));return r(_a)(e,t)}if(typeof e!="function")throw new Error(Ot(2));var i=e,a=t,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Ot(3));return a}function f(O){if(typeof O!="function")throw new Error(Ot(4));if(d)throw new Error(Ot(5));var I=!0;return p(),l.push(O),function(){if(I){if(d)throw new Error(Ot(6));I=!1,p();var N=l.indexOf(O);l.splice(N,1),s=null}}}function m(O){if(!Ou(O))throw new Error(Ot(7));if(typeof O.type>"u")throw new Error(Ot(8));if(d)throw new Error(Ot(9));try{d=!0,a=i(a,O)}finally{d=!1}for(var I=s=l,T=0;T<I.length;T++){var N=I[T];N()}return O}function b(O){if(typeof O!="function")throw new Error(Ot(10));i=O,m({type:zo.REPLACE})}function x(){var O,I=f;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(Ot(11));function E(){N.next&&N.next(h())}E();var w=I(E);return{unsubscribe:w}}},O[Bl]=function(){return this},O}return m({type:zo.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:b},n[Bl]=x,n}function Cu(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:zo.INIT});if(typeof n>"u")throw new Error(Ot(12));if(typeof r(void 0,{type:zo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ot(13))})}function Ul(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),s,l;try{Cu(r)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,b={},x=0;x<a.length;x++){var O=a[x],I=r[O],T=p[O],N=I(T,h);if(typeof N>"u"){var E=h&&h.type;throw new Error(Ot(14))}b[O]=N,m=m||N!==T}return m=m||a.length!==Object.keys(p).length,m?b:p}}function gr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Fl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(Ot(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return a=gr.apply(void 0,l)(i.dispatch),Ta(Ta({},i),{},{dispatch:a})}}}function Hl(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,e):s(l)}}};return t}var Wl=Hl();Wl.withExtraArgument=Hl;var Na=Wl;var Kl=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Eu=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,i=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=t.call(e,r)}catch(h){p=[6,h],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},br=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},wu=Object.defineProperty,Au=Object.defineProperties,Ru=Object.getOwnPropertyDescriptors,zl=Object.getOwnPropertySymbols,Tu=Object.prototype.hasOwnProperty,Iu=Object.prototype.propertyIsEnumerable,jl=function(e,t,r){return t in e?wu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Ie=function(e,t){for(var r in t||(t={}))Tu.call(t,r)&&jl(e,r,t[r]);if(zl)for(var n=0,i=zl(t);n<i.length;n++){var r=i[n];Iu.call(t,r)&&jl(e,r,t[r])}return e},La=function(e,t){return Au(e,Ru(t))},_u=function(e,t,r){return new Promise(function(n,i){var a=function(d){try{l(r.next(d))}catch(p){i(p)}},s=function(d){try{l(r.throw(d))}catch(p){i(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(e,t)).next())})};var Nu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?gr:gr.apply(null,arguments)},mx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Lu(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var Pu=function(e){Kl(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,br([void 0],r[0].concat(this)))):new(t.bind.apply(t,br([void 0],r.concat(this))))},t}(Array),ku=function(e){Kl(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,br([void 0],r[0].concat(this)))):new(t.bind.apply(t,br([void 0],r.concat(this))))},t}(Array);function Ma(e){return Kt(e)?Wo(e,function(){}):e}function Mu(e){return typeof e=="boolean"}function Du(){return function(t){return $u(t)}}function $u(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,s=a===void 0?!0:a,l=new Pu;if(r&&(Mu(r)?l.push(Na):l.push(Na.withExtraArgument(r.extraArgument))),0){if(i)var d;if(s)var p}return l}var Pa=!0;function Zl(e){var t=Du(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?t():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,h=p===void 0?void 0:p,f=r.enhancers,m=f===void 0?void 0:f,b;if(typeof i=="function")b=i;else if(Lu(i))b=Ul(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 x=s;if(typeof x=="function"&&(x=x(t),!Pa&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Pa&&x.some(function(w){return typeof w!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Fl.apply(void 0,x),I=gr;d&&(I=Nu(Ie({trace:!Pa},typeof d=="object"&&d)));var T=new ku(O),N=T;Array.isArray(m)?N=br([O],m):typeof m=="function"&&(N=m(T));var E=I.apply(void 0,N);return _a(b,h,E)}function _e(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Ie(Ie({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function ql(e){var t={},r=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return e(i),[t,r,n]}function Bu(e){return typeof e=="function"}function Uu(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?ql(t):[t,r,n],a=i[0],s=i[1],l=i[2],d;if(Bu(e))d=function(){return Ma(e())};else{var p=Ma(e);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var b=br([a[m.type]],s.filter(function(x){var O=x.matcher;return O(m)}).map(function(x){var O=x.reducer;return O}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,O){if(O)if(me(x)){var I=x,T=O(I,m);return T===void 0?x:T}else{if(Kt(x))return Wo(x,function(N){return O(N,m)});var T=O(x,m);if(T===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return x},f)}return h.getInitialState=d,h}function Fu(e,t){return e+"/"+t}function Yl(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Ma(e.initialState),n=e.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var f=n[h],m=Fu(t,h),b,x;"reducer"in f?(b=f.reducer,x=f.prepare):b=f,a[h]=b,s[m]=b,l[h]=x?_e(m,x):_e(m)});function d(){var h=typeof e.extraReducers=="function"?ql(e.extraReducers):[e.extraReducers],f=h[0],m=f===void 0?{}:f,b=h[1],x=b===void 0?[]:b,O=h[2],I=O===void 0?void 0:O,T=Ie(Ie({},m),s);return Uu(r,function(N){for(var E in T)N.addCase(E,T[E]);for(var w=0,C=x;w<C.length;w++){var P=C[w];N.addMatcher(P.matcher,P.reducer)}I&&N.addDefaultCase(I)})}var p;return{name:t,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Hu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wu=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=Hu[Math.random()*64|0];return t},zu=["name","message","stack","code"],ka=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Vl=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),ju=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,n=zu;r<n.length;r++){var i=n[r];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}},xx=function(){function e(t,r,n){var i=_e(t+"/fulfilled",function(h,f,m,b){return{payload:h,meta:La(Ie({},b||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),a=_e(t+"/pending",function(h,f,m){return{payload:void 0,meta:La(Ie({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=_e(t+"/rejected",function(h,f,m,b,x){return{payload:b,error:(n&&n.serializeError||ju)(h||"Rejected"),meta:La(Ie({},x||{}),{arg:m,requestId:f,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(f,m,b){var x=n?.idGenerator?n.idGenerator(h):Wu(),O=new d,I,T=!1;function N(w){I=w,O.abort()}var E=function(){return _u(this,null,function(){var w,C,P,U,W,G,k;return Eu(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),U=(w=n?.condition)==null?void 0:w.call(n,h,{getState:m,extra:b}),Gu(U)?[4,U]:[3,2];case 1:U=y.sent(),y.label=2;case 2:if(U===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,W=new Promise(function(S,M){return O.signal.addEventListener("abort",function(){return M({name:"AbortError",message:I||"Aborted"})})}),f(a(x,h,(C=n?.getPendingMeta)==null?void 0:C.call(n,{requestId:x,arg:h},{getState:m,extra:b}))),[4,Promise.race([W,Promise.resolve(r(h,{dispatch:f,getState:m,extra:b,requestId:x,signal:O.signal,abort:N,rejectWithValue:function(S,M){return new ka(S,M)},fulfillWithValue:function(S,M){return new Vl(S,M)}})).then(function(S){if(S instanceof ka)throw S;return S instanceof Vl?i(S.payload,x,h,S.meta):i(S,x,h)})])];case 3:return P=y.sent(),[3,5];case 4:return G=y.sent(),P=G instanceof ka?s(null,x,h,G.payload,G.meta):s(G,x,h),[3,5];case 5:return k=n&&!n.dispatchConditionRejection&&s.match(P)&&P.meta.condition,k||f(P),[2,P]}})})}();return Object.assign(E,{abort:N,requestId:x,arg:h,unwrap:function(){return E.then(Vu)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e}();function Vu(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Gu(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Xl="listener",Jl="completed",Ql="cancelled",vx="task-"+Ql,Sx="task-"+Jl,Ox=Xl+"-"+Ql,Cx=Xl+"-"+Jl;var Da="listenerMiddleware";var Ex=_e(Da+"/add"),wx=_e(Da+"/removeAll"),Ax=_e(Da+"/remove");var Gl,Rx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Gl||(Gl=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},Ku=function(e){return function(t){setTimeout(t,e)}},Tx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ku(10);Nl();window.ftReduxStores||(window.ftReduxStores={});var ye=class e extends le{static get(t){var r;let n=typeof t=="string"?t:t.name,i=typeof t=="string"?void 0:t,a=window.ftReduxStores[n];if(Ve(a))return a;if(i==null)return;let s=Yl({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=Zl({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[i.name]=new e(s,l,i.eventBus)}constructor(t,r,n){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new so;let i=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...h)=>{let f=p(...h.map(i));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:i(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Zu(){var e;for(let t of Object.values((e=window.ftReduxStores)!==null&&e!==void 0?e:{}))Ve(t)&&t.clear()}var jo=class{constructor(t,r,n){this.store=t,this.valueSelector=r,this.callback=n}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let t=this.store.getState(),r=this.valueSelector(t);Ce(this.lastValue,r)&&(this.callback(r,t),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function qu(e,t,r){return new jo(e,t,r).watch()}var Fa={};Z(Fa,{scrollHelper:()=>Yu});var Ba,Vo=new Map,Ua=class{lock(t,r){if(r){let n=Vo.get(r);if(n==null||n===t)return Vo.set(r,t),r}}release(t,r){r&&Vo.get(r)===t&&Vo.delete(r)}findFirstScrollableParent(t){var r;let n,i;for(let a of di(t)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){n=s;break}else l&&i==null&&(i=s)}return(r=n??i)!==null&&r!==void 0?r:document.body}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,r){var n,i;let a=0;for(;r&&r.offsetParent!==t.offsetParent;)a+=(n=r.offsetTop)!==null&&n!==void 0?n:0,r=r.offsetParent;return a+((i=r?.offsetTop)!==null&&i!==void 0?i:0)-t.offsetTop}computeTopOffsetRatio(t,r){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(t,r){let n=this.findFirstScrollableParent(t);if(t&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,t),a=i-n.clientHeight+t.clientHeight,s=i,l=Kr(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;n.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Ba=window.FluidTopicsScrollHelper)!==null&&Ba!==void 0?Ba:new Ua;var Yu=window.FluidTopicsScrollHelper;var Wa={};Z(Wa,{SearchPlaceConverter:()=>Or,SearchPlaceQueryParams:()=>Y,isSearchPlaceQueryParams:()=>Tc,serializeRequest:()=>tf});var Ju=Bd(ec(),1);var rc;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(rc||(rc={}));var oc;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(oc||(oc={}));var nc;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(nc||(nc={}));var ic;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(ic||(ic={}));var ac;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ac||(ac={}));var sc;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(sc||(sc={}));var lc;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(lc||(lc={}));var cc;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(cc||(cc={}));var dc;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(dc||(dc={}));var pc;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(pc||(pc={}));var uc;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(uc||(uc={}));var fc;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(fc||(fc={}));var hc;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(hc||(hc={}));var mc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(mc||(mc={}));var yc;(function(e){e.ASC="ASC",e.DESC="DESC"})(yc||(yc={}));var gc;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(gc||(gc={}));var Ha;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Ha||(Ha={}));var Sc=e=>Object.keys(Ha).includes(e);var bc;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(bc||(bc={}));var Zo;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Zo||(Zo={}));var xc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(xc||(xc={}));var vr;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(vr||(vr={}));var Oc=e=>Object.keys(vr).includes(e);var Sr;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Sr||(Sr={}));var vc;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(vc||(vc={}));var et;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(et||(et={}));var Cc;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Cc||(Cc={}));var Ec;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Ec||(Ec={}));var wc;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(wc||(wc={}));var Xu={[et.PERSONAL_BOOK_SHARE_USER]:[et.PERSONAL_BOOK_USER],[et.HTML_EXPORT_USER]:[et.PERSONAL_BOOK_USER],[et.PDF_EXPORT_USER]:[et.PERSONAL_BOOK_USER],[et.KHUB_ADMIN]:[et.CONTENT_PUBLISHER],[et.ADMIN]:[et.KHUB_ADMIN,et.USERS_ADMIN,et.PORTAL_ADMIN],[et.GENERATIVE_AI_EXPORT_USER]:[et.GENERATIVE_AI_USER]};function Ac(e,t){return e===t||(Xu[e]??[]).some(r=>Ac(r,t))}function ge(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(n=>Ac(n,t))}function Qu(e){return`"${e}"`}function Rc(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}function tf(e,t){return new Or(e).serialize(t)}var Y;(function(e){e.LOCALE="content-lang",e.QUERY="query",e.SCOPE="scope",e.FILTERS="filters",e.VIRTUAL_FIELD="virtual-field",e.PERIOD="period",e.VALUE_FILTERS="value-filters",e.DATE_FILTERS="date-filters",e.RANGE_FILTERS="range-filters",e.SORT="sort",e.PER_PAGE="per-page"})(Y||(Y={}));var ef=new Set(Object.values(Y));function Tc(e){return ef.has(e)}var Or=class{constructor(t,r={},n=20,i=!1,a="en-US"){this.baseUrl=t,this.predefinedSorts=r,this.defaultPerPage=n,this.allLanguagesAllowed=i,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(t,r){return this.serializeToCurrentPageIfPossible(t,r??"/search")}serializeToCurrentPageIfPossible(t,r){let n=r==null||r.trim().length===0,i=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return i.search=this.toURLSearchParams(t),i.toString()}toURLSearchParams(t,r=!1){var n,i,a,s,l,d,p,h,f,m,b,x;let O=new URLSearchParams;t.contentLocale?(!r||t.contentLocale!==this.defaultContentLocale)&&O.append(Y.LOCALE,t.contentLocale):O.append(Y.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=t.query)===null||n===void 0?void 0:n.length)>0&&O.append(Y.QUERY,t.query);let I=(a=(i=t.metadataFilters)===null||i===void 0?void 0:i.filter(C=>{var P;return((P=C.valueFilter)===null||P===void 0?void 0:P.negative)===!1}))!==null&&a!==void 0?a:[];if(I.length>0){let C=I.map(P=>{var U,W;let G=((W=(U=P.valueFilter)===null||U===void 0?void 0:U.values)!==null&&W!==void 0?W:[]).map(k=>this.escapeFilters(k)).map(k=>Qu(Rc(k))).join("_");return`${P.key}~${G}`}).join("*");O.append(Y.VALUE_FILTERS,C)}let T=(l=(s=t.metadataFilters)===null||s===void 0?void 0:s.filter(C=>C.dateFilter))!==null&&l!==void 0?l:[];if(T.length>0){let C=T.map(P=>{var U;return`${P.key}~${(U=P.dateFilter)===null||U===void 0?void 0:U.type.toLowerCase()}`}).join("*");O.append(Y.DATE_FILTERS,C)}let N=(p=(d=t.metadataFilters)===null||d===void 0?void 0:d.filter(C=>C.rangeFilter))!==null&&p!==void 0?p:[];if(N.length>0){let C=N.map(P=>{var U,W;return`${P.key}~${(U=P.rangeFilter)===null||U===void 0?void 0:U.from}_${(W=P.rangeFilter)===null||W===void 0?void 0:W.to}`}).join("*");O.append(Y.RANGE_FILTERS,C)}t.virtualField&&t.virtualField!=="EVERYWHERE"&&O.append(Y.VIRTUAL_FIELD,t.virtualField.toLowerCase()),t.scope&&t.scope!=="DEFAULT"&&O.append(Y.SCOPE,t.scope.toLowerCase()),((h=t.sort)===null||h===void 0?void 0:h.length)>0&&t.sort[0].key==="ft:lastEdition"&&O.append(Y.SORT,"last_update"),!((f=t.paging)===null||f===void 0)&&f.perPage&&((b=(m=t.paging)===null||m===void 0?void 0:m.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&O.append(Y.PER_PAGE,String(t.paging.perPage));let E=(x=t.otherQueryParams)!==null&&x!==void 0?x:{};for(let C in E)O.append(C,E[C]);let w=new Array;return O.forEach((C,P)=>{w.push(this.encodeQueryString(P)+"="+this.encodeQueryString(C))}),encodeURI(w.join("&")).replace(/#/g,"%23")}encodeQueryString(t){return encodeURIComponent(t).replace(/%20/g,"+")}parse(t){var r;let n=t.split("?"),i=this.fromURLSearchParams(n.slice(1).join("?")),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(t){var r,n,i,a,s,l,d,p;try{t=decodeURI(t).replace(/%23/g,"#")}catch(T){console.warn("Could not decode search request query params, fallback on raw value",T)}let h=new URLSearchParams(t),f=h.get(Y.LOCALE)==="all"?void 0:h.get(Y.LOCALE),m=((r=h.get(Y.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),b=((n=h.get(Y.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),x=(i=h.get(Y.SCOPE))!==null&&i!==void 0?i:"default",O=+((a=h.get(Y.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),I={};for(let T of h.keys())Tc(T)||(I[T]=h.get(T));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=h.get(Y.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[x])!==null&&l!==void 0?l:"DEFAULT",virtualField:Sc(m)?m:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[b])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(h),facets:[],paging:{page:1,perPage:Kr(1,isNaN(O)?this.defaultPerPage:O,1e3)},otherQueryParams:I}}parseCompatFilters(t){var r,n,i,a,s,l;let d=[];return t.has(Y.FILTERS)&&(d=this.parseValueFilters((r=t.get(Y.FILTERS))!==null&&r!==void 0?r:"")),(n=t.has(Y.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=t.get(Y.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=t.get(Y.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=t.get(Y.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(Y.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(t).split("*").map(r=>r.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(Rc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],dateFilter:{type:vr[r[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(t){for(let[r,n,i]of this.filtersEscapeMapping)t=t.replaceAll(r,n);return t}superEscapeFilters(t){for(let[r,n,i]of this.filtersEscapeMapping)t=t.replaceAll(n,i);return t}unescapeFilterValue(t){for(let[r,n,i]of this.filtersEscapeMapping)t=t.replace(i,r);return t}parseLegacyPeriodFilter(t){if(Oc(t))return[{key:"ft:lastEdition",dateFilter:{type:vr[t]}}];if(t.startsWith("CUSTOM_")){let[r,n,i]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Va={};Z(Va,{toFtFormComponent:()=>ja});var za=Symbol("elementInternals");function ja(e){class t extends e{static get formAssociated(){return!0}get form(){return this[za].form}constructor(...n){super(n),this[za]=this.attachInternals()}setFormValue(n){this[za].setFormValue(n)}}return t}var Ga={};Z(Ga,{DateFormatter:()=>qe});var qe=class{static format(t,r,n,i){return window.moment?window.moment(t).locale(r).format(this.getDateFormat(n,i)):t}static getDateFormat(t,r){return t?r?"lll":"ll":r?"L LT":"L"}};var Za={};Z(Za,{ALL_KEYS_VALUE:()=>Ka,SameWindowStorageEvent:()=>Cr});var Ka="__all__",Cr=class extends CustomEvent{constructor(t,r,n){super("same-window-storage",{detail:{key:t,oldValue:r,newValue:n}})}keyMatch(t){return this.detail.key.includes(t)||this.detail.key==Ka}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(e,t,r){let n=t.getItem(r[0]);Reflect.apply(e,t,r),window.dispatchEvent(new Cr(r[0],n,r[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(e,t,r){let n=t.getItem(r[0]);Reflect.apply(e,t,r),window.dispatchEvent(new Cr(r[0],n))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(e,t,r){Reflect.apply(e,t,r),window.dispatchEvent(new Cr(Ka))}});var Ya={};Z(Ya,{FocusMainContentEvent:()=>qa});var qa=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}};var Ic={};window.FluidTopicsA11yHints={isKeyboardNavigation:!1};function rf(e){(e.key==="Enter"||e.key===" "||e.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0)}function of(e){window.FluidTopicsA11yHints.isKeyboardNavigation=e.detail==0}document.addEventListener("keydown",rf);document.addEventListener("click",of);var _c=L`
49
49
  .sr-only {
50
50
  position:absolute;
51
51
  left:-10000px;
@@ -69,7 +69,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
69
69
  width:auto;
70
70
  height:auto;
71
71
  }
72
- `;var Xa,Ja,Qa,ts,fo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Qa=(Ja=(Xa=window.safari)===null||Xa===void 0?void 0:Xa.pushNotification)===null||Ja===void 0?void 0:Ja.toString())!==null&&Qa!==void 0?Qa:"")==="[object SafariRemoteNotification]",rf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ts=window.ftGlobals)!==null&&ts!==void 0?ts:{lit:Wn,litDecorators:Vn,litRepeat:Kn,litClassMap:Zn,litStyleMap:qn,litUnsafeHTML:Xn,wcUtils:{...ni,...Qn,...ai,...Ga,...si,...ui,...Hi,...oi,...ea,...Ya,...Ic,...Fa,...Fi,...aa,...Va,...ia,...yl,...pi,...ca,...da,...Nc,...bl,...pa,...$a,...Za,...ra,...na,...Wa,isSafari:fo,isTouchScreen:rf,setVariable:A}};var Hv={},_c=L`
72
+ `;var Nc;(function(e){e.blur="blur",e.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",e.input="input"})(Nc||(Nc={}));var Lc;(function(e){e.default="default",e.warning="warning",e.error="error"})(Lc||(Lc={}));var Xa,Ja,Qa,ts,fo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Qa=(Ja=(Xa=window.safari)===null||Xa===void 0?void 0:Xa.pushNotification)===null||Ja===void 0?void 0:Ja.toString())!==null&&Qa!==void 0?Qa:"")==="[object SafariRemoteNotification]",nf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ts=window.ftGlobals)!==null&&ts!==void 0?ts:{lit:Wn,litDecorators:Vn,litRepeat:Kn,litClassMap:Zn,litStyleMap:qn,litUnsafeHTML:Xn,wcUtils:{...ni,...Qn,...ai,...Ga,...si,...ui,...Hi,...oi,...ea,...Ya,...Ic,...Fa,...Fi,...aa,...Va,...ia,...yl,...pi,...ca,...da,..._c,...bl,...pa,...$a,...Za,...ra,...na,...Wa,isSafari:fo,isTouchScreen:nf,setVariable:A}};var Yv={},Pc=L`
73
73
  :host {
74
74
  display: inline-block;
75
75
  }
@@ -89,7 +89,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
89
89
  all: unset;
90
90
  position: relative;
91
91
  }
92
- `;var Ye;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change"})(Ye||(Ye={}));var be;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(be||(be={}));var of=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},rs=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},es=Symbol("registerInterval");function nf(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[es]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[es]):this.dispatchEvent(new rs)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=es,of([et()],r.prototype,"stateManager",void 0),r}var qo=class extends nf(Ft){};var Pc=Symbol.for(""),af=e=>{if(e?.r===Pc)return e?._$litStatic$},os=e=>({_$litStatic$:e,r:Pc});var Lc=new Map,ns=e=>(t,...r)=>{let n=r.length,i,a,s=[],l=[],d,p=0,h=!1;for(;p<n;){for(d=t[p];p<n&&(a=r[p],(i=af(a))!==void 0);)d+=i+t[++p],h=!0;p!==n&&l.push(a),s.push(d),p++}if(p===n&&s.push(t[n]),h){let f=s.join("$$lit$$");(t=Lc.get(f))===void 0&&(s.raw=s,Lc.set(f,t=s)),r=l}return e(t,...r)},is=ns($),qv=ns($n),Yv=ns(Bn);var Wt;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(Wt||(Wt={}));function kc(e){let t=qr[e];return L`
92
+ `;var Ye;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change"})(Ye||(Ye={}));var be;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(be||(be={}));var af=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},rs=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},es=Symbol("registerInterval");function sf(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[es]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[es]):this.dispatchEvent(new rs)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=es,af([tt()],r.prototype,"stateManager",void 0),r}var qo=class extends sf(Ft){};var Mc=Symbol.for(""),lf=e=>{if(e?.r===Mc)return e?._$litStatic$},os=e=>({_$litStatic$:e,r:Mc});var kc=new Map,ns=e=>(t,...r)=>{let n=r.length,i,a,s=[],l=[],d,p=0,h=!1;for(;p<n;){for(d=t[p];p<n&&(a=r[p],(i=lf(a))!==void 0);)d+=i+t[++p],h=!0;p!==n&&l.push(a),s.push(d),p++}if(p===n&&s.push(t[n]),h){let f=s.join("$$lit$$");(t=kc.get(f))===void 0&&(s.raw=s,kc.set(f,t=s)),r=l}return e(t,...r)},is=ns($),n0=ns($n),i0=ns(Bn);var Wt;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(Wt||(Wt={}));function Dc(e){let t=qr[e];return L`
93
93
  .ft-typography--${ne(e)} {
94
94
  font-family: ${t.fontFamily};
95
95
  font-size: ${t.fontSize};
@@ -98,7 +98,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
98
98
  line-height: ${t.lineHeight};
99
99
  text-transform: ${t.textCase};
100
100
  }
101
- `}var Dc=o.extend("--ft-typography-font-family","",F.titleFont),xe=o.extend("--ft-typography-font-family","",F.contentFont),B={fontFamily:xe,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Er={fontFamily:o.extend("--ft-typography-title-font-family","",Dc),fontSize:o.extend("--ft-typography-title-font-size","",B.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",B.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",B.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",B.textTransform,"inherit")},wr={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Dc),fontSize:o.extend("--ft-typography-title-dense-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",B.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",B.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",B.textTransform,"inherit")},Ar={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",xe),fontSize:o.extend("--ft-typography-subtitle1-font-size","",B.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",B.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",B.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",B.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",B.textTransform,"inherit")},Rr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",xe),fontSize:o.extend("--ft-typography-subtitle2-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",B.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",B.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",B.textTransform,"inherit")},Tr={fontFamily:o.extend("--ft-typography-body1-font-family","",xe),fontSize:o.extend("--ft-typography-body1-font-size","",B.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",B.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",B.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",B.textTransform,"inherit")},zt={fontFamily:o.extend("--ft-typography-body2-font-family","",xe),fontSize:o.extend("--ft-typography-body2-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",B.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",B.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",B.textTransform,"inherit")},Ir={fontFamily:o.extend("--ft-typography-caption-font-family","",xe),fontSize:o.extend("--ft-typography-caption-font-size","",B.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",B.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",B.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",B.textTransform,"inherit")},Nr={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",xe),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",B.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",B.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",B.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",B.textTransform,"inherit")},_r={fontFamily:o.extend("--ft-typography-overline-font-family","",xe),fontSize:o.extend("--ft-typography-overline-font-size","",B.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",B.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",B.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",B.textTransform,"uppercase")},ee={fontFamily:o.extend("--ft-typography-button-font-family","",xe),fontSize:o.extend("--ft-typography-button-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",B.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",B.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",B.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",B.textTransform,"uppercase")},Mc=L`
101
+ `}var $c=o.extend("--ft-typography-font-family","",F.titleFont),xe=o.extend("--ft-typography-font-family","",F.contentFont),B={fontFamily:xe,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Er={fontFamily:o.extend("--ft-typography-title-font-family","",$c),fontSize:o.extend("--ft-typography-title-font-size","",B.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",B.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",B.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",B.textTransform,"inherit")},wr={fontFamily:o.extend("--ft-typography-title-dense-font-family","",$c),fontSize:o.extend("--ft-typography-title-dense-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",B.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",B.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",B.textTransform,"inherit")},Ar={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",xe),fontSize:o.extend("--ft-typography-subtitle1-font-size","",B.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",B.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",B.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",B.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",B.textTransform,"inherit")},Rr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",xe),fontSize:o.extend("--ft-typography-subtitle2-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",B.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",B.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",B.textTransform,"inherit")},Tr={fontFamily:o.extend("--ft-typography-body1-font-family","",xe),fontSize:o.extend("--ft-typography-body1-font-size","",B.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",B.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",B.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",B.textTransform,"inherit")},zt={fontFamily:o.extend("--ft-typography-body2-font-family","",xe),fontSize:o.extend("--ft-typography-body2-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",B.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",B.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",B.textTransform,"inherit")},Ir={fontFamily:o.extend("--ft-typography-caption-font-family","",xe),fontSize:o.extend("--ft-typography-caption-font-size","",B.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",B.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",B.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",B.textTransform,"inherit")},_r={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",xe),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",B.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",B.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",B.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",B.textTransform,"inherit")},Nr={fontFamily:o.extend("--ft-typography-overline-font-family","",xe),fontSize:o.extend("--ft-typography-overline-font-size","",B.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",B.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",B.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",B.textTransform,"uppercase")},ee={fontFamily:o.extend("--ft-typography-button-font-family","",xe),fontSize:o.extend("--ft-typography-button-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",B.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",B.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",B.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",B.textTransform,"uppercase")},Bc=L`
102
102
  .ft-typography--title {
103
103
  font-family: ${Er.fontFamily};
104
104
  font-size: ${Er.fontSize};
@@ -107,7 +107,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
107
107
  line-height: ${Er.lineHeight};
108
108
  text-transform: ${Er.textTransform};
109
109
  }
110
- `,$c=L`
110
+ `,Uc=L`
111
111
  .ft-typography--title-dense {
112
112
  font-family: ${wr.fontFamily};
113
113
  font-size: ${wr.fontSize};
@@ -116,7 +116,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
116
116
  line-height: ${wr.lineHeight};
117
117
  text-transform: ${wr.textTransform};
118
118
  }
119
- `,Bc=L`
119
+ `,Fc=L`
120
120
  .ft-typography--subtitle1 {
121
121
  font-family: ${Ar.fontFamily};
122
122
  font-size: ${Ar.fontSize};
@@ -125,7 +125,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
125
125
  line-height: ${Ar.lineHeight};
126
126
  text-transform: ${Ar.textTransform};
127
127
  }
128
- `,Uc=L`
128
+ `,Hc=L`
129
129
  .ft-typography--subtitle2 {
130
130
  font-family: ${Rr.fontFamily};
131
131
  font-size: ${Rr.fontSize};
@@ -135,7 +135,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
135
135
  text-transform: ${Rr.textTransform};
136
136
  }
137
137
 
138
- `,Fc=L`
138
+ `,Wc=L`
139
139
  .ft-typography--body1 {
140
140
  font-family: ${Tr.fontFamily};
141
141
  font-size: ${Tr.fontSize};
@@ -144,7 +144,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
144
144
  line-height: ${Tr.lineHeight};
145
145
  text-transform: ${Tr.textTransform};
146
146
  }
147
- `,Hc=L`
147
+ `,zc=L`
148
148
  .ft-typography--body2 {
149
149
  font-family: ${zt.fontFamily};
150
150
  font-size: ${zt.fontSize};
@@ -153,7 +153,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
153
153
  line-height: ${zt.lineHeight};
154
154
  text-transform: ${zt.textTransform};
155
155
  }
156
- `,Wc=L`
156
+ `,jc=L`
157
157
  .ft-typography--caption {
158
158
  font-family: ${Ir.fontFamily};
159
159
  font-size: ${Ir.fontSize};
@@ -162,17 +162,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
162
162
  line-height: ${Ir.lineHeight};
163
163
  text-transform: ${Ir.textTransform};
164
164
  }
165
- `,zc=L`
165
+ `,Vc=L`
166
166
  .ft-typography--breadcrumb {
167
- font-family: ${Nr.fontFamily};
168
- font-size: ${Nr.fontSize};
169
- font-weight: ${Nr.fontWeight};
170
- letter-spacing: ${Nr.letterSpacing};
171
- line-height: ${Nr.lineHeight};
172
- text-transform: ${Nr.textTransform};
173
- }
174
- `,jc=L`
175
- .ft-typography--overline {
176
167
  font-family: ${_r.fontFamily};
177
168
  font-size: ${_r.fontSize};
178
169
  font-weight: ${_r.fontWeight};
@@ -180,7 +171,16 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
180
171
  line-height: ${_r.lineHeight};
181
172
  text-transform: ${_r.textTransform};
182
173
  }
183
- `,Vc=L`
174
+ `,Gc=L`
175
+ .ft-typography--overline {
176
+ font-family: ${Nr.fontFamily};
177
+ font-size: ${Nr.fontSize};
178
+ font-weight: ${Nr.fontWeight};
179
+ letter-spacing: ${Nr.letterSpacing};
180
+ line-height: ${Nr.lineHeight};
181
+ text-transform: ${Nr.textTransform};
182
+ }
183
+ `,Kc=L`
184
184
  .ft-typography--button {
185
185
  font-family: ${ee.fontFamily};
186
186
  font-size: ${ee.fontSize};
@@ -189,11 +189,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
189
189
  line-height: ${ee.lineHeight};
190
190
  text-transform: ${ee.textTransform};
191
191
  }
192
- `,Gc=L`
192
+ `,Zc=L`
193
193
  .ft-typography {
194
194
  vertical-align: inherit;
195
195
  }
196
- `,Kc=[Object.keys(qr).map(e=>kc(e))];var Zc=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},ht=class extends z{constructor(){super(...arguments),this.variant=Wt.body1}render(){return this.element?is`
196
+ `,qc=[Object.keys(qr).map(e=>Dc(e))];var Yc=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},ht=class extends j{constructor(){super(...arguments),this.variant=Wt.body1}render(){return this.element?is`
197
197
  <${os(this.element)}
198
198
  part="text"
199
199
  class="ft-typography ft-typography--${this.variant}">
@@ -201,7 +201,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
201
201
  </${os(this.element)}>
202
202
  `:is`
203
203
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
204
- `}};ht.styles=[Mc,$c,Bc,Uc,Fc,Hc,Wc,zc,jc,Vc,Gc,...Kc];Zc([v()],ht.prototype,"element",void 0);Zc([v()],ht.prototype,"variant",void 0);q("ft-typography")(ht);var Lr={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.external(F.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},qc=L`
204
+ `}};ht.styles=[Bc,Uc,Fc,Hc,Wc,zc,jc,Vc,Gc,Kc,Zc,...qc];Yc([v()],ht.prototype,"element",void 0);Yc([v()],ht.prototype,"variant",void 0);q("ft-typography")(ht);var Lr={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.external(F.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Xc=L`
205
205
  .ft-tooltip--container {
206
206
  display: block;
207
207
  }
@@ -230,7 +230,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
230
230
  position: relative;
231
231
  word-break: break-word;
232
232
  }
233
- `;var wt=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},ot=class extends z{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new ft,this.revealDebouncer=new ft}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return $`
233
+ `;var wt=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},ot=class extends j{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new ft,this.revealDebouncer=new ft}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return $`
234
234
  <div part="container"
235
235
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
236
236
  @mouseenter=${this.onHover}
@@ -248,7 +248,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
248
248
  </div>
249
249
  </div>
250
250
  </div>
251
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let n=this.manual;this.manual=!0;let i=this.text;this.text=t,await this.show(r),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",to(this.slottedElement,this.tooltip,this.position).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,r){return Math.max(t,Math.min(0,-r))}};ot.elementDefinitions={"ft-typography":ht};ot.styles=qc;wt([v()],ot.prototype,"text",void 0);wt([v({type:Boolean})],ot.prototype,"manual",void 0);wt([v({type:Boolean})],ot.prototype,"inline",void 0);wt([v({type:Number})],ot.prototype,"delay",void 0);wt([v()],ot.prototype,"position",void 0);wt([jn()],ot.prototype,"slotNodes",void 0);wt([at(".ft-tooltip--container")],ot.prototype,"container",void 0);wt([at(".ft-tooltip")],ot.prototype,"tooltip",void 0);wt([at(".ft-tooltip--content")],ot.prototype,"tooltipContent",void 0);wt([et()],ot.prototype,"visible",void 0);wt([or({passive:!0})],ot.prototype,"onTouch",null);wt([or({passive:!0})],ot.prototype,"onHover",null);wt([or({passive:!0})],ot.prototype,"onOut",null);wt([or({passive:!0})],ot.prototype,"onClick",null);q("ft-tooltip")(ot);var Yc=o.extend("--ft-ripple-color","",F.colorContent),R={color:Yc,backgroundColor:o.extend("--ft-ripple-background-color","",Yc),opacityContentOnSurfacePressed:o.external(F.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(F.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(F.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(F.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},Xc=o.extend("--ft-ripple-color","",F.colorPrimary),Jc={color:Xc,backgroundColor:o.extend("--ft-ripple-background-color","",Xc)},Qc=o.extend("--ft-ripple-color","",F.colorSecondary),td={color:Qc,backgroundColor:o.extend("--ft-ripple-background-color","",Qc)},ed=L`
251
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let n=this.manual;this.manual=!0;let i=this.text;this.text=t,await this.show(r),this.text=i,this.manual=n}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",to(this.slottedElement,this.tooltip,this.position).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,r){return Math.max(t,Math.min(0,-r))}};ot.elementDefinitions={"ft-typography":ht};ot.styles=Xc;wt([v()],ot.prototype,"text",void 0);wt([v({type:Boolean})],ot.prototype,"manual",void 0);wt([v({type:Boolean})],ot.prototype,"inline",void 0);wt([v({type:Number})],ot.prototype,"delay",void 0);wt([v()],ot.prototype,"position",void 0);wt([jn()],ot.prototype,"slotNodes",void 0);wt([at(".ft-tooltip--container")],ot.prototype,"container",void 0);wt([at(".ft-tooltip")],ot.prototype,"tooltip",void 0);wt([at(".ft-tooltip--content")],ot.prototype,"tooltipContent",void 0);wt([tt()],ot.prototype,"visible",void 0);wt([or({passive:!0})],ot.prototype,"onTouch",null);wt([or({passive:!0})],ot.prototype,"onHover",null);wt([or({passive:!0})],ot.prototype,"onOut",null);wt([or({passive:!0})],ot.prototype,"onClick",null);q("ft-tooltip")(ot);var Jc=o.extend("--ft-ripple-color","",F.colorContent),R={color:Jc,backgroundColor:o.extend("--ft-ripple-background-color","",Jc),opacityContentOnSurfacePressed:o.external(F.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(F.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(F.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(F.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},Qc=o.extend("--ft-ripple-color","",F.colorPrimary),td={color:Qc,backgroundColor:o.extend("--ft-ripple-background-color","",Qc)},ed=o.extend("--ft-ripple-color","",F.colorSecondary),rd={color:ed,backgroundColor:o.extend("--ft-ripple-background-color","",ed)},od=L`
252
252
  :host {
253
253
  display: contents;
254
254
  }
@@ -303,19 +303,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
303
303
  }
304
304
 
305
305
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
306
- background-color: ${td.backgroundColor};
306
+ background-color: ${rd.backgroundColor};
307
307
  }
308
308
 
309
309
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
310
- background-color: ${td.color};
310
+ background-color: ${rd.color};
311
311
  }
312
312
 
313
313
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
314
- background-color: ${Jc.backgroundColor};
314
+ background-color: ${td.backgroundColor};
315
315
  }
316
316
 
317
317
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
318
- background-color: ${Jc.color};
318
+ background-color: ${td.color};
319
319
  }
320
320
 
321
321
  .ft-ripple .ft-ripple--background {
@@ -360,7 +360,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
360
360
  opacity: ${R.opacityContentOnSurfacePressed};
361
361
  transform: translate(-50%, -50%) scale(1);
362
362
  }
363
- `;var At=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},X=class extends z{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new ft(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new ft(10),this.moveRipple=t=>{var r,n;let{x:i,y:a}=this.getCoordinates(t),s=(n=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(i!=null?i-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return $`
363
+ `;var At=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},X=class extends j{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new ft(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new ft(10),this.moveRipple=t=>{var r,n;let{x:i,y:a}=this.getCoordinates(t),s=(n=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(i!=null?i-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return $`
364
364
  <style>
365
365
  .ft-ripple .ft-ripple--effect {
366
366
  left: ${this.originX}px;
@@ -371,7 +371,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
371
371
  <div class="ft-ripple--background"></div>
372
372
  <div class="ft-ripple--effect"></div>
373
373
  </div>
374
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",n,s),t.addEventListener("touchstart",i,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",a,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",n,s),t.removeEventListener("touchstart",i,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",a,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,n=t,i,a;return r.x!=null?{x:i,y:a}=r:n.touches!=null&&(i=n.touches[0].clientX,a=n.touches[0].clientY),{x:i,y:a}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};X.elementDefinitions={};X.styles=ed;At([v({type:Boolean})],X.prototype,"primary",void 0);At([v({type:Boolean})],X.prototype,"secondary",void 0);At([v({type:Boolean})],X.prototype,"unbounded",void 0);At([v({type:Boolean})],X.prototype,"activated",void 0);At([v({type:Boolean})],X.prototype,"selected",void 0);At([v({type:Boolean})],X.prototype,"disabled",void 0);At([et()],X.prototype,"hovered",void 0);At([et()],X.prototype,"focused",void 0);At([et()],X.prototype,"pressed",void 0);At([et()],X.prototype,"rippling",void 0);At([et()],X.prototype,"originX",void 0);At([et()],X.prototype,"originY",void 0);At([at(".ft-ripple")],X.prototype,"ripple",void 0);At([at(".ft-ripple--effect")],X.prototype,"rippleEffect",void 0);q("ft-ripple")(X);var Pr;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;"})(Pr||(Pr={}));var N;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(N||(N={}));var CS=new Map([...["abw"].map(e=>[e,N.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,N.AUDIO]),...["avi"].map(e=>[e,N.AVI]),...["chm","xhs"].map(e=>[e,N.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,N.CODE]),...["csv"].map(e=>[e,N.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,N.DITA]),...["epub"].map(e=>[e,N.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,N.EXCEL]),...["flac"].map(e=>[e,N.FLAC]),...["gif"].map(e=>[e,N.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,N.GZIP]),...["html","htm","xhtml"].map(e=>[e,N.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,N.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,N.JPEG]),...["json"].map(e=>[e,N.JSON]),...["m4a","m4p"].map(e=>[e,N.M4A]),...["mov","qt"].map(e=>[e,N.MOV]),...["mp3"].map(e=>[e,N.MP3]),...["mp4","m4v"].map(e=>[e,N.MP4]),...["ogg","oga"].map(e=>[e,N.OGG]),...["pdf","ps"].map(e=>[e,N.PDF]),...["png"].map(e=>[e,N.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,N.POWERPOINT]),...["rar"].map(e=>[e,N.RAR]),...["stp"].map(e=>[e,N.STP]),...["txt","rtf","md","mdown"].map(e=>[e,N.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,N.VIDEO]),...["wav"].map(e=>[e,N.WAV]),...["wma"].map(e=>[e,N.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,N.WORD]),...["xml","xsl","rdf"].map(e=>[e,N.XML]),...["yaml","yml","x-yaml"].map(e=>[e,N.YAML]),...["zip"].map(e=>[e,N.ZIP])]);var ES={[N.ABW]:"#91ABC6",[N.AUDIO]:"#1795E3",[N.AVI]:"#E63324",[N.CHM]:"#71C3EB",[N.CODE]:"#71C3EB",[N.CSV]:"#1F7345",[N.DITA]:"#71C3EB",[N.EPUB]:"#85B926",[N.EXCEL]:"#1F7345",[N.FLAC]:"#1795E3",[N.GIF]:"#59B031",[N.GZIP]:"#F8AB36",[N.HTML]:"#71C3EB",[N.IMAGE]:"#59B031",[N.JPEG]:"#59B031",[N.JSON]:"#71C3EB",[N.M4A]:"#1795E3",[N.MOV]:"#E63324",[N.MP3]:"#1795E3",[N.MP4]:"#E63324",[N.OGG]:"#1795E3",[N.PDF]:"#E44948",[N.PNG]:"#59B031",[N.POWERPOINT]:"#B54A2B",[N.RAR]:"#F8AB36",[N.STP]:"#3764B1",[N.TEXT]:"#3162AB",[N.UNKNOWN]:"#999999",[N.VIDEO]:"#E63324",[N.WAV]:"#1795E3",[N.WMA]:"#1795E3",[N.WORD]:"#3162AB",[N.XML]:"#71C3EB",[N.YAML]:"#71C3EB",[N.ZIP]:"#F8AB36"};var dt={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},rd=[L`
374
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,n;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let n=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",n,s),t.addEventListener("touchstart",i,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",a,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",n,s),t.removeEventListener("touchstart",i,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",a,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,n=t,i,a;return r.x!=null?{x:i,y:a}=r:n.touches!=null&&(i=n.touches[0].clientX,a=n.touches[0].clientY),{x:i,y:a}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};X.elementDefinitions={};X.styles=od;At([v({type:Boolean})],X.prototype,"primary",void 0);At([v({type:Boolean})],X.prototype,"secondary",void 0);At([v({type:Boolean})],X.prototype,"unbounded",void 0);At([v({type:Boolean})],X.prototype,"activated",void 0);At([v({type:Boolean})],X.prototype,"selected",void 0);At([v({type:Boolean})],X.prototype,"disabled",void 0);At([tt()],X.prototype,"hovered",void 0);At([tt()],X.prototype,"focused",void 0);At([tt()],X.prototype,"pressed",void 0);At([tt()],X.prototype,"rippling",void 0);At([tt()],X.prototype,"originX",void 0);At([tt()],X.prototype,"originY",void 0);At([at(".ft-ripple")],X.prototype,"ripple",void 0);At([at(".ft-ripple--effect")],X.prototype,"rippleEffect",void 0);q("ft-ripple")(X);var Pr;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;"})(Pr||(Pr={}));var _;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(_||(_={}));var LS=new Map([...["abw"].map(e=>[e,_.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,_.AUDIO]),...["avi"].map(e=>[e,_.AVI]),...["chm","xhs"].map(e=>[e,_.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,_.CODE]),...["csv"].map(e=>[e,_.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,_.DITA]),...["epub"].map(e=>[e,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,_.EXCEL]),...["flac"].map(e=>[e,_.FLAC]),...["gif"].map(e=>[e,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,_.GZIP]),...["html","htm","xhtml"].map(e=>[e,_.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,_.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,_.JPEG]),...["json"].map(e=>[e,_.JSON]),...["m4a","m4p"].map(e=>[e,_.M4A]),...["mov","qt"].map(e=>[e,_.MOV]),...["mp3"].map(e=>[e,_.MP3]),...["mp4","m4v"].map(e=>[e,_.MP4]),...["ogg","oga"].map(e=>[e,_.OGG]),...["pdf","ps"].map(e=>[e,_.PDF]),...["png"].map(e=>[e,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,_.POWERPOINT]),...["rar"].map(e=>[e,_.RAR]),...["stp"].map(e=>[e,_.STP]),...["txt","rtf","md","mdown"].map(e=>[e,_.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,_.VIDEO]),...["wav"].map(e=>[e,_.WAV]),...["wma"].map(e=>[e,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,_.WORD]),...["xml","xsl","rdf"].map(e=>[e,_.XML]),...["yaml","yml","x-yaml"].map(e=>[e,_.YAML]),...["zip"].map(e=>[e,_.ZIP])]);var PS={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var dt={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},nd=[L`
375
375
  :host, i.ft-icon {
376
376
  display: inline-flex;
377
377
  align-items: center;
@@ -419,12 +419,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
419
419
  .ft-icon--material {
420
420
  font-family: ${dt.materialFontFamily}, "Material Icons", sans-serif;
421
421
  }
422
- `,he];var Rt;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Rt||(Rt={}));var ho=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},mt=class extends z{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=H}render(){let t=this.variant&&Object.values(Rt).includes(this.variant)?this.variant:Rt.fluid_topics,r=t!==Rt.material||!!this.value;return $`
422
+ `,he];var Rt;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Rt||(Rt={}));var ho=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},mt=class extends j{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=H}render(){let t=this.variant&&Object.values(Rt).includes(this.variant)?this.variant:Rt.fluid_topics,r=t!==Rt.material||!!this.value;return $`
423
423
  <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
424
424
  ${Yn(this.resolvedIcon)}
425
425
  <slot ?hidden=${r}></slot>
426
426
  </i>
427
- `}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.textContent;switch(this.variant){case Rt.file_format:this.resolvedIcon=(t=N[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case Rt.material:this.resolvedIcon=this.value||H;break;default:this.resolvedIcon=(r=Pr[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};mt.elementDefinitions={};mt.styles=rd;ho([v()],mt.prototype,"variant",void 0);ho([v()],mt.prototype,"value",void 0);ho([v({reflect:!0,attribute:"aria-hidden"})],mt.prototype,"ariaHidden",void 0);ho([et()],mt.prototype,"resolvedIcon",void 0);ho([at("slot")],mt.prototype,"slottedContent",void 0);q("ft-icon")(mt);var nt={color:o.extend("--ft-loader-color","",F.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},od=L`
427
+ `}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let n=this.value||this.textContent;switch(this.variant){case Rt.file_format:this.resolvedIcon=(t=_[n.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:n;break;case Rt.material:this.resolvedIcon=this.value||H;break;default:this.resolvedIcon=(r=Pr[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};mt.elementDefinitions={};mt.styles=nd;ho([v()],mt.prototype,"variant",void 0);ho([v()],mt.prototype,"value",void 0);ho([v({reflect:!0,attribute:"aria-hidden"})],mt.prototype,"ariaHidden",void 0);ho([tt()],mt.prototype,"resolvedIcon",void 0);ho([at("slot")],mt.prototype,"slottedContent",void 0);q("ft-icon")(mt);var nt={color:o.extend("--ft-loader-color","",F.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},id=L`
428
428
  :host {
429
429
  line-height: 0;
430
430
  }
@@ -493,7 +493,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
493
493
  transform: translate(calc(0.35 * ${nt.size}), 0);
494
494
  }
495
495
  }
496
- `;var nd=o.extend("--ft-button-color","",F.colorPrimary),st={backgroundColor:o.extend("--ft-button-background-color","",F.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",F.borderRadiusL),color:nd,fontSize:o.extend("--ft-button-font-size","",ee.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",nd),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(F.colorOpacityDisabled,"Design system")},id=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",F.colorOnPrimary)),as={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",F.colorPrimary)),color:id,rippleColor:o.extend("--ft-button-primary-ripple-color","",id)},re={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",F.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},ad=[L`
496
+ `;var ad=o.extend("--ft-button-color","",F.colorPrimary),st={backgroundColor:o.extend("--ft-button-background-color","",F.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",F.borderRadiusL),color:ad,fontSize:o.extend("--ft-button-font-size","",ee.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",ad),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(F.colorOpacityDisabled,"Design system")},sd=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",F.colorOnPrimary)),as={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",F.colorPrimary)),color:sd,rippleColor:o.extend("--ft-button-primary-ripple-color","",sd)},re={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",F.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},ld=[L`
497
497
  :host {
498
498
  display: inline-block;
499
499
  max-width: 100%;
@@ -630,14 +630,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
630
630
  ${A(nt.size,st.iconSize)};
631
631
  ${A(nt.color,"var(--ft-button-internal-color)")};
632
632
  }
633
- `,he];var Xe=class extends z{render(){return $`
633
+ `,he];var Xe=class extends j{render(){return $`
634
634
  <div class="ft-loader">
635
635
  <div></div>
636
636
  <div></div>
637
637
  <div></div>
638
638
  <div></div>
639
639
  </div>
640
- `}};Xe.styles=od;q("ft-loader")(Xe);var vt=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},it=class extends ja(z){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,n;let i=$`
640
+ `}};Xe.styles=id;q("ft-loader")(Xe);var vt=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},it=class extends ja(j){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,n;let i=$`
641
641
  <ft-ripple part="ripple"
642
642
  ?disabled=${this.isDisabled()}
643
643
  ?activated=${this.activated}
@@ -677,7 +677,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
677
677
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
678
678
  `:$`
679
679
  <slot part="icon" name="icon"></slot>
680
- `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}focusWithoutTooltip(){var t;this.setTooltipManual(!0),(t=this.button)===null||t===void 0||t.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(t,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.textContent}get textContent(){return sr(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};it.elementDefinitions={"ft-ripple":X,"ft-tooltip":ot,"ft-typography":ht,"ft-icon":mt,"ft-loader":Xe};vt([v()],it.prototype,"href",void 0);vt([v()],it.prototype,"target",void 0);vt([v()],it.prototype,"type",void 0);vt([v({type:Boolean})],it.prototype,"disabled",void 0);vt([v()],it.prototype,"label",void 0);vt([v()],it.prototype,"icon",void 0);vt([v()],it.prototype,"iconVariant",void 0);vt([v({type:Boolean})],it.prototype,"trailingIcon",void 0);vt([v({type:Boolean})],it.prototype,"loading",void 0);vt([v({attribute:"aria-label"})],it.prototype,"ariaLabel",void 0);vt([v()],it.prototype,"tooltipPosition",void 0);vt([v({type:Boolean})],it.prototype,"hideTooltip",void 0);vt([v({type:Boolean})],it.prototype,"forceTooltip",void 0);vt([v({type:Boolean})],it.prototype,"activated",void 0);vt([at(".ft-button")],it.prototype,"button",void 0);vt([at(".ft-button--label slot")],it.prototype,"slottedContent",void 0);vt([at("[part=tooltip]")],it.prototype,"tooltip",void 0);var Yo=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Dt=class extends it{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};Dt.styles=[io,ad];Yo([v({type:Boolean})],Dt.prototype,"primary",void 0);Yo([v({type:Boolean})],Dt.prototype,"outlined",void 0);Yo([v({type:Boolean})],Dt.prototype,"dense",void 0);Yo([v({type:Boolean})],Dt.prototype,"round",void 0);var sd=[L`
680
+ `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}focusWithoutTooltip(){var t;this.setTooltipManual(!0),(t=this.button)===null||t===void 0||t.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(t,r){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.textContent}get textContent(){return sr(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};it.elementDefinitions={"ft-ripple":X,"ft-tooltip":ot,"ft-typography":ht,"ft-icon":mt,"ft-loader":Xe};vt([v()],it.prototype,"href",void 0);vt([v()],it.prototype,"target",void 0);vt([v()],it.prototype,"type",void 0);vt([v({type:Boolean})],it.prototype,"disabled",void 0);vt([v()],it.prototype,"label",void 0);vt([v()],it.prototype,"icon",void 0);vt([v()],it.prototype,"iconVariant",void 0);vt([v({type:Boolean})],it.prototype,"trailingIcon",void 0);vt([v({type:Boolean})],it.prototype,"loading",void 0);vt([v({attribute:"aria-label"})],it.prototype,"ariaLabel",void 0);vt([v()],it.prototype,"tooltipPosition",void 0);vt([v({type:Boolean})],it.prototype,"hideTooltip",void 0);vt([v({type:Boolean})],it.prototype,"forceTooltip",void 0);vt([v({type:Boolean})],it.prototype,"activated",void 0);vt([at(".ft-button")],it.prototype,"button",void 0);vt([at(".ft-button--label slot")],it.prototype,"slottedContent",void 0);vt([at("[part=tooltip]")],it.prototype,"tooltip",void 0);var Yo=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Mt=class extends it{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};Mt.styles=[io,ld];Yo([v({type:Boolean})],Mt.prototype,"primary",void 0);Yo([v({type:Boolean})],Mt.prototype,"outlined",void 0);Yo([v({type:Boolean})],Mt.prototype,"dense",void 0);Yo([v({type:Boolean})],Mt.prototype,"round",void 0);var cd=[L`
681
681
  :host {
682
682
  display: inline-block;
683
683
  max-width: 100%;
@@ -1143,7 +1143,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1143
1143
  .ftds--size-small.ft-button--icon-only {
1144
1144
  width: ${g.smallIconOnlyWidth};
1145
1145
  }
1146
- `,he];var Xo=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Mt=class extends Bo(it){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=de.brand,this.iconVariant=Rt.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case gt.large:return Wt.body2medium;case gt.medium:return Wt.caption1medium;case gt.small:return Wt.caption2medium}}};Mt.styles=[io,sd];Xo([v({type:Boolean})],Mt.prototype,"primary",void 0);Xo([v({type:Boolean})],Mt.prototype,"secondary",void 0);Xo([v({type:Boolean})],Mt.prototype,"tertiary",void 0);Xo([v({type:Boolean})],Mt.prototype,"round",void 0);q("ft-button")(Dt);q("ftds-button")(Mt);var ld=o.extend("--ft-chip-color","",F.colorOnSurface),$t={backgroundColor:o.extend("--ft-chip-background-color","",F.colorSurface),color:ld,fontSize:o.extend("--ft-chip-font-size","",zt.fontSize),fontWeight:o.extend("--ft-chip-font-weight","",zt.fontWeight),iconSize:o.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:o.create("--ft-chip-border-radius","","SIZE",""),rippleColor:o.extend("--ft-chip-ripple-color","",ld),horizontalPadding:o.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:o.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:o.extend("--ft-chip-border-color","",F.colorOutline),opacityDisabled:o.external(F.colorOpacityDisabled,"Design system")},cd=o.extend("--ft-chip-highlighted-color","",o.extend("--ft-chip-color","",F.colorOnPrimary)),ss={backgroundColor:o.extend("--ft-chip-highlighted-background-color","",o.extend("--ft-chip-background-color","",F.colorPrimary)),color:cd,rippleColor:o.extend("--ft-chip-highlighted-ripple-color","",cd)},dd={horizontalPadding:o.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:o.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},pd=[he,L`
1146
+ `,he];var Xo=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Dt=class extends Bo(it){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=de.brand,this.iconVariant=Rt.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case gt.large:return Wt.body2medium;case gt.medium:return Wt.caption1medium;case gt.small:return Wt.caption2medium}}};Dt.styles=[io,cd];Xo([v({type:Boolean})],Dt.prototype,"primary",void 0);Xo([v({type:Boolean})],Dt.prototype,"secondary",void 0);Xo([v({type:Boolean})],Dt.prototype,"tertiary",void 0);Xo([v({type:Boolean})],Dt.prototype,"round",void 0);q("ft-button")(Mt);q("ftds-button")(Dt);var dd=o.extend("--ft-chip-color","",F.colorOnSurface),$t={backgroundColor:o.extend("--ft-chip-background-color","",F.colorSurface),color:dd,fontSize:o.extend("--ft-chip-font-size","",zt.fontSize),fontWeight:o.extend("--ft-chip-font-weight","",zt.fontWeight),iconSize:o.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:o.create("--ft-chip-border-radius","","SIZE",""),rippleColor:o.extend("--ft-chip-ripple-color","",dd),horizontalPadding:o.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:o.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:o.extend("--ft-chip-border-color","",F.colorOutline),opacityDisabled:o.external(F.colorOpacityDisabled,"Design system")},pd=o.extend("--ft-chip-highlighted-color","",o.extend("--ft-chip-color","",F.colorOnPrimary)),ss={backgroundColor:o.extend("--ft-chip-highlighted-background-color","",o.extend("--ft-chip-background-color","",F.colorPrimary)),color:pd,rippleColor:o.extend("--ft-chip-highlighted-ripple-color","",pd)},ud={horizontalPadding:o.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:o.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},fd=[he,L`
1147
1147
  :host {
1148
1148
  display: inline-block;
1149
1149
  max-width: 100%;
@@ -1183,8 +1183,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1183
1183
 
1184
1184
  .ft-chip--dense {
1185
1185
  --ft-chip-internal-icon-padding: 3px;
1186
- --ft-chip-internal-vertical-padding: ${dd.verticalPadding};
1187
- --ft-chip-internal-horizontal-padding: ${dd.horizontalPadding};
1186
+ --ft-chip-internal-vertical-padding: ${ud.verticalPadding};
1187
+ --ft-chip-internal-horizontal-padding: ${ud.horizontalPadding};
1188
1188
  --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
1189
1189
  }
1190
1190
 
@@ -1283,7 +1283,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1283
1283
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1284
1284
  order: -1;
1285
1285
  }
1286
- `];var Tt=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Jo=class extends CustomEvent{constructor(){super("icon-click")}},lt=class extends z{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){let t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":fo};return $`
1286
+ `];var Tt=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Jo=class extends CustomEvent{constructor(){super("icon-click")}},lt=class extends j{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){let t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":fo};return $`
1287
1287
  <div class="${Bt(t)}"
1288
1288
  aria-label="${this.getLabel()}"
1289
1289
  tabindex="${this.interactionsOnChip?0:-1}"
@@ -1310,7 +1310,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1310
1310
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1311
1311
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}" part="icon"></ft-icon>
1312
1312
  </div>
1313
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Jo))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Jo))}getLabel(){return this.label||this.textContent}get textContent(){return sr(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};lt.elementDefinitions={"ft-ripple":X,"ft-typography":ht,"ft-icon":mt,"ft-button":Dt};lt.styles=pd;Tt([v({type:Boolean})],lt.prototype,"highlighted",void 0);Tt([v({type:Boolean})],lt.prototype,"removable",void 0);Tt([v({type:Boolean})],lt.prototype,"disabled",void 0);Tt([v({type:Boolean})],lt.prototype,"clickable",void 0);Tt([v({type:Boolean})],lt.prototype,"iconClickable",void 0);Tt([v({type:Boolean})],lt.prototype,"dense",void 0);Tt([v({type:Boolean})],lt.prototype,"multiLine",void 0);Tt([v()],lt.prototype,"label",void 0);Tt([v()],lt.prototype,"iconLabel",void 0);Tt([v({type:Boolean})],lt.prototype,"hideIconTooltip",void 0);Tt([v()],lt.prototype,"icon",void 0);Tt([v()],lt.prototype,"iconVariant",void 0);Tt([v({type:Boolean})],lt.prototype,"trailingIcon",void 0);Tt([at("ft-typography slot")],lt.prototype,"slottedContent",void 0);var ud=[L`
1313
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Jo))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Jo))}getLabel(){return this.label||this.textContent}get textContent(){return sr(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};lt.elementDefinitions={"ft-ripple":X,"ft-typography":ht,"ft-icon":mt,"ft-button":Mt};lt.styles=fd;Tt([v({type:Boolean})],lt.prototype,"highlighted",void 0);Tt([v({type:Boolean})],lt.prototype,"removable",void 0);Tt([v({type:Boolean})],lt.prototype,"disabled",void 0);Tt([v({type:Boolean})],lt.prototype,"clickable",void 0);Tt([v({type:Boolean})],lt.prototype,"iconClickable",void 0);Tt([v({type:Boolean})],lt.prototype,"dense",void 0);Tt([v({type:Boolean})],lt.prototype,"multiLine",void 0);Tt([v()],lt.prototype,"label",void 0);Tt([v()],lt.prototype,"iconLabel",void 0);Tt([v({type:Boolean})],lt.prototype,"hideIconTooltip",void 0);Tt([v()],lt.prototype,"icon",void 0);Tt([v()],lt.prototype,"iconVariant",void 0);Tt([v({type:Boolean})],lt.prototype,"trailingIcon",void 0);Tt([at("ft-typography slot")],lt.prototype,"slottedContent",void 0);var hd=[L`
1314
1314
  :host {
1315
1315
  display: inline-block;
1316
1316
  max-width: 100%;
@@ -1334,93 +1334,93 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1334
1334
 
1335
1335
  /* MEDIUM VARIANT */
1336
1336
  .ftds--size-medium {
1337
- min-height: ${W.mediumMinHeight};
1338
- padding: 0 ${W.mediumHorizontalPadding};
1339
- border-radius: ${W.mediumBorderRadius};
1340
- border-width: ${W.mediumBorderWidth};
1337
+ min-height: ${z.mediumMinHeight};
1338
+ padding: 0 ${z.mediumHorizontalPadding};
1339
+ border-radius: ${z.mediumBorderRadius};
1340
+ border-width: ${z.mediumBorderWidth};
1341
1341
  border-style: solid;
1342
- gap: ${W.mediumGap};
1343
- ${A(dt.size,W.mediumIconSize)}
1342
+ gap: ${z.mediumGap};
1343
+ ${A(dt.size,z.mediumIconSize)}
1344
1344
  }
1345
1345
 
1346
1346
  .ftds--size-medium.ftds-chip--with-action {
1347
- padding-right: ${W.mediumButtonRightPadding};
1347
+ padding-right: ${z.mediumButtonRightPadding};
1348
1348
  }
1349
1349
 
1350
1350
 
1351
1351
  /* LARGE VARIANT */
1352
1352
  .ftds--size-large {
1353
- min-height: ${W.largeMinHeight};
1354
- padding: 0 ${W.largeHorizontalPadding};
1355
- border-radius: ${W.largeBorderRadius};
1356
- border-width: ${W.largeBorderWidth};
1353
+ min-height: ${z.largeMinHeight};
1354
+ padding: 0 ${z.largeHorizontalPadding};
1355
+ border-radius: ${z.largeBorderRadius};
1356
+ border-width: ${z.largeBorderWidth};
1357
1357
  border-style: solid;
1358
- gap: ${W.largeGap};
1359
- ${A(dt.size,W.largeIconSize)}
1358
+ gap: ${z.largeGap};
1359
+ ${A(dt.size,z.largeIconSize)}
1360
1360
  }
1361
1361
 
1362
1362
  .ftds--size-large.ftds-chip--with-action {
1363
- padding-right: ${W.largeButtonRightPadding};
1363
+ padding-right: ${z.largeButtonRightPadding};
1364
1364
  }
1365
1365
 
1366
1366
 
1367
1367
  /* NEUTRAL COLORS */
1368
1368
  .ftds--family-neutral {
1369
- background-color: ${W.neutralBackgroundColor};
1370
- border-color: ${W.neutralBorderColor};
1371
- color: ${W.neutralColor};
1369
+ background-color: ${z.neutralBackgroundColor};
1370
+ border-color: ${z.neutralBorderColor};
1371
+ color: ${z.neutralColor};
1372
1372
  }
1373
1373
 
1374
1374
  .ftds--family-neutral .ftds-chip--icon-container {
1375
- color: ${W.neutralIconColor};
1375
+ color: ${z.neutralIconColor};
1376
1376
  }
1377
1377
 
1378
1378
 
1379
1379
  /* INFO COLORS */
1380
1380
  .ftds--family-info {
1381
- background-color: ${W.infoBackgroundColor};
1382
- border-color: ${W.infoBorderColor};
1383
- color: ${W.infoColor};
1381
+ background-color: ${z.infoBackgroundColor};
1382
+ border-color: ${z.infoBorderColor};
1383
+ color: ${z.infoColor};
1384
1384
  }
1385
1385
 
1386
1386
  .ftds--family-info .ftds-chip--icon-container {
1387
- color: ${W.infoIconColor};
1387
+ color: ${z.infoIconColor};
1388
1388
  }
1389
1389
 
1390
1390
 
1391
1391
  /* SUCCESS COLORS */
1392
1392
  .ftds--family-success {
1393
- background-color: ${W.successBackgroundColor};
1394
- border-color: ${W.successBorderColor};
1395
- color: ${W.successColor};
1393
+ background-color: ${z.successBackgroundColor};
1394
+ border-color: ${z.successBorderColor};
1395
+ color: ${z.successColor};
1396
1396
  }
1397
1397
 
1398
1398
  .ftds--family-success .ftds-chip--icon-container {
1399
- color: ${W.successIconColor};
1399
+ color: ${z.successIconColor};
1400
1400
  }
1401
1401
 
1402
1402
 
1403
1403
  /* WARNING COLORS */
1404
1404
  .ftds--family-warning {
1405
- background-color: ${W.warningBackgroundColor};
1406
- border-color: ${W.warningBorderColor};
1407
- color: ${W.warningColor};
1405
+ background-color: ${z.warningBackgroundColor};
1406
+ border-color: ${z.warningBorderColor};
1407
+ color: ${z.warningColor};
1408
1408
  }
1409
1409
 
1410
1410
  .ftds--family-warning .ftds-chip--icon-container {
1411
- color: ${W.warningIconColor};
1411
+ color: ${z.warningIconColor};
1412
1412
  }
1413
1413
 
1414
1414
 
1415
1415
  /* ERROR COLORS */
1416
1416
  .ftds--family-error {
1417
- background-color: ${W.errorBackgroundColor};
1418
- border-color: ${W.errorBorderColor};
1419
- color: ${W.errorColor};
1417
+ background-color: ${z.errorBackgroundColor};
1418
+ border-color: ${z.errorBorderColor};
1419
+ color: ${z.errorColor};
1420
1420
  }
1421
1421
 
1422
1422
  .ftds--family-error .ftds-chip--icon-container {
1423
- color: ${W.errorIconColor};
1423
+ color: ${z.errorIconColor};
1424
1424
  }
1425
1425
  `];var kr=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},ls=class extends CustomEvent{constructor(){super("remove")}},jt=class extends oo{constructor(){super(...arguments),this.withAction=!1,this.removable=!1,this.removeButtonLabel="Remove",this.label=""}render(){let t={"ftds-chip":!0,"ftds-chip--with-action":this.removable||this.withAction,"ftds-chip--with-icon":!!this.icon,...this.getDesignSystemBaseClasses()};return $`
1426
1426
  <div class="${Bt(t)}"
@@ -1448,7 +1448,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1448
1448
  ></ftds-button>
1449
1449
  `:this.withAction?$`
1450
1450
  <slot name="action"></slot>
1451
- `:H}resolveButtonSize(){switch(this.size){case gt.large:return gt.medium;case gt.medium:case gt.small:return gt.small}}getLabel(){return this.label||this.textContent}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new ls)}typographyVariant(){switch(this.size){case gt.large:return Wt.body2medium;case gt.medium:return Wt.caption1medium;case gt.small:return Wt.caption2medium}}};jt.elementDefinitions={"ft-typography":ht,"ft-icon":mt,"ftds-button":Mt};jt.styles=ud;kr([v({type:Boolean})],jt.prototype,"withAction",void 0);kr([v({type:Boolean})],jt.prototype,"removable",void 0);kr([v()],jt.prototype,"removeButtonLabel",void 0);kr([v()],jt.prototype,"label",void 0);kr([v()],jt.prototype,"icon",void 0);kr([at("ft-typography slot")],jt.prototype,"slottedContent",void 0);q("ft-chip")(lt);q("ftds-chip")(jt);var Le={zIndex:o.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:o.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:o.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:o.extend("--ft-floating-menu-text-color","",F.colorOnSurfaceHigh),colorSurface:o.external(F.colorSurface,"Design system"),menuElevation:o.external(F.elevation02,"Design system"),borderRadiusS:o.external(F.borderRadiusS,"Design system")},Qo=L`
1451
+ `:H}resolveButtonSize(){switch(this.size){case gt.large:return gt.medium;case gt.medium:case gt.small:return gt.small}}getLabel(){return this.label||this.textContent}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new ls)}typographyVariant(){switch(this.size){case gt.large:return Wt.body2medium;case gt.medium:return Wt.caption1medium;case gt.small:return Wt.caption2medium}}};jt.elementDefinitions={"ft-typography":ht,"ft-icon":mt,"ftds-button":Dt};jt.styles=hd;kr([v({type:Boolean})],jt.prototype,"withAction",void 0);kr([v({type:Boolean})],jt.prototype,"removable",void 0);kr([v()],jt.prototype,"removeButtonLabel",void 0);kr([v()],jt.prototype,"label",void 0);kr([v()],jt.prototype,"icon",void 0);kr([at("ft-typography slot")],jt.prototype,"slottedContent",void 0);q("ft-chip")(lt);q("ftds-chip")(jt);var Le={zIndex:o.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:o.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:o.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:o.extend("--ft-floating-menu-text-color","",F.colorOnSurfaceHigh),colorSurface:o.external(F.colorSurface,"Design system"),menuElevation:o.external(F.elevation02,"Design system"),borderRadiusS:o.external(F.borderRadiusS,"Design system")},Qo=L`
1452
1452
  .ft-floating-menu {
1453
1453
  color: ${Le.textColor};
1454
1454
  display: contents;
@@ -1479,7 +1479,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1479
1479
  .ft-floating-menu--open .ft-floating-menu--options {
1480
1480
  display: block;
1481
1481
  }
1482
- `;var sf={iconColor:o.extend("--ft-floating-menu-icon-color","",F.colorOnSurfaceMedium)},fd=L`
1482
+ `;var cf={iconColor:o.extend("--ft-floating-menu-icon-color","",F.colorOnSurfaceMedium)},md=L`
1483
1483
  .ft-floating-menu-item {
1484
1484
  cursor: pointer;
1485
1485
  display: flex;
@@ -1494,7 +1494,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1494
1494
  }
1495
1495
 
1496
1496
  .ft-floating-menu-item ft-icon {
1497
- color: ${sf.iconColor};
1497
+ color: ${cf.iconColor};
1498
1498
  margin-left: 0;
1499
1499
  flex-shrink: 0;
1500
1500
  flex-grow: 0;
@@ -1509,7 +1509,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1509
1509
  word-break: break-word;
1510
1510
  hyphens: auto;
1511
1511
  }
1512
- `;var en=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},tn=class extends CustomEvent{constructor(t){super("ft-floating-menu-item-select",{detail:t,bubbles:!0,composed:!0})}},It=class extends z{constructor(){super(...arguments),this.value="",this.notFocusable=!1}render(){return $`
1512
+ `;var en=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},tn=class extends CustomEvent{constructor(t){super("ft-floating-menu-item-select",{detail:t,bubbles:!0,composed:!0})}},It=class extends j{constructor(){super(...arguments),this.value="",this.notFocusable=!1}render(){return $`
1513
1513
  <div class="ft-floating-menu-item"
1514
1514
  tabindex=${this.notFocusable?"-1":"0"}
1515
1515
  @keydown=${t=>this.onKeyDown(t)}
@@ -1522,7 +1522,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1522
1522
  <slot></slot>
1523
1523
  </ft-typography>
1524
1524
  </div>
1525
- `}onClick(t){this.dispatchEvent(new tn(this.value))}onKeyDown(t){(t.key=="Enter"||t.key==" ")&&(t.preventDefault(),this.dispatchEvent(new tn(this.value)))}};It.elementDefinitions={"ft-icon":mt,"ft-ripple":X,"ft-typography":ht};It.styles=fd;en([v()],It.prototype,"iconVariant",void 0);en([v()],It.prototype,"icon",void 0);en([v()],It.prototype,"value",void 0);en([v({type:Boolean})],It.prototype,"notFocusable",void 0);var pt=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};var rn=class extends CustomEvent{constructor(t){super("select",{detail:t})}},J=class extends z{constructor(){super(...arguments),this.menuOpen=!1,this.forceMenuOpen=!1,this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1,this.iconVariant=Rt.fluid_topics,this.icon="SHORTCUT_MENU",this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.closeMenuMatchers=[],this.hideOptionsOnClickOutside=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container)}}render(){let t={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return $`
1525
+ `}onClick(t){this.dispatchEvent(new tn(this.value))}onKeyDown(t){(t.key=="Enter"||t.key==" ")&&(t.preventDefault(),this.dispatchEvent(new tn(this.value)))}};It.elementDefinitions={"ft-icon":mt,"ft-ripple":X,"ft-typography":ht};It.styles=md;en([v()],It.prototype,"iconVariant",void 0);en([v()],It.prototype,"icon",void 0);en([v()],It.prototype,"value",void 0);en([v({type:Boolean})],It.prototype,"notFocusable",void 0);var pt=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};var rn=class extends CustomEvent{constructor(t){super("select",{detail:t})}},J=class extends j{constructor(){super(...arguments),this.menuOpen=!1,this.forceMenuOpen=!1,this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1,this.iconVariant=Rt.fluid_topics,this.icon="SHORTCUT_MENU",this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.closeMenuMatchers=[],this.hideOptionsOnClickOutside=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container)}}render(){let t={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return $`
1526
1526
  <div part="container" class="${Bt(t)}">
1527
1527
  <slot name="toggle"
1528
1528
  part="toggle"
@@ -1557,12 +1557,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1557
1557
  </div>
1558
1558
  </div>
1559
1559
  </div>
1560
- `}toggleMenu(){this.menuOpen=!this.menuOpen}openMenu(){this.menuOpen=!0}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onItemSelect(t){t.stopPropagation(),this.dispatchEvent(new rn(t.detail)),this.closeMenu()}onContentClick(t){ci(t,this.closeMenuMatchers,this)&&this.closeMenu()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptionsOnClickOutside)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("menuOpen")&&(this.menuOpen?(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper(),document.addEventListener("click",this.hideOptionsOnClickOutside)):document.removeEventListener("click",this.hideOptionsOnClickOutside))}async positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";let t=this.customToggle.length>0?this.customToggle[0]:this.actionButton,{x:r,y:n}=await to(t,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${r}px`,this.menuWrapper.style.top=`${n}px`,this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment+"-center"}}};J.elementDefinitions={"ft-floating-menu-item":It};pt([et()],J.prototype,"menuOpen",void 0);pt([et()],J.prototype,"forceMenuOpen",void 0);pt([at(".ft-floating-menu")],J.prototype,"container",void 0);pt([at(".ft-floating-menu--wrapper")],J.prototype,"menuWrapper",void 0);pt([at("#actions-button")],J.prototype,"actionButton",void 0);pt([zn({slot:"toggle"})],J.prototype,"customToggle",void 0);pt([v({type:Boolean})],J.prototype,"primary",void 0);pt([v({type:Boolean})],J.prototype,"secondary",void 0);pt([v({type:Boolean})],J.prototype,"tertiary",void 0);pt([v({type:Boolean})],J.prototype,"neutral",void 0);pt([v({type:Boolean})],J.prototype,"small",void 0);pt([v()],J.prototype,"label",void 0);pt([v()],J.prototype,"tooltipPosition",void 0);pt([v()],J.prototype,"iconVariant",void 0);pt([v()],J.prototype,"icon",void 0);pt([v()],J.prototype,"text",void 0);pt([v()],J.prototype,"horizontalAlignment",void 0);pt([v()],J.prototype,"verticalAlignment",void 0);pt([v({type:Boolean})],J.prototype,"disabled",void 0);pt([Ut([])],J.prototype,"closeMenuMatchers",void 0);var Pe=class extends J{};Pe.elementDefinitions={"ft-or-ftds-button":Dt};Pe.styles=Qo;var hd=L`
1560
+ `}toggleMenu(){this.menuOpen=!this.menuOpen}openMenu(){this.menuOpen=!0}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onItemSelect(t){t.stopPropagation(),this.dispatchEvent(new rn(t.detail)),this.closeMenu()}onContentClick(t){ci(t,this.closeMenuMatchers,this)&&this.closeMenu()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptionsOnClickOutside)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("menuOpen")&&(this.menuOpen?(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper(),document.addEventListener("click",this.hideOptionsOnClickOutside)):document.removeEventListener("click",this.hideOptionsOnClickOutside))}async positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";let t=this.customToggle.length>0?this.customToggle[0]:this.actionButton,{x:r,y:n}=await to(t,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${r}px`,this.menuWrapper.style.top=`${n}px`,this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment+"-center"}}};J.elementDefinitions={"ft-floating-menu-item":It};pt([tt()],J.prototype,"menuOpen",void 0);pt([tt()],J.prototype,"forceMenuOpen",void 0);pt([at(".ft-floating-menu")],J.prototype,"container",void 0);pt([at(".ft-floating-menu--wrapper")],J.prototype,"menuWrapper",void 0);pt([at("#actions-button")],J.prototype,"actionButton",void 0);pt([zn({slot:"toggle"})],J.prototype,"customToggle",void 0);pt([v({type:Boolean})],J.prototype,"primary",void 0);pt([v({type:Boolean})],J.prototype,"secondary",void 0);pt([v({type:Boolean})],J.prototype,"tertiary",void 0);pt([v({type:Boolean})],J.prototype,"neutral",void 0);pt([v({type:Boolean})],J.prototype,"small",void 0);pt([v()],J.prototype,"label",void 0);pt([v()],J.prototype,"tooltipPosition",void 0);pt([v()],J.prototype,"iconVariant",void 0);pt([v()],J.prototype,"icon",void 0);pt([v()],J.prototype,"text",void 0);pt([v()],J.prototype,"horizontalAlignment",void 0);pt([v()],J.prototype,"verticalAlignment",void 0);pt([v({type:Boolean})],J.prototype,"disabled",void 0);pt([Ut([])],J.prototype,"closeMenuMatchers",void 0);var Pe=class extends J{};Pe.elementDefinitions={"ft-or-ftds-button":Mt};Pe.styles=Qo;var yd=L`
1561
1561
  .ft-floating-menu--wrapper {
1562
1562
  position: fixed;
1563
1563
  z-index: 1;
1564
1564
  }
1565
- `;var Dr=class extends J{};Dr.elementDefinitions={"ft-or-ftds-button":Mt};Dr.styles=[Qo,hd];var lf={color:o.extend("--ft-floating-menu-label-color","",F.colorOnSurfaceMedium)},md=L`
1565
+ `;var Mr=class extends J{};Mr.elementDefinitions={"ft-or-ftds-button":Dt};Mr.styles=[Qo,yd];var df={color:o.extend("--ft-floating-menu-label-color","",F.colorOnSurfaceMedium)},gd=L`
1566
1566
  .ft-floating-menu-label {
1567
1567
  padding: 4px 8px;
1568
1568
  }
@@ -1573,31 +1573,31 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1573
1573
  width: max-content;
1574
1574
  text-overflow: ellipsis;
1575
1575
  overflow: hidden;
1576
- color: ${lf.color}
1576
+ color: ${df.color}
1577
1577
  }
1578
- `;var ke=class extends z{render(){return $`
1578
+ `;var ke=class extends j{render(){return $`
1579
1579
  <div class="ft-floating-menu-label">
1580
1580
  <ft-typography variant="caption">
1581
1581
  <slot></slot>
1582
1582
  </ft-typography>
1583
1583
  </div>
1584
- `}};ke.elementDefinitions={"ft-typography":ht};ke.styles=md;q("ft-floating-menu")(Pe);q("ftds-floating-menu")(Dr);q("ft-floating-menu-item")(It);q("ft-floating-menu-label")(ke);function cf(e){var t,r,n,i,a;return((i=(r=(t=e.map)===null||t===void 0?void 0:t.openMode)!==null&&r!==void 0?r:(n=e.topic)===null||n===void 0?void 0:n.openMode)!==null&&i!==void 0?i:(a=e.document)===null||a===void 0?void 0:a.openMode)===Zo.EXTERNAL}function cs(e){var t,r,n,i,a;if(cf(e))return(i=(r=(t=e.map)===null||t===void 0?void 0:t.originUrl)!==null&&r!==void 0?r:(n=e.topic)===null||n===void 0?void 0:n.originUrl)!==null&&i!==void 0?i:(a=e.document)===null||a===void 0?void 0:a.originUrl;switch(e.type){case Sr.MAP:return e.map.readerUrl;case Sr.DOCUMENT:return e.document.viewerUrl;case Sr.TOPIC:return e.topic.readerUrl}return""}var yd=L`
1585
- `;var df="ft-app-info",ds=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},pf={session:(e,t)=>{Lt(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>M.dispatchEvent(new ds(t.payload)),0))}},M=ye.get({name:df,reducers:pf,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Je=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=M.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=M.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var mo=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Je.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Je.await()}};var oe=class extends mo{constructor(t=!0,r){var n;super(r);let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Xt,this.cache=t?i.commonCache:new Xt}clearCache(){this.cache.clearAll()}};var gd,uf=Symbol("clearAfterUnitTest"),on=class extends oe{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[gd]=()=>{this.defaultMessages={},this.cache=new Xt,this.listeners={}},this.currentUiLocale=M.getState().uiLocale,M.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=M.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};Lt(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let a=t.toLowerCase(),s=this.resolveContext(a);return new ao((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t))}catch(i){!(i instanceof se)&&r&&console.error(i)}return r&&await this.notify(t),n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(r=>_o(0).then(()=>r()).catch(()=>null)))}};gd=uf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends on{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends on{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Mr=window.FluidTopicsI18nService,nn=window.FluidTopicsCustomI18nService;var Ct=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},ct=class extends z{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=()=>Je.get(),this.messageContexts=[],this.cache=new Xt,this.cleanSessionDebouncer=new ft}render(){return $`
1584
+ `}};ke.elementDefinitions={"ft-typography":ht};ke.styles=gd;q("ft-floating-menu")(Pe);q("ftds-floating-menu")(Mr);q("ft-floating-menu-item")(It);q("ft-floating-menu-label")(ke);function pf(e){var t,r,n,i,a;return((i=(r=(t=e.map)===null||t===void 0?void 0:t.openMode)!==null&&r!==void 0?r:(n=e.topic)===null||n===void 0?void 0:n.openMode)!==null&&i!==void 0?i:(a=e.document)===null||a===void 0?void 0:a.openMode)===Zo.EXTERNAL}function cs(e){var t,r,n,i,a;if(pf(e))return(i=(r=(t=e.map)===null||t===void 0?void 0:t.originUrl)!==null&&r!==void 0?r:(n=e.topic)===null||n===void 0?void 0:n.originUrl)!==null&&i!==void 0?i:(a=e.document)===null||a===void 0?void 0:a.originUrl;switch(e.type){case Sr.MAP:return e.map.readerUrl;case Sr.DOCUMENT:return e.document.viewerUrl;case Sr.TOPIC:return e.topic.readerUrl}return""}var bd=L`
1585
+ `;var uf="ft-app-info",ds=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},ff={session:(e,t)=>{Lt(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>D.dispatchEvent(new ds(t.payload)),0))}},D=ye.get({name:uf,reducers:ff,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Je=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:n}=D.getState(),i=t??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(t){return new Promise(r=>{let n=e.get(t);if(n)r(n);else{let i=D.subscribe(()=>{n=e.get(t),n&&(i(),r(n))})}})}};var mo=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Je.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Je.await()}};var oe=class extends mo{constructor(t=!0,r){var n;super(r);let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Xt,this.cache=t?i.commonCache:new Xt}clearCache(){this.cache.clearAll()}};var xd,hf=Symbol("clearAfterUnitTest"),on=class extends oe{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[xd]=()=>{this.defaultMessages={},this.cache=new Xt,this.listeners={}},this.currentUiLocale=D.getState().uiLocale,D.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=D.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var n;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[t])!==null&&n!==void 0?n:{},...r};Lt(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,n;return this.fetchContext(t),(n=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(t,r){let n=t.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(t,r,...n){var i;let a=t.toLowerCase(),s=this.resolveContext(a);return new ao((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(t){let r=!this.cache.has(t),n;try{n=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t))}catch(i){!(i instanceof se)&&r&&console.error(i)}return r&&await this.notify(t),n}subscribe(t,r){var n;return t=t.toLowerCase(),this.listeners[t]=(n=this.listeners[t])!==null&&n!==void 0?n:new Set,this.listeners[t].add(r),()=>{var i;return(i=this.listeners[t])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(r=>No(0).then(()=>r()).catch(()=>null)))}};xd=hf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends on{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends on{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Dr=window.FluidTopicsI18nService,nn=window.FluidTopicsCustomI18nService;var Ct=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},ct=class extends j{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Je.get(),this.messageContexts=[],this.cache=new Xt,this.cleanSessionDebouncer=new ft}render(){return $`
1586
1586
  <slot></slot>
1587
- `}update(t){var r,n,i,a,s;super.update(t),t.has("baseUrl")&&(M.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&M.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&M.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&M.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&M.actions.noCustom(this.noCustom),t.has("editorMode")&&M.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&M.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&M.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Mr.addContext(l)),t.has("openExternalDocumentInNewTab")&&M.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&M.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&M.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(M.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),M.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),M.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};ct.elementDefinitions={};ct.styles=yd;Ct([v()],ct.prototype,"baseUrl",void 0);Ct([v()],ct.prototype,"apiIntegrationIdentifier",void 0);Ct([v()],ct.prototype,"uiLocale",void 0);Ct([Ut(null)],ct.prototype,"availableUiLocales",void 0);Ct([Ut(null)],ct.prototype,"metadataConfiguration",void 0);Ct([v({type:Boolean})],ct.prototype,"editorMode",void 0);Ct([v({type:Boolean})],ct.prototype,"noCustom",void 0);Ct([v({type:Boolean})],ct.prototype,"openExternalDocumentInNewTab",void 0);Ct([v({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],ct.prototype,"noCustomComponent",void 0);Ct([v({type:Boolean})],ct.prototype,"withManualResources",void 0);Ct([v({type:Boolean})],ct.prototype,"navigatorOnline",void 0);Ct([v({type:Boolean})],ct.prototype,"forcedOffline",void 0);Ct([v({type:Object})],ct.prototype,"apiProvider",void 0);Ct([Ut([])],ct.prototype,"messageContexts",void 0);Ct([Ut(void 0)],ct.prototype,"session",void 0);Ct([et()],ct.prototype,"localesConfiguration",void 0);var an=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};function bd(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(M)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>qe.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return an([v({type:Boolean})],t.prototype,"useLongDateFormat",void 0),an([v({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),an([bt({store:M.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),an([bt({store:M.name})],t.prototype,"uiLocale",void 0),t}var sn=class extends oe{async listMySearches(){let{session:t}=M.getState();return ge(t,tt.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var ln=class extends oe{async listMyBookmarks(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var ff="ft-user-assets",cn=ye.get({name:ff,initialState:{savedSearches:void 0,bookmarks:void 0}}),ps=class{constructor(){this.currentSession=M.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ln,this.savedSearchesService=new sn,M.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=M.getState();Lt((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),cn.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),cn.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();cn.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;cn.actions.bookmarks(r)}}},xd=new ps;var us=class{addCommand(t,r=!1){M.commands.add(t,r)}consumeCommand(t){return M.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new us;var fs=class{highlightHtml(t,r,n){la(t,r,n)}};window.FluidTopicsHighlightHtmlService=new fs;var hs=class{isDate(t){var r,n,i,a;return(a=(i=((n=(r=M.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(t,r){var n,i,a;return qe.format(t,(n=r?.locale)!==null&&n!==void 0?n:M.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new hs;var yo=class{static get(t,r){var n,i,a,s;let l=M.getState(),{lang:d,region:p}=(i=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Or(l.baseUrl,(s=(a=window.FluidTopicsClientConfiguration)===null||a===void 0?void 0:a.predefinedSorts)!==null&&s!==void 0?s:{},t??20,l.searchInAllLanguagesAllowed,r??`${d}-${p}`)}};var ms=class{urlToSearchRequest(t){return yo.get().parse(t)}searchRequestToUrl(t){return yo.get().serialize(t)}};window.FluidTopicsUrlService=new ms;var Qe=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Qe.eventName="change";var ys=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},vd=new ys;var dn=class e extends le{static build(){return new e(window.history,vd,()=>window.location,!1)}constructor(t,r,n,i){var a,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(a=t.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Lt(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Qe(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[a,s,l])=>{let d=r(),p={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(i,[p,s,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t,r=!1){var n,i,a;let s={...this.buildCurrentState(),...t,index:this.currentIndex,title:(n=t?.title)!==null&&n!==void 0?n:this.currentState.title},l=r?(i=t?.majorState)!==null&&i!==void 0?i:this.currentState.majorState:(a=this.currentState.majorState)!==null&&a!==void 0?a:t?.majorState;l!=null&&(s.majorState=l),this.setCurrentState(s)}addHistoryChangeListener(t){this.addEventListener(Qe.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Qe.eventName,t)}currentItem(){return Zr(this.currentState)}back(){let t=this.previousMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return Zr(this.states[this.previousMajorPosition()])}previousMajorPosition(){let t=this.currentIndex;for(;t>0&&!this.isMajorState(t);)t--;return this.previousExistingPosition(t)}forward(){let t=this.nextMajorPosition();t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){return Zr(this.states[this.nextMajorPosition()])}nextMajorPosition(){let t=this.currentIndex;do t++;while(t<this.states.length&&!this.isMajorState(t));do t++;while(t<this.states.length&&!this.isMajorState(t));return this.previousExistingPosition(t)}previousExistingPosition(t){let r=t;do r--;while(r>0&&!this.hasState(r));return r}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isMajorState(t){var r,n;return this.hasState(t)&&((n=(r=this.states[t])===null||r===void 0?void 0:r.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=dn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});q("ft-app-context")(ct);function Sd(e){return e.match(/^[\w-]+\.[\w-]+$/)}var hf=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Od=Symbol("i18nAttributes"),Cd=Symbol("i18nListAttributes"),bo=Symbol("i18nProperties"),pn=Symbol("i18nContexts"),go=Symbol("i18nUnsubs");function fn(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?nn:Mr}i18n(a){var s;this.hasI18nContext(a.context)||this.addI18nContext(a.context,void 0,a.custom);let l=(s=a.args)!==null&&s!==void 0?s:a.argsProvider?a.argsProvider(this):[];return this.getI18nService(a.custom).resolveMessage(a.context,a.key,...l)}customI18n(a,s){if(Sd(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,p=(h,f,m)=>m?.context&&m.key&&a(h,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,...h})}:m;(s=this[Od])===null||s===void 0||s.forEach((h,f)=>d[f]=p(h,f,d[f])),(l=this[Cd])===null||l===void 0||l.forEach((h,f)=>{var m;return d[f]=(m=d[f])===null||m===void 0?void 0:m.map(b=>p(h,f,b))})}updateI18nProperties(a){var s;(s=this[bo])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[pn].set(d,{isCustomContext:l}),this[go].has(d)||this[go].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[pn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[pn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[go].forEach(a=>a()),this[go].clear()}}return t=pn,r=go,hf([v({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var Ed=class extends fn(z){},un=class extends fn(Ft){};var wd=L`
1588
- `;var xo=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Zt=class extends un{constructor(){super(),this.editorMode=!1,this.addStore(M)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":H:$`
1587
+ `}update(t){var r,n,i,a,s;super.update(t),t.has("baseUrl")&&(D.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&D.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&D.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&D.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&D.actions.noCustom(this.noCustom),t.has("editorMode")&&D.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&D.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&D.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Dr.addContext(l)),t.has("openExternalDocumentInNewTab")&&D.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&D.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&D.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(D.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),D.actions.availableUiLocales((i=(n=this.localesConfiguration)===null||n===void 0?void 0:n.availableUiLocales)!==null&&i!==void 0?i:[]),D.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};ct.elementDefinitions={};ct.styles=bd;Ct([v()],ct.prototype,"baseUrl",void 0);Ct([v()],ct.prototype,"apiIntegrationIdentifier",void 0);Ct([v()],ct.prototype,"uiLocale",void 0);Ct([Ut(null)],ct.prototype,"availableUiLocales",void 0);Ct([Ut(null)],ct.prototype,"metadataConfiguration",void 0);Ct([v({type:Boolean})],ct.prototype,"editorMode",void 0);Ct([v({type:Boolean})],ct.prototype,"noCustom",void 0);Ct([v({type:Boolean})],ct.prototype,"openExternalDocumentInNewTab",void 0);Ct([v({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],ct.prototype,"noCustomComponent",void 0);Ct([v({type:Boolean})],ct.prototype,"withManualResources",void 0);Ct([v({type:Boolean})],ct.prototype,"navigatorOnline",void 0);Ct([v({type:Boolean})],ct.prototype,"forcedOffline",void 0);Ct([v({type:Object})],ct.prototype,"apiProvider",void 0);Ct([Ut([])],ct.prototype,"messageContexts",void 0);Ct([Ut(void 0)],ct.prototype,"session",void 0);Ct([tt()],ct.prototype,"localesConfiguration",void 0);var an=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};function vd(e){class t extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(D)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>qe.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return an([v({type:Boolean})],t.prototype,"useLongDateFormat",void 0),an([v({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),an([bt({store:D.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],t.prototype,"metadataDescriptors",void 0),an([bt({store:D.name})],t.prototype,"uiLocale",void 0),t}var sn=class extends oe{async listMySearches(){let{session:t}=D.getState();return ge(t,et.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var ln=class extends oe{async listMyBookmarks(){let t=D.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var mf="ft-user-assets",cn=ye.get({name:mf,initialState:{savedSearches:void 0,bookmarks:void 0}}),ps=class{constructor(){this.currentSession=D.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ln,this.savedSearchesService=new sn,D.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=D.getState();Lt((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),cn.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),cn.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();cn.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;cn.actions.bookmarks(r)}}},Sd=new ps;var us=class{addCommand(t,r=!1){D.commands.add(t,r)}consumeCommand(t){return D.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new us;var fs=class{highlightHtml(t,r,n){la(t,r,n)}};window.FluidTopicsHighlightHtmlService=new fs;var hs=class{isDate(t){var r,n,i,a;return(a=(i=((n=(r=D.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===t))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(t,r){var n,i,a;return qe.format(t,(n=r?.locale)!==null&&n!==void 0?n:D.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new hs;var yo=class{static get(t,r){var n,i,a,s;let l=D.getState(),{lang:d,region:p}=(i=(n=l.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&i!==void 0?i:{lang:"en",region:"US"};return new Or(l.baseUrl,(s=(a=window.FluidTopicsClientConfiguration)===null||a===void 0?void 0:a.predefinedSorts)!==null&&s!==void 0?s:{},t??20,l.searchInAllLanguagesAllowed,r??`${d}-${p}`)}};var ms=class{urlToSearchRequest(t){return yo.get().parse(t)}searchRequestToUrl(t){return yo.get().serialize(t)}};window.FluidTopicsUrlService=new ms;var Qe=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};Qe.eventName="change";var ys=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},Od=new ys;var dn=class e extends le{static build(){return new e(window.history,Od,()=>window.location,!1)}constructor(t,r,n,i){var a,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(a=t.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(t,r=!1){let n=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Lt(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Qe(this.currentItem())),0)}installProxies(){let t=r=>(n,i,[a,s,l])=>{let d=r(),p={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};n.apply(i,[p,s,l]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t,r=!1){var n,i,a;let s={...this.buildCurrentState(),...t,index:this.currentIndex,title:(n=t?.title)!==null&&n!==void 0?n:this.currentState.title},l=r?(i=t?.majorState)!==null&&i!==void 0?i:this.currentState.majorState:(a=this.currentState.majorState)!==null&&a!==void 0?a:t?.majorState;l!=null&&(s.majorState=l),this.setCurrentState(s)}addHistoryChangeListener(t){this.addEventListener(Qe.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(Qe.eventName,t)}currentItem(){return Zr(this.currentState)}back(){let t=this.previousMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return Zr(this.states[this.previousMajorPosition()])}previousMajorPosition(){let t=this.currentIndex;for(;t>0&&!this.isMajorState(t);)t--;return this.previousExistingPosition(t)}forward(){let t=this.nextMajorPosition();t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){return Zr(this.states[this.nextMajorPosition()])}nextMajorPosition(){let t=this.currentIndex;do t++;while(t<this.states.length&&!this.isMajorState(t));do t++;while(t<this.states.length&&!this.isMajorState(t));return this.previousExistingPosition(t)}previousExistingPosition(t){let r=t;do r--;while(r>0&&!this.hasState(r));return r}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isMajorState(t){var r,n;return this.hasState(t)&&((n=(r=this.states[t])===null||r===void 0?void 0:r.majorState)!==null&&n!==void 0?n:!0)}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=dn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});q("ft-app-context")(ct);function Cd(e){return e.match(/^[\w-]+\.[\w-]+$/)}var yf=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Ed=Symbol("i18nAttributes"),wd=Symbol("i18nListAttributes"),bo=Symbol("i18nProperties"),pn=Symbol("i18nContexts"),go=Symbol("i18nUnsubs");function fn(e){var t,r;class n extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?nn:Dr}i18n(a){var s;this.hasI18nContext(a.context)||this.addI18nContext(a.context,void 0,a.custom);let l=(s=a.args)!==null&&s!==void 0?s:a.argsProvider?a.argsProvider(this):[];return this.getI18nService(a.custom).resolveMessage(a.context,a.key,...l)}customI18n(a,s){if(Cd(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var p;return((p=d?.context)===null||p===void 0?void 0:p.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,p=(h,f,m)=>m?.context&&m.key&&a(h,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,...h})}:m;(s=this[Ed])===null||s===void 0||s.forEach((h,f)=>d[f]=p(h,f,d[f])),(l=this[wd])===null||l===void 0||l.forEach((h,f)=>{var m;return d[f]=(m=d[f])===null||m===void 0?void 0:m.map(b=>p(h,f,b))})}updateI18nProperties(a){var s;(s=this[bo])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[pn].set(d,{isCustomContext:l}),this[go].has(d)||this[go].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[pn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[pn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[go].forEach(a=>a()),this[go].clear()}}return t=pn,r=go,yf([v({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}var Ad=class extends fn(j){},un=class extends fn(Ft){};var Rd=L`
1588
+ `;var xo=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Zt=class extends un{constructor(){super(),this.editorMode=!1,this.addStore(D)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":H:$`
1589
1589
  <span class="ft-i18n">
1590
1590
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
1591
1591
  </span>
1592
- `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Zt.elementDefinitions={};Zt.styles=wd;xo([bt()],Zt.prototype,"editorMode",void 0);xo([v()],Zt.prototype,"context",void 0);xo([v()],Zt.prototype,"key",void 0);xo([Ut([])],Zt.prototype,"args",void 0);xo([v()],Zt.prototype,"defaultMessage",void 0);var hn=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?nn:Mr}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let a=i;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...a)=>this.service.resolveMessage(this.name,i,...a)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)})}};var Ad=(e,t)=>(r,n)=>{var i,a;r.constructor.createProperty(n,t??{attribute:!1,type:String});let s={...e,key:(i=e.key)!==null&&i!==void 0?i:n};r[bo]=(a=r[bo])!==null&&a!==void 0?a:new Map,r[bo].set(n,s)};q("ft-i18n")(Zt);var gs=hn.build("designedReaderMapMetadata");var mf={setTranslationDestinationLanguage:(e,t)=>{e.translation.destinationLanguage=t.payload},setTranslationSourceLanguage:(e,t)=>{e.translation.sourceLanguage=t.payload},setTranslationProfileId:(e,t)=>{e.translation.profileId=t.payload},setTranslationLoading:(e,t)=>{e.translation.isLoading=t.payload},setTranslationError:(e,t)=>{e.translation.isError=t.payload},setTopicsRating:(e,t)=>{for(let r in t.payload)e.topicsRating[r]=t.payload[r]}},Rd=e=>ye.get({name:"ft-reader-"+e,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}},reducers:mf});var bs=class{constructor(t,r){this.mapId=t,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(t,r,n){return t.flatMap(i=>{var a;return i.pageConfiguration&&this.registerPage(this.buildPage(i,n)),i.tocId==null?this.extractPagesToc(i.children,r,n):[{tocId:i.tocId,title:(a=i.title)!==null&&a!==void 0?a:"",untranslatedTitle:i.untranslatedTitle,depth:r,children:this.extractPagesToc(i.children,r+1,i.tocId)}]})}convertNodes(t,r,n){return t.flatMap(i=>{var a,s,l;if(i.tocId==null)return[...this.convertSectionNodes((a=i.pageToc)!==null&&a!==void 0?a:[],r,i.tocId),...this.convertNodes(i.children,r,i.tocId)];let d=(s=i.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:i.tocId,contentId:i.contentId,title:i.title,untranslatedTitle:i.untranslatedTitle,hasRating:i.hasRating,origin:i.origin,prettyUrl:d,depth:r,parentTocId:n,children:[]};this.register(p);let h=this.convertSectionNodes((l=i.pageToc)!==null&&l!==void 0?l:[],r+1,i.tocId),f=this.convertNodes(i.children,r+1,p.tocId);return p.children=[...h,...f],[p]})}convertSectionNodes(t,r,n){return t.flatMap(i=>{var a;let s=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...i,prettyUrl:s,depth:r,parentTocId:n,children:[]};return this.register(l),l.children=this.convertSectionNodes(i.children,r+1,i.tocId),[l]})}buildPage(t,r){var n,i,a,s,l,d;let p={number:this.pages.length+1,title:(n=t.title)!==null&&n!==void 0?n:"",untranslatedTitle:t.untranslatedTitle,rootTocId:(i=t.tocId)!==null&&i!==void 0?i:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(m=>this.nodeByTocId[m.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(m,b)=>(b?p.topics:p.hiddenTopics).push(m),f=(l=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return p.breadcrumb.forEach((m,b)=>{h(m,f[b])}),t.tocId&&h(t.tocId,t.pageConfiguration.isVisible),p.topics.push(...this.tocIds((d=t.pageToc)!==null&&d!==void 0?d:[])),p}registerPage(t){for(let r of[...t.topics,...t.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=t);this.pages.push(t)}tocIds(t){return t.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(t){let r=[t.tocId];for(;t?.parentTocId;)r.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return r}register(t){t.prettyUrl&&(this.nodeByUrl[t.prettyUrl]==null?this.nodeByUrl[t.prettyUrl]=t:this.duplicatedPrettyUrls.add(t.prettyUrl)),this.nodeByUrl[`${this.mapId}/${t.tocId}`]=t,this.nodeByTocId[t.tocId]=t}},mn=class{convertPaginatedToc(t,r){return new bs(t,r).build()}};var yn=class extends oe{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,r,n){super(!1,r),this.converter=t,this._mapId=n,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(r=>this.converter.convertPaginatedToc(t,r)))),this.cache.register("ratingSummary",()=>{var t,r;return ge((r=(t=M.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(i=>this.fetchMapRating(i)):Promise.resolve()})}clear(){this.cache.clearAll()}makeCacheKey(t,r){return t+(r?"-destinationLanguage-"+r?.destinationLanguage:"")}getMap(t){return this.cache.get(this.makeCacheKey("map",t),()=>this.fetchMap(this.mapId,t))}getMapNow(t){return this.cache.getNow(this.makeCacheKey("map",t))}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(t){return this.cache.get(this.makeCacheKey("enrichedToc",t),()=>this.fetchPages(this.mapId,t).then(r=>this.converter.convertPaginatedToc(this.mapId,r)))}getEnrichedTocNow(t){return this.cache.getNow(this.makeCacheKey("enrichedToc",t))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(t){return(await this.getEnrichedToc(t)).toc}async getPagesToc(t){return(await this.getEnrichedToc(t)).pagesToc}async getTranslationError(t){return(await this.getEnrichedToc(t)).translationError}async getTocNode(t,r){return(await this.getEnrichedToc(r)).nodeByTocId[t]}getTocNodeNow(t,r){var n;return(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.nodeByTocId[t]}getTocNodeNowByUrl(t,r){var n,i;let a=this.getMapNow(r);return a?.prettyUrl==t||`${a?.id}/root`===t?(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.toc[0]:(i=this.getEnrichedTocNow(r))===null||i===void 0?void 0:i.nodeByUrl[t]}async getPage(t,r){let n=await this.getEnrichedToc(r);return n.pages[t-1]||n.pages[0]}async getPageByTocId(t,r){let n=await this.getEnrichedToc(r);return n.pageByTocId[t]||n.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getTranslatedTopicContent(t,r){return this.cache.get(this.makeCacheKey("translated-topic-content-"+t.tocId,r),()=>this.fetchTranslatedTopicHTMLContent(t,r))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(t,r){return this.cache.get("document-relatives-"+t+"-"+r.join("-"),()=>this.fetchRelativesForDocument(t,r))}getRelativesForTopicInMap(t,r,n){return this.cache.get("topic-relatives-"+[t,r,...n].join("-"),()=>this.fetchRelativesForTopicInMap(t,r,n))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true&locationValue=reader`)}getLink(t,r,n){let i=this.getNavigationData(t,r,n),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(t,r,n,i){var a,s;t=t||"root";let l=this.getEnrichedTocNow(i),d=l?.pageByTocId[t],p=l?.nodeByTocId[t],h=p?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(a=p?.title)!==null&&a!==void 0?a:"",untranslatedTopicTitle:p?.untranslatedTitle,page:r&&d&&d.number!==r?r:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(s=l?.duplicatedPrettyUrls.has(h??""))!==null&&s!==void 0?s:!1,section:n}}async getAccurateNavigationData(t,r,n,i){return await this.getEnrichedToc(i),this.getNavigationData(t,r,n,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(r=>{var n;return r?{type:r.topics.type,rating:(n=r.topics)===null||n===void 0?void 0:n.ratings.find(i=>i.tocId===t)}:void 0})}rateMap(t,r){return this.makeRateMapRequest(t,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,r){return this.makeMapFeedbackRequest(t,r)}rateTopic(t,r,n){return this.makeRateTopicRequest(t,r,n).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=M.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,r,n){return this.makeTopicFeedbackRequest(t,r,n)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t,r){let n=this.getTocNodeNow(t,r),i=[{tocId:n.tocId,title:n.title,untranslatedTitle:n.untranslatedTitle}],a=this.getTocNodeNow(n.parentTocId,r);for(;a;)i.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,r);return i}isFeatureAccessible(t,{session:r}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case be.FEEDBACK:return ge(r??[],tt.FEEDBACK_USER);case be.RATING:return ge(r??[],tt.RATING_USER);case be.PRINT:return ge(r??[],tt.PRINT_USER);case be.BOOKMARK:return!!r?.sessionAuthenticated;case be.COLLECTIONS:return ge(r??[],tt.COLLECTION_USER);case be.PERSONAL_BOOKS:return ge(r??[],tt.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var gn=class e extends yn{static async build(t){return new e(new mn,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t,r){let n=await this.api.getMap(t,r);return this.fingerprint=n.fingerprint,n}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t,r){return await this.getMap(r),this.api.getPages(t,this.fingerprint,r)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(t,r){return this.api.getTranslatedTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint,r)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,r){let n={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(n)}fetchRelativesForTopicInMap(t,r,n){let i={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:n}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[t]}}],sort:[],facets:[]};return this.api.search(i)}makeMapFeedbackRequest(t,r){return this.api.sendMapFeedback(this.mapId,t,r)}makeRateMapRequest(t,r){return this.api.rateMap(this.mapId,t,r)}makeRateTopicRequest(t,r,n){return this.api.rateTopic(this.mapId,t,r,n)}makeTopicFeedbackRequest(t,r,n){return this.api.sendTopicFeedback(this.mapId,t,r,n)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var bn=class e{static build(t,r){return new e(Rd(t.trim()||"context"),r??gn.build)}loaded(){return li(()=>this._loaded)}constructor(t,r,n){this.store=t,this.clusteringHelperProvider=n,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new ft(10),this.initService(r)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setRenderedTopics(t){this.store.actions.renderedTopics(t)}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return Gr(()=>this.service)}async navigateToTopic(t,r,n){await this.loaded();let i=await this.awaitService(),a=await(n!=null?i.getPage(n,this.getTranslationSettings()):i.getPageByTocId(t??"root",this.getTranslationSettings()));this.store.actions.currentPage(a);let s=this.resolveValidNonRootTocId(t,a);this.store.actions.scrollTarget({tocId:s,section:r}),this.store.getState().visibleTopics[0]!==s&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(t,r){var n,i,a;let s=(n=t==="root"?void 0:t)!==null&&n!==void 0?n:r.rootTocId;return r.topics.includes(s)?s:(a=(i=r.topics[0])!==null&&i!==void 0?i:r.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){await this.loaded();let n=await(await this.awaitService()).getPage(t,this.getTranslationSettings());this.store.actions.currentPage(n)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var t;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(t){var r,n,i,a,s,l;try{t&&this.setTranslationLoading(!0);let d=p=>{throw t&&this.setTranslationError(!0),p};await Promise.all([(r=this.service)===null||r===void 0?void 0:r.getConfiguration().then(p=>this.store.actions.configuration(p)),(n=this.service)===null||n===void 0?void 0:n.getMap(t).then(p=>this.store.actions.map(p)).catch(d),(i=this.service)===null||i===void 0?void 0:i.getToc(t).then(p=>this.store.actions.toc(p)).catch(d),(a=this.service)===null||a===void 0?void 0:a.getPagesToc(t).then(p=>this.store.actions.pagesToc(p)).catch(d),(s=this.service)===null||s===void 0?void 0:s.getPaginationConfiguration().then(p=>this.store.actions.paginationConfiguration(p)).catch(d),(l=this.service)===null||l===void 0?void 0:l.getTranslationError(t).then(p=>this.setTranslationError(p))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,t&&this.setTranslationLoading(!1)}catch(d){this.errorHandler&&!(d instanceof se)&&this.errorHandler(d)}}fetchRelatives(){var t,r,n;let i=(t=this.store.getState().map)===null||t===void 0?void 0:t.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?(r=this.service)===null||r===void 0||r.getRelativesForDocument((n=this.store.getState().configuration)===null||n===void 0?void 0:n.relativePivotMetadata,i).then(a=>{let s=a.results.flatMap(l=>l.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(Ye.clusteringHelperCreated))}createClusteringHelper(){var t,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let n=this.store.getState().relatives;if(n){let i=n.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(r=(t=M.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&r!==void 0?r:[];return new He(n,i,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var r,n,i;await this.loaded();let a=await Gr(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((i=(n=(r=d?.results)===null||r===void 0?void 0:r[0])===null||n===void 0?void 0:n.entries)===null||i===void 0)&&i[0]){let p=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}async setTranslationDestinationLanguage(t){this.store.actions.setTranslationDestinationLanguage(t),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(t){this.store.actions.setTranslationSourceLanguage(t),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(t){this.store.actions.setTranslationProfileId(t)}async setTranslationLoading(t){this.store.actions.setTranslationLoading(t)}async setTranslationError(t){this.store.actions.setTranslationError(t)}getTranslationSettings(){var t;let r=this.store.getState();return r.translation.profileId&&r.translation.destinationLanguage?{profileId:r.translation.profileId,destinationLanguage:r.translation.destinationLanguage.code,sourceLanguage:(t=r.map)===null||t===void 0?void 0:t.lang}:void 0}async fetchMapRating(){var t;this.store.actions.mapRating(await((t=this.service)===null||t===void 0?void 0:t.getMapRating()))}async fetchTopicRating(t){var r;let n=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(t));n&&this.store.actions.setTopicsRating({[t]:n})}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}getAccurateNavigationData(t,r,n){return this.service.getAccurateNavigationData(t,r?.number,n?.section,this.getTranslationSettings())}buildBreadcrumb(t){var r;return(r=this.service)===null||r===void 0?void 0:r.buildBreadcrumb(t,this.getTranslationSettings())}fetchTopicContent(t){var r,n,i=this.getTranslationSettings();return i?(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(t,i).then(a=>(a.isTranslationError&&this.setTranslationError(!0),a.content)):(n=this.service)===null||n===void 0?void 0:n.getTopicContent(t)}getTocNode(t){var r;return(r=this.service)===null||r===void 0?void 0:r.getTocNode(t,this.getTranslationSettings())}getPage(t){var r;return(r=this.service)===null||r===void 0?void 0:r.getPage(t,this.getTranslationSettings())}onMapAttachmentsUpdate(){var t;(t=this.service)===null||t===void 0||t.clearMapAttachments(),this.store.dispatchEvent(new Event(Ye.mapAttachmentsUpdate))}};var Td=L`
1593
- `;var xn=class extends CustomEvent{constructor(t,r){super("ft-reader-map-loaded",{detail:{map:t,toc:r}})}},vn=class extends CustomEvent{constructor(t,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},Sn=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},On=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},Cn=class extends Event{constructor(){super("ft-reader-map-not-found")}},En=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},wn=class extends Event{constructor(){super("ft-reader-map-forbidden")}},An=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Rn=class{constructor(t){this.stateManager=t}searchInDocument(t){this.stateManager.setSearchInDocumentQuery(t??"")}};var Nt=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},yf=e=>t=>+(t??"NaN")>0?+t:e,yt=class extends Ft{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new ft(5),this.navigationDebouncer=new ft(10),this.mapLoadedEventDebouncer=new ft(50),this.addStore(M)}render(){return $`
1592
+ `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(n=>t.has(n))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Zt.elementDefinitions={};Zt.styles=Rd;xo([bt()],Zt.prototype,"editorMode",void 0);xo([v()],Zt.prototype,"context",void 0);xo([v()],Zt.prototype,"key",void 0);xo([Ut([])],Zt.prototype,"args",void 0);xo([v()],Zt.prototype,"defaultMessage",void 0);var hn=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?nn:Dr}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let a=i;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...a)=>this.service.resolveMessage(this.name,i,...a)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)})}};var Td=(e,t)=>(r,n)=>{var i,a;r.constructor.createProperty(n,t??{attribute:!1,type:String});let s={...e,key:(i=e.key)!==null&&i!==void 0?i:n};r[bo]=(a=r[bo])!==null&&a!==void 0?a:new Map,r[bo].set(n,s)};q("ft-i18n")(Zt);var gs=hn.build("designedReaderMapMetadata");var gf={setTranslationDestinationLanguage:(e,t)=>{e.translation.destinationLanguage=t.payload},setTranslationSourceLanguage:(e,t)=>{e.translation.sourceLanguage=t.payload},setTranslationProfileId:(e,t)=>{e.translation.profileId=t.payload},setTranslationLoading:(e,t)=>{e.translation.isLoading=t.payload},setTranslationError:(e,t)=>{e.translation.isError=t.payload},setTopicsRating:(e,t)=>{for(let r in t.payload)e.topicsRating[r]=t.payload[r]}},Id=e=>ye.get({name:"ft-reader-"+e,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}},reducers:gf});var bs=class{constructor(t,r){this.mapId=t,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(t,r,n){return t.flatMap(i=>{var a;return i.pageConfiguration&&this.registerPage(this.buildPage(i,n)),i.tocId==null?this.extractPagesToc(i.children,r,n):[{tocId:i.tocId,title:(a=i.title)!==null&&a!==void 0?a:"",untranslatedTitle:i.untranslatedTitle,depth:r,children:this.extractPagesToc(i.children,r+1,i.tocId)}]})}convertNodes(t,r,n){return t.flatMap(i=>{var a,s,l;if(i.tocId==null)return[...this.convertSectionNodes((a=i.pageToc)!==null&&a!==void 0?a:[],r,i.tocId),...this.convertNodes(i.children,r,i.tocId)];let d=(s=i.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:i.tocId,contentId:i.contentId,title:i.title,untranslatedTitle:i.untranslatedTitle,hasRating:i.hasRating,origin:i.origin,prettyUrl:d,depth:r,parentTocId:n,children:[]};this.register(p);let h=this.convertSectionNodes((l=i.pageToc)!==null&&l!==void 0?l:[],r+1,i.tocId),f=this.convertNodes(i.children,r+1,p.tocId);return p.children=[...h,...f],[p]})}convertSectionNodes(t,r,n){return t.flatMap(i=>{var a;let s=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...i,prettyUrl:s,depth:r,parentTocId:n,children:[]};return this.register(l),l.children=this.convertSectionNodes(i.children,r+1,i.tocId),[l]})}buildPage(t,r){var n,i,a,s,l,d;let p={number:this.pages.length+1,title:(n=t.title)!==null&&n!==void 0?n:"",untranslatedTitle:t.untranslatedTitle,rootTocId:(i=t.tocId)!==null&&i!==void 0?i:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(m=>this.nodeByTocId[m.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(m,b)=>(b?p.topics:p.hiddenTopics).push(m),f=(l=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return p.breadcrumb.forEach((m,b)=>{h(m,f[b])}),t.tocId&&h(t.tocId,t.pageConfiguration.isVisible),p.topics.push(...this.tocIds((d=t.pageToc)!==null&&d!==void 0?d:[])),p}registerPage(t){for(let r of[...t.topics,...t.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=t);this.pages.push(t)}tocIds(t){return t.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(t){let r=[t.tocId];for(;t?.parentTocId;)r.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return r}register(t){t.prettyUrl&&(this.nodeByUrl[t.prettyUrl]==null?this.nodeByUrl[t.prettyUrl]=t:this.duplicatedPrettyUrls.add(t.prettyUrl)),this.nodeByUrl[`${this.mapId}/${t.tocId}`]=t,this.nodeByTocId[t.tocId]=t}},mn=class{convertPaginatedToc(t,r){return new bs(t,r).build()}};var yn=class extends oe{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,r,n){super(!1,r),this.converter=t,this._mapId=n,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(r=>this.converter.convertPaginatedToc(t,r)))),this.cache.register("ratingSummary",()=>{var t,r;return ge((r=(t=D.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(i=>this.fetchMapRating(i)):Promise.resolve()})}clear(){this.cache.clearAll()}makeCacheKey(t,r){return t+(r?"-destinationLanguage-"+r?.destinationLanguage:"")}getMap(t){return this.cache.get(this.makeCacheKey("map",t),()=>this.fetchMap(this.mapId,t))}getMapNow(t){return this.cache.getNow(this.makeCacheKey("map",t))}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(t){return this.cache.get(this.makeCacheKey("enrichedToc",t),()=>this.fetchPages(this.mapId,t).then(r=>this.converter.convertPaginatedToc(this.mapId,r)))}getEnrichedTocNow(t){return this.cache.getNow(this.makeCacheKey("enrichedToc",t))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(t){return(await this.getEnrichedToc(t)).toc}async getPagesToc(t){return(await this.getEnrichedToc(t)).pagesToc}async getTranslationError(t){return(await this.getEnrichedToc(t)).translationError}async getTocNode(t,r){return(await this.getEnrichedToc(r)).nodeByTocId[t]}getTocNodeNow(t,r){var n;return(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.nodeByTocId[t]}getTocNodeNowByUrl(t,r){var n,i;let a=this.getMapNow(r);return a?.prettyUrl==t||`${a?.id}/root`===t?(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.toc[0]:(i=this.getEnrichedTocNow(r))===null||i===void 0?void 0:i.nodeByUrl[t]}async getPage(t,r){let n=await this.getEnrichedToc(r);return n.pages[t-1]||n.pages[0]}async getPageByTocId(t,r){let n=await this.getEnrichedToc(r);return n.pageByTocId[t]||n.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getTranslatedTopicContent(t,r){return this.cache.get(this.makeCacheKey("translated-topic-content-"+t.tocId,r),()=>this.fetchTranslatedTopicHTMLContent(t,r))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(t,r){return this.cache.get("document-relatives-"+t+"-"+r.join("-"),()=>this.fetchRelativesForDocument(t,r))}getRelativesForTopicInMap(t,r,n){return this.cache.get("topic-relatives-"+[t,r,...n].join("-"),()=>this.fetchRelativesForTopicInMap(t,r,n))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true&locationValue=reader`)}getLink(t,r,n){let i=this.getNavigationData(t,r,n),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(t,r,n,i){var a,s;t=t||"root";let l=this.getEnrichedTocNow(i),d=l?.pageByTocId[t],p=l?.nodeByTocId[t],h=p?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(a=p?.title)!==null&&a!==void 0?a:"",untranslatedTopicTitle:p?.untranslatedTitle,page:r&&d&&d.number!==r?r:void 0,prettyUrl:h?.replace(/^r\//,""),prettyUrlDuplicated:(s=l?.duplicatedPrettyUrls.has(h??""))!==null&&s!==void 0?s:!1,section:n}}async getAccurateNavigationData(t,r,n,i){return await this.getEnrichedToc(i),this.getNavigationData(t,r,n,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(r=>{var n;return r?{type:r.topics.type,rating:(n=r.topics)===null||n===void 0?void 0:n.ratings.find(i=>i.tocId===t)}:void 0})}rateMap(t,r){return this.makeRateMapRequest(t,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,r){return this.makeMapFeedbackRequest(t,r)}rateTopic(t,r,n){return this.makeRateTopicRequest(t,r,n).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=D.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,r,n){return this.makeTopicFeedbackRequest(t,r,n)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t,r){let n=this.getTocNodeNow(t,r),i=[{tocId:n.tocId,title:n.title,untranslatedTitle:n.untranslatedTitle}],a=this.getTocNodeNow(n.parentTocId,r);for(;a;)i.unshift({tocId:a.tocId,title:a.title,untranslatedTitle:a.untranslatedTitle}),a=this.getTocNodeNow(a.parentTocId,r);return i}isFeatureAccessible(t,{session:r}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case be.FEEDBACK:return ge(r??[],et.FEEDBACK_USER);case be.RATING:return ge(r??[],et.RATING_USER);case be.PRINT:return ge(r??[],et.PRINT_USER);case be.BOOKMARK:return!!r?.sessionAuthenticated;case be.COLLECTIONS:return ge(r??[],et.COLLECTION_USER);case be.PERSONAL_BOOKS:return ge(r??[],et.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var gn=class e extends yn{static async build(t){return new e(new mn,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t,r){let n=await this.api.getMap(t,r);return this.fingerprint=n.fingerprint,n}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t,r){return await this.getMap(r),this.api.getPages(t,this.fingerprint,r)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(t,r){return this.api.getTranslatedTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint,r)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,r){let n={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(n)}fetchRelativesForTopicInMap(t,r,n){let i={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:n}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[t]}}],sort:[],facets:[]};return this.api.search(i)}makeMapFeedbackRequest(t,r){return this.api.sendMapFeedback(this.mapId,t,r)}makeRateMapRequest(t,r){return this.api.rateMap(this.mapId,t,r)}makeRateTopicRequest(t,r,n){return this.api.rateTopic(this.mapId,t,r,n)}makeTopicFeedbackRequest(t,r,n){return this.api.sendTopicFeedback(this.mapId,t,r,n)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var bn=class e{static build(t,r){return new e(Id(t.trim()||"context"),r??gn.build)}loaded(){return li(()=>this._loaded)}constructor(t,r,n){this.store=t,this.clusteringHelperProvider=n,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new ft(10),this.initService(r)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setRenderedTopics(t){this.store.actions.renderedTopics(t)}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return Gr(()=>this.service)}async navigateToTopic(t,r,n){await this.loaded();let i=await this.awaitService(),a=await(n!=null?i.getPage(n,this.getTranslationSettings()):i.getPageByTocId(t??"root",this.getTranslationSettings()));this.store.actions.currentPage(a);let s=this.resolveValidNonRootTocId(t,a);this.store.actions.scrollTarget({tocId:s,section:r}),this.store.getState().visibleTopics[0]!==s&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(t,r){var n,i,a;let s=(n=t==="root"?void 0:t)!==null&&n!==void 0?n:r.rootTocId;return r.topics.includes(s)?s:(a=(i=r.topics[0])!==null&&i!==void 0?i:r.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){await this.loaded();let n=await(await this.awaitService()).getPage(t,this.getTranslationSettings());this.store.actions.currentPage(n)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var t;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(t){var r,n,i,a,s,l;try{t&&this.setTranslationLoading(!0);let d=p=>{throw t&&this.setTranslationError(!0),p};await Promise.all([(r=this.service)===null||r===void 0?void 0:r.getConfiguration().then(p=>this.store.actions.configuration(p)),(n=this.service)===null||n===void 0?void 0:n.getMap(t).then(p=>this.store.actions.map(p)).catch(d),(i=this.service)===null||i===void 0?void 0:i.getToc(t).then(p=>this.store.actions.toc(p)).catch(d),(a=this.service)===null||a===void 0?void 0:a.getPagesToc(t).then(p=>this.store.actions.pagesToc(p)).catch(d),(s=this.service)===null||s===void 0?void 0:s.getPaginationConfiguration().then(p=>this.store.actions.paginationConfiguration(p)).catch(d),(l=this.service)===null||l===void 0?void 0:l.getTranslationError(t).then(p=>this.setTranslationError(p))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,t&&this.setTranslationLoading(!1)}catch(d){this.errorHandler&&!(d instanceof se)&&this.errorHandler(d)}}fetchRelatives(){var t,r,n;let i=(t=this.store.getState().map)===null||t===void 0?void 0:t.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?(r=this.service)===null||r===void 0||r.getRelativesForDocument((n=this.store.getState().configuration)===null||n===void 0?void 0:n.relativePivotMetadata,i).then(a=>{let s=a.results.flatMap(l=>l.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(Ye.clusteringHelperCreated))}createClusteringHelper(){var t,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let n=this.store.getState().relatives;if(n){let i=n.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(r=(t=D.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&r!==void 0?r:[];return new He(n,i,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var r,n,i;await this.loaded();let a=await Gr(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((i=(n=(r=d?.results)===null||r===void 0?void 0:r[0])===null||n===void 0?void 0:n.entries)===null||i===void 0)&&i[0]){let p=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}async setTranslationDestinationLanguage(t){this.store.actions.setTranslationDestinationLanguage(t),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(t){this.store.actions.setTranslationSourceLanguage(t),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(t){this.store.actions.setTranslationProfileId(t)}async setTranslationLoading(t){this.store.actions.setTranslationLoading(t)}async setTranslationError(t){this.store.actions.setTranslationError(t)}getTranslationSettings(){var t;let r=this.store.getState();return r.translation.profileId&&r.translation.destinationLanguage?{profileId:r.translation.profileId,destinationLanguage:r.translation.destinationLanguage.code,sourceLanguage:(t=r.map)===null||t===void 0?void 0:t.lang}:void 0}async fetchMapRating(){var t;this.store.actions.mapRating(await((t=this.service)===null||t===void 0?void 0:t.getMapRating()))}async fetchTopicRating(t){var r;let n=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(t));n&&this.store.actions.setTopicsRating({[t]:n})}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}getAccurateNavigationData(t,r,n){return this.service.getAccurateNavigationData(t,r?.number,n?.section,this.getTranslationSettings())}buildBreadcrumb(t){var r;return(r=this.service)===null||r===void 0?void 0:r.buildBreadcrumb(t,this.getTranslationSettings())}fetchTopicContent(t){var r,n,i=this.getTranslationSettings();return i?(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(t,i).then(a=>(a.isTranslationError&&this.setTranslationError(!0),a.content)):(n=this.service)===null||n===void 0?void 0:n.getTopicContent(t)}getTocNode(t){var r;return(r=this.service)===null||r===void 0?void 0:r.getTocNode(t,this.getTranslationSettings())}getPage(t){var r;return(r=this.service)===null||r===void 0?void 0:r.getPage(t,this.getTranslationSettings())}onMapAttachmentsUpdate(){var t;(t=this.service)===null||t===void 0||t.clearMapAttachments(),this.store.dispatchEvent(new Event(Ye.mapAttachmentsUpdate))}};var _d=L`
1593
+ `;var xn=class extends CustomEvent{constructor(t,r){super("ft-reader-map-loaded",{detail:{map:t,toc:r}})}},vn=class extends CustomEvent{constructor(t,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},Sn=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},On=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},Cn=class extends Event{constructor(){super("ft-reader-map-not-found")}},En=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},wn=class extends Event{constructor(){super("ft-reader-map-forbidden")}},An=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Rn=class{constructor(t){this.stateManager=t}searchInDocument(t){this.stateManager.setSearchInDocumentQuery(t??"")}};var _t=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},bf=e=>t=>+(t??"NaN")>0?+t:e,yt=class extends Ft{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new ft(5),this.navigationDebouncer=new ft(10),this.mapLoadedEventDebouncer=new ft(50),this.addStore(D)}render(){return $`
1594
1594
  ${this.importStyleIfNeeded()}
1595
1595
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1596
1596
  `}importStyleIfNeeded(){var t,r;let n=(t=this.stateManager.service)===null||t===void 0?void 0:t.themeStylesheet();return!n||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?H:$`
1597
1597
  <style>
1598
1598
  @import "${n}"
1599
1599
  </style>
1600
- `}get stateManager(){return this._stateManager==null&&(this._stateManager=bn.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let r=t.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("href",r),document.head.append(n)}window.FluidTopicsReaderService=new Rn(this.stateManager)})}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>t.has(r))&&this.mapId&&this.navigateToTarget(),t.has("session")&&this.reload()}contentAvailableCallback(t){var r,n;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let i=t.get("scrollTarget");i?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(i.tocId,this.currentPage,i).then(a=>this.dispatchEvent(new Sn(a))))}(t.has("visibleTopics")||t.has("scrollTarget"))&&((n=this.scrollTarget)===null||n===void 0?void 0:n.tocId)==null&&Promise.all(this.visibleTopics.map(i=>this.stateManager.getAccurateNavigationData(i,this.currentPage))).then(i=>{let a=i.filter(s=>s!=null&&s.topicTitle!=="").map(s=>({tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(s.tocId)}));this.dispatchEvent(new vn(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new An),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)}),this.tocId&&!this.section&&(this.stateManager.store.commands.clear(/^focus-topic-/),this.stateManager.store.commands.add({type:`focus-topic-${this.tocId}`}))}registerComponent(t){t.stopPropagation();let r=t.composedPath()[0];this.register(r)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let r=t;r.status===401?this.dispatchEvent(new En):r.status===403?this.dispatchEvent(new wn):r.status===404?this.dispatchEvent(new Cn):this.dispatchEvent(new On(t))}reloadBookmarks(){xd.reloadBookmarks()}async reloadRating(){var t,r;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new xn(this.map,this.toc))})}};yt.styles=Td;Nt([bt({store:M.name})],yt.prototype,"baseUrl",void 0);Nt([bt({store:M.name})],yt.prototype,"session",void 0);Nt([v()],yt.prototype,"mapId",void 0);Nt([v()],yt.prototype,"tocId",void 0);Nt([v()],yt.prototype,"section",void 0);Nt([v()],yt.prototype,"topicPivot",void 0);Nt([v()],yt.prototype,"searchInDocumentQuery",void 0);Nt([v({type:Number,converter:{fromAttribute:yf()}})],yt.prototype,"page",void 0);Nt([bt({store:"reader"})],yt.prototype,"map",void 0);Nt([bt({store:"reader"})],yt.prototype,"toc",void 0);Nt([bt({store:"reader"})],yt.prototype,"visibleTopics",void 0);Nt([bt({store:"reader"})],yt.prototype,"currentPage",void 0);Nt([bt({store:"reader"})],yt.prototype,"scrollTarget",void 0);Nt([v({attribute:!1})],yt.prototype,"readerServiceProvider",void 0);q("ft-reader-context")(yt);var _t=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},ut=class extends bd(fn(qo)){constructor(){super(),this.multiLine=!1,this.useForSwitchingToRelatives=!1,this.displayLabel=!1,this.hierarchicalValueTruncatingLevel=3,this.forceTooltip=!1,this.editorMode=!1,this.relatives=[],this.noValueMessage="No value",this.addI18nContext(gs)}setReaderStateManager(t){super.setReaderStateManager(t),this.key&&this.useForSwitchingToRelatives&&t.registerMetadataForSwitchToRelatives(this.key)}updateRelatives(){var t,r,n,i;this.useForSwitchingToRelatives&&this.key?this.relatives=(i=(r=(t=this.stateManager)===null||t===void 0?void 0:t.clusteringHelper)===null||r===void 0?void 0:r.computeClustersItemsForMetadata(this.key,((n=this.map)===null||n===void 0?void 0:n.lang)||"en",this.noValueMessage,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.key)))!==null&&i!==void 0?i:[]:this.relatives=[]}render(){return $`
1600
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=bn.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let r=t.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("href",r),document.head.append(n)}window.FluidTopicsReaderService=new Rn(this.stateManager)})}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>t.has(r))&&this.mapId&&this.navigateToTarget(),t.has("session")&&this.reload()}contentAvailableCallback(t){var r,n;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let i=t.get("scrollTarget");i?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(i.tocId,this.currentPage,i).then(a=>this.dispatchEvent(new Sn(a))))}(t.has("visibleTopics")||t.has("scrollTarget"))&&((n=this.scrollTarget)===null||n===void 0?void 0:n.tocId)==null&&Promise.all(this.visibleTopics.map(i=>this.stateManager.getAccurateNavigationData(i,this.currentPage))).then(i=>{let a=i.filter(s=>s!=null&&s.topicTitle!=="").map(s=>({tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(s.tocId)}));this.dispatchEvent(new vn(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new An),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)}),this.tocId&&!this.section&&(this.stateManager.store.commands.clear(/^focus-topic-/),this.stateManager.store.commands.add({type:`focus-topic-${this.tocId}`}))}registerComponent(t){t.stopPropagation();let r=t.composedPath()[0];this.register(r)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let r=t;r.status===401?this.dispatchEvent(new En):r.status===403?this.dispatchEvent(new wn):r.status===404?this.dispatchEvent(new Cn):this.dispatchEvent(new On(t))}reloadBookmarks(){Sd.reloadBookmarks()}async reloadRating(){var t,r;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new xn(this.map,this.toc))})}};yt.styles=_d;_t([bt({store:D.name})],yt.prototype,"baseUrl",void 0);_t([bt({store:D.name})],yt.prototype,"session",void 0);_t([v()],yt.prototype,"mapId",void 0);_t([v()],yt.prototype,"tocId",void 0);_t([v()],yt.prototype,"section",void 0);_t([v()],yt.prototype,"topicPivot",void 0);_t([v()],yt.prototype,"searchInDocumentQuery",void 0);_t([v({type:Number,converter:{fromAttribute:bf()}})],yt.prototype,"page",void 0);_t([bt({store:"reader"})],yt.prototype,"map",void 0);_t([bt({store:"reader"})],yt.prototype,"toc",void 0);_t([bt({store:"reader"})],yt.prototype,"visibleTopics",void 0);_t([bt({store:"reader"})],yt.prototype,"currentPage",void 0);_t([bt({store:"reader"})],yt.prototype,"scrollTarget",void 0);_t([v({attribute:!1})],yt.prototype,"readerServiceProvider",void 0);q("ft-reader-context")(yt);var Nt=function(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},ut=class extends vd(fn(qo)){constructor(){super(),this.multiLine=!1,this.useForSwitchingToRelatives=!1,this.displayLabel=!1,this.hierarchicalValueTruncatingLevel=3,this.forceTooltip=!1,this.editorMode=!1,this.relatives=[],this.noValueMessage="No value",this.addI18nContext(gs)}setReaderStateManager(t){super.setReaderStateManager(t),this.key&&this.useForSwitchingToRelatives&&t.registerMetadataForSwitchToRelatives(this.key)}updateRelatives(){var t,r,n,i;this.useForSwitchingToRelatives&&this.key?this.relatives=(i=(r=(t=this.stateManager)===null||t===void 0?void 0:t.clusteringHelper)===null||r===void 0?void 0:r.computeClustersItemsForMetadata(this.key,((n=this.map)===null||n===void 0?void 0:n.lang)||"en",this.noValueMessage,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.key)))!==null&&i!==void 0?i:[]:this.relatives=[]}render(){return $`
1601
1601
  ${this.useForSwitchingToRelatives&&this.relatives.length>0?this.renderSwitchToRelatives():this.renderChip()}
1602
1602
  ${this.hideIfEmpty()}
1603
1603
  `}renderSwitchToRelatives(){return $`
@@ -1646,7 +1646,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
1646
1646
  display: none !important;
1647
1647
  }
1648
1648
  </style>
1649
- `:H}addTopicPivotParam(t,r){var n,i;let a=this.stateManager.store.getState().visibleTopics[0];if(a&&r.type=="MAP"){t.stopPropagation(),t.preventDefault();let s=(n=this.service)===null||n===void 0?void 0:n.getTocNodeNow(a);(i=this.service)===null||i===void 0||i.getTopicInfo(s).then(l=>{let d=l?.metadata.find(f=>f.key==this.relativeTopicPivotMetadata),p=new URL(cs(r));d&&d.values.forEach(f=>p.searchParams.append("topicPivot",f));let h=document.createElement("a");h.href=p.toString(),(t.ctrlKey||t.metaKey)&&(h.target="_blank"),this.append(h),h.click()})}}update(t){var r,n,i,a;super.update(t),t.has("key")&&this.useForSwitchingToRelatives&&(t.get("key")&&((r=this.stateManager)===null||r===void 0||r.unregisterMetadataForSwitchToRelatives(t.get("key"))),this.key&&((n=this.stateManager)===null||n===void 0||n.registerMetadataForSwitchToRelatives(this.key))),t.has("useForSwitchingToRelatives")&&this.key&&(this.useForSwitchingToRelatives?(i=this.stateManager)===null||i===void 0||i.registerMetadataForSwitchToRelatives(this.key):(a=this.stateManager)===null||a===void 0||a.unregisterMetadataForSwitchToRelatives(this.key)),(t.has("metadata")||t.has("hierarchicalValueTruncatingLevel")||this.dateFormatOptionsChanged(t))&&(this.flatMetadata=this.metadata?He.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0)}get metadataLabel(){var t,r,n,i,a,s;return this.metadata?this.metadata.label:(s=(i=(n=(r=(t=this.stateManager)===null||t===void 0?void 0:t.clusteringHelper)===null||r===void 0?void 0:r.getMetadataDescriptor(this.key))===null||n===void 0?void 0:n.label)!==null&&i!==void 0?i:(a=this.relatives.find(l=>l.metadata.value))===null||a===void 0?void 0:a.metadata.label)!==null&&s!==void 0?s:this.key}};ut.elementDefinitions={"ft-chip":lt,"ft-floating-menu":Pe,"ft-floating-menu-item":It,"ft-floating-menu-label":ke,"ft-ripple":X,"ft-tooltip":ot};ut.styles=_c;_t([v(),ua()],ut.prototype,"key",void 0);_t([v({type:Boolean})],ut.prototype,"multiLine",void 0);_t([v({type:Boolean})],ut.prototype,"useForSwitchingToRelatives",void 0);_t([v({type:Boolean})],ut.prototype,"displayLabel",void 0);_t([v({type:Number})],ut.prototype,"hierarchicalValueTruncatingLevel",void 0);_t([v({type:Boolean})],ut.prototype,"forceTooltip",void 0);_t([v({attribute:!1})],ut.prototype,"editorMode",void 0);_t([bt({store:"reader",selector:(e,t)=>{var r,n;return(n=(r=e.map)===null||r===void 0?void 0:r.metadata)===null||n===void 0?void 0:n.find(i=>i.key===t.key)}})],ut.prototype,"metadata",void 0);_t([et()],ut.prototype,"flatMetadata",void 0);_t([bt({store:"reader"})],ut.prototype,"map",void 0);_t([bt({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.relativeTopicPivotMetadata}})],ut.prototype,"relativeTopicPivotMetadata",void 0);_t([et()],ut.prototype,"relatives",void 0);_t([Ad(gs.properties.itemWithNoValueForSwitchToRelatives())],ut.prototype,"noValueMessage",void 0);_t([fa({eventName:Ye.clusteringHelperCreated})],ut.prototype,"updateRelatives",null);q("ft-reader-metadata")(ut);})();
1649
+ `:H}addTopicPivotParam(t,r){var n,i;let a=this.stateManager.store.getState().visibleTopics[0];if(a&&r.type=="MAP"){t.stopPropagation(),t.preventDefault();let s=(n=this.service)===null||n===void 0?void 0:n.getTocNodeNow(a);(i=this.service)===null||i===void 0||i.getTopicInfo(s).then(l=>{let d=l?.metadata.find(f=>f.key==this.relativeTopicPivotMetadata),p=new URL(cs(r));d&&d.values.forEach(f=>p.searchParams.append("topicPivot",f));let h=document.createElement("a");h.href=p.toString(),(t.ctrlKey||t.metaKey)&&(h.target="_blank"),this.append(h),h.click()})}}update(t){var r,n,i,a;super.update(t),t.has("key")&&this.useForSwitchingToRelatives&&(t.get("key")&&((r=this.stateManager)===null||r===void 0||r.unregisterMetadataForSwitchToRelatives(t.get("key"))),this.key&&((n=this.stateManager)===null||n===void 0||n.registerMetadataForSwitchToRelatives(this.key))),t.has("useForSwitchingToRelatives")&&this.key&&(this.useForSwitchingToRelatives?(i=this.stateManager)===null||i===void 0||i.registerMetadataForSwitchToRelatives(this.key):(a=this.stateManager)===null||a===void 0||a.unregisterMetadataForSwitchToRelatives(this.key)),(t.has("metadata")||t.has("hierarchicalValueTruncatingLevel")||this.dateFormatOptionsChanged(t))&&(this.flatMetadata=this.metadata?He.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0)}get metadataLabel(){var t,r,n,i,a,s;return this.metadata?this.metadata.label:(s=(i=(n=(r=(t=this.stateManager)===null||t===void 0?void 0:t.clusteringHelper)===null||r===void 0?void 0:r.getMetadataDescriptor(this.key))===null||n===void 0?void 0:n.label)!==null&&i!==void 0?i:(a=this.relatives.find(l=>l.metadata.value))===null||a===void 0?void 0:a.metadata.label)!==null&&s!==void 0?s:this.key}};ut.elementDefinitions={"ft-chip":lt,"ft-floating-menu":Pe,"ft-floating-menu-item":It,"ft-floating-menu-label":ke,"ft-ripple":X,"ft-tooltip":ot};ut.styles=Pc;Nt([v(),ua()],ut.prototype,"key",void 0);Nt([v({type:Boolean})],ut.prototype,"multiLine",void 0);Nt([v({type:Boolean})],ut.prototype,"useForSwitchingToRelatives",void 0);Nt([v({type:Boolean})],ut.prototype,"displayLabel",void 0);Nt([v({type:Number})],ut.prototype,"hierarchicalValueTruncatingLevel",void 0);Nt([v({type:Boolean})],ut.prototype,"forceTooltip",void 0);Nt([v({attribute:!1})],ut.prototype,"editorMode",void 0);Nt([bt({store:"reader",selector:(e,t)=>{var r,n;return(n=(r=e.map)===null||r===void 0?void 0:r.metadata)===null||n===void 0?void 0:n.find(i=>i.key===t.key)}})],ut.prototype,"metadata",void 0);Nt([tt()],ut.prototype,"flatMetadata",void 0);Nt([bt({store:"reader"})],ut.prototype,"map",void 0);Nt([bt({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.relativeTopicPivotMetadata}})],ut.prototype,"relativeTopicPivotMetadata",void 0);Nt([tt()],ut.prototype,"relatives",void 0);Nt([Td(gs.properties.itemWithNoValueForSwitchToRelatives())],ut.prototype,"noValueMessage",void 0);Nt([fa({eventName:Ye.clusteringHelperCreated})],ut.prototype,"updateRelatives",null);q("ft-reader-metadata")(ut);})();
1650
1650
  /*! Bundled license information:
1651
1651
 
1652
1652
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: