@fluid-topics/ft-reader-feedback 1.1.102 → 1.1.103

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,9 +1,9 @@
1
- "use strict";(()=>{var Kd=Object.create;var Ji=Object.defineProperty;var Gd=Object.getOwnPropertyDescriptor;var Zd=Object.getOwnPropertyNames;var qd=Object.getPrototypeOf,Yd=Object.prototype.hasOwnProperty;var Xd=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),Q=(r,t)=>{for(var e in t)Ji(r,e,{get:t[e],enumerable:!0})},Jd=(r,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Zd(t))!Yd.call(r,n)&&n!==e&&Ji(r,n,{get:()=>t[n],enumerable:!(o=Gd(t,n))||o.enumerable});return r};var Qd=(r,t,e)=>(e=r!=null?Kd(qd(r)):{},Jd(t||!r||!r.__esModule?Ji(e,"default",{value:r,enumerable:!0}):e,r));var Cd=Xd(Ed=>{(function(r){var t=function(e){var o={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function n(m){return m&&DataView.prototype.isPrototypeOf(m)}if(o.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(m){return m&&a.indexOf(Object.prototype.toString.call(m))>-1};function l(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(m))throw new TypeError("Invalid character in header field name");return m.toLowerCase()}function c(m){return typeof m!="string"&&(m=String(m)),m}function d(m){var x={next:function(){var N=m.shift();return{done:N===void 0,value:N}}};return o.iterable&&(x[Symbol.iterator]=function(){return x}),x}function u(m){this.map={},m instanceof u?m.forEach(function(x,N){this.append(N,x)},this):Array.isArray(m)?m.forEach(function(x){this.append(x[0],x[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(x){this.append(x,m[x])},this)}u.prototype.append=function(m,x){m=l(m),x=c(x);var N=this.map[m];this.map[m]=N?N+", "+x:x},u.prototype.delete=function(m){delete this.map[l(m)]},u.prototype.get=function(m){return m=l(m),this.has(m)?this.map[m]:null},u.prototype.has=function(m){return this.map.hasOwnProperty(l(m))},u.prototype.set=function(m,x){this.map[l(m)]=c(x)},u.prototype.forEach=function(m,x){for(var N in this.map)this.map.hasOwnProperty(N)&&m.call(x,this.map[N],N,this)},u.prototype.keys=function(){var m=[];return this.forEach(function(x,N){m.push(N)}),d(m)},u.prototype.values=function(){var m=[];return this.forEach(function(x){m.push(x)}),d(m)},u.prototype.entries=function(){var m=[];return this.forEach(function(x,N){m.push([N,x])}),d(m)},o.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function h(m){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}function y(m){return new Promise(function(x,N){m.onload=function(){x(m.result)},m.onerror=function(){N(m.error)}})}function b(m){var x=new FileReader,N=y(x);return x.readAsArrayBuffer(m),N}function v(m){var x=new FileReader,N=y(x);return x.readAsText(m),N}function w(m){for(var x=new Uint8Array(m),N=new Array(x.length),G=0;G<x.length;G++)N[G]=String.fromCharCode(x[G]);return N.join("")}function T(m){if(m.slice)return m.slice(0);var x=new Uint8Array(m.byteLength);return x.set(new Uint8Array(m)),x.buffer}function I(){return this.bodyUsed=!1,this._initBody=function(m){this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:o.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:o.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():o.arrayBuffer&&o.blob&&n(m)?(this._bodyArrayBuffer=T(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||s(m))?this._bodyArrayBuffer=T(m):this._bodyText=m=Object.prototype.toString.call(m):this._bodyText="",this.headers.get("content-type")||(typeof m=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var m=h(this);if(m)return m;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(b)}),this.text=function(){var m=h(this);if(m)return m;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(C)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(m){var x=m.toUpperCase();return k.indexOf(x)>-1?x:m}function S(m,x){x=x||{};var N=x.body;if(m instanceof S){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,x.headers||(this.headers=new u(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!N&&m._bodyInit!=null&&(N=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new u(x.headers)),this.method=O(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&N)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(N)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})};function C(m){var x=new FormData;return m.trim().split("&").forEach(function(N){if(N){var G=N.split("="),ut=G.shift().replace(/\+/g," "),X=G.join("=").replace(/\+/g," ");x.append(decodeURIComponent(ut),decodeURIComponent(X))}}),x}function M(m){var x=new u,N=m.replace(/\r?\n[\t ]+/g," ");return N.split(/\r?\n/).forEach(function(G){var ut=G.split(":"),X=ut.shift().trim();if(X){var Io=ut.join(":").trim();x.append(X,Io)}}),x}I.call(S.prototype);function W(m,x){x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in x?x.statusText:"OK",this.headers=new u(x.headers),this.url=x.url||"",this._initBody(m)}I.call(W.prototype),W.prototype.clone=function(){return new W(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},W.error=function(){var m=new W(null,{status:0,statusText:""});return m.type="error",m};var At=[301,302,303,307,308];W.redirect=function(m,x){if(At.indexOf(x)===-1)throw new RangeError("Invalid status code");return new W(null,{status:x,headers:{location:m}})},e.DOMException=r.DOMException;try{new e.DOMException}catch{e.DOMException=function(x,N){this.message=x,this.name=N;var G=Error(x);this.stack=G.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function Y(m,x){return new Promise(function(N,G){var ut=new S(m,x);if(ut.signal&&ut.signal.aborted)return G(new e.DOMException("Aborted","AbortError"));var X=new XMLHttpRequest;function Io(){X.abort()}X.onload=function(){var Kr={status:X.status,statusText:X.statusText,headers:M(X.getAllResponseHeaders()||"")};Kr.url="responseURL"in X?X.responseURL:Kr.headers.get("X-Request-URL");var Xi="response"in X?X.response:X.responseText;N(new W(Xi,Kr))},X.onerror=function(){G(new TypeError("Network request failed"))},X.ontimeout=function(){G(new TypeError("Network request failed"))},X.onabort=function(){G(new e.DOMException("Aborted","AbortError"))},X.open(ut.method,ut.url,!0),ut.credentials==="include"?X.withCredentials=!0:ut.credentials==="omit"&&(X.withCredentials=!1),"responseType"in X&&o.blob&&(X.responseType="blob"),ut.headers.forEach(function(Kr,Xi){X.setRequestHeader(Xi,Kr)}),ut.signal&&(ut.signal.addEventListener("abort",Io),X.onreadystatechange=function(){X.readyState===4&&ut.signal.removeEventListener("abort",Io)}),X.send(typeof ut._bodyInit>"u"?null:ut._bodyInit)})}return Y.polyfill=!0,r.fetch||(r.fetch=Y,r.Headers=u,r.Request=S,r.Response=W),e.Headers=u,e.Request=S,e.Response=W,e.fetch=Y,Object.defineProperty(e,"__esModule",{value:!0}),e}({})})(typeof self<"u"?self:Ed)});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,t=window.customElements.define,e=window.customElements.get,o=window.customElements,n=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(O,S){if(O=O.toLowerCase(),this._getDefinition(O)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${O}" has already been used with this registry`);if(this._definitionsByClass.get(S)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let C=S.prototype.attributeChangedCallback,M=new Set(S.observedAttributes||[]);y(S,M,C);let W={elementClass:S,connectedCallback:S.prototype.connectedCallback,disconnectedCallback:S.prototype.disconnectedCallback,adoptedCallback:S.prototype.adoptedCallback,attributeChangedCallback:C,formAssociated:S.formAssociated,formAssociatedCallback:S.prototype.formAssociatedCallback,formDisabledCallback:S.prototype.formDisabledCallback,formResetCallback:S.prototype.formResetCallback,formStateRestoreCallback:S.prototype.formStateRestoreCallback,observedAttributes:M};this._definitionsByTag.set(O,W),this._definitionsByClass.set(S,W);let At=e.call(o,O);At||(At=h(O),t.call(o,O,At)),this===window.customElements&&(s.set(S,W),W.standInClass=At);let Y=this._awaitingUpgrade.get(O);if(Y){this._awaitingUpgrade.delete(O);for(let x of Y)a.delete(x),v(x,W,!0)}let m=this._whenDefinedPromises.get(O);return m!==void 0&&(m.resolve(S),this._whenDefinedPromises.delete(O)),S}upgrade(){T.push(this),o.upgrade.apply(o,arguments),T.pop()}get(O){return this._definitionsByTag.get(O)?.elementClass}_getDefinition(O){return this._definitionsByTag.get(O)}whenDefined(O){let S=this._getDefinition(O);if(S!==void 0)return Promise.resolve(S.elementClass);let C=this._whenDefinedPromises.get(O);return C===void 0&&(C={},C.promise=new Promise(M=>C.resolve=M),this._whenDefinedPromises.set(O,C)),C.promise}_upgradeWhenDefined(O,S,C){let M=this._awaitingUpgrade.get(S);M||this._awaitingUpgrade.set(S,M=new Set),C?M.add(O):M.delete(O)}};let c;window.HTMLElement=function(){let S=c;if(S)return c=void 0,S;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 S=Reflect.construct(r,[],C.standInClass),Object.setPrototypeOf(S,this.constructor.prototype),n.set(S,C),S},window.HTMLElement.prototype=r.prototype;let d=O=>O===document||O instanceof ShadowRoot,u=O=>{let S=O.getRootNode();if(!d(S)){let C=T[T.length-1];if(C instanceof CustomElementRegistry)return C;S=C.getRootNode(),d(S)||(S=l.get(S)?.getRootNode()||document)}return S.customElements},h=O=>class{static get formAssociated(){return!0}constructor(){let C=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(C,HTMLElement.prototype);let M=u(C)||window.customElements,W=M._getDefinition(O);return W?v(C,W):a.set(C,M),C}connectedCallback(){let C=n.get(this);C?C.connectedCallback&&C.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,O,!0)}disconnectedCallback(){let C=n.get(this);C?C.disconnectedCallback&&C.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,O,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let C=n.get(this);C&&C.formAssociated&&C?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let C=n.get(this);C?.formAssociated&&C?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let C=n.get(this);C?.formAssociated&&C?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let C=n.get(this);C?.formAssociated&&C?.formStateRestoreCallback?.apply(this,arguments)}},y=(O,S,C)=>{if(S.size===0||C===void 0)return;let M=O.prototype.setAttribute;M&&(O.prototype.setAttribute=function(Y,m){let x=Y.toLowerCase();if(S.has(x)){let N=this.getAttribute(x);M.call(this,x,m),C.call(this,x,N,m)}else M.call(this,x,m)});let W=O.prototype.removeAttribute;W&&(O.prototype.removeAttribute=function(Y){let m=Y.toLowerCase();if(S.has(m)){let x=this.getAttribute(m);W.call(this,m),C.call(this,m,x,null)}else W.call(this,m)});let At=O.prototype.toggleAttribute;At&&(O.prototype.toggleAttribute=function(Y,m){let x=Y.toLowerCase();if(S.has(x)){let N=this.getAttribute(x);At.call(this,x,m);let G=this.getAttribute(x);C.call(this,x,N,G)}else At.call(this,x,m)})},b=O=>{let S=Object.getPrototypeOf(O);if(S!==window.HTMLElement)return S===r?Object.setPrototypeOf(O,window.HTMLElement):b(S)},v=(O,S,C=!1)=>{Object.setPrototypeOf(O,S.elementClass.prototype),n.set(O,S),c=O;try{new S.elementClass}catch{b(S.elementClass),new S.elementClass}S.attributeChangedCallback&&S.observedAttributes.forEach(M=>{O.hasAttribute(M)&&S.attributeChangedCallback.call(O,M,null,O.getAttribute(M))}),C&&S.connectedCallback&&O.isConnected&&S.connectedCallback.call(O)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(O){let S=w.apply(this,arguments);return O.customElements&&(S.customElements=O.customElements),S};let T=[document],I=(O,S,C=void 0)=>{let M=(C?Object.getPrototypeOf(C):O.prototype)[S];O.prototype[S]=function(){T.push(this);let W=M.apply(C||this,arguments);return W!==void 0&&l.set(W,this),T.pop(),W}};I(ShadowRoot,"createElement",document),I(ShadowRoot,"importNode",document),I(Element,"insertAdjacentHTML");let k=(O,S)=>{let C=Object.getOwnPropertyDescriptor(O.prototype,S);Object.defineProperty(O.prototype,S,{...C,set(M){T.push(this),C.set.call(this,M),T.pop()}})};if(k(Element,"innerHTML"),k(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let O=new WeakMap,S=HTMLElement.prototype.attachInternals,C=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...Y){let m=S.call(this,...Y);return O.set(m,this),m},C.forEach(Y=>{let m=window.ElementInternals.prototype,x=m[Y];m[Y]=function(...N){let G=O.get(this);if(n.get(G).formAssociated===!0)return x?.call(this,...N);throw new DOMException(`Failed to execute ${x} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class M extends Array{constructor(m){super(...m),this._elements=m}get value(){return this._elements.find(m=>m.checked===!0)?.value||""}}class W{constructor(m){let x=new Map;m.forEach((N,G)=>{let ut=N.getAttribute("name"),X=x.get(ut)||[];this[+G]=N,X.push(N),x.set(ut,X)}),this.length=m.length,x.forEach((N,G)=>{N&&(N.length===1?this[G]=N[0]:this[G]=new M(N))})}namedItem(m){return this[m]}}let At=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let Y=At.get.call(this,[]),m=[];for(let x of Y){let N=n.get(x);(!N||N.formAssociated===!0)&&m.push(x)}return new W(m)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(e,o,n)=>{if(o!==null)try{t.bind(window.customElements)(e,o,n)}catch(a){console.info(e,o,n,a)}}}var un={};Q(un,{CSSResult:()=>Or,LitElement:()=>me,ReactiveElement:()=>re,_$LE:()=>wp,_$LH:()=>xp,adoptStyles:()=>Ko,css:()=>P,defaultConverter:()=>Go,getCompatibleStyle:()=>to,html:()=>$,isServer:()=>Qf,noChange:()=>Ne,notEqual:()=>an,nothing:()=>B,render:()=>pn,supportsAdoptingStyleSheets:()=>Qr,svg:()=>vp,unsafeCSS:()=>fe});var Po=globalThis,ko=Po.ShadowRoot&&(Po.ShadyCSS===void 0||Po.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ks=Symbol(),$s=new WeakMap,$o=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==ks)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(ko&&t===void 0){let o=e!==void 0&&e.length===1;o&&(t=$s.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&$s.set(e,t))}return t}toString(){return this.cssText}},Ls=r=>new $o(typeof r=="string"?r:r+"",void 0,ks);var Qi=(r,t)=>{if(ko)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),n=Po.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=e.cssText,r.appendChild(o)}},Lo=ko?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return Ls(e)})(r):r;var{is:tp,defineProperty:ep,getOwnPropertyDescriptor:rp,getOwnPropertyNames:op,getOwnPropertySymbols:ip,getPrototypeOf:np}=Object,Do=globalThis,Ds=Do.trustedTypes,ap=Ds?Ds.emptyScript:"",sp=Do.reactiveElementPolyfillSupport,Gr=(r,t)=>r,Zr={toAttribute(r,t){switch(t){case Boolean:r=r?ap:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Mo=(r,t)=>!tp(r,t),Ms={attribute:!0,type:String,converter:Zr,reflect:!1,hasChanged:Mo};Symbol.metadata??=Symbol("metadata"),Do.litPropertyMetadata??=new WeakMap;var qe=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,e=Ms){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(t,o,e);n!==void 0&&ep(this.prototype,t,n)}}static getPropertyDescriptor(t,e,o){let{get:n,set:a}=rp(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ms}static _$Ei(){if(this.hasOwnProperty(Gr("elementProperties")))return;let t=np(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Gr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Gr("properties"))){let e=this.properties,o=[...op(e),...ip(e)];for(let n of o)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[o,n]of e)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[e,o]of this.elementProperties){let n=this._$Eu(e,o);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let n of o)e.unshift(Lo(n))}else t!==void 0&&e.push(Lo(t));return e}static _$Eu(t,e){let o=e.attribute;return o===!1?void 0:typeof o=="string"?o: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._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Qi(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){let o=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Zr).toAttribute(e,o.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let o=this.constructor,n=o._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Zr;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,o,n=!1,a){if(t!==void 0){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Mo)(n?a:this[t],e))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),o.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}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[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(e)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};qe.elementStyles=[],qe.shadowRootOptions={mode:"open"},qe[Gr("elementProperties")]=new Map,qe[Gr("finalized")]=new Map,sp?.({ReactiveElement:qe}),(Do.reactiveElementVersions??=[]).push("2.0.2");var en=globalThis,Uo=en.trustedTypes,Us=Uo?Uo.createPolicy("lit-html",{createHTML:r=>r}):void 0,rn="$lit$",ue=`lit$${(Math.random()+"").slice(9)}$`,on="?"+ue,lp=`<${on}>`,Je=document,Bo=()=>Je.createComment(""),Yr=r=>r===null||typeof r!="object"&&typeof r!="function",Vs=Array.isArray,js=r=>Vs(r)||typeof r?.[Symbol.iterator]=="function",tn=`[
1
+ "use strict";(()=>{var Kd=Object.create;var Ji=Object.defineProperty;var Gd=Object.getOwnPropertyDescriptor;var Zd=Object.getOwnPropertyNames;var qd=Object.getPrototypeOf,Yd=Object.prototype.hasOwnProperty;var Xd=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),Q=(r,t)=>{for(var e in t)Ji(r,e,{get:t[e],enumerable:!0})},Jd=(r,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Zd(t))!Yd.call(r,n)&&n!==e&&Ji(r,n,{get:()=>t[n],enumerable:!(o=Gd(t,n))||o.enumerable});return r};var Qd=(r,t,e)=>(e=r!=null?Kd(qd(r)):{},Jd(t||!r||!r.__esModule?Ji(e,"default",{value:r,enumerable:!0}):e,r));var Cd=Xd(Ed=>{(function(r){var t=function(e){var o={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function n(m){return m&&DataView.prototype.isPrototypeOf(m)}if(o.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(m){return m&&a.indexOf(Object.prototype.toString.call(m))>-1};function l(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(m))throw new TypeError("Invalid character in header field name");return m.toLowerCase()}function c(m){return typeof m!="string"&&(m=String(m)),m}function d(m){var x={next:function(){var N=m.shift();return{done:N===void 0,value:N}}};return o.iterable&&(x[Symbol.iterator]=function(){return x}),x}function u(m){this.map={},m instanceof u?m.forEach(function(x,N){this.append(N,x)},this):Array.isArray(m)?m.forEach(function(x){this.append(x[0],x[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(x){this.append(x,m[x])},this)}u.prototype.append=function(m,x){m=l(m),x=c(x);var N=this.map[m];this.map[m]=N?N+", "+x:x},u.prototype.delete=function(m){delete this.map[l(m)]},u.prototype.get=function(m){return m=l(m),this.has(m)?this.map[m]:null},u.prototype.has=function(m){return this.map.hasOwnProperty(l(m))},u.prototype.set=function(m,x){this.map[l(m)]=c(x)},u.prototype.forEach=function(m,x){for(var N in this.map)this.map.hasOwnProperty(N)&&m.call(x,this.map[N],N,this)},u.prototype.keys=function(){var m=[];return this.forEach(function(x,N){m.push(N)}),d(m)},u.prototype.values=function(){var m=[];return this.forEach(function(x){m.push(x)}),d(m)},u.prototype.entries=function(){var m=[];return this.forEach(function(x,N){m.push([N,x])}),d(m)},o.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function h(m){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}function y(m){return new Promise(function(x,N){m.onload=function(){x(m.result)},m.onerror=function(){N(m.error)}})}function b(m){var x=new FileReader,N=y(x);return x.readAsArrayBuffer(m),N}function v(m){var x=new FileReader,N=y(x);return x.readAsText(m),N}function O(m){for(var x=new Uint8Array(m),N=new Array(x.length),G=0;G<x.length;G++)N[G]=String.fromCharCode(x[G]);return N.join("")}function T(m){if(m.slice)return m.slice(0);var x=new Uint8Array(m.byteLength);return x.set(new Uint8Array(m)),x.buffer}function I(){return this.bodyUsed=!1,this._initBody=function(m){this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:o.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:o.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():o.arrayBuffer&&o.blob&&n(m)?(this._bodyArrayBuffer=T(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||s(m))?this._bodyArrayBuffer=T(m):this._bodyText=m=Object.prototype.toString.call(m):this._bodyText="",this.headers.get("content-type")||(typeof m=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var m=h(this);if(m)return m;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(b)}),this.text=function(){var m=h(this);if(m)return m;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(O(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(C)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(m){var x=m.toUpperCase();return k.indexOf(x)>-1?x:m}function S(m,x){x=x||{};var N=x.body;if(m instanceof S){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,x.headers||(this.headers=new u(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!N&&m._bodyInit!=null&&(N=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new u(x.headers)),this.method=w(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&N)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(N)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})};function C(m){var x=new FormData;return m.trim().split("&").forEach(function(N){if(N){var G=N.split("="),ut=G.shift().replace(/\+/g," "),X=G.join("=").replace(/\+/g," ");x.append(decodeURIComponent(ut),decodeURIComponent(X))}}),x}function M(m){var x=new u,N=m.replace(/\r?\n[\t ]+/g," ");return N.split(/\r?\n/).forEach(function(G){var ut=G.split(":"),X=ut.shift().trim();if(X){var Io=ut.join(":").trim();x.append(X,Io)}}),x}I.call(S.prototype);function W(m,x){x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in x?x.statusText:"OK",this.headers=new u(x.headers),this.url=x.url||"",this._initBody(m)}I.call(W.prototype),W.prototype.clone=function(){return new W(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},W.error=function(){var m=new W(null,{status:0,statusText:""});return m.type="error",m};var At=[301,302,303,307,308];W.redirect=function(m,x){if(At.indexOf(x)===-1)throw new RangeError("Invalid status code");return new W(null,{status:x,headers:{location:m}})},e.DOMException=r.DOMException;try{new e.DOMException}catch{e.DOMException=function(x,N){this.message=x,this.name=N;var G=Error(x);this.stack=G.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function Y(m,x){return new Promise(function(N,G){var ut=new S(m,x);if(ut.signal&&ut.signal.aborted)return G(new e.DOMException("Aborted","AbortError"));var X=new XMLHttpRequest;function Io(){X.abort()}X.onload=function(){var Kr={status:X.status,statusText:X.statusText,headers:M(X.getAllResponseHeaders()||"")};Kr.url="responseURL"in X?X.responseURL:Kr.headers.get("X-Request-URL");var Xi="response"in X?X.response:X.responseText;N(new W(Xi,Kr))},X.onerror=function(){G(new TypeError("Network request failed"))},X.ontimeout=function(){G(new TypeError("Network request failed"))},X.onabort=function(){G(new e.DOMException("Aborted","AbortError"))},X.open(ut.method,ut.url,!0),ut.credentials==="include"?X.withCredentials=!0:ut.credentials==="omit"&&(X.withCredentials=!1),"responseType"in X&&o.blob&&(X.responseType="blob"),ut.headers.forEach(function(Kr,Xi){X.setRequestHeader(Xi,Kr)}),ut.signal&&(ut.signal.addEventListener("abort",Io),X.onreadystatechange=function(){X.readyState===4&&ut.signal.removeEventListener("abort",Io)}),X.send(typeof ut._bodyInit>"u"?null:ut._bodyInit)})}return Y.polyfill=!0,r.fetch||(r.fetch=Y,r.Headers=u,r.Request=S,r.Response=W),e.Headers=u,e.Request=S,e.Response=W,e.fetch=Y,Object.defineProperty(e,"__esModule",{value:!0}),e}({})})(typeof self<"u"?self:Ed)});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,t=window.customElements.define,e=window.customElements.get,o=window.customElements,n=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 C=S.prototype.attributeChangedCallback,M=new Set(S.observedAttributes||[]);y(S,M,C);let W={elementClass:S,connectedCallback:S.prototype.connectedCallback,disconnectedCallback:S.prototype.disconnectedCallback,adoptedCallback:S.prototype.adoptedCallback,attributeChangedCallback:C,formAssociated:S.formAssociated,formAssociatedCallback:S.prototype.formAssociatedCallback,formDisabledCallback:S.prototype.formDisabledCallback,formResetCallback:S.prototype.formResetCallback,formStateRestoreCallback:S.prototype.formStateRestoreCallback,observedAttributes:M};this._definitionsByTag.set(w,W),this._definitionsByClass.set(S,W);let At=e.call(o,w);At||(At=h(w),t.call(o,w,At)),this===window.customElements&&(s.set(S,W),W.standInClass=At);let Y=this._awaitingUpgrade.get(w);if(Y){this._awaitingUpgrade.delete(w);for(let x of Y)a.delete(x),v(x,W,!0)}let m=this._whenDefinedPromises.get(w);return m!==void 0&&(m.resolve(S),this._whenDefinedPromises.delete(w)),S}upgrade(){T.push(this),o.upgrade.apply(o,arguments),T.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 C=this._whenDefinedPromises.get(w);return C===void 0&&(C={},C.promise=new Promise(M=>C.resolve=M),this._whenDefinedPromises.set(w,C)),C.promise}_upgradeWhenDefined(w,S,C){let M=this._awaitingUpgrade.get(S);M||this._awaitingUpgrade.set(S,M=new Set),C?M.add(w):M.delete(w)}};let c;window.HTMLElement=function(){let S=c;if(S)return c=void 0,S;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 S=Reflect.construct(r,[],C.standInClass),Object.setPrototypeOf(S,this.constructor.prototype),n.set(S,C),S},window.HTMLElement.prototype=r.prototype;let d=w=>w===document||w instanceof ShadowRoot,u=w=>{let S=w.getRootNode();if(!d(S)){let C=T[T.length-1];if(C instanceof CustomElementRegistry)return C;S=C.getRootNode(),d(S)||(S=l.get(S)?.getRootNode()||document)}return S.customElements},h=w=>class{static get formAssociated(){return!0}constructor(){let C=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(C,HTMLElement.prototype);let M=u(C)||window.customElements,W=M._getDefinition(w);return W?v(C,W):a.set(C,M),C}connectedCallback(){let C=n.get(this);C?C.connectedCallback&&C.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!0)}disconnectedCallback(){let C=n.get(this);C?C.disconnectedCallback&&C.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let C=n.get(this);C&&C.formAssociated&&C?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let C=n.get(this);C?.formAssociated&&C?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let C=n.get(this);C?.formAssociated&&C?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let C=n.get(this);C?.formAssociated&&C?.formStateRestoreCallback?.apply(this,arguments)}},y=(w,S,C)=>{if(S.size===0||C===void 0)return;let M=w.prototype.setAttribute;M&&(w.prototype.setAttribute=function(Y,m){let x=Y.toLowerCase();if(S.has(x)){let N=this.getAttribute(x);M.call(this,x,m),C.call(this,x,N,m)}else M.call(this,x,m)});let W=w.prototype.removeAttribute;W&&(w.prototype.removeAttribute=function(Y){let m=Y.toLowerCase();if(S.has(m)){let x=this.getAttribute(m);W.call(this,m),C.call(this,m,x,null)}else W.call(this,m)});let At=w.prototype.toggleAttribute;At&&(w.prototype.toggleAttribute=function(Y,m){let x=Y.toLowerCase();if(S.has(x)){let N=this.getAttribute(x);At.call(this,x,m);let G=this.getAttribute(x);C.call(this,x,N,G)}else At.call(this,x,m)})},b=w=>{let S=Object.getPrototypeOf(w);if(S!==window.HTMLElement)return S===r?Object.setPrototypeOf(w,window.HTMLElement):b(S)},v=(w,S,C=!1)=>{Object.setPrototypeOf(w,S.elementClass.prototype),n.set(w,S),c=w;try{new S.elementClass}catch{b(S.elementClass),new S.elementClass}S.attributeChangedCallback&&S.observedAttributes.forEach(M=>{w.hasAttribute(M)&&S.attributeChangedCallback.call(w,M,null,w.getAttribute(M))}),C&&S.connectedCallback&&w.isConnected&&S.connectedCallback.call(w)},O=Element.prototype.attachShadow;Element.prototype.attachShadow=function(w){let S=O.apply(this,arguments);return w.customElements&&(S.customElements=w.customElements),S};let T=[document],I=(w,S,C=void 0)=>{let M=(C?Object.getPrototypeOf(C):w.prototype)[S];w.prototype[S]=function(){T.push(this);let W=M.apply(C||this,arguments);return W!==void 0&&l.set(W,this),T.pop(),W}};I(ShadowRoot,"createElement",document),I(ShadowRoot,"importNode",document),I(Element,"insertAdjacentHTML");let k=(w,S)=>{let C=Object.getOwnPropertyDescriptor(w.prototype,S);Object.defineProperty(w.prototype,S,{...C,set(M){T.push(this),C.set.call(this,M),T.pop()}})};if(k(Element,"innerHTML"),k(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let w=new WeakMap,S=HTMLElement.prototype.attachInternals,C=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...Y){let m=S.call(this,...Y);return w.set(m,this),m},C.forEach(Y=>{let m=window.ElementInternals.prototype,x=m[Y];m[Y]=function(...N){let G=w.get(this);if(n.get(G).formAssociated===!0)return x?.call(this,...N);throw new DOMException(`Failed to execute ${x} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class M extends Array{constructor(m){super(...m),this._elements=m}get value(){return this._elements.find(m=>m.checked===!0)?.value||""}}class W{constructor(m){let x=new Map;m.forEach((N,G)=>{let ut=N.getAttribute("name"),X=x.get(ut)||[];this[+G]=N,X.push(N),x.set(ut,X)}),this.length=m.length,x.forEach((N,G)=>{N&&(N.length===1?this[G]=N[0]:this[G]=new M(N))})}namedItem(m){return this[m]}}let At=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let Y=At.get.call(this,[]),m=[];for(let x of Y){let N=n.get(x);(!N||N.formAssociated===!0)&&m.push(x)}return new W(m)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(e,o,n)=>{if(o!==null)try{t.bind(window.customElements)(e,o,n)}catch(a){console.info(e,o,n,a)}}}var un={};Q(un,{CSSResult:()=>Or,LitElement:()=>me,ReactiveElement:()=>re,_$LE:()=>Op,_$LH:()=>xp,adoptStyles:()=>Ko,css:()=>P,defaultConverter:()=>Go,getCompatibleStyle:()=>to,html:()=>$,isServer:()=>Qf,noChange:()=>Ne,notEqual:()=>an,nothing:()=>B,render:()=>pn,supportsAdoptingStyleSheets:()=>Qr,svg:()=>vp,unsafeCSS:()=>fe});var Po=globalThis,ko=Po.ShadowRoot&&(Po.ShadyCSS===void 0||Po.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ks=Symbol(),$s=new WeakMap,$o=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==ks)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(ko&&t===void 0){let o=e!==void 0&&e.length===1;o&&(t=$s.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&$s.set(e,t))}return t}toString(){return this.cssText}},Ls=r=>new $o(typeof r=="string"?r:r+"",void 0,ks);var Qi=(r,t)=>{if(ko)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),n=Po.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=e.cssText,r.appendChild(o)}},Lo=ko?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return Ls(e)})(r):r;var{is:tp,defineProperty:ep,getOwnPropertyDescriptor:rp,getOwnPropertyNames:op,getOwnPropertySymbols:ip,getPrototypeOf:np}=Object,Do=globalThis,Ds=Do.trustedTypes,ap=Ds?Ds.emptyScript:"",sp=Do.reactiveElementPolyfillSupport,Gr=(r,t)=>r,Zr={toAttribute(r,t){switch(t){case Boolean:r=r?ap:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Mo=(r,t)=>!tp(r,t),Ms={attribute:!0,type:String,converter:Zr,reflect:!1,hasChanged:Mo};Symbol.metadata??=Symbol("metadata"),Do.litPropertyMetadata??=new WeakMap;var qe=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,e=Ms){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(t,o,e);n!==void 0&&ep(this.prototype,t,n)}}static getPropertyDescriptor(t,e,o){let{get:n,set:a}=rp(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ms}static _$Ei(){if(this.hasOwnProperty(Gr("elementProperties")))return;let t=np(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Gr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Gr("properties"))){let e=this.properties,o=[...op(e),...ip(e)];for(let n of o)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[o,n]of e)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[e,o]of this.elementProperties){let n=this._$Eu(e,o);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let n of o)e.unshift(Lo(n))}else t!==void 0&&e.push(Lo(t));return e}static _$Eu(t,e){let o=e.attribute;return o===!1?void 0:typeof o=="string"?o: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._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Qi(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){let o=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Zr).toAttribute(e,o.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let o=this.constructor,n=o._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Zr;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,o,n=!1,a){if(t!==void 0){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Mo)(n?a:this[t],e))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),o.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}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[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(e)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};qe.elementStyles=[],qe.shadowRootOptions={mode:"open"},qe[Gr("elementProperties")]=new Map,qe[Gr("finalized")]=new Map,sp?.({ReactiveElement:qe}),(Do.reactiveElementVersions??=[]).push("2.0.2");var en=globalThis,Uo=en.trustedTypes,Us=Uo?Uo.createPolicy("lit-html",{createHTML:r=>r}):void 0,rn="$lit$",ue=`lit$${(Math.random()+"").slice(9)}$`,on="?"+ue,lp=`<${on}>`,Je=document,Bo=()=>Je.createComment(""),Yr=r=>r===null||typeof r!="object"&&typeof r!="function",Vs=Array.isArray,js=r=>Vs(r)||typeof r?.[Symbol.iterator]=="function",tn=`[
2
2
  \f\r]`,qr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bs=/-->/g,Fs=/>/g,Ye=RegExp(`>|${tn}(?:([^\\s"'>=/]+)(${tn}*=${tn}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),zs=/'/g,Ws=/"/g,Ks=/^(?:script|style|textarea|title)$/i,Gs=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),Zs=Gs(1),qs=Gs(2),Ft=Symbol.for("lit-noChange"),ct=Symbol.for("lit-nothing"),Hs=new WeakMap,Xe=Je.createTreeWalker(Je,129);function Ys(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Us!==void 0?Us.createHTML(t):t}var Xs=(r,t)=>{let e=r.length-1,o=[],n,a=t===2?"<svg>":"",s=qr;for(let l=0;l<e;l++){let c=r[l],d,u,h=-1,y=0;for(;y<c.length&&(s.lastIndex=y,u=s.exec(c),u!==null);)y=s.lastIndex,s===qr?u[1]==="!--"?s=Bs:u[1]!==void 0?s=Fs:u[2]!==void 0?(Ks.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=Ye):u[3]!==void 0&&(s=Ye):s===Ye?u[0]===">"?(s=n??qr,h=-1):u[1]===void 0?h=-2:(h=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?Ye:u[3]==='"'?Ws:zs):s===Ws||s===zs?s=Ye:s===Bs||s===Fs?s=qr:(s=Ye,n=void 0);let b=s===Ye&&r[l+1].startsWith("/>")?" ":"";a+=s===qr?c+lp:h>=0?(o.push(d),c.slice(0,h)+rn+c.slice(h)+ue+b):c+ue+(h===-2?l:b)}return[Ys(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),o]},Xr=class r{constructor({strings:t,_$litType$:e},o){let n;this.parts=[];let a=0,s=0,l=t.length-1,c=this.parts,[d,u]=Xs(t,e);if(this.el=r.createElement(d,o),Xe.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=Xe.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(rn)){let y=u[s++],b=n.getAttribute(h).split(ue),v=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?zo:v[1]==="?"?Wo:v[1]==="@"?Ho:tr}),n.removeAttribute(h)}else h.startsWith(ue)&&(c.push({type:6,index:a}),n.removeAttribute(h));if(Ks.test(n.tagName)){let h=n.textContent.split(ue),y=h.length-1;if(y>0){n.textContent=Uo?Uo.emptyScript:"";for(let b=0;b<y;b++)n.append(h[b],Bo()),Xe.nextNode(),c.push({type:2,index:++a});n.append(h[y],Bo())}}}else if(n.nodeType===8)if(n.data===on)c.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(ue,h+1))!==-1;)c.push({type:7,index:a}),h+=ue.length-1}a++}}static createElement(t,e){let o=Je.createElement("template");return o.innerHTML=t,o}};function Qe(r,t,e=r,o){if(t===Ft)return t;let n=o!==void 0?e._$Co?.[o]:e._$Cl,a=Yr(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,o)),o!==void 0?(e._$Co??=[])[o]=n:e._$Cl=n),n!==void 0&&(t=Qe(r,n._$AS(r,t.values),n,o)),t}var Fo=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:o}=this._$AD,n=(t?.creationScope??Je).importNode(e,!0);Xe.currentNode=n;let a=Xe.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let d;c.type===2?d=new Jr(a,a.nextSibling,this,t):c.type===1?d=new c.ctor(a,c.name,c.strings,this,t):c.type===6&&(d=new Vo(a,this,t)),this._$AV.push(d),c=o[++l]}s!==c?.index&&(a=Xe.nextNode(),s++)}return Xe.currentNode=Je,n}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},Jr=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,n){this.type=2,this._$AH=ct,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Qe(this,t,e),Yr(t)?t===ct||t==null||t===""?(this._$AH!==ct&&this._$AR(),this._$AH=ct):t!==this._$AH&&t!==Ft&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):js(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ct&&Yr(this._$AH)?this._$AA.nextSibling.data=t:this.$(Je.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=Xr.createElement(Ys(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new Fo(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=Hs.get(t.strings);return e===void 0&&Hs.set(t.strings,e=new Xr(t)),e}T(t){Vs(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,n=0;for(let a of t)n===e.length?e.push(o=new r(this.k(Bo()),this.k(Bo()),this,this.options)):o=e[n],o._$AI(a),n++;n<e.length&&(this._$AR(o&&o._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},tr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,n,a){this.type=1,this._$AH=ct,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ct}_$AI(t,e=this,o,n){let a=this.strings,s=!1;if(a===void 0)t=Qe(this,t,e,0),s=!Yr(t)||t!==this._$AH&&t!==Ft,s&&(this._$AH=t);else{let l=t,c,d;for(t=a[0],c=0;c<a.length-1;c++)d=Qe(this,l[o+c],e,c),d===Ft&&(d=this._$AH[c]),s||=!Yr(d)||d!==this._$AH[c],d===ct?t=ct:t!==ct&&(t+=(d??"")+a[c+1]),this._$AH[c]=d}s&&!n&&this.O(t)}O(t){t===ct?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},zo=class extends tr{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ct?void 0:t}},Wo=class extends tr{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ct)}},Ho=class extends tr{constructor(t,e,o,n,a){super(t,e,o,n,a),this.type=5}_$AI(t,e=this){if((t=Qe(this,t,e,0)??ct)===Ft)return;let o=this._$AH,n=t===ct&&o!==ct||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==ct&&(o===ct||n);n&&this.element.removeEventListener(this.name,this,o),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)}},Vo=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Qe(this,t)}},Js={j:rn,P:ue,A:on,C:1,M:Xs,L:Fo,R:js,V:Qe,D:Jr,I:tr,H:Wo,N:Ho,U:zo,B:Vo},cp=en.litHtmlPolyfillSupport;cp?.(Xr,Jr),(en.litHtmlVersions??=[]).push("3.1.0");var jo=globalThis,Qr=jo.ShadowRoot&&(jo.ShadyCSS===void 0||jo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nn=Symbol(),Qs=new WeakMap,Or=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==nn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Qr&&t===void 0){let o=e!==void 0&&e.length===1;o&&(t=Qs.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Qs.set(e,t))}return t}toString(){return this.cssText}},fe=r=>new Or(typeof r=="string"?r:r+"",void 0,nn),P=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((o,n,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[a+1],r[0]);return new Or(e,r,nn)},Ko=(r,t)=>{if(Qr)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),n=jo.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=e.cssText,r.appendChild(o)}},to=Qr?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return fe(e)})(r):r;var{is:dp,defineProperty:pp,getOwnPropertyDescriptor:up,getOwnPropertyNames:fp,getOwnPropertySymbols:hp,getPrototypeOf:mp}=Object,Zo=globalThis,tl=Zo.trustedTypes,gp=tl?tl.emptyScript:"",yp=Zo.reactiveElementPolyfillSupport,eo=(r,t)=>r,Go={toAttribute(r,t){switch(t){case Boolean:r=r?gp:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},an=(r,t)=>!dp(r,t),el={attribute:!0,type:String,converter:Go,reflect:!1,hasChanged:an};Symbol.metadata??=Symbol("metadata"),Zo.litPropertyMetadata??=new WeakMap;var re=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,e=el){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(t,o,e);n!==void 0&&pp(this.prototype,t,n)}}static getPropertyDescriptor(t,e,o){let{get:n,set:a}=up(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??el}static _$Ei(){if(this.hasOwnProperty(eo("elementProperties")))return;let t=mp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(eo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(eo("properties"))){let e=this.properties,o=[...fp(e),...hp(e)];for(let n of o)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[o,n]of e)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[e,o]of this.elementProperties){let n=this._$Eu(e,o);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let n of o)e.unshift(to(n))}else t!==void 0&&e.push(to(t));return e}static _$Eu(t,e){let o=e.attribute;return o===!1?void 0:typeof o=="string"?o: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._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ko(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){let o=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Go).toAttribute(e,o.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let o=this.constructor,n=o._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Go;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,o,n=!1,a){if(t!==void 0){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??an)(n?a:this[t],e))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),o.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}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[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(e)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};re.elementStyles=[],re.shadowRootOptions={mode:"open"},re[eo("elementProperties")]=new Map,re[eo("finalized")]=new Map,yp?.({ReactiveElement:re}),(Zo.reactiveElementVersions??=[]).push("2.0.2");var ln=globalThis,qo=ln.trustedTypes,rl=qo?qo.createPolicy("lit-html",{createHTML:r=>r}):void 0,cn="$lit$",he=`lit$${(Math.random()+"").slice(9)}$`,dn="?"+he,bp=`<${dn}>`,or=document,oo=()=>or.createComment(""),io=r=>r===null||typeof r!="object"&&typeof r!="function",ll=Array.isArray,cl=r=>ll(r)||typeof r?.[Symbol.iterator]=="function",sn=`[
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),zs=/'/g,Ws=/"/g,Ks=/^(?:script|style|textarea|title)$/i,Gs=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),Zs=Gs(1),qs=Gs(2),zt=Symbol.for("lit-noChange"),ct=Symbol.for("lit-nothing"),Hs=new WeakMap,Xe=Je.createTreeWalker(Je,129);function Ys(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Us!==void 0?Us.createHTML(t):t}var Xs=(r,t)=>{let e=r.length-1,o=[],n,a=t===2?"<svg>":"",s=qr;for(let l=0;l<e;l++){let c=r[l],d,u,h=-1,y=0;for(;y<c.length&&(s.lastIndex=y,u=s.exec(c),u!==null);)y=s.lastIndex,s===qr?u[1]==="!--"?s=Bs:u[1]!==void 0?s=Fs:u[2]!==void 0?(Ks.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=Ye):u[3]!==void 0&&(s=Ye):s===Ye?u[0]===">"?(s=n??qr,h=-1):u[1]===void 0?h=-2:(h=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?Ye:u[3]==='"'?Ws:zs):s===Ws||s===zs?s=Ye:s===Bs||s===Fs?s=qr:(s=Ye,n=void 0);let b=s===Ye&&r[l+1].startsWith("/>")?" ":"";a+=s===qr?c+lp:h>=0?(o.push(d),c.slice(0,h)+rn+c.slice(h)+ue+b):c+ue+(h===-2?l:b)}return[Ys(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),o]},Xr=class r{constructor({strings:t,_$litType$:e},o){let n;this.parts=[];let a=0,s=0,l=t.length-1,c=this.parts,[d,u]=Xs(t,e);if(this.el=r.createElement(d,o),Xe.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=Xe.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(rn)){let y=u[s++],b=n.getAttribute(h).split(ue),v=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?zo:v[1]==="?"?Wo:v[1]==="@"?Ho:tr}),n.removeAttribute(h)}else h.startsWith(ue)&&(c.push({type:6,index:a}),n.removeAttribute(h));if(Ks.test(n.tagName)){let h=n.textContent.split(ue),y=h.length-1;if(y>0){n.textContent=Uo?Uo.emptyScript:"";for(let b=0;b<y;b++)n.append(h[b],Bo()),Xe.nextNode(),c.push({type:2,index:++a});n.append(h[y],Bo())}}}else if(n.nodeType===8)if(n.data===on)c.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(ue,h+1))!==-1;)c.push({type:7,index:a}),h+=ue.length-1}a++}}static createElement(t,e){let o=Je.createElement("template");return o.innerHTML=t,o}};function Qe(r,t,e=r,o){if(t===zt)return t;let n=o!==void 0?e._$Co?.[o]:e._$Cl,a=Yr(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,o)),o!==void 0?(e._$Co??=[])[o]=n:e._$Cl=n),n!==void 0&&(t=Qe(r,n._$AS(r,t.values),n,o)),t}var Fo=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:o}=this._$AD,n=(t?.creationScope??Je).importNode(e,!0);Xe.currentNode=n;let a=Xe.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let d;c.type===2?d=new Jr(a,a.nextSibling,this,t):c.type===1?d=new c.ctor(a,c.name,c.strings,this,t):c.type===6&&(d=new Vo(a,this,t)),this._$AV.push(d),c=o[++l]}s!==c?.index&&(a=Xe.nextNode(),s++)}return Xe.currentNode=Je,n}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},Jr=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,n){this.type=2,this._$AH=ct,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Qe(this,t,e),Yr(t)?t===ct||t==null||t===""?(this._$AH!==ct&&this._$AR(),this._$AH=ct):t!==this._$AH&&t!==zt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):js(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ct&&Yr(this._$AH)?this._$AA.nextSibling.data=t:this.$(Je.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=Xr.createElement(Ys(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new Fo(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=Hs.get(t.strings);return e===void 0&&Hs.set(t.strings,e=new Xr(t)),e}T(t){Vs(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,n=0;for(let a of t)n===e.length?e.push(o=new r(this.k(Bo()),this.k(Bo()),this,this.options)):o=e[n],o._$AI(a),n++;n<e.length&&(this._$AR(o&&o._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},tr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,n,a){this.type=1,this._$AH=ct,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ct}_$AI(t,e=this,o,n){let a=this.strings,s=!1;if(a===void 0)t=Qe(this,t,e,0),s=!Yr(t)||t!==this._$AH&&t!==zt,s&&(this._$AH=t);else{let l=t,c,d;for(t=a[0],c=0;c<a.length-1;c++)d=Qe(this,l[o+c],e,c),d===zt&&(d=this._$AH[c]),s||=!Yr(d)||d!==this._$AH[c],d===ct?t=ct:t!==ct&&(t+=(d??"")+a[c+1]),this._$AH[c]=d}s&&!n&&this.O(t)}O(t){t===ct?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},zo=class extends tr{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ct?void 0:t}},Wo=class extends tr{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ct)}},Ho=class extends tr{constructor(t,e,o,n,a){super(t,e,o,n,a),this.type=5}_$AI(t,e=this){if((t=Qe(this,t,e,0)??ct)===zt)return;let o=this._$AH,n=t===ct&&o!==ct||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==ct&&(o===ct||n);n&&this.element.removeEventListener(this.name,this,o),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)}},Vo=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Qe(this,t)}},Js={j:rn,P:ue,A:on,C:1,M:Xs,L:Fo,R:js,V:Qe,D:Jr,I:tr,H:Wo,N:Ho,U:zo,B:Vo},cp=en.litHtmlPolyfillSupport;cp?.(Xr,Jr),(en.litHtmlVersions??=[]).push("3.1.0");var jo=globalThis,Qr=jo.ShadowRoot&&(jo.ShadyCSS===void 0||jo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nn=Symbol(),Qs=new WeakMap,Or=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==nn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Qr&&t===void 0){let o=e!==void 0&&e.length===1;o&&(t=Qs.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Qs.set(e,t))}return t}toString(){return this.cssText}},fe=r=>new Or(typeof r=="string"?r:r+"",void 0,nn),P=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((o,n,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[a+1],r[0]);return new Or(e,r,nn)},Ko=(r,t)=>{if(Qr)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),n=jo.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=e.cssText,r.appendChild(o)}},to=Qr?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return fe(e)})(r):r;var{is:dp,defineProperty:pp,getOwnPropertyDescriptor:up,getOwnPropertyNames:fp,getOwnPropertySymbols:hp,getPrototypeOf:mp}=Object,Zo=globalThis,tl=Zo.trustedTypes,gp=tl?tl.emptyScript:"",yp=Zo.reactiveElementPolyfillSupport,eo=(r,t)=>r,Go={toAttribute(r,t){switch(t){case Boolean:r=r?gp:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},an=(r,t)=>!dp(r,t),el={attribute:!0,type:String,converter:Go,reflect:!1,hasChanged:an};Symbol.metadata??=Symbol("metadata"),Zo.litPropertyMetadata??=new WeakMap;var re=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,e=el){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(t,o,e);n!==void 0&&pp(this.prototype,t,n)}}static getPropertyDescriptor(t,e,o){let{get:n,set:a}=up(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??el}static _$Ei(){if(this.hasOwnProperty(eo("elementProperties")))return;let t=mp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(eo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(eo("properties"))){let e=this.properties,o=[...fp(e),...hp(e)];for(let n of o)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[o,n]of e)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[e,o]of this.elementProperties){let n=this._$Eu(e,o);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let n of o)e.unshift(to(n))}else t!==void 0&&e.push(to(t));return e}static _$Eu(t,e){let o=e.attribute;return o===!1?void 0:typeof o=="string"?o: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._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ko(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){let o=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Go).toAttribute(e,o.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let o=this.constructor,n=o._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Go;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,o,n=!1,a){if(t!==void 0){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??an)(n?a:this[t],e))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),o.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}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[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(e)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};re.elementStyles=[],re.shadowRootOptions={mode:"open"},re[eo("elementProperties")]=new Map,re[eo("finalized")]=new Map,yp?.({ReactiveElement:re}),(Zo.reactiveElementVersions??=[]).push("2.0.2");var ln=globalThis,qo=ln.trustedTypes,rl=qo?qo.createPolicy("lit-html",{createHTML:r=>r}):void 0,cn="$lit$",he=`lit$${(Math.random()+"").slice(9)}$`,dn="?"+he,bp=`<${dn}>`,or=document,oo=()=>or.createComment(""),io=r=>r===null||typeof r!="object"&&typeof r!="function",ll=Array.isArray,cl=r=>ll(r)||typeof r?.[Symbol.iterator]=="function",sn=`[
4
4
  \f\r]`,ro=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ol=/-->/g,il=/>/g,er=RegExp(`>|${sn}(?:([^\\s"'>=/]+)(${sn}*=${sn}*(?:[^
5
- \f\r"'\`<>=]|("|')|))|$)`,"g"),nl=/'/g,al=/"/g,dl=/^(?:script|style|textarea|title)$/i,pl=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),$=pl(1),vp=pl(2),Ne=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),sl=new WeakMap,rr=or.createTreeWalker(or,129);function ul(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return rl!==void 0?rl.createHTML(t):t}var fl=(r,t)=>{let e=r.length-1,o=[],n,a=t===2?"<svg>":"",s=ro;for(let l=0;l<e;l++){let c=r[l],d,u,h=-1,y=0;for(;y<c.length&&(s.lastIndex=y,u=s.exec(c),u!==null);)y=s.lastIndex,s===ro?u[1]==="!--"?s=ol:u[1]!==void 0?s=il:u[2]!==void 0?(dl.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=er):u[3]!==void 0&&(s=er):s===er?u[0]===">"?(s=n??ro,h=-1):u[1]===void 0?h=-2:(h=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?er:u[3]==='"'?al:nl):s===al||s===nl?s=er:s===ol||s===il?s=ro:(s=er,n=void 0);let b=s===er&&r[l+1].startsWith("/>")?" ":"";a+=s===ro?c+bp:h>=0?(o.push(d),c.slice(0,h)+cn+c.slice(h)+he+b):c+he+(h===-2?l:b)}return[ul(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),o]},no=class r{constructor({strings:t,_$litType$:e},o){let n;this.parts=[];let a=0,s=0,l=t.length-1,c=this.parts,[d,u]=fl(t,e);if(this.el=r.createElement(d,o),rr.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=rr.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(cn)){let y=u[s++],b=n.getAttribute(h).split(he),v=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?Xo:v[1]==="?"?Jo:v[1]==="@"?Qo:nr}),n.removeAttribute(h)}else h.startsWith(he)&&(c.push({type:6,index:a}),n.removeAttribute(h));if(dl.test(n.tagName)){let h=n.textContent.split(he),y=h.length-1;if(y>0){n.textContent=qo?qo.emptyScript:"";for(let b=0;b<y;b++)n.append(h[b],oo()),rr.nextNode(),c.push({type:2,index:++a});n.append(h[y],oo())}}}else if(n.nodeType===8)if(n.data===dn)c.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(he,h+1))!==-1;)c.push({type:7,index:a}),h+=he.length-1}a++}}static createElement(t,e){let o=or.createElement("template");return o.innerHTML=t,o}};function ir(r,t,e=r,o){if(t===Ne)return t;let n=o!==void 0?e._$Co?.[o]:e._$Cl,a=io(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,o)),o!==void 0?(e._$Co??=[])[o]=n:e._$Cl=n),n!==void 0&&(t=ir(r,n._$AS(r,t.values),n,o)),t}var Yo=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:o}=this._$AD,n=(t?.creationScope??or).importNode(e,!0);rr.currentNode=n;let a=rr.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let d;c.type===2?d=new wr(a,a.nextSibling,this,t):c.type===1?d=new c.ctor(a,c.name,c.strings,this,t):c.type===6&&(d=new ti(a,this,t)),this._$AV.push(d),c=o[++l]}s!==c?.index&&(a=rr.nextNode(),s++)}return rr.currentNode=or,n}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},wr=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,n){this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ir(this,t,e),io(t)?t===B||t==null||t===""?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==Ne&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):cl(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==B&&io(this._$AH)?this._$AA.nextSibling.data=t:this.$(or.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=no.createElement(ul(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new Yo(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=sl.get(t.strings);return e===void 0&&sl.set(t.strings,e=new no(t)),e}T(t){ll(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,n=0;for(let a of t)n===e.length?e.push(o=new r(this.k(oo()),this.k(oo()),this,this.options)):o=e[n],o._$AI(a),n++;n<e.length&&(this._$AR(o&&o._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},nr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,n,a){this.type=1,this._$AH=B,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=B}_$AI(t,e=this,o,n){let a=this.strings,s=!1;if(a===void 0)t=ir(this,t,e,0),s=!io(t)||t!==this._$AH&&t!==Ne,s&&(this._$AH=t);else{let l=t,c,d;for(t=a[0],c=0;c<a.length-1;c++)d=ir(this,l[o+c],e,c),d===Ne&&(d=this._$AH[c]),s||=!io(d)||d!==this._$AH[c],d===B?t=B:t!==B&&(t+=(d??"")+a[c+1]),this._$AH[c]=d}s&&!n&&this.O(t)}O(t){t===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Xo=class extends nr{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===B?void 0:t}},Jo=class extends nr{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==B)}},Qo=class extends nr{constructor(t,e,o,n,a){super(t,e,o,n,a),this.type=5}_$AI(t,e=this){if((t=ir(this,t,e,0)??B)===Ne)return;let o=this._$AH,n=t===B&&o!==B||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==B&&(o===B||n);n&&this.element.removeEventListener(this.name,this,o),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)}},ti=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ir(this,t)}},xp={j:cn,P:he,A:dn,C:1,M:fl,L:Yo,R:cl,V:ir,D:wr,I:nr,H:Jo,N:Qo,U:Xo,B:ti},Sp=ln.litHtmlPolyfillSupport;Sp?.(no,wr),(ln.litHtmlVersions??=[]).push("3.1.0");var pn=(r,t,e)=>{let o=e?.renderBefore??t,n=o._$litPart$;if(n===void 0){let a=e?.renderBefore??null;o._$litPart$=n=new wr(t.insertBefore(oo(),a),a,void 0,e??{})}return n._$AI(r),n};var me=class extends re{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 e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=pn(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ne}};me._$litElement$=!0,me.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:me});var Op=globalThis.litElementPolyfillSupport;Op?.({LitElement:me});var wp={_$AK:(r,t,e)=>{r._$AK(t,e)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Qf=!1;var hn={};Q(hn,{customElement:()=>Ep,eventOptions:()=>ge,property:()=>g,query:()=>Z,queryAll:()=>Rp,queryAssignedElements:()=>fn,queryAssignedNodes:()=>ao,queryAsync:()=>_p,standardProperty:()=>hl,state:()=>H});var Ep=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};var Cp={attribute:!0,type:String,converter:Zr,reflect:!1,hasChanged:Mo},hl=(r=Cp,t,e)=>{let{kind:o,metadata:n}=e,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(e.name,r),o==="accessor"){let{name:s}=e;return{set(l){let c=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,c,r)},init(l){return l!==void 0&&this.C(s,void 0,r),l}}}if(o==="setter"){let{name:s}=e;return function(l){let c=this[s];t.call(this,l),this.requestUpdate(s,c,r)}}throw Error("Unsupported decorator location: "+o)};function g(r){return(t,e)=>typeof e=="object"?hl(r,t,e):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,s?{...o,wrapped:!0}:o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,t,e)}function H(r){return g({...r,state:!0,attribute:!1})}function ge(r){return(t,e)=>{let o=typeof t=="function"?t:t[e];Object.assign(o,r)}}var qt=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);function Z(r,t){return(e,o,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(t){let{get:s,set:l}=typeof o=="object"?e:n??(()=>{let c=Symbol();return{get(){return this[c]},set(d){this[c]=d}}})();return qt(e,o,{get(){let c=s.call(this);return c===void 0&&(c=a(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return qt(e,o,{get(){return a(this)}})}}var Ap;function Rp(r){return(t,e)=>qt(t,e,{get(){return(this.renderRoot??(Ap??=document.createDocumentFragment())).querySelectorAll(r)}})}function _p(r){return(t,e)=>qt(t,e,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function fn(r){return(t,e)=>{let{slot:o,selector:n}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return qt(t,e,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(c=>c.matches(n))}})}}function ao(r){return(t,e)=>{let{slot:o}=r??{},n="slot"+(o?`[name=${o}]`:":not([name])");return qt(t,e,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var gn={};Q(gn,{repeat:()=>mn});var Te={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ie=r=>(...t)=>({_$litDirective$:r,values:t}),oe=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{D:Np}=Js;var ml=()=>document.createComment(""),Er=(r,t,e)=>{let o=r._$AA.parentNode,n=t===void 0?r._$AB:t._$AA;if(e===void 0){let a=o.insertBefore(ml(),n),s=o.insertBefore(ml(),n);e=new Np(a,s,r,r.options)}else{let a=e._$AB.nextSibling,s=e._$AM,l=s!==r;if(l){let c;e._$AQ?.(r),e._$AM=r,e._$AP!==void 0&&(c=r._$AU)!==s._$AU&&e._$AP(c)}if(a!==n||l){let c=e._$AA;for(;c!==a;){let d=c.nextSibling;o.insertBefore(c,n),c=d}}}return e},Pe=(r,t,e=r)=>(r._$AI(t,e),r),Tp={},gl=(r,t=Tp)=>r._$AH=t,yl=r=>r._$AH,ei=r=>{r._$AP?.(!1,!0);let t=r._$AA,e=r._$AB.nextSibling;for(;t!==e;){let o=t.nextSibling;t.remove(),t=o}};var bl=(r,t,e)=>{let o=new Map;for(let n=t;n<=e;n++)o.set(r[n],n);return o},mn=Ie(class extends oe{constructor(r){if(super(r),r.type!==Te.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,t,e){let o;e===void 0?e=t:t!==void 0&&(o=t);let n=[],a=[],s=0;for(let l of r)n[s]=o?o(l,s):s,a[s]=e(l,s),s++;return{values:a,keys:n}}render(r,t,e){return this.ht(r,t,e).values}update(r,[t,e,o]){let n=yl(r),{values:a,keys:s}=this.ht(t,e,o);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],c=[],d,u,h=0,y=n.length-1,b=0,v=a.length-1;for(;h<=y&&b<=v;)if(n[h]===null)h++;else if(n[y]===null)y--;else if(l[h]===s[b])c[b]=Pe(n[h],a[b]),h++,b++;else if(l[y]===s[v])c[v]=Pe(n[y],a[v]),y--,v--;else if(l[h]===s[v])c[v]=Pe(n[h],a[v]),Er(r,c[v+1],n[h]),h++,v--;else if(l[y]===s[b])c[b]=Pe(n[y],a[b]),Er(r,n[h],n[y]),y--,b++;else if(d===void 0&&(d=bl(s,b,v),u=bl(l,h,y)),d.has(l[h]))if(d.has(l[y])){let w=u.get(s[b]),T=w!==void 0?n[w]:null;if(T===null){let I=Er(r,n[h]);Pe(I,a[b]),c[b]=I}else c[b]=Pe(T,a[b]),Er(r,n[h],T),n[w]=null;b++}else ei(n[y]),y--;else ei(n[h]),h++;for(;b<=v;){let w=Er(r,c[v+1]);Pe(w,a[b]),c[b++]=w}for(;h<=y;){let w=n[h++];w!==null&&ei(w)}return this.dt=s,gl(r,c),Ft}});var yn={};Q(yn,{classMap:()=>Tt});var Tt=Ie(class extends oe{constructor(r){if(super(r),r.type!==Te.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.st?.has(o)&&this.it.add(o);return this.render(t)}let e=r.element.classList;for(let o of this.it)o in t||(e.remove(o),this.it.delete(o));for(let o in t){let n=!!t[o];n===this.it.has(o)||this.st?.has(o)||(n?(e.add(o),this.it.add(o)):(e.remove(o),this.it.delete(o)))}return Ft}});var bn={};Q(bn,{styleMap:()=>Pp});var vl="important",Ip=" !"+vl,Pp=Ie(class extends oe{constructor(r){if(super(r),r.type!==Te.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((t,e)=>{let o=r[e];return o==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(r,[t]){let{style:e}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(t)),this.render(t);for(let o of this.ut)t[o]==null&&(this.ut.delete(o),o.includes("-")?e.removeProperty(o):e[o]=null);for(let o in t){let n=t[o];if(n!=null){this.ut.add(o);let a=typeof n=="string"&&n.endsWith(Ip);o.includes("-")||a?e.setProperty(o,a?n.slice(0,-11):n,a?vl:""):e[o]=n}}return Ft}});var xn={};Q(xn,{UnsafeHTMLDirective:()=>Cr,unsafeHTML:()=>vn});var Cr=class extends oe{constructor(t){if(super(t),this.et=ct,t.type!==Te.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ct||t==null)return this.vt=void 0,this.et=t;if(t===Ft)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;let e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Cr.directiveName="unsafeHTML",Cr.resultType=1;var vn=Ie(Cr);var wn={};Q(wn,{CacheRegistry:()=>ie});var On={};Q(On,{CancelablePromise:()=>Ar,CanceledPromiseError:()=>ar,cancelable:()=>Sn});var ar=class extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}},Ar=class extends Promise{constructor(t){super((e,o)=>t(n=>{this.isCanceled?o(new ar("Promise has been canceled",n)):e(n)},n=>{this.isCanceled?o(new ar("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Sn=r=>new Ar((t,e)=>r.then(t).catch(e));var ie=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(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,e){this.forceClear(t),this.register(t,async()=>e),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,async()=>e),this.content[t]=e}async get(t,e,o){if(this.content[t]===void 0){if(e=e??this.loaders[t],e==null)throw new Error("Unknown cache key "+t);let n=Sn(e());return this.content[t]=n,n.then(a=>(this.content[t]=a,o!=null&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout(()=>this.clear(t),o)),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 En={};Q(En,{ClusteringHelper:()=>so});var so=class r{constructor(t,e,o,n){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=o,this.metadataDescriptors=n}static extractResultMetadata(t,e){var o,n;let a=((n=(o=t?.map)!==null&&o!==void 0?o:t?.document)!==null&&n!==void 0?n:t?.topic).metadata;return e==null?r.flattenMetadata(a):r.flattenMetadata(a.find(s=>s.key===e))}static flattenMetadata(t){if(Array.isArray(t))return t.map(o=>r.flattenMetadata(o)).filter(o=>o!=null);let e=t?.hierarchicalValues!=null&&t.hierarchicalValues.length>0;if(!(t==null||t.values.length==0&&!e))if(e){let o=[],n=[];return t.hierarchicalValues.forEach(a=>{o.push(a.join(" > ")),a.length>2?n.push(`... > ${a[a.length-1]}`):n.push(a.join(" > "))}),{key:t.key,label:t.label,value:o.join(", "),displayValue:n.join(", ")}}else{let o=t.values.join(", ");return{key:t.key,label:t.label,value:o,displayValue:o}}}computeClustersItemsForMetadata(t,e,o="No value"){var n,a;let s=r.extractResultMetadata(this.selectedResult,t),l=(n=s?.label)!==null&&n!==void 0?n:(a=this.getMetadataDescriptor(t))===null||a===void 0?void 0:a.label;return this.allResults.map(d=>r.extractResultMetadata(d,t)).map(d=>d??{key:t,label:l,value:void 0,displayValue:o}).filter(d=>d.value!=s?.value).filter((d,u,h)=>h.findIndex(y=>y.value===d.value)===u).map(d=>({result:this.findBestResultForMetadataValue(t,d.value),metadata:d})).sort((d,u)=>this.compareMetadata(d.metadata.value,u.metadata.value,t,e))}compareMetadata(t,e,o,n){if(t==null)return-1;if(e==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let c=t.localeCompare(e,n,{numeric:!0});return l?c*-1:c}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(e=>t==e.key)}findBestResultForMetadataValue(t,e){let o=this.allResults.filter(c=>{var d;return((d=r.extractResultMetadata(c,t))===null||d===void 0?void 0:d.value)==e}),a=[...r.extractResultMetadata(this.selectedResult).filter(c=>this.clusteringMetadata.has(c.key)).filter(c=>c.key!==t)],s,l=-1;for(let c of o){let d=this.countMatchingMetadata(c,a);if(d>l&&(l=d,s=c,d===a.length))break}return s}countMatchingMetadata(t,e){return r.extractResultMetadata(t).filter(o=>e.some(n=>n.key===o.key&&n.value===o.value)).length}};var Cn={};Q(Cn,{Debouncer:()=>ot});var ot=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((e,o)=>{this.resolvePromise=e,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,e;let o=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(e=this.resolvePromise)!==null&&e!==void 0?e:()=>null;this.clearPromise();for(let s of o)try{await s()}catch(l){n(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 Nn={};Q(Nn,{customElement:()=>V,isNumber:()=>Sl,jsonProperty:()=>ne,optionalNumberProperty:()=>Mp});var _n={};Q(_n,{dateReviver:()=>$p,deepEqual:()=>Yt,delay:()=>ri,eventPathContainsMatchingElement:()=>Lp,flatDeep:()=>xl,hasChanged:()=>co,last:()=>Dp,minmax:()=>Rn,parseDate:()=>oi,waitFor:()=>lo,waitUntil:()=>An});var ri=r=>new Promise(t=>setTimeout(t,r));async function An(r,t=10,e=2e4){await lo(async()=>await r()||void 0,t,e)}async function lo(r,t=10,e=2e4){let o=await r(),n,a;for(n=a=performance.now();o==null&&(!e||a-n<e);)await ri(t),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function xl(r,t){return r.flatMap(e=>[e,...xl(t(e),t)])}function $p(...r){return function(t,e){return r.includes(t)?oi(e):e}}function oi(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,e,o,n)=>e+o+":"+n),new Date(r)}function kp(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var e,o,n;if(Array.isArray(r)){if(e=r.length,e!=t.length)return!1;for(o=e;o--!==0;)if(!Yt(r[o],t[o]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(o of r.entries())if(!t.has(o[0]))return!1;for(o of r.entries())if(!Yt(o[1],t.get(o[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(o of r.entries())if(!t.has(o[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(n=Object.keys(r),e=n.length,e!==Object.keys(t).length)return!1;for(o=e;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(o=e;o--!==0;){var a=n[o];if(!Yt(r[a],t[a]))return!1}return!0}return r!==r&&t!==t}function Yt(r,t){try{return kp(r,t)}catch{return!1}}function co(r,t){return!Yt(r,t)}function Lp(r,t,e=window.document.body){if(t.length>0){let o=r.composedPath();for(let n of o){if(n===e)return!1;if(n.matches&&t.some(a=>n.matches(a)))return!0}}return!1}function Rn(r,t,e){return Math.min(Math.max(r,t),e)}function Dp(r){return r[r.length-1]}var V=r=>t=>{window.customElements.get(r)||window.customElements.define(r,t)};function ne(r,t){let e=()=>JSON.parse(JSON.stringify(r));return g({type:Object,converter:{fromAttribute:o=>{if(o==null)return e();try{return JSON.parse(o)}catch{return e()}},toAttribute:o=>JSON.stringify(o)},hasChanged:co,...t??{}})}function Mp(r){return g({type:Object,converter:{fromAttribute:t=>{if(t!=null)return Sl(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...r??{}})}function Sl(r){return!isNaN(parseFloat(r))}var ia={};Q(ia,{designSystemVariables:()=>R});var oa={};Q(oa,{DesignSystemFamily:()=>sr,DesignSystemSize:()=>be,FtCssVariableFactory:()=>i,badge:()=>Wp,banner:()=>zp,breadcrumb:()=>Hp,button:()=>A,chart:()=>ru,checkbox:()=>iu,chip:()=>Bp,collapsible:()=>tu,comboboxMultiSelect:()=>Jp,comboboxSingleSelect:()=>Xp,drawer:()=>Kp,floatingMenu:()=>Yp,foundation:()=>p,link:()=>Fp,modal:()=>jp,notice:()=>ou,notification:()=>su,pageHeader:()=>Vp,popover:()=>Qp,radio:()=>au,resolveFamilyClass:()=>ea,resolveSizeClass:()=>ra,semantic:()=>f,setVariable:()=>E,switch_:()=>eu,tabs:()=>Gp,textArea:()=>qp,textInput:()=>Zp,toggle:()=>nu,tooltip:()=>lu,typographies:()=>po,typographyBody1Medium:()=>Ln,typographyBody1Regular:()=>kn,typographyBody1Semibold:()=>Dn,typographyBody2Medium:()=>Un,typographyBody2MediumUnderline:()=>Ol,typographyBody2Regular:()=>Mn,typographyBody2Semibold:()=>Bn,typographyCaption1Bold:()=>Zn,typographyCaption1Medium:()=>Kn,typographyCaption1Semibold:()=>Gn,typographyCaption2Bold:()=>Xn,typographyCaption2Medium:()=>qn,typographyCaption2Semibold:()=>Yn,typographyCaption3Bold:()=>ta,typographyCaption3Medium:()=>Jn,typographyCaption3Semibold:()=>Qn,typographyDisplay:()=>Tn,typographyLabel1Bold:()=>Wn,typographyLabel1Medium:()=>Fn,typographyLabel1Semibold:()=>zn,typographyLabel2Bold:()=>jn,typographyLabel2Medium:()=>Hn,typographyLabel2Semibold:()=>Vn,typographyTitle1:()=>In,typographyTitle2:()=>Pn,typographyTitle3:()=>$n,typographyVariants:()=>Up});var ye=r=>typeof r=="string"?fe(r):r,i=class{static create(t,e,o,n){let a=l=>ye(l??n),s=P`var(${ye(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${ye(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,e,o,n){let a=l=>o.get(l??n),s=P`var(${ye(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${ye(t)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(t,e){let o=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):ye(a??t.lastResortDefaultValue()),n=P`var(${ye(t.name)}, ${o(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=o,n.get=a=>P`var(${ye(t.name)}, ${o(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};function E(r,t){return ye(`${r.name}: ${t}`)}var p={colorWhite:i.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:i.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:i.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:i.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:i.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:i.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:i.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:i.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:i.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:i.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:i.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:i.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:i.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:i.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:i.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:i.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:i.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:i.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:i.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:i.create("--ft-opacity-0","","NUMBER","0"),opacity8:i.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:i.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:i.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:i.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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)")},Tn={fontFamily:i.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:i.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-display-textCase","","UNKNOWN","none")},In={fontFamily:i.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:i.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Pn={fontFamily:i.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:i.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},$n={fontFamily:i.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:i.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:i.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},kn={fontFamily:i.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:i.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},Ln={fontFamily:i.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Dn={fontFamily:i.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Mn={fontFamily:i.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:i.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Un={fontFamily:i.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Ol={fontFamily:i.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:i.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:i.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Bn={fontFamily:i.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Fn={fontFamily:i.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},zn={fontFamily:i.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Wn={fontFamily:i.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Hn={fontFamily:i.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Vn={fontFamily:i.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},jn={fontFamily:i.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Kn={fontFamily:i.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Gn={fontFamily:i.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Zn={fontFamily:i.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},qn={fontFamily:i.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Yn={fontFamily:i.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Xn={fontFamily:i.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Jn={fontFamily:i.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Qn={fontFamily:i.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},ta={fontFamily:i.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},po={display:Tn,"title-1":In,"title-2":Pn,"title-3":$n,"body-1-regular":kn,"body-1-medium":Ln,"body-1-semibold":Dn,"body-2-regular":Mn,"body-2-medium":Un,"body-2-medium-underline":Ol,"body-2-semibold":Bn,"label-1-medium":Fn,"label-1-semibold":zn,"label-1-bold":Wn,"label-2-medium":Hn,"label-2-semibold":Vn,"label-2-bold":jn,"caption-1-medium":Kn,"caption-1-semibold":Gn,"caption-1-bold":Zn,"caption-2-medium":qn,"caption-2-semibold":Yn,"caption-2-bold":Xn,"caption-3-medium":Jn,"caption-3-semibold":Qn,"caption-3-bold":ta},Up=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var f={backgroundActionPrimary:i.extend("--ft-background-action-primary","Used as backgorund of primary action components.",p.colorBrand0),backgroundErrorSubtle:i.extend("--ft-background-error-subtle","Used as background of subtle error components.",p.colorRed10),backgroundInfoSubtle:i.extend("--ft-background-info-subtle","Used as background of subtle information components.",p.colorCyan10),backgroundWarningSubtle:i.extend("--ft-background-warning-subtle","Used as background of subtle information components.",p.colorOrange10),backgroundSuccessSubtle:i.extend("--ft-background-success-subtle","Used as background of subtle success components.",p.colorGreen10),backgroundGlobalSurface:i.extend("--ft-background-global-surface","Used as app background.",p.colorWhite),backgroundGlobalOnSurface:i.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",p.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",p.colorGray30),contentActionPrimary:i.extend("--ft-content-action-primary","Used on label of primary action on light surface.",p.colorBrand0),contentWarningPrimary:i.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",p.colorOrange200),contentWarningIconOnly:i.extend("--ft-content-warning-icon-only","Used on warning status icons alone",p.colorOrange0),contentErrorPrimary:i.extend("--ft-content-error-primary","Used on label of error messages on light surface.",p.colorRed0),contentErrorIconOnly:i.extend("--ft-content-error-icon-only","Used on error status icons alone",p.colorRed70),contentInfoPrimary:i.extend("--ft-content-info-primary","Used on label of information messages on light surface.",p.colorCyan200),contentInfoIconOnly:i.extend("--ft-content-info-icon-only","Used on info status icons alone",p.colorCyan0),contentSuccessPrimary:i.extend("--ft-content-success-primary","Used on label of success messages on light surface.",p.colorGreen200),contentSuccessIconOnly:i.extend("--ft-content-success-icon-only","Used on success status icons alone",p.colorGreen0),contentGlobalPrimary:i.extend("--ft-content-global-primary","Used for main content on the page.",p.colorGray500),contentGlobalSecondary:i.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
6
- Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",p.colorGray0),contentGlobalOnColor:i.extend("--ft-content-global-on-color","Used for content on a dominant color.",p.colorWhite),borderActionPrimary:i.extend("--ft-border-action-primary","Used as border for primary action components.",p.colorBrand0),borderActionFocusRing:i.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",p.colorCyan0),borderWarningPrimary:i.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",p.colorOrange200),borderWarningSubtle:i.extend("--ft-border-warning-subtle","Used as border for warning components.",p.colorOrange30),borderSuccessPrimary:i.extend("--ft-border-success-primary","Used as border for success buttons.",p.colorGreen200),borderSuccessSubtle:i.extend("--ft-border-success-subtle","Used as border for success components.",p.colorGreen30),borderErrorPrimary:i.extend("--ft-border-error-primary","Used as border for text fields in error states.",p.colorRed0),borderErrorSubtle:i.extend("--ft-border-error-subtle","Used as border for error components.",p.colorRed30),borderInfoPrimary:i.extend("--ft-border-info-primary","Used as border for buttons in info color.",p.colorCyan200),borderInfoSubtle:i.extend("--ft-border-info-subtle","Used as border for information components.",p.colorCyan30),borderGlobalPrimary:i.extend("--ft-border-global-primary","Used as border for element like input.",p.colorGray50),borderGlobalSubtle:i.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",p.colorGray30),borderInputPrimary:i.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",p.colorGray80)};var A={largeHeight:i.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ft-button-large-horizontal-padding","",p.spacing4),largeGap:i.extend("--ft-button-large-gap","",p.spacing2),largeBorderRadius:i.extend("--ft-button-large-border-radius","",p.borderRadiusS),largeIconSize:i.extend("--ft-button-large-icon-size","",p.iconSize3),largeBorderWidth:i.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:i.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:i.extend("--ft-button-medium-horizontal-padding","",p.spacing3),mediumGap:i.extend("--ft-button-medium-gap","",p.spacing2),mediumBorderRadius:i.extend("--ft-button-medium-border-radius","",p.borderRadiusS),mediumIconSize:i.extend("--ft-button-medium-icon-size","",p.iconSize2),mediumBorderWidth:i.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:i.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:i.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:i.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ft-button-small-horizontal-padding","",p.spacing2),smallGap:i.extend("--ft-button-small-gap","",p.spacing1),smallBorderRadius:i.extend("--ft-button-small-border-radius","",p.borderRadiusS),smallIconSize:i.extend("--ft-button-small-icon-size","",p.iconSize1),smallBorderWidth:i.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:i.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:i.extend("--ft-button-x-small-icon-size","",p.iconSize1),xSmallFocusOutlineOffset:i.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:i.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:i.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:i.extend("--ft-button-round-border-radius","",p.borderRadiusPill),primaryBackgroundColor:i.extend("--ft-button-primary-background-color","",f.backgroundActionPrimary),primaryColor:i.extend("--ft-button-primary-color","",f.contentGlobalOnColor),primaryIconColor:i.extend("--ft-button-primary-icon-color","",f.contentGlobalOnColor),primaryStateLayerColor:i.extend("--ft-button-primary-state-layer-color","",f.contentGlobalOnColor),primaryHoverStateLayerOpacity:i.extend("--ft-button-primary-hover-state-layer-opacity","",p.opacity16),primaryFocusStateLayerOpacity:i.extend("--ft-button-primary-focus-state-layer-opacity","",p.opacity16),primaryActiveStateLayerOpacity:i.extend("--ft-button-primary-active-state-layer-opacity","",p.opacity24),primaryDisabledComponentOpacity:i.extend("--ft-button-primary-disabled-component-opacity","",p.opacity40),focusFocusRingColor:i.extend("--ft-button-focus-focus-ring-color","",f.borderActionFocusRing),tertiaryBackgroundColor:i.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:i.extend("--ft-button-tertiary-color","",f.contentActionPrimary),tertiaryIconColor:i.extend("--ft-button-tertiary-icon-color","",f.contentActionPrimary),tertiaryStateLayerColor:i.extend("--ft-button-tertiary-state-layer-color","",f.contentActionPrimary),tertiaryHoverStateLayerOpacity:i.extend("--ft-button-tertiary-hover-state-layer-opacity","",p.opacity8),tertiaryFocusStateLayerOpacity:i.extend("--ft-button-tertiary-focus-state-layer-opacity","",p.opacity8),tertiaryActiveStateLayerOpacity:i.extend("--ft-button-tertiary-active-state-layer-opacity","",p.opacity16),tertiaryDisabledComponentOpacity:i.extend("--ft-button-tertiary-disabled-component-opacity","",p.opacity40),secondaryBackgroundColor:i.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:i.extend("--ft-button-secondary-color","",f.contentActionPrimary),secondaryIconColor:i.extend("--ft-button-secondary-icon-color","",f.contentActionPrimary),secondaryStateLayerColor:i.extend("--ft-button-secondary-state-layer-color","",f.contentActionPrimary),secondaryHoverStateLayerOpacity:i.extend("--ft-button-secondary-hover-state-layer-opacity","",p.opacity8),secondaryFocusStateLayerOpacity:i.extend("--ft-button-secondary-focus-state-layer-opacity","",p.opacity8),secondaryActiveStateLayerOpacity:i.extend("--ft-button-secondary-active-state-layer-opacity","",p.opacity16),secondaryDisabledComponentOpacity:i.extend("--ft-button-secondary-disabled-component-opacity","",p.opacity40),secondaryBorderColor:i.extend("--ft-button-secondary-border-color","",f.borderActionPrimary),neutralBackgroundColor:i.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:i.extend("--ft-button-neutral-icon-color","",f.contentGlobalSecondary),neutralColor:i.extend("--ft-button-neutral-color","",f.contentGlobalSecondary),neutralStateLayerColor:i.extend("--ft-button-neutral-state-layer-color","",f.contentGlobalSecondary),neutralHoverStateLayerOpacity:i.extend("--ft-button-neutral-hover-state-layer-opacity","",p.opacity8),neutralFocusStateLayerOpacity:i.extend("--ft-button-neutral-focus-state-layer-opacity","",p.opacity8),neutralActiveStateLayerOpacity:i.extend("--ft-button-neutral-active-state-layer-opacity","",p.opacity16),neutralDisabledComponentOpacity:i.extend("--ft-button-neutral-disabled-component-opacity","",p.opacity40)};var Bp={largeMinHeight:i.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ft-chip-large-horizontal-padding","",p.spacing3),largeButtonRightPadding:i.extend("--ft-chip-large-button-right-padding","",p.spacing1),largeGap:i.extend("--ft-chip-large-gap","",p.spacing1),largeFocusOutlineOffset:i.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ft-chip-large-icon-size","",p.iconSize3),mediumMinHeight:i.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ft-chip-medium-horizontal-padding","",p.spacing2),mediumButtonRightPadding:i.extend("--ft-chip-medium-button-right-padding","",p.spacing05),mediumGap:i.extend("--ft-chip-medium-gap","",p.spacing1),mediumFocusOutlineOffset:i.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ft-chip-medium-icon-size","",p.iconSize2),smallMinHeight:i.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ft-chip-small-horizontal-padding","",p.spacing1),smallButtonRightPadding:i.extend("--ft-chip-small-button-right-padding","",p.spacing05),smallGap:i.extend("--ft-chip-small-gap","",p.spacing1),smallFocusOutlineOffset:i.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:i.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ft-chip-small-icon-size","",p.iconSize1),neutralBackgroundColor:i.extend("--ft-chip-neutral-background-color","",f.backgroundGlobalOnSurface),neutralColor:i.extend("--ft-chip-neutral-color","",f.contentGlobalSecondary),neutralIconColor:i.extend("--ft-chip-neutral-icon-color","",f.contentGlobalSecondary),neutralBorderColor:i.extend("--ft-chip-neutral-border-color","",f.borderGlobalSubtle),infoBackgroundColor:i.extend("--ft-chip-info-background-color","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-chip-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-chip-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-chip-info-border-color","",f.borderInfoSubtle),successBackgroundColor:i.extend("--ft-chip-success-background-color","",f.backgroundSuccessSubtle),successColor:i.extend("--ft-chip-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-chip-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:i.extend("--ft-chip-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-chip-warning-background-color","",f.backgroundWarningSubtle),warningColor:i.extend("--ft-chip-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-chip-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:i.extend("--ft-chip-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-chip-error-background-color","",f.backgroundErrorSubtle),errorColor:i.extend("--ft-chip-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-chip-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:i.extend("--ft-chip-error-border-color","",f.borderErrorSubtle)};var Fp={focusOpacity:i.extend("--ft-link-focus-opacity","",p.opacity80),focusFocusRingColor:i.extend("--ft-link-focus-focus-ring-color","",f.borderActionFocusRing),brandColor:i.extend("--ft-link-brand-color","",f.contentActionPrimary),infoColor:i.extend("--ft-link-info-color","",f.contentInfoPrimary)};var zp={iconSize:i.extend("--ft-banner-icon-size","",p.iconSize5),borderWidth:i.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ft-banner-left-padding","",p.spacing6),rightPadding:i.extend("--ft-banner-right-padding","",p.spacing6),verticalPadding:i.extend("--ft-banner-vertical-padding","",p.spacing6),horizontalSideGap:i.extend("--ft-banner-horizontal-side-gap","",p.spacing6),horizontalMobileGap:i.extend("--ft-banner-horizontal-mobile-gap","",p.spacing4),verticalMobileGap:i.extend("--ft-banner-vertical-mobile-gap","",p.spacing6),horizontalMiddleGap:i.extend("--ft-banner-horizontal-middle-gap","",p.spacing20),infoBackgroundColor:i.extend("--ft-banner-info-background-color","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-banner-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-banner-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-banner-info-border-color","",f.borderInfoSubtle)};var Wp={horizontalPadding:i.extend("--ft-badge-horizontal-padding","",p.spacing1),verticalPadding:i.extend("--ft-badge-vertical-padding","",p.spacing1),borderRadius:i.extend("--ft-badge-border-radius","",p.borderRadiusPill),color:i.extend("--ft-badge-color","",f.contentGlobalOnColor),backgroundColor:i.extend("--ft-badge-background-color","",f.contentActionPrimary)};var Hp={horizontalGap:i.extend("--ft-breadcrumb-horizontal-gap","",p.spacing1),verticalGap:i.extend("--ft-breadcrumb-vertical-gap","",p.spacing2),currentColor:i.extend("--ft-breadcrumb-current-color","",f.contentGlobalPrimary),previousNonClickableColor:i.extend("--ft-breadcrumb-previous-non-clickable-color","",f.contentGlobalSecondary),iconColor:i.extend("--ft-breadcrumb-icon-color","",f.contentGlobalSubtle)};var Vp={horizontalPadding:i.extend("--ft-page-header-horizontal-padding","",p.spacing6),horizontalGap:i.extend("--ft-page-header-horizontal-gap","",p.spacing4),verticalGap:i.extend("--ft-page-header-vertical-gap","",p.spacing2),classicVerticalPadding:i.extend("--ft-page-header-classic-vertical-padding","",p.spacing6),multilineVerticalPadding:i.extend("--ft-page-header-multiline-vertical-padding","",p.spacing4),inlineVerticalPadding:i.extend("--ft-page-header-inline-vertical-padding","",p.spacing2),backgroundColor:i.extend("--ft-page-header-background-color","",p.colorWhite),bottomBorderColor:i.extend("--ft-page-header-bottom-border-color","",f.borderGlobalSubtle),titleColor:i.extend("--ft-page-header-title-color","",f.contentGlobalPrimary),subtitleColor:i.extend("--ft-page-header-subtitle-color","",f.contentGlobalSecondary)};var jp={smallContainerWidth:i.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:i.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:i.extend("--ft-modal-overlay-background-color","",p.colorGray700),overlayOpacity:i.extend("--ft-modal-overlay-opacity","",p.opacity40),shadow:i.extend("--ft-modal-shadow","",p.shadowElevation03),bodyBackgroundColor:i.extend("--ft-modal-body-background-color","",p.colorWhite),bodyColor:i.extend("--ft-modal-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-modal-body-horizontal-padding","",p.spacing6),bodyVerticalPadding:i.extend("--ft-modal-body-vertical-padding","",p.spacing6),bodyVerticalGap:i.extend("--ft-modal-body-vertical-gap","",p.spacing6),containerMargin:i.extend("--ft-modal-container-margin","",p.spacing3),headerBackgroundColor:i.extend("--ft-modal-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-modal-header-border-color","",f.borderGlobalSubtle),headerColor:i.extend("--ft-modal-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-modal-header-trailing-icon-color","",f.contentGlobalSecondary),headerVerticalPadding:i.extend("--ft-modal-header-vertical-padding","",p.spacing1),headerRightPadding:i.extend("--ft-modal-header-right-padding","",p.spacing1),headerLeftPadding:i.extend("--ft-modal-header-left-padding","",p.spacing6),headerGap:i.extend("--ft-modal-header-gap","",p.spacing2),headerBorderBottom:i.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:i.extend("--ft-modal-border-radius","",p.borderRadiusM)};var Kp={overlayOpacity:i.extend("--ft-drawer-overlay-opacity","",p.opacity40),shadow:i.extend("--ft-drawer-shadow","",p.shadowElevation03),bodyColor:i.extend("--ft-drawer-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-drawer-body-horizontal-padding","",p.spacing6),bodyVerticalPadding:i.extend("--ft-drawer-body-vertical-padding","",p.spacing6),bodyGap:i.extend("--ft-drawer-body-gap","",p.spacing6),bodyBackgroundColor:i.extend("--ft-drawer-body-background-color","",p.colorWhite),headerBackgroundColor:i.extend("--ft-drawer-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-drawer-header-border-color","",f.borderGlobalSubtle),headerColor:i.extend("--ft-drawer-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-drawer-header-trailing-icon-color","",f.contentGlobalSecondary),headerHeight:i.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ft-drawer-header-horizontal-padding","",p.spacing2),headerBorderWidth:i.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ft-drawer-header-gap","",p.spacing3),buttonsBarBackgroundColor:i.extend("--ft-drawer-buttons-bar-background-color","",f.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ft-drawer-buttons-bar-border-color","",f.borderGlobalSubtle),buttonsBarColor:i.extend("--ft-drawer-buttons-bar-color","",f.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ft-drawer-buttons-bar-horizontal-padding","",p.spacing4),buttonsBarVerticalPadding:i.extend("--ft-drawer-buttons-bar-vertical-padding","",p.spacing4),buttonsBarGap:i.extend("--ft-drawer-buttons-bar-gap","",p.spacing3),buttonsBarBorderWidth:i.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:i.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:i.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:i.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:i.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:i.extend("--ft-drawer-overlay-background-color","",p.colorGray700)};var Gp={offBorderBottomWidth:i.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ft-tabs-off-hover-state-layer-opacity","",p.opacity8),offDefaultStateLayerOpacity:i.extend("--ft-tabs-off-default-state-layer-opacity","",p.opacity0),offFocusStateLayerOpacity:i.extend("--ft-tabs-off-focus-state-layer-opacity","",p.opacity8),offDisabledComponentOpacity:i.extend("--ft-tabs-off-disabled-component-opacity","",p.opacity40),offColor:i.extend("--ft-tabs-off-color","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-tabs-off-state-layer-color","",f.contentGlobalSubtle),offBorderBottomColor:i.extend("--ft-tabs-off-border-bottom-color","",f.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:i.extend("--ft-tabs-top-left-border-radius","",p.borderRadiusS),topRightBorderRadius:i.extend("--ft-tabs-top-right-border-radius","",p.borderRadiusS),withLabelHorizontalPadding:i.extend("--ft-tabs-with-label-horizontal-padding","",p.spacing4),withLabelVerticalPadding:i.extend("--ft-tabs-with-label-vertical-padding","",p.spacing3),horizontalGap:i.extend("--ft-tabs-horizontal-gap","",p.spacing1),verticalGap:i.extend("--ft-tabs-vertical-gap","",p.spacing1),onHoverStateLayerOpacity:i.extend("--ft-tabs-on-hover-state-layer-opacity","",p.opacity16),onDefaultStateLayerOpacity:i.extend("--ft-tabs-on-default-state-layer-opacity","",p.opacity8),onFocusStateLayerOpacity:i.extend("--ft-tabs-on-focus-state-layer-opacity","",p.opacity16),onActiveStateLayerOpacity:i.extend("--ft-tabs-on-active-state-layer-opacity","",p.opacity24),onColor:i.extend("--ft-tabs-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ft-tabs-on-active-tab-indicator-color","",f.contentActionPrimary),iconOnlyHorizontalPadding:i.extend("--ft-tabs-icon-only-horizontal-padding","",p.spacing4),iconOnlyVerticalPadding:i.extend("--ft-tabs-icon-only-vertical-padding","",p.spacing4),alertTopPadding:i.extend("--ft-tabs-alert-top-padding","",p.spacing1),alertRightPadding:i.extend("--ft-tabs-alert-right-padding","",p.spacing05),focusOutlineWidth:i.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-tabs-focus-focus-ring-color","",f.borderActionFocusRing)};var Zp={fieldHorizontalPadding:i.extend("--ft-text-input-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-text-input-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-text-input-field-vertical-gap","",p.spacing05),fieldIconSize:i.extend("--ft-text-input-field-icon-size","",p.iconSize3),fieldHeight:i.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-text-input-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-text-input-helper-horizontal-gap","",p.spacing1),helperIconSize:i.extend("--ft-text-input-helper-icon-size","",p.iconSize2),borderRadius:i.extend("--ft-text-input-border-radius","",p.borderRadiusM),backgroundColor:i.extend("--ft-text-input-background-color","",p.colorWhite),contentValueColor:i.extend("--ft-text-input-content-value-color","",f.contentGlobalPrimary),trailingIconColor:i.extend("--ft-text-input-trailing-icon-color","",f.contentGlobalSubtle),labelColor:i.extend("--ft-text-input-label-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-input-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-input-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-text-input-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-input-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-input-error-helper-icon-color","",f.contentErrorIconOnly),warningBorderWidth:i.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-text-input-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-input-disabled-component-opacity","",p.opacity40)};var qp={backgroundColor:i.extend("--ft-text-area-background-color","",p.colorWhite),contentValueColor:i.extend("--ft-text-area-content-value-color","",f.contentGlobalPrimary),labelColor:i.extend("--ft-text-area-label-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-area-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-area-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-text-area-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-area-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-area-error-helper-icon-color","",f.contentErrorIconOnly),focusFocusRingColor:i.extend("--ft-text-area-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:i.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-area-disabled-component-opacity","",p.opacity40),fieldHorizontalLeftPadding:i.extend("--ft-text-area-field-horizontal-left-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-text-area-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-text-area-field-vertical-gap","",p.spacing05),fieldMinHeight:i.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:i.extend("--ft-text-area-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-text-area-helper-horizontal-gap","",p.spacing1),helperIconSize:i.extend("--ft-text-area-helper-icon-size","",p.iconSize2),borderRadius:i.extend("--ft-text-area-border-radius","",p.borderRadiusM)};var Yp={height:i.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:i.extend("--ft-floating-menu-horizontal-padding","",p.spacing4),offIconColor:i.extend("--ft-floating-menu-off-icon-color","",f.contentGlobalPrimary),offColor:i.extend("--ft-floating-menu-off-color","",f.contentGlobalPrimary),onColor:i.extend("--ft-floating-menu-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-floating-menu-on-state-layer-color","",f.contentActionPrimary),gap:i.extend("--ft-floating-menu-gap","",p.spacing3),focusFocusRingColor:i.extend("--ft-floating-menu-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:i.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ft-floating-menu-focus-state-layer-opacity","",p.opacity8),hoverStateLayerOpacity:i.extend("--ft-floating-menu-hover-state-layer-opacity","",p.opacity8),activeStateLayerOpacity:i.extend("--ft-floating-menu-active-state-layer-opacity","",p.opacity16),disabledComponentOpacity:i.extend("--ft-floating-menu-disabled-component-opacity","",p.opacity40),iconSize:i.extend("--ft-floating-menu-icon-size","",p.iconSize3),backgroundColor:i.extend("--ft-floating-menu-background-color","",f.backgroundGlobalOnSurface),shadow:i.extend("--ft-floating-menu-shadow","",p.shadowElevation02)};var Xp={fieldHorizontalPadding:i.extend("--ft-combobox-single-select-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-single-select-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-combobox-single-select-field-vertical-gap","",p.spacing05),fieldIconSize:i.extend("--ft-combobox-single-select-field-icon-size","",p.iconSize3),fieldHeight:i.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-combobox-single-select-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-combobox-single-select-helper-horizontal-gap","",p.spacing1),helperVerticalGap:i.extend("--ft-combobox-single-select-helper-vertical-gap","",p.spacing1),helperIconSize:i.extend("--ft-combobox-single-select-helper-icon-size","",p.iconSize2),menuVerticalGap:i.extend("--ft-combobox-single-select-menu-vertical-gap","",p.spacing2),borderRadius:i.extend("--ft-combobox-single-select-border-radius","",p.borderRadiusM),backgroundColor:i.extend("--ft-combobox-single-select-background-color","",p.colorWhite),labelColor:i.extend("--ft-combobox-single-select-label-color","",f.contentGlobalSubtle),contentValueColor:i.extend("--ft-combobox-single-select-content-value-color","",f.contentGlobalPrimary),trailingIconColor:i.extend("--ft-combobox-single-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-single-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-single-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-combobox-single-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-single-select-error-helper-text-color","",f.contentErrorPrimary),warningBorderWidth:i.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-single-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-single-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-single-select-warning-helper-icon-color","",f.contentWarningIconOnly),focusOutlineWidth:i.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-single-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-single-select-disabled-component-opacity","",p.opacity40)};var Jp={backgroundColor:i.extend("--ft-combobox-multi-select-background-color","",p.colorWhite),labelColor:i.extend("--ft-combobox-multi-select-label-color","",f.contentGlobalSubtle),trailingIconColor:i.extend("--ft-combobox-multi-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-multi-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-multi-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:i.extend("--ft-combobox-multi-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-multi-select-error-helper-text-color","",f.contentErrorPrimary),errorHelperIcon:i.extend("--ft-combobox-multi-select-error-helper-icon","",f.contentErrorIconOnly),errorBorderWidth:i.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-multi-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-multi-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-multi-select-warning-helper-icon-color","",f.contentWarningIconOnly),warningBorderWidth:i.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-multi-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:i.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-multi-select-disabled-component-opacity","",p.opacity40),helperHorizontalPadding:i.extend("--ft-combobox-multi-select-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-combobox-multi-select-helper-horizontal-gap","",p.spacing1),helperVerticalGap:i.extend("--ft-combobox-multi-select-helper-vertical-gap","",p.spacing1),helperIconSize:i.extend("--ft-combobox-multi-select-helper-icon-size","",p.iconSize2),fieldHorizontalPadding:i.extend("--ft-combobox-multi-select-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-multi-select-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-combobox-multi-select-field-vertical-gap","",p.spacing05),fieldIconSize:i.extend("--ft-combobox-multi-select-field-icon-size","",p.iconSize3),fieldMaxHeight:i.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:i.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",p.spacing1),contentValuesVerticalGap:i.extend("--ft-combobox-multi-select-content-values-vertical-gap","",p.spacing1),borderRadius:i.extend("--ft-combobox-multi-select-border-radius","",p.borderRadiusM)};var Qp={backgroundColor:i.extend("--ft-popover-background-color","",f.backgroundGlobalOnSurface),horizontalPadding:i.extend("--ft-popover-horizontal-padding","",p.spacing6),verticalPadding:i.extend("--ft-popover-vertical-padding","",p.spacing6),titleColor:i.extend("--ft-popover-title-color","",f.contentGlobalPrimary),bodyColor:i.extend("--ft-popover-body-color","",f.contentGlobalSecondary),linkColor:i.extend("--ft-popover-link-color","",f.contentActionPrimary),gap:i.extend("--ft-popover-gap","",p.spacing3),borderRadius:i.extend("--ft-popover-border-radius","",p.borderRadiusM),shadow:i.extend("--ft-popover-shadow","",p.shadowElevation02)};var tu={hoverStateLayerOpacity:i.extend("--ft-collapsible-hover-state-layer-opacity","",p.opacity8),focusStateLayerOpacity:i.extend("--ft-collapsible-focus-state-layer-opacity","",p.opacity8),focusOutlineWidth:i.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ft-collapsible-focus-focus-ring-color","",f.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ft-collapsible-active-state-layer-opacity","",p.opacity16),disabledComponentOpacity:i.extend("--ft-collapsible-disabled-component-opacity","",p.opacity40),horizontalPadding:i.extend("--ft-collapsible-horizontal-padding","",p.spacing4),verticalPadding:i.extend("--ft-collapsible-vertical-padding","",p.spacing3),color:i.extend("--ft-collapsible-color","",f.contentGlobalPrimary),stateLayerColor:i.extend("--ft-collapsible-state-layer-color","",f.contentGlobalPrimary),backgroundColor:i.extend("--ft-collapsible-background-color","",f.backgroundGlobalOnSurface),borderColor:i.extend("--ft-collapsible-border-color","",f.borderGlobalSubtle),iconSize:i.extend("--ft-collapsible-icon-size","",p.iconSize3)};var eu={groupHorizontalPadding:i.extend("--ft-switch-group-horizontal-padding","",p.spacing1),groupVerticalPadding:i.extend("--ft-switch-group-vertical-padding","",p.spacing1),groupGap:i.extend("--ft-switch-group-gap","",p.spacing1),groupBackgroundColor:i.extend("--ft-switch-group-background-color","",f.backgroundGlobalSurface),groupBorderColor:i.extend("--ft-switch-group-border-color","",f.borderGlobalSubtle),groupBorderRadius:i.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ft-switch-label-horizontal-padding","",p.spacing2),labelVerticalPadding:i.extend("--ft-switch-label-vertical-padding","",p.spacing1),offHoverStateLayerOpacity:i.extend("--ft-switch-off-hover-state-layer-opacity","",p.opacity8),offFocusStateLayerOpacity:i.extend("--ft-switch-off-focus-state-layer-opacity","",p.opacity8),offActiveStateLayerOpacity:i.extend("--ft-switch-off-active-state-layer-opacity","",p.opacity16),offDisabledComponentOpacity:i.extend("--ft-switch-off-disabled-component-opacity","",p.opacity40),offColor:i.extend("--ft-switch-off-color","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-switch-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-switch-on-hover-state-layer-opacity","",p.opacity8),onFocusStateLayerOpacity:i.extend("--ft-switch-on-focus-state-layer-opacity","",p.opacity8),onActiveStateLayerOpacity:i.extend("--ft-switch-on-active-state-layer-opacity","",p.opacity16),onDisabledComponentOpacity:i.extend("--ft-switch-on-disabled-component-opacity","",p.opacity40),onColor:i.extend("--ft-switch-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-switch-on-state-layer-color","",f.contentActionPrimary),iconHorizontalPadding:i.extend("--ft-switch-icon-horizontal-padding","",p.spacing1),iconVerticalPadding:i.extend("--ft-switch-icon-vertical-padding","",p.spacing1),focusOutlineWidth:i.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-switch-focus-focus-ring-color","",f.borderActionFocusRing),optionBorderRadius:i.extend("--ft-switch-option-border-radius","",p.borderRadiusS)};var ru={color1Light:i.extend("--ft-chart-1-light","for area color charts",p.colorBrand40),color1Base:i.extend("--ft-chart-1-base","for line charts",p.colorBrand0),color2Light:i.extend("--ft-chart-2-light","for area color charts",p.colorYellow60),color2Base:i.extend("--ft-chart-2-base","for line charts",p.colorYellow100),color3Light:i.extend("--ft-chart-3-light","",p.colorUltramarine40),color3Base:i.extend("--ft-chart-3-base","",p.colorUltramarine70),color4Light:i.extend("--ft-chart-4-light","",p.colorCyan50),color4Base:i.extend("--ft-chart-4-base","",p.colorCyan100),color5Light:i.extend("--ft-chart-5-light","",p.colorRed40),color5Base:i.extend("--ft-chart-5-base","",p.colorRed60),color6Light:i.extend("--ft-chart-6-light","",p.colorGreen40),color6Base:i.extend("--ft-chart-6-base","",p.colorGreen70),color7Light:i.extend("--ft-chart-7-light","",p.colorOrange70),color7Base:i.extend("--ft-chart-7-base","",p.colorOrange100),color8Light:i.extend("--ft-chart-8-light","",p.colorAvocado70),color8Base:i.extend("--ft-chart-8-base","",p.colorAvocado200),color9Light:i.extend("--ft-chart-9-light","",p.colorBrown50),color9Base:i.extend("--ft-chart-9-base","",p.colorBrown200),color10Light:i.extend("--ft-chart-10-light","",p.colorGray50),color10Base:i.extend("--ft-chart-10-base","",p.colorGray80),monochrome10:i.extend("--ft-chart-monochrome-10","",p.colorBrand10),monochrome20:i.extend("--ft-chart-monochrome-20","",p.colorBrand20),monochrome30:i.extend("--ft-chart-monochrome-30","",p.colorBrand40),monochrome40:i.extend("--ft-chart-monochrome-40","",p.colorBrand60),monochrome50:i.extend("--ft-chart-monochrome-50","",p.colorBrand0),monochrome60:i.extend("--ft-chart-monochrome-60","",p.colorBrand200)};var ou={borderWidth:i.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ft-notice-horizontal-padding","",p.spacing3),verticalPadding:i.extend("--ft-notice-vertical-padding","",p.spacing2),borderRadius:i.extend("--ft-notice-border-radius","",p.borderRadiusS),gap:i.extend("--ft-notice-gap","",p.spacing2),iconSize:i.extend("--ft-notice-icon-size","",p.iconSize3),infoBackgroundColor:i.extend("--ft-notice-info-background-color","",f.backgroundInfoSubtle),infoBorderColor:i.extend("--ft-notice-info-border-color","",f.borderInfoSubtle),infoColor:i.extend("--ft-notice-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-notice-info-icon-color","",f.contentInfoIconOnly),warningBackgroundColor:i.extend("--ft-notice-warning-background-color","",f.backgroundWarningSubtle),warningBorderColor:i.extend("--ft-notice-warning-border-color","",f.borderWarningSubtle),warningColor:i.extend("--ft-notice-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-notice-warning-icon-color","",f.contentWarningIconOnly),errorBackgroundColor:i.extend("--ft-notice-error-background-color","",f.backgroundErrorSubtle),errorBorderColor:i.extend("--ft-notice-error-border-color","",f.borderErrorSubtle),errorColor:i.extend("--ft-notice-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-notice-error-icon-color","",f.contentErrorIconOnly),successBackgroundColor:i.extend("--ft-notice-success-background-color","",f.backgroundSuccessSubtle),successBorderColor:i.extend("--ft-notice-success-border-color","",f.borderSuccessSubtle),successColor:i.extend("--ft-notice-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-notice-success-icon-color","",f.contentSuccessIconOnly)};var iu={color:i.extend("--ft-checkbox-color","",f.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ft-checkbox-checked-background-color","",f.contentActionPrimary),checkedStateLayerColor:i.extend("--ft-checkbox-checked-state-layer-color","",f.contentActionPrimary),checkedIconColor:i.extend("--ft-checkbox-checked-icon-color","",f.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ft-checkbox-checked-hover-state-layer-opacity","",p.opacity16),checkedFocusStateLayerOpacity:i.extend("--ft-checkbox-checked-focus-state-layer-opacity","",p.opacity16),checkedActiveStateLayerOpacity:i.extend("--ft-checkbox-checked-active-state-layer-opacity","",p.opacity24),checkedDisabledComponentOpacity:i.extend("--ft-checkbox-checked-disabled-component-opacity","",p.opacity40),uncheckedBorderColor:i.extend("--ft-checkbox-unchecked-border-color","",p.colorGray80),uncheckedStateLayerColor:i.extend("--ft-checkbox-unchecked-state-layer-color","",p.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",p.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",p.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",p.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ft-checkbox-unchecked-disabled-component-opacity","",p.opacity40),focusFocusRingColor:i.extend("--ft-checkbox-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:i.extend("--ft-checkbox-gap","",p.spacing3)};var nu={offHoverStateLayerOpacity:i.extend("--ft-toggle-off-hover-state-layer-opacity","",p.opacity16),offFocusStateLayerOpacity:i.extend("--ft-toggle-off-focus-state-layer-opacity","",p.opacity16),offActiveStateLayerOpacity:i.extend("--ft-toggle-off-active-state-layer-opacity","",p.opacity24),offDisabledComponentOpacity:i.extend("--ft-toggle-off-disabled-component-opacity","",p.opacity40),offBackgroundColor:i.extend("--ft-toggle-off-background-color","",f.contentGlobalSubtle),offIconColor:i.extend("--ft-toggle-off-icon-color","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-toggle-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-toggle-on-hover-state-layer-opacity","",p.opacity16),onFocusStateLayerOpacity:i.extend("--ft-toggle-on-focus-state-layer-opacity","",p.opacity16),onActiveStateLayerOpacity:i.extend("--ft-toggle-on-active-state-layer-opacity","",p.opacity24),onDisabledComponentOpacity:i.extend("--ft-toggle-on-disabled-component-opacity","",p.opacity40),onBackgroundColor:i.extend("--ft-toggle-on-background-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-toggle-on-state-layer-color","",f.contentActionPrimary),onIconColor:i.extend("--ft-toggle-on-icon-color","",f.contentActionPrimary),color:i.extend("--ft-toggle-color","",f.contentGlobalPrimary),focusFocusRingColor:i.extend("--ft-toggle-focus-focus-ring-color","",f.borderActionFocusRing),gap:i.extend("--ft-toggle-gap","",p.spacing3)};var au={color:i.extend("--ft-radio-color","",f.contentGlobalPrimary),selectedRadioColor:i.extend("--ft-radio-selected-radio-color","",f.contentActionPrimary),selectedStateLayerColor:i.extend("--ft-radio-selected-state-layer-color","",f.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ft-radio-selected-hover-state-layer-opacity","",p.opacity16),selectedFocusStateLayerOpacity:i.extend("--ft-radio-selected-focus-state-layer-opacity","",p.opacity16),selectedActiveStateLayerOpacity:i.extend("--ft-radio-selected-active-state-layer-opacity","",p.opacity24),selectedDisabledComponentOpacity:i.extend("--ft-radio-selected-disabled-component-opacity","",p.opacity40),unselectedStateLayerColor:i.extend("--ft-radio-unselected-state-layer-color","",f.borderInputPrimary),unselectedBorderColor:i.extend("--ft-radio-unselected-border-color","",f.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ft-radio-unselected-hover-state-layer-opacity","",p.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ft-radio-unselected-focus-state-layer-opacity","",p.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ft-radio-unselected-active-state-layer-opacity","",p.opacity24),unselectedDisabledComponentOpacity:i.extend("--ft-radio-unselected-disabled-component-opacity","",p.opacity40),focusFocusRingColor:i.extend("--ft-radio-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:i.extend("--ft-radio-gap","",p.spacing3)};var su={iconSize:i.extend("--ft-notification-icon-size","",p.iconSize4),leftPadding:i.extend("--ft-notification-left-padding","",p.spacing5),rightPadding:i.extend("--ft-notification-right-padding","",p.spacing4),verticalPadding:i.extend("--ft-notification-vertical-padding","",p.spacing3),infoBackgroundColor:i.extend("--ft-notification-info-background-color","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-notification-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-notification-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-notification-info-border-color","",f.borderInfoSubtle),successBackgroundColor:i.extend("--ft-notification-success-background-color","",f.backgroundSuccessSubtle),successColor:i.extend("--ft-notification-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-notification-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:i.extend("--ft-notification-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-notification-warning-background-color","",f.backgroundWarningSubtle),warningColor:i.extend("--ft-notification-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-notification-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:i.extend("--ft-notification-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-notification-error-background-color","",f.backgroundErrorSubtle),errorColor:i.extend("--ft-notification-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-notification-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:i.extend("--ft-notification-error-border-color","",f.borderErrorSubtle),borderRadius:i.extend("--ft-notification-border-radius","",p.borderRadiusPill),borderWidth:i.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ft-notification-leading-gap","",p.spacing2),trailingGap:i.extend("--ft-notification-trailing-gap","",p.spacing8)};var lu={horizontalPadding:i.extend("--ft-tooltip-horizontal-padding","",p.spacing2),verticalPadding:i.extend("--ft-tooltip-vertical-padding","",p.spacing2),borderRadius:i.extend("--ft-tooltip-border-radius","",p.borderRadiusS),color:i.extend("--ft-tooltip-color","",f.contentGlobalOnColor),backgroundColor:i.extend("--ft-tooltip-background-color","",f.contentGlobalPrimary),backgroundOpacity:i.extend("--ft-tooltip-background-opacity","",p.opacity80),shadow:i.extend("--ft-tooltip-shadow","",p.shadowElevation02),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ft-tooltip-gap","",p.spacing05)};var sr;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(sr||(sr={}));var be;(function(r){r.large="large",r.medium="medium",r.small="small"})(be||(be={}));function ea(r){return`ftds--family-${r}`}function ra(r){return`ftds--size-${r}`}var R={colorPrimary:i.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:i.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:i.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:i.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:i.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:i.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorOutline:i.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:i.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:i.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:i.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:i.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:i.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:i.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:i.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:i.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:i.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:i.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:i.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:i.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:i.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:i.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:i.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:i.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:i.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:i.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:i.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:i.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:i.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:i.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:i.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:i.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:i.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:i.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:i.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:i.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:i.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:i.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:i.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:i.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:i.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:i.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:i.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:i.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:i.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:i.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:i.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:i.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:i.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var sa={};Q(sa,{FtNotificationEvent:()=>It,PostResizeEvent:()=>aa,PreResizeEvent:()=>na});var It=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},na=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},aa=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var ba={};Q(ba,{computeOffsetPosition:()=>yo});var El=["top","right","bottom","left"],wl=["start","end"],ca=El.reduce((r,t)=>r.concat(t,t+"-"+wl[0],t+"-"+wl[1]),[]),uo=Math.min,$e=Math.max,fo=Math.round;var ve=r=>({x:r,y:r}),cu={left:"right",right:"left",bottom:"top",top:"bottom"},du={start:"end",end:"start"};function da(r,t,e){return $e(r,uo(t,e))}function ii(r,t){return typeof r=="function"?r(t):r}function Rr(r){return r.split("-")[0]}function ke(r){return r.split("-")[1]}function pa(r){return r==="x"?"y":"x"}function ua(r){return r==="y"?"height":"width"}function ni(r){return["top","bottom"].includes(Rr(r))?"y":"x"}function fa(r){return pa(ni(r))}function Cl(r,t,e){e===void 0&&(e=!1);let o=ke(r),n=fa(r),a=ua(n),s=n==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=la(s)),[s,la(s)]}function Al(r){return r.replace(/start|end/g,t=>du[t])}function la(r){return r.replace(/left|right|bottom|top/g,t=>cu[t])}function pu(r){return{top:0,right:0,bottom:0,left:0,...r}}function Rl(r){return typeof r!="number"?pu(r):{top:r,right:r,bottom:r,left:r}}function lr(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function _l(r,t,e){let{reference:o,floating:n}=r,a=ni(t),s=fa(t),l=ua(s),c=Rr(t),d=a==="y",u=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,y=o[l]/2-n[l]/2,b;switch(c){case"top":b={x:u,y:o.y-n.height};break;case"bottom":b={x:u,y:o.y+o.height};break;case"right":b={x:o.x+o.width,y:h};break;case"left":b={x:o.x-n.width,y:h};break;default:b={x:o.x,y:o.y}}switch(ke(t)){case"start":b[s]-=y*(e&&d?-1:1);break;case"end":b[s]+=y*(e&&d?-1:1);break}return b}var Nl=async(r,t,e)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=e,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t)),d=await s.getElementRects({reference:r,floating:t,strategy:n}),{x:u,y:h}=_l(d,o,c),y=o,b={},v=0;for(let w=0;w<l.length;w++){let{name:T,fn:I}=l[w],{x:k,y:O,data:S,reset:C}=await I({x:u,y:h,initialPlacement:o,placement:y,strategy:n,middlewareData:b,rects:d,platform:s,elements:{reference:r,floating:t}});if(u=k??u,h=O??h,b={...b,[T]:{...b[T],...S}},C&&v<=50){v++,typeof C=="object"&&(C.placement&&(y=C.placement),C.rects&&(d=C.rects===!0?await s.getElementRects({reference:r,floating:t,strategy:n}):C.rects),{x:u,y:h}=_l(d,y,c)),w=-1;continue}}return{x:u,y:h,placement:y,strategy:n,middlewareData:b}};async function ha(r,t){var e;t===void 0&&(t={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:c}=r,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:y=!1,padding:b=0}=ii(t,r),v=Rl(b),T=l[y?h==="floating"?"reference":"floating":h],I=lr(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(T)))==null||e?T:T.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),k=h==="floating"?{...s.floating,x:o,y:n}:s.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),S=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},C=lr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:k,offsetParent:O,strategy:c}):k);return{top:(I.top-C.top+v.top)/S.y,bottom:(C.bottom-I.bottom+v.bottom)/S.y,left:(I.left-C.left+v.left)/S.x,right:(C.right-I.right+v.right)/S.x}}function uu(r,t,e){return(r?[...e.filter(n=>ke(n)===r),...e.filter(n=>ke(n)!==r)]:e.filter(n=>Rr(n)===n)).filter(n=>r?ke(n)===r||(t?Al(n)!==n:!1):!0)}var ma=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(t){var e,o,n;let{rects:a,middlewareData:s,placement:l,platform:c,elements:d}=t,{crossAxis:u=!1,alignment:h,allowedPlacements:y=ca,autoAlignment:b=!0,...v}=ii(r,t),w=h!==void 0||y===ca?uu(h||null,b,y):y,T=await ha(t,v),I=((e=s.autoPlacement)==null?void 0:e.index)||0,k=w[I];if(k==null)return{};let O=Cl(k,a,await(c.isRTL==null?void 0:c.isRTL(d.floating)));if(l!==k)return{reset:{placement:w[0]}};let S=[T[Rr(k)],T[O[0]],T[O[1]]],C=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:k,overflows:S}],M=w[I+1];if(M)return{data:{index:I+1,overflows:C},reset:{placement:M}};let W=C.map(m=>{let x=ke(m.placement);return[m.placement,x&&u?m.overflows.slice(0,2).reduce((N,G)=>N+G,0):m.overflows[0],m.overflows]}).sort((m,x)=>m[1]-x[1]),Y=((n=W.filter(m=>m[2].slice(0,ke(m[0])?2:3).every(x=>x<=0))[0])==null?void 0:n[0])||W[0][0];return Y!==l?{data:{index:I+1,overflows:C},reset:{placement:Y}}:{}}}};var ga=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){let{x:e,y:o,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:T=>{let{x:I,y:k}=T;return{x:I,y:k}}},...c}=ii(r,t),d={x:e,y:o},u=await ha(t,c),h=ni(Rr(n)),y=pa(h),b=d[y],v=d[h];if(a){let T=y==="y"?"top":"left",I=y==="y"?"bottom":"right",k=b+u[T],O=b-u[I];b=da(k,b,O)}if(s){let T=h==="y"?"top":"left",I=h==="y"?"bottom":"right",k=v+u[T],O=v-u[I];v=da(k,v,O)}let w=l.fn({...t,[y]:b,[h]:v});return{...w,data:{x:w.x-e,y:w.y-o}}}}};function xe(r){return Il(r)?(r.nodeName||"").toLowerCase():"#document"}function Dt(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function Se(r){var t;return(t=(Il(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function Il(r){return r instanceof Node||r instanceof Dt(r).Node}function ae(r){return r instanceof Element||r instanceof Dt(r).Element}function Xt(r){return r instanceof HTMLElement||r instanceof Dt(r).HTMLElement}function Tl(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Dt(r).ShadowRoot}function _r(r){let{overflow:t,overflowX:e,overflowY:o,display:n}=zt(r);return/auto|scroll|overlay|hidden|clip/.test(t+o+e)&&!["inline","contents"].includes(n)}function Pl(r){return["table","td","th"].includes(xe(r))}function si(r){let t=li(),e=zt(r);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(e.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(e.contain||"").includes(o))}function $l(r){let t=cr(r);for(;Xt(t)&&!ho(t);){if(si(t))return t;t=cr(t)}return null}function li(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ho(r){return["html","body","#document"].includes(xe(r))}function zt(r){return Dt(r).getComputedStyle(r)}function mo(r){return ae(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function cr(r){if(xe(r)==="html")return r;let t=r.assignedSlot||r.parentNode||Tl(r)&&r.host||Se(r);return Tl(t)?t.host:t}function kl(r){let t=cr(r);return ho(t)?r.ownerDocument?r.ownerDocument.body:r.body:Xt(t)&&_r(t)?t:kl(t)}function ai(r,t,e){var o;t===void 0&&(t=[]),e===void 0&&(e=!0);let n=kl(r),a=n===((o=r.ownerDocument)==null?void 0:o.body),s=Dt(n);return a?t.concat(s,s.visualViewport||[],_r(n)?n:[],s.frameElement&&e?ai(s.frameElement):[]):t.concat(n,ai(n,[],e))}function Ml(r){let t=zt(r),e=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=Xt(r),a=n?r.offsetWidth:e,s=n?r.offsetHeight:o,l=fo(e)!==a||fo(o)!==s;return l&&(e=a,o=s),{width:e,height:o,$:l}}function Ul(r){return ae(r)?r:r.contextElement}function Nr(r){let t=Ul(r);if(!Xt(t))return ve(1);let e=t.getBoundingClientRect(),{width:o,height:n,$:a}=Ml(t),s=(a?fo(e.width):e.width)/o,l=(a?fo(e.height):e.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var fu=ve(0);function Bl(r){let t=Dt(r);return!li()||!t.visualViewport?fu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hu(r,t,e){return t===void 0&&(t=!1),!e||t&&e!==Dt(r)?!1:t}function go(r,t,e,o){t===void 0&&(t=!1),e===void 0&&(e=!1);let n=r.getBoundingClientRect(),a=Ul(r),s=ve(1);t&&(o?ae(o)&&(s=Nr(o)):s=Nr(r));let l=hu(a,e,o)?Bl(a):ve(0),c=(n.left+l.x)/s.x,d=(n.top+l.y)/s.y,u=n.width/s.x,h=n.height/s.y;if(a){let y=Dt(a),b=o&&ae(o)?Dt(o):o,v=y.frameElement;for(;v&&o&&b!==y;){let w=Nr(v),T=v.getBoundingClientRect(),I=zt(v),k=T.left+(v.clientLeft+parseFloat(I.paddingLeft))*w.x,O=T.top+(v.clientTop+parseFloat(I.paddingTop))*w.y;c*=w.x,d*=w.y,u*=w.x,h*=w.y,c+=k,d+=O,v=Dt(v).frameElement}}return lr({width:u,height:h,x:c,y:d})}function mu(r){let{rect:t,offsetParent:e,strategy:o}=r,n=Xt(e),a=Se(e);if(e===a)return t;let s={scrollLeft:0,scrollTop:0},l=ve(1),c=ve(0);if((n||!n&&o!=="fixed")&&((xe(e)!=="body"||_r(a))&&(s=mo(e)),Xt(e))){let d=go(e);l=Nr(e),c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+c.x,y:t.y*l.y-s.scrollTop*l.y+c.y}}function gu(r){return Array.from(r.getClientRects())}function Fl(r){return go(Se(r)).left+mo(r).scrollLeft}function yu(r){let t=Se(r),e=mo(r),o=r.ownerDocument.body,n=$e(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=$e(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-e.scrollLeft+Fl(r),l=-e.scrollTop;return zt(o).direction==="rtl"&&(s+=$e(t.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}function bu(r,t){let e=Dt(r),o=Se(r),n=e.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,c=0;if(n){a=n.width,s=n.height;let d=li();(!d||d&&t==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:a,height:s,x:l,y:c}}function vu(r,t){let e=go(r,!0,t==="fixed"),o=e.top+r.clientTop,n=e.left+r.clientLeft,a=Xt(r)?Nr(r):ve(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,c=n*a.x,d=o*a.y;return{width:s,height:l,x:c,y:d}}function Ll(r,t,e){let o;if(t==="viewport")o=bu(r,e);else if(t==="document")o=yu(Se(r));else if(ae(t))o=vu(t,e);else{let n=Bl(r);o={...t,x:t.x-n.x,y:t.y-n.y}}return lr(o)}function zl(r,t){let e=cr(r);return e===t||!ae(e)||ho(e)?!1:zt(e).position==="fixed"||zl(e,t)}function xu(r,t){let e=t.get(r);if(e)return e;let o=ai(r,[],!1).filter(l=>ae(l)&&xe(l)!=="body"),n=null,a=zt(r).position==="fixed",s=a?cr(r):r;for(;ae(s)&&!ho(s);){let l=zt(s),c=si(s);!c&&l.position==="fixed"&&(n=null),(a?!c&&!n:!c&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||_r(s)&&!c&&zl(r,s))?o=o.filter(u=>u!==s):n=l,s=cr(s)}return t.set(r,o),o}function Su(r){let{element:t,boundary:e,rootBoundary:o,strategy:n}=r,s=[...e==="clippingAncestors"?xu(t,this._c):[].concat(e),o],l=s[0],c=s.reduce((d,u)=>{let h=Ll(t,u,n);return d.top=$e(h.top,d.top),d.right=uo(h.right,d.right),d.bottom=uo(h.bottom,d.bottom),d.left=$e(h.left,d.left),d},Ll(t,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ou(r){return Ml(r)}function wu(r,t,e){let o=Xt(t),n=Se(t),a=e==="fixed",s=go(r,!0,a,t),l={scrollLeft:0,scrollTop:0},c=ve(0);if(o||!o&&!a)if((xe(t)!=="body"||_r(n))&&(l=mo(t)),o){let d=go(t,!0,a,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else n&&(c.x=Fl(n));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Dl(r,t){return!Xt(r)||zt(r).position==="fixed"?null:t?t(r):r.offsetParent}function Wl(r,t){let e=Dt(r);if(!Xt(r))return e;let o=Dl(r,t);for(;o&&Pl(o)&&zt(o).position==="static";)o=Dl(o,t);return o&&(xe(o)==="html"||xe(o)==="body"&&zt(o).position==="static"&&!si(o))?e:o||$l(r)||e}var Eu=async function(r){let{reference:t,floating:e,strategy:o}=r,n=this.getOffsetParent||Wl,a=this.getDimensions;return{reference:wu(t,await n(e),o),floating:{x:0,y:0,...await a(e)}}};function Cu(r){return zt(r).direction==="rtl"}var ci={convertOffsetParentRelativeRectToViewportRelativeRect:mu,getDocumentElement:Se,getClippingRect:Su,getOffsetParent:Wl,getElementRects:Eu,getClientRects:gu,getDimensions:Ou,getScale:Nr,isElement:ae,isRTL:Cu};var Hl=(r,t,e)=>{let o=new Map,n={platform:ci,...e},a={...n.platform,_c:o};return Nl(r,t,{...n,platform:a})};function Vl(r){return Au(r)}function ya(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Au(r){for(let t=r;t;t=ya(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=ya(r);t;t=ya(t)){if(!(t instanceof Element))continue;let e=getComputedStyle(t);if(e.display!=="contents"&&(e.position!=="static"||e.filter!=="none"||t.tagName==="BODY"))return t}return null}async function yo(r,t,e){return Hl(r,t,{platform:{...ci,getOffsetParent:o=>ci.getOffsetParent(o,Vl)},middleware:[ga({crossAxis:!0}),ma({allowedPlacements:[e]})]})}var Oa={};Q(Oa,{FtdsBase:()=>Sa,toFtdsBase:()=>ui});var xa={};Q(xa,{FtLitElement:()=>F});var va={};Q(va,{ScopedRegistryLitElement:()=>bo});var di=window,Ru=di.ShadowRoot&&(di.ShadyCSS===void 0||di.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nb=Symbol();var jl=(r,t)=>{Ru?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let o=document.createElement("style"),n=di.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=e.cssText,r.appendChild(o)})};var bo=class extends me{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,a])=>t.registry.define(n,a)));let e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return jl(o,t.elementStyles),o}};var pi=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ql,Kl=Symbol("constructorPrototype"),Gl=Symbol("constructorName"),Yl=Symbol("exportpartsDebouncer"),Zl=Symbol("dynamicDependenciesLoaded"),F=class extends bo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ql]=new ot(5),this[Gl]=this.constructor.name,this[Kl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Gl]&&Object.setPrototypeOf(this,this[Kl])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(e){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",e)}let t=this.constructor;t[Zl]||(t[Zl]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var e,o,n;if(((o=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}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,e,o;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(o=(e=this.exportpartsPrefixes)===null||e===void 0?void 0:e.length)!==null&&o!==void 0&&o)&&this[Yl].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.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 e,o,n,a,s,l;let c=y=>y!=null&&y.trim().length>0,d=t.filter(c).map(y=>y.trim());if(d.length===0){this.removeAttribute("exportparts");return}let u=new Set;for(let y of(o=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let b=(a=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],v=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(w=>w.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...b,...v).filter(c).map(w=>w.trim()).forEach(w=>u.add(w))}if(u.size===0){this.removeAttribute("exportparts");return}let h=[...u.values()].flatMap(y=>d.map(b=>`${y}:${b}--${y}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};ql=Yl;pi([g()],F.prototype,"exportpartsPrefix",void 0);pi([ne([])],F.prototype,"exportpartsPrefixes",void 0);pi([g()],F.prototype,"customStylesheet",void 0);pi([H()],F.prototype,"useAdoptedStyleSheets",void 0);var Xl=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a};function ui(r){class t extends r{constructor(){super(...arguments),this.size=be.medium,this.family=sr.neutral}getDesignSystemBaseClasses(){return{[ea(this.family)]:!0,[ra(this.size)]:!0}}}return Xl([g()],t.prototype,"size",void 0),Xl([g()],t.prototype,"family",void 0),t}var Sa=class extends ui(F){};var Jl={};var Ca={};Q(Ca,{highlightHtml:()=>Ea,highlightHtmlColorCssVariable:()=>Ql,highlightHtmlStyles:()=>Nu});var dr=class r{constructor(t,e=!0,o=[],n=5e3){this.ctx=t,this.iframes=e,this.exclude=o,this.iframesTimeout=n}static matches(t,e){let o=typeof e=="string"?[e]:e,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(t,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let t,e=[];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(o=>{let n=e.filter(a=>a.contains(o)).length>0;e.indexOf(o)===-1&&!n&&e.push(o)}),e}getIframeContents(t,e,o=()=>{}){let n;try{let a=t.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&e(n)}isIframeBlank(t){let e="about:blank",o=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&o!==e&&o}observeIframeLoad(t,e,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,e,o))}catch{o()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,e,o){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,e,o):this.getIframeContents(t,e,o):this.observeIframeLoad(t,e,o)}catch{o()}}waitForIframes(t,e){let o=0;this.forEachIframe(t,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||e()})},n=>{n||e()})}forEachIframe(t,e,o,n=()=>{}){let a=t.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let c=()=>{--s<=0&&n(l)};s||c(),a.forEach(d=>{r.matches(d,this.exclude)?c():this.onIframeReady(d,u=>{e(d)&&(l++,o(u)),c()},c)})}createIterator(t,e,o){return document.createNodeIterator(t,e,o,!1)}createInstanceOnIframe(t){return new r(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,o){let n=t.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(e!==null){let s=e.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let e=t.previousNode(),o;return e===null?o=t.nextNode():o=t.nextNode()&&t.nextNode(),{prevNode:e,node:o}}checkIframeFilter(t,e,o,n){let a=!1,s=!1;return n.forEach((l,c)=>{l.val===o&&(a=c,s=l.handled)}),this.compareNodeIframe(t,e,o)?(a===!1&&!s?n.push({val:o,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:o,handled:!1}),!1)}handleOpenIframes(t,e,o,n){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(e,o,n)})})}iterateThroughNodes(t,e,o,n,a){let s=this.createIterator(e,t,n),l=[],c=[],d,u,h=()=>({prevNode:u,node:d}=this.getIteratorNode(s),d);for(;h();)this.iframes&&this.forEachIframe(e,y=>this.checkIframeFilter(d,u,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(t,b=>c.push(b),n)}),c.push(d);c.forEach(y=>{o(y)}),this.iframes&&this.handleOpenIframes(l,t,o,n),a()}forEachNode(t,e,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let c=()=>{this.iterateThroughNodes(t,l,e,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,c):c()})}};var vo=class{constructor(t){this.ctx=t,this.ie=!1;let e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.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 dr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[e]=="function"&&o[e](`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 e=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in e)if(e.hasOwnProperty(a)){let s=e[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&c!==""&&(t=t.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(c)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(c)})`+n))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return t=t.replace(/(?:\\)*\?/g,e=>e.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,e=>e.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let e=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(e,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?e:e+"\0"})}createJoinersRegExp(t){let e=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&e.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){let e=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return t.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;t=t.replace(new RegExp(`[${s}]`,`gm${e}`),`[${s}]`),n.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let e="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,n=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${t})`;case"complementary":return s="\\s"+(s||this.escapeStr(e)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let e=[];return t.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&e.indexOf(n)===-1&&e.push(n)}):o.trim()&&e.indexOf(o)===-1&&e.push(o)}),{keywords:e.sort((o,n)=>n.length-o.length),length:e.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 e=[],o=0;return t.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,o);l&&(n.start=a,n.length=s-a,e.push(n),o=s)}),e}callNoMatchOnInvalidRanges(t,e){let o,n,a=!1;return t&&typeof t.start<"u"?(o=parseInt(t.start,10),n=o+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&n-e>0&&n-o>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:o,end:n,valid:a}}checkWhitespaceRanges(t,e,o){let n,a=!0,s=o.length,l=e-s,c=parseInt(t.start,10)-l;return c=c>s?s:c,n=c+parseInt(t.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),c<0||n-c<0||c>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):o.substring(c,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:c,end:n,valid:a}}getTextNodes(t){let e="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:e.length,end:(e+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:e,nodes:o})})}matchesExclude(t){return dr.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,o){let n=this.opt.element?this.opt.element:"mark",a=t.splitText(e),s=a.splitText(o-e),l=document.createElement(n);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,e,o,n,a){t.nodes.every((s,l)=>{let c=t.nodes[l+1];if(typeof c>"u"||c.start>e){if(!n(s.node))return!1;let d=e-s.start,u=(o>s.end?s.end:o)-s.start,h=t.value.substr(0,s.start),y=t.value.substr(u+s.start);if(s.node=this.wrapRangeInTextNode(s.node,d,u),t.value=h+y,t.nodes.forEach((b,v)=>{v>=l&&(t.nodes[v].start>0&&v!==l&&(t.nodes[v].start-=u),t.nodes[v].end-=u)}),o-=u,a(s.node.previousSibling,s.start),o>s.end)e=s.end;else return!1}return!0})}wrapMatches(t,e,o,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{l.nodes.forEach(c=>{c=c.node;let d;for(;(d=t.exec(c.textContent))!==null&&d[s]!=="";){if(!o(d[s],c))continue;let u=d.index;if(s!==0)for(let h=1;h<s;h++)u+=d[h].length;c=this.wrapRangeInTextNode(c,u,u+d[s].length),n(c.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,e,o,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{let c;for(;(c=t.exec(l.value))!==null&&c[s]!=="";){let d=c.index;if(s!==0)for(let h=1;h<s;h++)d+=c[h].length;let u=d+c[s].length;this.wrapRangeInMappedTextNode(l,d,u,h=>o(c[s],h),(h,y)=>{t.lastIndex=y,n(h)})}a()})}wrapRangeFromIndex(t,e,o,n){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,c)=>{let{start:d,end:u,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,d,u,y=>e(y,l,a.value.substring(d,u),c),y=>{o(y,l)})}),n()})}unwrapMatches(t){let e=t.parentNode,o=document.createDocumentFragment();for(;t.firstChild;)o.appendChild(t.removeChild(t.firstChild));e.replaceChild(o,t),this.ie?this.normalizeTextNode(e):e.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,e){this.opt=e,this.log(`Searching with expression "${t}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](t,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(t),this.opt.done(o)})}mark(t,e){this.opt=e;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",c=d=>{let u=new RegExp(this.createRegExp(d),`gm${l}`),h=0;this.log(`Searching with expression "${u}"`),this[n](u,1,(y,b)=>this.opt.filter(b,d,o,h),y=>{h++,o++,this.opt.each(y)},()=>{h===0&&this.opt.noMatch(d),a[s-1]===d?this.opt.done(o):c(a[a.indexOf(d)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):c(a[0])}markRanges(t,e){this.opt=e;let o=0,n=this.checkRanges(t);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,c)=>this.opt.filter(a,s,l,c),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=dr.matches(o,e),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function wa(r){let t=new vo(r);return this.mark=(e,o)=>(t.mark(e,o),this),this.markRegExp=(e,o)=>(t.markRegExp(e,o),this),this.markRanges=(e,o)=>(t.markRanges(e,o),this),this.unmark=e=>(t.unmark(e),this),this}var _u=wa,Ql=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Nu=P`
5
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),nl=/'/g,al=/"/g,dl=/^(?:script|style|textarea|title)$/i,pl=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),$=pl(1),vp=pl(2),Ne=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),sl=new WeakMap,rr=or.createTreeWalker(or,129);function ul(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return rl!==void 0?rl.createHTML(t):t}var fl=(r,t)=>{let e=r.length-1,o=[],n,a=t===2?"<svg>":"",s=ro;for(let l=0;l<e;l++){let c=r[l],d,u,h=-1,y=0;for(;y<c.length&&(s.lastIndex=y,u=s.exec(c),u!==null);)y=s.lastIndex,s===ro?u[1]==="!--"?s=ol:u[1]!==void 0?s=il:u[2]!==void 0?(dl.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=er):u[3]!==void 0&&(s=er):s===er?u[0]===">"?(s=n??ro,h=-1):u[1]===void 0?h=-2:(h=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?er:u[3]==='"'?al:nl):s===al||s===nl?s=er:s===ol||s===il?s=ro:(s=er,n=void 0);let b=s===er&&r[l+1].startsWith("/>")?" ":"";a+=s===ro?c+bp:h>=0?(o.push(d),c.slice(0,h)+cn+c.slice(h)+he+b):c+he+(h===-2?l:b)}return[ul(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),o]},no=class r{constructor({strings:t,_$litType$:e},o){let n;this.parts=[];let a=0,s=0,l=t.length-1,c=this.parts,[d,u]=fl(t,e);if(this.el=r.createElement(d,o),rr.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=rr.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(cn)){let y=u[s++],b=n.getAttribute(h).split(he),v=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?Xo:v[1]==="?"?Jo:v[1]==="@"?Qo:nr}),n.removeAttribute(h)}else h.startsWith(he)&&(c.push({type:6,index:a}),n.removeAttribute(h));if(dl.test(n.tagName)){let h=n.textContent.split(he),y=h.length-1;if(y>0){n.textContent=qo?qo.emptyScript:"";for(let b=0;b<y;b++)n.append(h[b],oo()),rr.nextNode(),c.push({type:2,index:++a});n.append(h[y],oo())}}}else if(n.nodeType===8)if(n.data===dn)c.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(he,h+1))!==-1;)c.push({type:7,index:a}),h+=he.length-1}a++}}static createElement(t,e){let o=or.createElement("template");return o.innerHTML=t,o}};function ir(r,t,e=r,o){if(t===Ne)return t;let n=o!==void 0?e._$Co?.[o]:e._$Cl,a=io(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,o)),o!==void 0?(e._$Co??=[])[o]=n:e._$Cl=n),n!==void 0&&(t=ir(r,n._$AS(r,t.values),n,o)),t}var Yo=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:o}=this._$AD,n=(t?.creationScope??or).importNode(e,!0);rr.currentNode=n;let a=rr.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let d;c.type===2?d=new Er(a,a.nextSibling,this,t):c.type===1?d=new c.ctor(a,c.name,c.strings,this,t):c.type===6&&(d=new ti(a,this,t)),this._$AV.push(d),c=o[++l]}s!==c?.index&&(a=rr.nextNode(),s++)}return rr.currentNode=or,n}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},Er=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,n){this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ir(this,t,e),io(t)?t===B||t==null||t===""?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==Ne&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):cl(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==B&&io(this._$AH)?this._$AA.nextSibling.data=t:this.$(or.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=no.createElement(ul(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new Yo(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=sl.get(t.strings);return e===void 0&&sl.set(t.strings,e=new no(t)),e}T(t){ll(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,n=0;for(let a of t)n===e.length?e.push(o=new r(this.k(oo()),this.k(oo()),this,this.options)):o=e[n],o._$AI(a),n++;n<e.length&&(this._$AR(o&&o._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},nr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,n,a){this.type=1,this._$AH=B,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=B}_$AI(t,e=this,o,n){let a=this.strings,s=!1;if(a===void 0)t=ir(this,t,e,0),s=!io(t)||t!==this._$AH&&t!==Ne,s&&(this._$AH=t);else{let l=t,c,d;for(t=a[0],c=0;c<a.length-1;c++)d=ir(this,l[o+c],e,c),d===Ne&&(d=this._$AH[c]),s||=!io(d)||d!==this._$AH[c],d===B?t=B:t!==B&&(t+=(d??"")+a[c+1]),this._$AH[c]=d}s&&!n&&this.O(t)}O(t){t===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Xo=class extends nr{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===B?void 0:t}},Jo=class extends nr{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==B)}},Qo=class extends nr{constructor(t,e,o,n,a){super(t,e,o,n,a),this.type=5}_$AI(t,e=this){if((t=ir(this,t,e,0)??B)===Ne)return;let o=this._$AH,n=t===B&&o!==B||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==B&&(o===B||n);n&&this.element.removeEventListener(this.name,this,o),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)}},ti=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ir(this,t)}},xp={j:cn,P:he,A:dn,C:1,M:fl,L:Yo,R:cl,V:ir,D:Er,I:nr,H:Jo,N:Qo,U:Xo,B:ti},Sp=ln.litHtmlPolyfillSupport;Sp?.(no,Er),(ln.litHtmlVersions??=[]).push("3.1.0");var pn=(r,t,e)=>{let o=e?.renderBefore??t,n=o._$litPart$;if(n===void 0){let a=e?.renderBefore??null;o._$litPart$=n=new Er(t.insertBefore(oo(),a),a,void 0,e??{})}return n._$AI(r),n};var me=class extends re{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 e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=pn(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ne}};me._$litElement$=!0,me.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:me});var wp=globalThis.litElementPolyfillSupport;wp?.({LitElement:me});var Op={_$AK:(r,t,e)=>{r._$AK(t,e)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Qf=!1;var hn={};Q(hn,{customElement:()=>Ep,eventOptions:()=>ge,property:()=>g,query:()=>Z,queryAll:()=>Rp,queryAssignedElements:()=>fn,queryAssignedNodes:()=>ao,queryAsync:()=>_p,standardProperty:()=>hl,state:()=>H});var Ep=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};var Cp={attribute:!0,type:String,converter:Zr,reflect:!1,hasChanged:Mo},hl=(r=Cp,t,e)=>{let{kind:o,metadata:n}=e,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(e.name,r),o==="accessor"){let{name:s}=e;return{set(l){let c=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,c,r)},init(l){return l!==void 0&&this.C(s,void 0,r),l}}}if(o==="setter"){let{name:s}=e;return function(l){let c=this[s];t.call(this,l),this.requestUpdate(s,c,r)}}throw Error("Unsupported decorator location: "+o)};function g(r){return(t,e)=>typeof e=="object"?hl(r,t,e):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,s?{...o,wrapped:!0}:o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,t,e)}function H(r){return g({...r,state:!0,attribute:!1})}function ge(r){return(t,e)=>{let o=typeof t=="function"?t:t[e];Object.assign(o,r)}}var qt=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);function Z(r,t){return(e,o,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(t){let{get:s,set:l}=typeof o=="object"?e:n??(()=>{let c=Symbol();return{get(){return this[c]},set(d){this[c]=d}}})();return qt(e,o,{get(){let c=s.call(this);return c===void 0&&(c=a(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return qt(e,o,{get(){return a(this)}})}}var Ap;function Rp(r){return(t,e)=>qt(t,e,{get(){return(this.renderRoot??(Ap??=document.createDocumentFragment())).querySelectorAll(r)}})}function _p(r){return(t,e)=>qt(t,e,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function fn(r){return(t,e)=>{let{slot:o,selector:n}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return qt(t,e,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(c=>c.matches(n))}})}}function ao(r){return(t,e)=>{let{slot:o}=r??{},n="slot"+(o?`[name=${o}]`:":not([name])");return qt(t,e,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var gn={};Q(gn,{repeat:()=>mn});var Te={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ie=r=>(...t)=>({_$litDirective$:r,values:t}),oe=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{D:Np}=Js;var ml=()=>document.createComment(""),Cr=(r,t,e)=>{let o=r._$AA.parentNode,n=t===void 0?r._$AB:t._$AA;if(e===void 0){let a=o.insertBefore(ml(),n),s=o.insertBefore(ml(),n);e=new Np(a,s,r,r.options)}else{let a=e._$AB.nextSibling,s=e._$AM,l=s!==r;if(l){let c;e._$AQ?.(r),e._$AM=r,e._$AP!==void 0&&(c=r._$AU)!==s._$AU&&e._$AP(c)}if(a!==n||l){let c=e._$AA;for(;c!==a;){let d=c.nextSibling;o.insertBefore(c,n),c=d}}}return e},Pe=(r,t,e=r)=>(r._$AI(t,e),r),Tp={},gl=(r,t=Tp)=>r._$AH=t,yl=r=>r._$AH,ei=r=>{r._$AP?.(!1,!0);let t=r._$AA,e=r._$AB.nextSibling;for(;t!==e;){let o=t.nextSibling;t.remove(),t=o}};var bl=(r,t,e)=>{let o=new Map;for(let n=t;n<=e;n++)o.set(r[n],n);return o},mn=Ie(class extends oe{constructor(r){if(super(r),r.type!==Te.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,t,e){let o;e===void 0?e=t:t!==void 0&&(o=t);let n=[],a=[],s=0;for(let l of r)n[s]=o?o(l,s):s,a[s]=e(l,s),s++;return{values:a,keys:n}}render(r,t,e){return this.ht(r,t,e).values}update(r,[t,e,o]){let n=yl(r),{values:a,keys:s}=this.ht(t,e,o);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],c=[],d,u,h=0,y=n.length-1,b=0,v=a.length-1;for(;h<=y&&b<=v;)if(n[h]===null)h++;else if(n[y]===null)y--;else if(l[h]===s[b])c[b]=Pe(n[h],a[b]),h++,b++;else if(l[y]===s[v])c[v]=Pe(n[y],a[v]),y--,v--;else if(l[h]===s[v])c[v]=Pe(n[h],a[v]),Cr(r,c[v+1],n[h]),h++,v--;else if(l[y]===s[b])c[b]=Pe(n[y],a[b]),Cr(r,n[h],n[y]),y--,b++;else if(d===void 0&&(d=bl(s,b,v),u=bl(l,h,y)),d.has(l[h]))if(d.has(l[y])){let O=u.get(s[b]),T=O!==void 0?n[O]:null;if(T===null){let I=Cr(r,n[h]);Pe(I,a[b]),c[b]=I}else c[b]=Pe(T,a[b]),Cr(r,n[h],T),n[O]=null;b++}else ei(n[y]),y--;else ei(n[h]),h++;for(;b<=v;){let O=Cr(r,c[v+1]);Pe(O,a[b]),c[b++]=O}for(;h<=y;){let O=n[h++];O!==null&&ei(O)}return this.dt=s,gl(r,c),zt}});var yn={};Q(yn,{classMap:()=>Tt});var Tt=Ie(class extends oe{constructor(r){if(super(r),r.type!==Te.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.st?.has(o)&&this.it.add(o);return this.render(t)}let e=r.element.classList;for(let o of this.it)o in t||(e.remove(o),this.it.delete(o));for(let o in t){let n=!!t[o];n===this.it.has(o)||this.st?.has(o)||(n?(e.add(o),this.it.add(o)):(e.remove(o),this.it.delete(o)))}return zt}});var bn={};Q(bn,{styleMap:()=>Pp});var vl="important",Ip=" !"+vl,Pp=Ie(class extends oe{constructor(r){if(super(r),r.type!==Te.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((t,e)=>{let o=r[e];return o==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(r,[t]){let{style:e}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(t)),this.render(t);for(let o of this.ut)t[o]==null&&(this.ut.delete(o),o.includes("-")?e.removeProperty(o):e[o]=null);for(let o in t){let n=t[o];if(n!=null){this.ut.add(o);let a=typeof n=="string"&&n.endsWith(Ip);o.includes("-")||a?e.setProperty(o,a?n.slice(0,-11):n,a?vl:""):e[o]=n}}return zt}});var xn={};Q(xn,{UnsafeHTMLDirective:()=>Ar,unsafeHTML:()=>vn});var Ar=class extends oe{constructor(t){if(super(t),this.et=ct,t.type!==Te.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ct||t==null)return this.vt=void 0,this.et=t;if(t===zt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;let e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Ar.directiveName="unsafeHTML",Ar.resultType=1;var vn=Ie(Ar);var On={};Q(On,{CacheRegistry:()=>ie});var wn={};Q(wn,{CancelablePromise:()=>Rr,CanceledPromiseError:()=>ar,cancelable:()=>Sn});var ar=class extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}},Rr=class extends Promise{constructor(t){super((e,o)=>t(n=>{this.isCanceled?o(new ar("Promise has been canceled",n)):e(n)},n=>{this.isCanceled?o(new ar("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Sn=r=>new Rr((t,e)=>r.then(t).catch(e));var ie=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof Rr&&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,e){this.forceClear(t),this.register(t,async()=>e),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,async()=>e),this.content[t]=e}async get(t,e,o){if(this.content[t]===void 0){if(e=e??this.loaders[t],e==null)throw new Error("Unknown cache key "+t);let n=Sn(e());return this.content[t]=n,n.then(a=>(this.content[t]=a,o!=null&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout(()=>this.clear(t),o)),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 En={};Q(En,{ClusteringHelper:()=>so});var so=class r{constructor(t,e,o,n){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=o,this.metadataDescriptors=n}static extractResultMetadata(t,e){var o,n;let a=((n=(o=t?.map)!==null&&o!==void 0?o:t?.document)!==null&&n!==void 0?n:t?.topic).metadata;return e==null?r.flattenMetadata(a):r.flattenMetadata(a.find(s=>s.key===e))}static flattenMetadata(t){if(Array.isArray(t))return t.map(o=>r.flattenMetadata(o)).filter(o=>o!=null);let e=t?.hierarchicalValues!=null&&t.hierarchicalValues.length>0;if(!(t==null||t.values.length==0&&!e))if(e){let o=[],n=[];return t.hierarchicalValues.forEach(a=>{o.push(a.join(" > ")),a.length>2?n.push(`... > ${a[a.length-1]}`):n.push(a.join(" > "))}),{key:t.key,label:t.label,value:o.join(", "),displayValue:n.join(", ")}}else{let o=t.values.join(", ");return{key:t.key,label:t.label,value:o,displayValue:o}}}computeClustersItemsForMetadata(t,e,o="No value"){var n,a;let s=r.extractResultMetadata(this.selectedResult,t),l=(n=s?.label)!==null&&n!==void 0?n:(a=this.getMetadataDescriptor(t))===null||a===void 0?void 0:a.label;return this.allResults.map(d=>r.extractResultMetadata(d,t)).map(d=>d??{key:t,label:l,value:void 0,displayValue:o}).filter(d=>d.value!=s?.value).filter((d,u,h)=>h.findIndex(y=>y.value===d.value)===u).map(d=>({result:this.findBestResultForMetadataValue(t,d.value),metadata:d})).sort((d,u)=>this.compareMetadata(d.metadata.value,u.metadata.value,t,e))}compareMetadata(t,e,o,n){if(t==null)return-1;if(e==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let c=t.localeCompare(e,n,{numeric:!0});return l?c*-1:c}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(e=>t==e.key)}findBestResultForMetadataValue(t,e){let o=this.allResults.filter(c=>{var d;return((d=r.extractResultMetadata(c,t))===null||d===void 0?void 0:d.value)==e}),a=[...r.extractResultMetadata(this.selectedResult).filter(c=>this.clusteringMetadata.has(c.key)).filter(c=>c.key!==t)],s,l=-1;for(let c of o){let d=this.countMatchingMetadata(c,a);if(d>l&&(l=d,s=c,d===a.length))break}return s}countMatchingMetadata(t,e){return r.extractResultMetadata(t).filter(o=>e.some(n=>n.key===o.key&&n.value===o.value)).length}};var Cn={};Q(Cn,{Debouncer:()=>ot});var ot=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((e,o)=>{this.resolvePromise=e,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,e;let o=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(e=this.resolvePromise)!==null&&e!==void 0?e:()=>null;this.clearPromise();for(let s of o)try{await s()}catch(l){n(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 Nn={};Q(Nn,{customElement:()=>V,isNumber:()=>Sl,jsonProperty:()=>ne,optionalNumberProperty:()=>Mp});var _n={};Q(_n,{dateReviver:()=>$p,deepEqual:()=>Yt,delay:()=>ri,eventPathContainsMatchingElement:()=>Lp,flatDeep:()=>xl,hasChanged:()=>co,last:()=>Dp,minmax:()=>Rn,parseDate:()=>oi,waitFor:()=>lo,waitUntil:()=>An});var ri=r=>new Promise(t=>setTimeout(t,r));async function An(r,t=10,e=2e4){await lo(async()=>await r()||void 0,t,e)}async function lo(r,t=10,e=2e4){let o=await r(),n,a;for(n=a=performance.now();o==null&&(!e||a-n<e);)await ri(t),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function xl(r,t){return r.flatMap(e=>[e,...xl(t(e),t)])}function $p(...r){return function(t,e){return r.includes(t)?oi(e):e}}function oi(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,e,o,n)=>e+o+":"+n),new Date(r)}function kp(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var e,o,n;if(Array.isArray(r)){if(e=r.length,e!=t.length)return!1;for(o=e;o--!==0;)if(!Yt(r[o],t[o]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(o of r.entries())if(!t.has(o[0]))return!1;for(o of r.entries())if(!Yt(o[1],t.get(o[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(o of r.entries())if(!t.has(o[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(n=Object.keys(r),e=n.length,e!==Object.keys(t).length)return!1;for(o=e;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(o=e;o--!==0;){var a=n[o];if(!Yt(r[a],t[a]))return!1}return!0}return r!==r&&t!==t}function Yt(r,t){try{return kp(r,t)}catch{return!1}}function co(r,t){return!Yt(r,t)}function Lp(r,t,e=window.document.body){if(t.length>0){let o=r.composedPath();for(let n of o){if(n===e)return!1;if(n.matches&&t.some(a=>n.matches(a)))return!0}}return!1}function Rn(r,t,e){return Math.min(Math.max(r,t),e)}function Dp(r){return r[r.length-1]}var V=r=>t=>{window.customElements.get(r)||window.customElements.define(r,t)};function ne(r,t){let e=()=>JSON.parse(JSON.stringify(r));return g({type:Object,converter:{fromAttribute:o=>{if(o==null)return e();try{return JSON.parse(o)}catch{return e()}},toAttribute:o=>JSON.stringify(o)},hasChanged:co,...t??{}})}function Mp(r){return g({type:Object,converter:{fromAttribute:t=>{if(t!=null)return Sl(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...r??{}})}function Sl(r){return!isNaN(parseFloat(r))}var ia={};Q(ia,{designSystemVariables:()=>R});var oa={};Q(oa,{DesignSystemFamily:()=>sr,DesignSystemSize:()=>be,FtCssVariableFactory:()=>i,badge:()=>Wp,banner:()=>zp,breadcrumb:()=>Hp,button:()=>A,chart:()=>ru,checkbox:()=>iu,chip:()=>Bp,collapsible:()=>tu,comboboxMultiSelect:()=>Jp,comboboxSingleSelect:()=>Xp,drawer:()=>Kp,floatingMenu:()=>Yp,foundation:()=>p,link:()=>Fp,modal:()=>jp,notice:()=>ou,notification:()=>su,pageHeader:()=>Vp,popover:()=>Qp,radio:()=>au,resolveFamilyClass:()=>ea,resolveSizeClass:()=>ra,semantic:()=>f,setVariable:()=>E,switch_:()=>eu,tabs:()=>Gp,textArea:()=>qp,textInput:()=>Zp,toggle:()=>nu,tooltip:()=>lu,typographies:()=>po,typographyBody1Medium:()=>Ln,typographyBody1Regular:()=>kn,typographyBody1Semibold:()=>Dn,typographyBody2Medium:()=>Un,typographyBody2MediumUnderline:()=>wl,typographyBody2Regular:()=>Mn,typographyBody2Semibold:()=>Bn,typographyCaption1Bold:()=>Zn,typographyCaption1Medium:()=>Kn,typographyCaption1Semibold:()=>Gn,typographyCaption2Bold:()=>Xn,typographyCaption2Medium:()=>qn,typographyCaption2Semibold:()=>Yn,typographyCaption3Bold:()=>ta,typographyCaption3Medium:()=>Jn,typographyCaption3Semibold:()=>Qn,typographyDisplay:()=>Tn,typographyLabel1Bold:()=>Wn,typographyLabel1Medium:()=>Fn,typographyLabel1Semibold:()=>zn,typographyLabel2Bold:()=>jn,typographyLabel2Medium:()=>Hn,typographyLabel2Semibold:()=>Vn,typographyTitle1:()=>In,typographyTitle2:()=>Pn,typographyTitle3:()=>$n,typographyVariants:()=>Up});var ye=r=>typeof r=="string"?fe(r):r,i=class{static create(t,e,o,n){let a=l=>ye(l??n),s=P`var(${ye(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${ye(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,e,o,n){let a=l=>o.get(l??n),s=P`var(${ye(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${ye(t)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(t,e){let o=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):ye(a??t.lastResortDefaultValue()),n=P`var(${ye(t.name)}, ${o(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=o,n.get=a=>P`var(${ye(t.name)}, ${o(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};function E(r,t){return ye(`${r.name}: ${t}`)}var p={colorWhite:i.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:i.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:i.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:i.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:i.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:i.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:i.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:i.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:i.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:i.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:i.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:i.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:i.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:i.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:i.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:i.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:i.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:i.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:i.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:i.create("--ft-opacity-0","","NUMBER","0"),opacity8:i.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:i.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:i.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:i.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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)")},Tn={fontFamily:i.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:i.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-display-textCase","","UNKNOWN","none")},In={fontFamily:i.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:i.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Pn={fontFamily:i.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:i.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},$n={fontFamily:i.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:i.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:i.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},kn={fontFamily:i.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:i.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},Ln={fontFamily:i.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Dn={fontFamily:i.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Mn={fontFamily:i.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:i.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Un={fontFamily:i.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},wl={fontFamily:i.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:i.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:i.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Bn={fontFamily:i.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Fn={fontFamily:i.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},zn={fontFamily:i.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Wn={fontFamily:i.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Hn={fontFamily:i.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Vn={fontFamily:i.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},jn={fontFamily:i.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Kn={fontFamily:i.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Gn={fontFamily:i.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Zn={fontFamily:i.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},qn={fontFamily:i.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Yn={fontFamily:i.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Xn={fontFamily:i.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Jn={fontFamily:i.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Qn={fontFamily:i.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},ta={fontFamily:i.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},po={display:Tn,"title-1":In,"title-2":Pn,"title-3":$n,"body-1-regular":kn,"body-1-medium":Ln,"body-1-semibold":Dn,"body-2-regular":Mn,"body-2-medium":Un,"body-2-medium-underline":wl,"body-2-semibold":Bn,"label-1-medium":Fn,"label-1-semibold":zn,"label-1-bold":Wn,"label-2-medium":Hn,"label-2-semibold":Vn,"label-2-bold":jn,"caption-1-medium":Kn,"caption-1-semibold":Gn,"caption-1-bold":Zn,"caption-2-medium":qn,"caption-2-semibold":Yn,"caption-2-bold":Xn,"caption-3-medium":Jn,"caption-3-semibold":Qn,"caption-3-bold":ta},Up=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var f={backgroundActionPrimary:i.extend("--ft-background-action-primary","Used as backgorund of primary action components.",p.colorBrand0),backgroundErrorSubtle:i.extend("--ft-background-error-subtle","Used as background of subtle error components.",p.colorRed10),backgroundInfoSubtle:i.extend("--ft-background-info-subtle","Used as background of subtle information components.",p.colorCyan10),backgroundWarningSubtle:i.extend("--ft-background-warning-subtle","Used as background of subtle information components.",p.colorOrange10),backgroundSuccessSubtle:i.extend("--ft-background-success-subtle","Used as background of subtle success components.",p.colorGreen10),backgroundGlobalSurface:i.extend("--ft-background-global-surface","Used as app background.",p.colorWhite),backgroundGlobalOnSurface:i.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",p.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",p.colorGray30),contentActionPrimary:i.extend("--ft-content-action-primary","Used on label of primary action on light surface.",p.colorBrand0),contentWarningPrimary:i.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",p.colorOrange200),contentWarningIconOnly:i.extend("--ft-content-warning-icon-only","Used on warning status icons alone",p.colorOrange0),contentErrorPrimary:i.extend("--ft-content-error-primary","Used on label of error messages on light surface.",p.colorRed0),contentErrorIconOnly:i.extend("--ft-content-error-icon-only","Used on error status icons alone",p.colorRed70),contentInfoPrimary:i.extend("--ft-content-info-primary","Used on label of information messages on light surface.",p.colorCyan200),contentInfoIconOnly:i.extend("--ft-content-info-icon-only","Used on info status icons alone",p.colorCyan0),contentSuccessPrimary:i.extend("--ft-content-success-primary","Used on label of success messages on light surface.",p.colorGreen200),contentSuccessIconOnly:i.extend("--ft-content-success-icon-only","Used on success status icons alone",p.colorGreen0),contentGlobalPrimary:i.extend("--ft-content-global-primary","Used for main content on the page.",p.colorGray500),contentGlobalSecondary:i.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
6
+ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",p.colorGray0),contentGlobalOnColor:i.extend("--ft-content-global-on-color","Used for content on a dominant color.",p.colorWhite),borderActionPrimary:i.extend("--ft-border-action-primary","Used as border for primary action components.",p.colorBrand0),borderActionFocusRing:i.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",p.colorCyan0),borderWarningPrimary:i.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",p.colorOrange200),borderWarningSubtle:i.extend("--ft-border-warning-subtle","Used as border for warning components.",p.colorOrange30),borderSuccessPrimary:i.extend("--ft-border-success-primary","Used as border for success buttons.",p.colorGreen200),borderSuccessSubtle:i.extend("--ft-border-success-subtle","Used as border for success components.",p.colorGreen30),borderErrorPrimary:i.extend("--ft-border-error-primary","Used as border for text fields in error states.",p.colorRed0),borderErrorSubtle:i.extend("--ft-border-error-subtle","Used as border for error components.",p.colorRed30),borderInfoPrimary:i.extend("--ft-border-info-primary","Used as border for buttons in info color.",p.colorCyan200),borderInfoSubtle:i.extend("--ft-border-info-subtle","Used as border for information components.",p.colorCyan30),borderGlobalPrimary:i.extend("--ft-border-global-primary","Used as border for element like input.",p.colorGray50),borderGlobalSubtle:i.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",p.colorGray30),borderInputPrimary:i.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",p.colorGray80)};var A={largeHeight:i.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ft-button-large-horizontal-padding","",p.spacing4),largeGap:i.extend("--ft-button-large-gap","",p.spacing2),largeBorderRadius:i.extend("--ft-button-large-border-radius","",p.borderRadiusS),largeIconSize:i.extend("--ft-button-large-icon-size","",p.iconSize3),largeBorderWidth:i.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:i.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:i.extend("--ft-button-medium-horizontal-padding","",p.spacing3),mediumGap:i.extend("--ft-button-medium-gap","",p.spacing2),mediumBorderRadius:i.extend("--ft-button-medium-border-radius","",p.borderRadiusS),mediumIconSize:i.extend("--ft-button-medium-icon-size","",p.iconSize2),mediumBorderWidth:i.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:i.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:i.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:i.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ft-button-small-horizontal-padding","",p.spacing2),smallGap:i.extend("--ft-button-small-gap","",p.spacing1),smallBorderRadius:i.extend("--ft-button-small-border-radius","",p.borderRadiusS),smallIconSize:i.extend("--ft-button-small-icon-size","",p.iconSize1),smallBorderWidth:i.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:i.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:i.extend("--ft-button-x-small-icon-size","",p.iconSize1),xSmallFocusOutlineOffset:i.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:i.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:i.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:i.extend("--ft-button-round-border-radius","",p.borderRadiusPill),primaryBackgroundColor:i.extend("--ft-button-primary-background-color","",f.backgroundActionPrimary),primaryColor:i.extend("--ft-button-primary-color","",f.contentGlobalOnColor),primaryIconColor:i.extend("--ft-button-primary-icon-color","",f.contentGlobalOnColor),primaryStateLayerColor:i.extend("--ft-button-primary-state-layer-color","",f.contentGlobalOnColor),primaryHoverStateLayerOpacity:i.extend("--ft-button-primary-hover-state-layer-opacity","",p.opacity16),primaryFocusStateLayerOpacity:i.extend("--ft-button-primary-focus-state-layer-opacity","",p.opacity16),primaryActiveStateLayerOpacity:i.extend("--ft-button-primary-active-state-layer-opacity","",p.opacity24),primaryDisabledComponentOpacity:i.extend("--ft-button-primary-disabled-component-opacity","",p.opacity40),focusFocusRingColor:i.extend("--ft-button-focus-focus-ring-color","",f.borderActionFocusRing),tertiaryBackgroundColor:i.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:i.extend("--ft-button-tertiary-color","",f.contentActionPrimary),tertiaryIconColor:i.extend("--ft-button-tertiary-icon-color","",f.contentActionPrimary),tertiaryStateLayerColor:i.extend("--ft-button-tertiary-state-layer-color","",f.contentActionPrimary),tertiaryHoverStateLayerOpacity:i.extend("--ft-button-tertiary-hover-state-layer-opacity","",p.opacity8),tertiaryFocusStateLayerOpacity:i.extend("--ft-button-tertiary-focus-state-layer-opacity","",p.opacity8),tertiaryActiveStateLayerOpacity:i.extend("--ft-button-tertiary-active-state-layer-opacity","",p.opacity16),tertiaryDisabledComponentOpacity:i.extend("--ft-button-tertiary-disabled-component-opacity","",p.opacity40),secondaryBackgroundColor:i.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:i.extend("--ft-button-secondary-color","",f.contentActionPrimary),secondaryIconColor:i.extend("--ft-button-secondary-icon-color","",f.contentActionPrimary),secondaryStateLayerColor:i.extend("--ft-button-secondary-state-layer-color","",f.contentActionPrimary),secondaryHoverStateLayerOpacity:i.extend("--ft-button-secondary-hover-state-layer-opacity","",p.opacity8),secondaryFocusStateLayerOpacity:i.extend("--ft-button-secondary-focus-state-layer-opacity","",p.opacity8),secondaryActiveStateLayerOpacity:i.extend("--ft-button-secondary-active-state-layer-opacity","",p.opacity16),secondaryDisabledComponentOpacity:i.extend("--ft-button-secondary-disabled-component-opacity","",p.opacity40),secondaryBorderColor:i.extend("--ft-button-secondary-border-color","",f.borderActionPrimary),neutralBackgroundColor:i.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:i.extend("--ft-button-neutral-icon-color","",f.contentGlobalSecondary),neutralColor:i.extend("--ft-button-neutral-color","",f.contentGlobalSecondary),neutralStateLayerColor:i.extend("--ft-button-neutral-state-layer-color","",f.contentGlobalSecondary),neutralHoverStateLayerOpacity:i.extend("--ft-button-neutral-hover-state-layer-opacity","",p.opacity8),neutralFocusStateLayerOpacity:i.extend("--ft-button-neutral-focus-state-layer-opacity","",p.opacity8),neutralActiveStateLayerOpacity:i.extend("--ft-button-neutral-active-state-layer-opacity","",p.opacity16),neutralDisabledComponentOpacity:i.extend("--ft-button-neutral-disabled-component-opacity","",p.opacity40)};var Bp={largeMinHeight:i.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ft-chip-large-horizontal-padding","",p.spacing3),largeButtonRightPadding:i.extend("--ft-chip-large-button-right-padding","",p.spacing1),largeGap:i.extend("--ft-chip-large-gap","",p.spacing1),largeFocusOutlineOffset:i.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ft-chip-large-icon-size","",p.iconSize3),mediumMinHeight:i.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ft-chip-medium-horizontal-padding","",p.spacing2),mediumButtonRightPadding:i.extend("--ft-chip-medium-button-right-padding","",p.spacing05),mediumGap:i.extend("--ft-chip-medium-gap","",p.spacing1),mediumFocusOutlineOffset:i.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ft-chip-medium-icon-size","",p.iconSize2),smallMinHeight:i.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ft-chip-small-horizontal-padding","",p.spacing1),smallButtonRightPadding:i.extend("--ft-chip-small-button-right-padding","",p.spacing05),smallGap:i.extend("--ft-chip-small-gap","",p.spacing1),smallFocusOutlineOffset:i.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:i.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ft-chip-small-icon-size","",p.iconSize1),neutralBackgroundColor:i.extend("--ft-chip-neutral-background-color","",f.backgroundGlobalOnSurface),neutralColor:i.extend("--ft-chip-neutral-color","",f.contentGlobalSecondary),neutralIconColor:i.extend("--ft-chip-neutral-icon-color","",f.contentGlobalSecondary),neutralBorderColor:i.extend("--ft-chip-neutral-border-color","",f.borderGlobalSubtle),infoBackgroundColor:i.extend("--ft-chip-info-background-color","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-chip-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-chip-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-chip-info-border-color","",f.borderInfoSubtle),successBackgroundColor:i.extend("--ft-chip-success-background-color","",f.backgroundSuccessSubtle),successColor:i.extend("--ft-chip-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-chip-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:i.extend("--ft-chip-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-chip-warning-background-color","",f.backgroundWarningSubtle),warningColor:i.extend("--ft-chip-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-chip-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:i.extend("--ft-chip-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-chip-error-background-color","",f.backgroundErrorSubtle),errorColor:i.extend("--ft-chip-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-chip-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:i.extend("--ft-chip-error-border-color","",f.borderErrorSubtle)};var Fp={focusOpacity:i.extend("--ft-link-focus-opacity","",p.opacity80),focusFocusRingColor:i.extend("--ft-link-focus-focus-ring-color","",f.borderActionFocusRing),brandColor:i.extend("--ft-link-brand-color","",f.contentActionPrimary),infoColor:i.extend("--ft-link-info-color","",f.contentInfoPrimary)};var zp={iconSize:i.extend("--ft-banner-icon-size","",p.iconSize5),borderWidth:i.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ft-banner-left-padding","",p.spacing6),rightPadding:i.extend("--ft-banner-right-padding","",p.spacing6),verticalPadding:i.extend("--ft-banner-vertical-padding","",p.spacing6),horizontalSideGap:i.extend("--ft-banner-horizontal-side-gap","",p.spacing6),horizontalMobileGap:i.extend("--ft-banner-horizontal-mobile-gap","",p.spacing4),verticalMobileGap:i.extend("--ft-banner-vertical-mobile-gap","",p.spacing6),horizontalMiddleGap:i.extend("--ft-banner-horizontal-middle-gap","",p.spacing20),infoBackgroundColor:i.extend("--ft-banner-info-background-color","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-banner-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-banner-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-banner-info-border-color","",f.borderInfoSubtle)};var Wp={horizontalPadding:i.extend("--ft-badge-horizontal-padding","",p.spacing1),verticalPadding:i.extend("--ft-badge-vertical-padding","",p.spacing1),borderRadius:i.extend("--ft-badge-border-radius","",p.borderRadiusPill),color:i.extend("--ft-badge-color","",f.contentGlobalOnColor),backgroundColor:i.extend("--ft-badge-background-color","",f.contentActionPrimary)};var Hp={horizontalGap:i.extend("--ft-breadcrumb-horizontal-gap","",p.spacing1),verticalGap:i.extend("--ft-breadcrumb-vertical-gap","",p.spacing2),currentColor:i.extend("--ft-breadcrumb-current-color","",f.contentGlobalPrimary),previousNonClickableColor:i.extend("--ft-breadcrumb-previous-non-clickable-color","",f.contentGlobalSecondary),iconColor:i.extend("--ft-breadcrumb-icon-color","",f.contentGlobalSubtle)};var Vp={horizontalPadding:i.extend("--ft-page-header-horizontal-padding","",p.spacing6),horizontalGap:i.extend("--ft-page-header-horizontal-gap","",p.spacing4),verticalGap:i.extend("--ft-page-header-vertical-gap","",p.spacing2),classicVerticalPadding:i.extend("--ft-page-header-classic-vertical-padding","",p.spacing6),multilineVerticalPadding:i.extend("--ft-page-header-multiline-vertical-padding","",p.spacing4),inlineVerticalPadding:i.extend("--ft-page-header-inline-vertical-padding","",p.spacing2),backgroundColor:i.extend("--ft-page-header-background-color","",p.colorWhite),bottomBorderColor:i.extend("--ft-page-header-bottom-border-color","",f.borderGlobalSubtle),titleColor:i.extend("--ft-page-header-title-color","",f.contentGlobalPrimary),subtitleColor:i.extend("--ft-page-header-subtitle-color","",f.contentGlobalSecondary)};var jp={smallContainerWidth:i.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:i.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:i.extend("--ft-modal-overlay-background-color","",p.colorGray700),overlayOpacity:i.extend("--ft-modal-overlay-opacity","",p.opacity40),shadow:i.extend("--ft-modal-shadow","",p.shadowElevation03),bodyBackgroundColor:i.extend("--ft-modal-body-background-color","",p.colorWhite),bodyColor:i.extend("--ft-modal-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-modal-body-horizontal-padding","",p.spacing6),bodyVerticalPadding:i.extend("--ft-modal-body-vertical-padding","",p.spacing6),bodyVerticalGap:i.extend("--ft-modal-body-vertical-gap","",p.spacing6),containerMargin:i.extend("--ft-modal-container-margin","",p.spacing3),headerBackgroundColor:i.extend("--ft-modal-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-modal-header-border-color","",f.borderGlobalSubtle),headerColor:i.extend("--ft-modal-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-modal-header-trailing-icon-color","",f.contentGlobalSecondary),headerVerticalPadding:i.extend("--ft-modal-header-vertical-padding","",p.spacing1),headerRightPadding:i.extend("--ft-modal-header-right-padding","",p.spacing1),headerLeftPadding:i.extend("--ft-modal-header-left-padding","",p.spacing6),headerGap:i.extend("--ft-modal-header-gap","",p.spacing2),headerBorderBottom:i.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:i.extend("--ft-modal-border-radius","",p.borderRadiusM)};var Kp={overlayOpacity:i.extend("--ft-drawer-overlay-opacity","",p.opacity40),shadow:i.extend("--ft-drawer-shadow","",p.shadowElevation03),bodyColor:i.extend("--ft-drawer-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-drawer-body-horizontal-padding","",p.spacing6),bodyVerticalPadding:i.extend("--ft-drawer-body-vertical-padding","",p.spacing6),bodyGap:i.extend("--ft-drawer-body-gap","",p.spacing6),bodyBackgroundColor:i.extend("--ft-drawer-body-background-color","",p.colorWhite),headerBackgroundColor:i.extend("--ft-drawer-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-drawer-header-border-color","",f.borderGlobalSubtle),headerColor:i.extend("--ft-drawer-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-drawer-header-trailing-icon-color","",f.contentGlobalSecondary),headerHeight:i.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ft-drawer-header-horizontal-padding","",p.spacing2),headerBorderWidth:i.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ft-drawer-header-gap","",p.spacing3),buttonsBarBackgroundColor:i.extend("--ft-drawer-buttons-bar-background-color","",f.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ft-drawer-buttons-bar-border-color","",f.borderGlobalSubtle),buttonsBarColor:i.extend("--ft-drawer-buttons-bar-color","",f.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ft-drawer-buttons-bar-horizontal-padding","",p.spacing4),buttonsBarVerticalPadding:i.extend("--ft-drawer-buttons-bar-vertical-padding","",p.spacing4),buttonsBarGap:i.extend("--ft-drawer-buttons-bar-gap","",p.spacing3),buttonsBarBorderWidth:i.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:i.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:i.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:i.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:i.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:i.extend("--ft-drawer-overlay-background-color","",p.colorGray700)};var Gp={offBorderBottomWidth:i.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ft-tabs-off-hover-state-layer-opacity","",p.opacity8),offDefaultStateLayerOpacity:i.extend("--ft-tabs-off-default-state-layer-opacity","",p.opacity0),offFocusStateLayerOpacity:i.extend("--ft-tabs-off-focus-state-layer-opacity","",p.opacity8),offDisabledComponentOpacity:i.extend("--ft-tabs-off-disabled-component-opacity","",p.opacity40),offColor:i.extend("--ft-tabs-off-color","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-tabs-off-state-layer-color","",f.contentGlobalSubtle),offBorderBottomColor:i.extend("--ft-tabs-off-border-bottom-color","",f.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:i.extend("--ft-tabs-top-left-border-radius","",p.borderRadiusS),topRightBorderRadius:i.extend("--ft-tabs-top-right-border-radius","",p.borderRadiusS),withLabelHorizontalPadding:i.extend("--ft-tabs-with-label-horizontal-padding","",p.spacing4),withLabelVerticalPadding:i.extend("--ft-tabs-with-label-vertical-padding","",p.spacing3),horizontalGap:i.extend("--ft-tabs-horizontal-gap","",p.spacing1),verticalGap:i.extend("--ft-tabs-vertical-gap","",p.spacing1),onHoverStateLayerOpacity:i.extend("--ft-tabs-on-hover-state-layer-opacity","",p.opacity16),onDefaultStateLayerOpacity:i.extend("--ft-tabs-on-default-state-layer-opacity","",p.opacity8),onFocusStateLayerOpacity:i.extend("--ft-tabs-on-focus-state-layer-opacity","",p.opacity16),onActiveStateLayerOpacity:i.extend("--ft-tabs-on-active-state-layer-opacity","",p.opacity24),onColor:i.extend("--ft-tabs-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ft-tabs-on-active-tab-indicator-color","",f.contentActionPrimary),iconOnlyHorizontalPadding:i.extend("--ft-tabs-icon-only-horizontal-padding","",p.spacing4),iconOnlyVerticalPadding:i.extend("--ft-tabs-icon-only-vertical-padding","",p.spacing4),alertTopPadding:i.extend("--ft-tabs-alert-top-padding","",p.spacing1),alertRightPadding:i.extend("--ft-tabs-alert-right-padding","",p.spacing05),focusOutlineWidth:i.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-tabs-focus-focus-ring-color","",f.borderActionFocusRing)};var Zp={fieldHorizontalPadding:i.extend("--ft-text-input-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-text-input-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-text-input-field-vertical-gap","",p.spacing05),fieldIconSize:i.extend("--ft-text-input-field-icon-size","",p.iconSize3),fieldHeight:i.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-text-input-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-text-input-helper-horizontal-gap","",p.spacing1),helperIconSize:i.extend("--ft-text-input-helper-icon-size","",p.iconSize2),borderRadius:i.extend("--ft-text-input-border-radius","",p.borderRadiusM),backgroundColor:i.extend("--ft-text-input-background-color","",p.colorWhite),contentValueColor:i.extend("--ft-text-input-content-value-color","",f.contentGlobalPrimary),trailingIconColor:i.extend("--ft-text-input-trailing-icon-color","",f.contentGlobalSubtle),labelColor:i.extend("--ft-text-input-label-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-input-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-input-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-text-input-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-input-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-input-error-helper-icon-color","",f.contentErrorIconOnly),warningBorderWidth:i.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-text-input-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-input-disabled-component-opacity","",p.opacity40)};var qp={backgroundColor:i.extend("--ft-text-area-background-color","",p.colorWhite),contentValueColor:i.extend("--ft-text-area-content-value-color","",f.contentGlobalPrimary),labelColor:i.extend("--ft-text-area-label-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-area-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-area-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-text-area-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-area-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-area-error-helper-icon-color","",f.contentErrorIconOnly),focusFocusRingColor:i.extend("--ft-text-area-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:i.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-area-disabled-component-opacity","",p.opacity40),fieldHorizontalLeftPadding:i.extend("--ft-text-area-field-horizontal-left-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-text-area-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-text-area-field-vertical-gap","",p.spacing05),fieldMinHeight:i.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:i.extend("--ft-text-area-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-text-area-helper-horizontal-gap","",p.spacing1),helperIconSize:i.extend("--ft-text-area-helper-icon-size","",p.iconSize2),borderRadius:i.extend("--ft-text-area-border-radius","",p.borderRadiusM)};var Yp={height:i.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:i.extend("--ft-floating-menu-horizontal-padding","",p.spacing4),offIconColor:i.extend("--ft-floating-menu-off-icon-color","",f.contentGlobalPrimary),offColor:i.extend("--ft-floating-menu-off-color","",f.contentGlobalPrimary),onColor:i.extend("--ft-floating-menu-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-floating-menu-on-state-layer-color","",f.contentActionPrimary),gap:i.extend("--ft-floating-menu-gap","",p.spacing3),focusFocusRingColor:i.extend("--ft-floating-menu-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:i.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ft-floating-menu-focus-state-layer-opacity","",p.opacity8),hoverStateLayerOpacity:i.extend("--ft-floating-menu-hover-state-layer-opacity","",p.opacity8),activeStateLayerOpacity:i.extend("--ft-floating-menu-active-state-layer-opacity","",p.opacity16),disabledComponentOpacity:i.extend("--ft-floating-menu-disabled-component-opacity","",p.opacity40),iconSize:i.extend("--ft-floating-menu-icon-size","",p.iconSize3),backgroundColor:i.extend("--ft-floating-menu-background-color","",f.backgroundGlobalOnSurface),shadow:i.extend("--ft-floating-menu-shadow","",p.shadowElevation02)};var Xp={fieldHorizontalPadding:i.extend("--ft-combobox-single-select-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-single-select-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-combobox-single-select-field-vertical-gap","",p.spacing05),fieldIconSize:i.extend("--ft-combobox-single-select-field-icon-size","",p.iconSize3),fieldHeight:i.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-combobox-single-select-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-combobox-single-select-helper-horizontal-gap","",p.spacing1),helperVerticalGap:i.extend("--ft-combobox-single-select-helper-vertical-gap","",p.spacing1),helperIconSize:i.extend("--ft-combobox-single-select-helper-icon-size","",p.iconSize2),menuVerticalGap:i.extend("--ft-combobox-single-select-menu-vertical-gap","",p.spacing2),borderRadius:i.extend("--ft-combobox-single-select-border-radius","",p.borderRadiusM),backgroundColor:i.extend("--ft-combobox-single-select-background-color","",p.colorWhite),labelColor:i.extend("--ft-combobox-single-select-label-color","",f.contentGlobalSubtle),contentValueColor:i.extend("--ft-combobox-single-select-content-value-color","",f.contentGlobalPrimary),trailingIconColor:i.extend("--ft-combobox-single-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-single-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-single-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-combobox-single-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-single-select-error-helper-text-color","",f.contentErrorPrimary),warningBorderWidth:i.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-single-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-single-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-single-select-warning-helper-icon-color","",f.contentWarningIconOnly),focusOutlineWidth:i.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-single-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-single-select-disabled-component-opacity","",p.opacity40)};var Jp={backgroundColor:i.extend("--ft-combobox-multi-select-background-color","",p.colorWhite),labelColor:i.extend("--ft-combobox-multi-select-label-color","",f.contentGlobalSubtle),trailingIconColor:i.extend("--ft-combobox-multi-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-multi-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-multi-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:i.extend("--ft-combobox-multi-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-multi-select-error-helper-text-color","",f.contentErrorPrimary),errorHelperIcon:i.extend("--ft-combobox-multi-select-error-helper-icon","",f.contentErrorIconOnly),errorBorderWidth:i.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-multi-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-multi-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-multi-select-warning-helper-icon-color","",f.contentWarningIconOnly),warningBorderWidth:i.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-multi-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:i.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-multi-select-disabled-component-opacity","",p.opacity40),helperHorizontalPadding:i.extend("--ft-combobox-multi-select-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-combobox-multi-select-helper-horizontal-gap","",p.spacing1),helperVerticalGap:i.extend("--ft-combobox-multi-select-helper-vertical-gap","",p.spacing1),helperIconSize:i.extend("--ft-combobox-multi-select-helper-icon-size","",p.iconSize2),fieldHorizontalPadding:i.extend("--ft-combobox-multi-select-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-multi-select-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-combobox-multi-select-field-vertical-gap","",p.spacing05),fieldIconSize:i.extend("--ft-combobox-multi-select-field-icon-size","",p.iconSize3),fieldMaxHeight:i.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:i.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",p.spacing1),contentValuesVerticalGap:i.extend("--ft-combobox-multi-select-content-values-vertical-gap","",p.spacing1),borderRadius:i.extend("--ft-combobox-multi-select-border-radius","",p.borderRadiusM)};var Qp={backgroundColor:i.extend("--ft-popover-background-color","",f.backgroundGlobalOnSurface),horizontalPadding:i.extend("--ft-popover-horizontal-padding","",p.spacing6),verticalPadding:i.extend("--ft-popover-vertical-padding","",p.spacing6),titleColor:i.extend("--ft-popover-title-color","",f.contentGlobalPrimary),bodyColor:i.extend("--ft-popover-body-color","",f.contentGlobalSecondary),linkColor:i.extend("--ft-popover-link-color","",f.contentActionPrimary),gap:i.extend("--ft-popover-gap","",p.spacing3),borderRadius:i.extend("--ft-popover-border-radius","",p.borderRadiusM),shadow:i.extend("--ft-popover-shadow","",p.shadowElevation02)};var tu={hoverStateLayerOpacity:i.extend("--ft-collapsible-hover-state-layer-opacity","",p.opacity8),focusStateLayerOpacity:i.extend("--ft-collapsible-focus-state-layer-opacity","",p.opacity8),focusOutlineWidth:i.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ft-collapsible-focus-focus-ring-color","",f.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ft-collapsible-active-state-layer-opacity","",p.opacity16),disabledComponentOpacity:i.extend("--ft-collapsible-disabled-component-opacity","",p.opacity40),horizontalPadding:i.extend("--ft-collapsible-horizontal-padding","",p.spacing4),verticalPadding:i.extend("--ft-collapsible-vertical-padding","",p.spacing3),color:i.extend("--ft-collapsible-color","",f.contentGlobalPrimary),stateLayerColor:i.extend("--ft-collapsible-state-layer-color","",f.contentGlobalPrimary),backgroundColor:i.extend("--ft-collapsible-background-color","",f.backgroundGlobalOnSurface),borderColor:i.extend("--ft-collapsible-border-color","",f.borderGlobalSubtle),iconSize:i.extend("--ft-collapsible-icon-size","",p.iconSize3)};var eu={groupHorizontalPadding:i.extend("--ft-switch-group-horizontal-padding","",p.spacing1),groupVerticalPadding:i.extend("--ft-switch-group-vertical-padding","",p.spacing1),groupGap:i.extend("--ft-switch-group-gap","",p.spacing1),groupBackgroundColor:i.extend("--ft-switch-group-background-color","",f.backgroundGlobalSurface),groupBorderColor:i.extend("--ft-switch-group-border-color","",f.borderGlobalSubtle),groupBorderRadius:i.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ft-switch-label-horizontal-padding","",p.spacing2),labelVerticalPadding:i.extend("--ft-switch-label-vertical-padding","",p.spacing1),offHoverStateLayerOpacity:i.extend("--ft-switch-off-hover-state-layer-opacity","",p.opacity8),offFocusStateLayerOpacity:i.extend("--ft-switch-off-focus-state-layer-opacity","",p.opacity8),offActiveStateLayerOpacity:i.extend("--ft-switch-off-active-state-layer-opacity","",p.opacity16),offDisabledComponentOpacity:i.extend("--ft-switch-off-disabled-component-opacity","",p.opacity40),offColor:i.extend("--ft-switch-off-color","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-switch-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-switch-on-hover-state-layer-opacity","",p.opacity8),onFocusStateLayerOpacity:i.extend("--ft-switch-on-focus-state-layer-opacity","",p.opacity8),onActiveStateLayerOpacity:i.extend("--ft-switch-on-active-state-layer-opacity","",p.opacity16),onDisabledComponentOpacity:i.extend("--ft-switch-on-disabled-component-opacity","",p.opacity40),onColor:i.extend("--ft-switch-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-switch-on-state-layer-color","",f.contentActionPrimary),iconHorizontalPadding:i.extend("--ft-switch-icon-horizontal-padding","",p.spacing1),iconVerticalPadding:i.extend("--ft-switch-icon-vertical-padding","",p.spacing1),focusOutlineWidth:i.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-switch-focus-focus-ring-color","",f.borderActionFocusRing),optionBorderRadius:i.extend("--ft-switch-option-border-radius","",p.borderRadiusS)};var ru={color1Light:i.extend("--ft-chart-1-light","for area color charts",p.colorBrand40),color1Base:i.extend("--ft-chart-1-base","for line charts",p.colorBrand0),color2Light:i.extend("--ft-chart-2-light","for area color charts",p.colorYellow60),color2Base:i.extend("--ft-chart-2-base","for line charts",p.colorYellow100),color3Light:i.extend("--ft-chart-3-light","",p.colorUltramarine40),color3Base:i.extend("--ft-chart-3-base","",p.colorUltramarine70),color4Light:i.extend("--ft-chart-4-light","",p.colorCyan50),color4Base:i.extend("--ft-chart-4-base","",p.colorCyan100),color5Light:i.extend("--ft-chart-5-light","",p.colorRed40),color5Base:i.extend("--ft-chart-5-base","",p.colorRed60),color6Light:i.extend("--ft-chart-6-light","",p.colorGreen40),color6Base:i.extend("--ft-chart-6-base","",p.colorGreen70),color7Light:i.extend("--ft-chart-7-light","",p.colorOrange70),color7Base:i.extend("--ft-chart-7-base","",p.colorOrange100),color8Light:i.extend("--ft-chart-8-light","",p.colorAvocado70),color8Base:i.extend("--ft-chart-8-base","",p.colorAvocado200),color9Light:i.extend("--ft-chart-9-light","",p.colorBrown50),color9Base:i.extend("--ft-chart-9-base","",p.colorBrown200),color10Light:i.extend("--ft-chart-10-light","",p.colorGray50),color10Base:i.extend("--ft-chart-10-base","",p.colorGray80),monochrome10:i.extend("--ft-chart-monochrome-10","",p.colorBrand10),monochrome20:i.extend("--ft-chart-monochrome-20","",p.colorBrand20),monochrome30:i.extend("--ft-chart-monochrome-30","",p.colorBrand40),monochrome40:i.extend("--ft-chart-monochrome-40","",p.colorBrand60),monochrome50:i.extend("--ft-chart-monochrome-50","",p.colorBrand0),monochrome60:i.extend("--ft-chart-monochrome-60","",p.colorBrand200)};var ou={borderWidth:i.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ft-notice-horizontal-padding","",p.spacing3),verticalPadding:i.extend("--ft-notice-vertical-padding","",p.spacing2),borderRadius:i.extend("--ft-notice-border-radius","",p.borderRadiusS),gap:i.extend("--ft-notice-gap","",p.spacing2),iconSize:i.extend("--ft-notice-icon-size","",p.iconSize3),infoBackgroundColor:i.extend("--ft-notice-info-background-color","",f.backgroundInfoSubtle),infoBorderColor:i.extend("--ft-notice-info-border-color","",f.borderInfoSubtle),infoColor:i.extend("--ft-notice-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-notice-info-icon-color","",f.contentInfoIconOnly),warningBackgroundColor:i.extend("--ft-notice-warning-background-color","",f.backgroundWarningSubtle),warningBorderColor:i.extend("--ft-notice-warning-border-color","",f.borderWarningSubtle),warningColor:i.extend("--ft-notice-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-notice-warning-icon-color","",f.contentWarningIconOnly),errorBackgroundColor:i.extend("--ft-notice-error-background-color","",f.backgroundErrorSubtle),errorBorderColor:i.extend("--ft-notice-error-border-color","",f.borderErrorSubtle),errorColor:i.extend("--ft-notice-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-notice-error-icon-color","",f.contentErrorIconOnly),successBackgroundColor:i.extend("--ft-notice-success-background-color","",f.backgroundSuccessSubtle),successBorderColor:i.extend("--ft-notice-success-border-color","",f.borderSuccessSubtle),successColor:i.extend("--ft-notice-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-notice-success-icon-color","",f.contentSuccessIconOnly)};var iu={color:i.extend("--ft-checkbox-color","",f.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ft-checkbox-checked-background-color","",f.contentActionPrimary),checkedStateLayerColor:i.extend("--ft-checkbox-checked-state-layer-color","",f.contentActionPrimary),checkedIconColor:i.extend("--ft-checkbox-checked-icon-color","",f.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ft-checkbox-checked-hover-state-layer-opacity","",p.opacity16),checkedFocusStateLayerOpacity:i.extend("--ft-checkbox-checked-focus-state-layer-opacity","",p.opacity16),checkedActiveStateLayerOpacity:i.extend("--ft-checkbox-checked-active-state-layer-opacity","",p.opacity24),checkedDisabledComponentOpacity:i.extend("--ft-checkbox-checked-disabled-component-opacity","",p.opacity40),uncheckedBorderColor:i.extend("--ft-checkbox-unchecked-border-color","",p.colorGray80),uncheckedStateLayerColor:i.extend("--ft-checkbox-unchecked-state-layer-color","",p.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",p.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",p.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",p.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ft-checkbox-unchecked-disabled-component-opacity","",p.opacity40),focusFocusRingColor:i.extend("--ft-checkbox-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:i.extend("--ft-checkbox-gap","",p.spacing3)};var nu={offHoverStateLayerOpacity:i.extend("--ft-toggle-off-hover-state-layer-opacity","",p.opacity16),offFocusStateLayerOpacity:i.extend("--ft-toggle-off-focus-state-layer-opacity","",p.opacity16),offActiveStateLayerOpacity:i.extend("--ft-toggle-off-active-state-layer-opacity","",p.opacity24),offDisabledComponentOpacity:i.extend("--ft-toggle-off-disabled-component-opacity","",p.opacity40),offBackgroundColor:i.extend("--ft-toggle-off-background-color","",f.contentGlobalSubtle),offIconColor:i.extend("--ft-toggle-off-icon-color","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-toggle-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-toggle-on-hover-state-layer-opacity","",p.opacity16),onFocusStateLayerOpacity:i.extend("--ft-toggle-on-focus-state-layer-opacity","",p.opacity16),onActiveStateLayerOpacity:i.extend("--ft-toggle-on-active-state-layer-opacity","",p.opacity24),onDisabledComponentOpacity:i.extend("--ft-toggle-on-disabled-component-opacity","",p.opacity40),onBackgroundColor:i.extend("--ft-toggle-on-background-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-toggle-on-state-layer-color","",f.contentActionPrimary),onIconColor:i.extend("--ft-toggle-on-icon-color","",f.contentActionPrimary),color:i.extend("--ft-toggle-color","",f.contentGlobalPrimary),focusFocusRingColor:i.extend("--ft-toggle-focus-focus-ring-color","",f.borderActionFocusRing),gap:i.extend("--ft-toggle-gap","",p.spacing3)};var au={color:i.extend("--ft-radio-color","",f.contentGlobalPrimary),selectedRadioColor:i.extend("--ft-radio-selected-radio-color","",f.contentActionPrimary),selectedStateLayerColor:i.extend("--ft-radio-selected-state-layer-color","",f.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ft-radio-selected-hover-state-layer-opacity","",p.opacity16),selectedFocusStateLayerOpacity:i.extend("--ft-radio-selected-focus-state-layer-opacity","",p.opacity16),selectedActiveStateLayerOpacity:i.extend("--ft-radio-selected-active-state-layer-opacity","",p.opacity24),selectedDisabledComponentOpacity:i.extend("--ft-radio-selected-disabled-component-opacity","",p.opacity40),unselectedStateLayerColor:i.extend("--ft-radio-unselected-state-layer-color","",f.borderInputPrimary),unselectedBorderColor:i.extend("--ft-radio-unselected-border-color","",f.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ft-radio-unselected-hover-state-layer-opacity","",p.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ft-radio-unselected-focus-state-layer-opacity","",p.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ft-radio-unselected-active-state-layer-opacity","",p.opacity24),unselectedDisabledComponentOpacity:i.extend("--ft-radio-unselected-disabled-component-opacity","",p.opacity40),focusFocusRingColor:i.extend("--ft-radio-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:i.extend("--ft-radio-gap","",p.spacing3)};var su={iconSize:i.extend("--ft-notification-icon-size","",p.iconSize4),leftPadding:i.extend("--ft-notification-left-padding","",p.spacing5),rightPadding:i.extend("--ft-notification-right-padding","",p.spacing4),verticalPadding:i.extend("--ft-notification-vertical-padding","",p.spacing3),infoBackgroundColor:i.extend("--ft-notification-info-background-color","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-notification-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-notification-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-notification-info-border-color","",f.borderInfoSubtle),successBackgroundColor:i.extend("--ft-notification-success-background-color","",f.backgroundSuccessSubtle),successColor:i.extend("--ft-notification-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-notification-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:i.extend("--ft-notification-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-notification-warning-background-color","",f.backgroundWarningSubtle),warningColor:i.extend("--ft-notification-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-notification-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:i.extend("--ft-notification-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-notification-error-background-color","",f.backgroundErrorSubtle),errorColor:i.extend("--ft-notification-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-notification-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:i.extend("--ft-notification-error-border-color","",f.borderErrorSubtle),borderRadius:i.extend("--ft-notification-border-radius","",p.borderRadiusPill),borderWidth:i.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ft-notification-leading-gap","",p.spacing2),trailingGap:i.extend("--ft-notification-trailing-gap","",p.spacing8)};var lu={horizontalPadding:i.extend("--ft-tooltip-horizontal-padding","",p.spacing2),verticalPadding:i.extend("--ft-tooltip-vertical-padding","",p.spacing2),borderRadius:i.extend("--ft-tooltip-border-radius","",p.borderRadiusS),color:i.extend("--ft-tooltip-color","",f.contentGlobalOnColor),backgroundColor:i.extend("--ft-tooltip-background-color","",f.contentGlobalPrimary),backgroundOpacity:i.extend("--ft-tooltip-background-opacity","",p.opacity80),shadow:i.extend("--ft-tooltip-shadow","",p.shadowElevation02),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ft-tooltip-gap","",p.spacing05)};var sr;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(sr||(sr={}));var be;(function(r){r.large="large",r.medium="medium",r.small="small"})(be||(be={}));function ea(r){return`ftds--family-${r}`}function ra(r){return`ftds--size-${r}`}var R={colorPrimary:i.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:i.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:i.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:i.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:i.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:i.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorOutline:i.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:i.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:i.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:i.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:i.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:i.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:i.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:i.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:i.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:i.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:i.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:i.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:i.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:i.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:i.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:i.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:i.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:i.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:i.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:i.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:i.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:i.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:i.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:i.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:i.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:i.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:i.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:i.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:i.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:i.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:i.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:i.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:i.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:i.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:i.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:i.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:i.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:i.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:i.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:i.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:i.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:i.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var sa={};Q(sa,{FtNotificationEvent:()=>It,PostResizeEvent:()=>aa,PreResizeEvent:()=>na});var It=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},na=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},aa=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var ba={};Q(ba,{computeOffsetPosition:()=>yo});var El=["top","right","bottom","left"],Ol=["start","end"],ca=El.reduce((r,t)=>r.concat(t,t+"-"+Ol[0],t+"-"+Ol[1]),[]),uo=Math.min,$e=Math.max,fo=Math.round;var ve=r=>({x:r,y:r}),cu={left:"right",right:"left",bottom:"top",top:"bottom"},du={start:"end",end:"start"};function da(r,t,e){return $e(r,uo(t,e))}function ii(r,t){return typeof r=="function"?r(t):r}function _r(r){return r.split("-")[0]}function ke(r){return r.split("-")[1]}function pa(r){return r==="x"?"y":"x"}function ua(r){return r==="y"?"height":"width"}function ni(r){return["top","bottom"].includes(_r(r))?"y":"x"}function fa(r){return pa(ni(r))}function Cl(r,t,e){e===void 0&&(e=!1);let o=ke(r),n=fa(r),a=ua(n),s=n==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=la(s)),[s,la(s)]}function Al(r){return r.replace(/start|end/g,t=>du[t])}function la(r){return r.replace(/left|right|bottom|top/g,t=>cu[t])}function pu(r){return{top:0,right:0,bottom:0,left:0,...r}}function Rl(r){return typeof r!="number"?pu(r):{top:r,right:r,bottom:r,left:r}}function lr(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function _l(r,t,e){let{reference:o,floating:n}=r,a=ni(t),s=fa(t),l=ua(s),c=_r(t),d=a==="y",u=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,y=o[l]/2-n[l]/2,b;switch(c){case"top":b={x:u,y:o.y-n.height};break;case"bottom":b={x:u,y:o.y+o.height};break;case"right":b={x:o.x+o.width,y:h};break;case"left":b={x:o.x-n.width,y:h};break;default:b={x:o.x,y:o.y}}switch(ke(t)){case"start":b[s]-=y*(e&&d?-1:1);break;case"end":b[s]+=y*(e&&d?-1:1);break}return b}var Nl=async(r,t,e)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=e,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t)),d=await s.getElementRects({reference:r,floating:t,strategy:n}),{x:u,y:h}=_l(d,o,c),y=o,b={},v=0;for(let O=0;O<l.length;O++){let{name:T,fn:I}=l[O],{x:k,y:w,data:S,reset:C}=await I({x:u,y:h,initialPlacement:o,placement:y,strategy:n,middlewareData:b,rects:d,platform:s,elements:{reference:r,floating:t}});if(u=k??u,h=w??h,b={...b,[T]:{...b[T],...S}},C&&v<=50){v++,typeof C=="object"&&(C.placement&&(y=C.placement),C.rects&&(d=C.rects===!0?await s.getElementRects({reference:r,floating:t,strategy:n}):C.rects),{x:u,y:h}=_l(d,y,c)),O=-1;continue}}return{x:u,y:h,placement:y,strategy:n,middlewareData:b}};async function ha(r,t){var e;t===void 0&&(t={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:c}=r,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:y=!1,padding:b=0}=ii(t,r),v=Rl(b),T=l[y?h==="floating"?"reference":"floating":h],I=lr(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(T)))==null||e?T:T.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),k=h==="floating"?{...s.floating,x:o,y:n}: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},C=lr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:k,offsetParent:w,strategy:c}):k);return{top:(I.top-C.top+v.top)/S.y,bottom:(C.bottom-I.bottom+v.bottom)/S.y,left:(I.left-C.left+v.left)/S.x,right:(C.right-I.right+v.right)/S.x}}function uu(r,t,e){return(r?[...e.filter(n=>ke(n)===r),...e.filter(n=>ke(n)!==r)]:e.filter(n=>_r(n)===n)).filter(n=>r?ke(n)===r||(t?Al(n)!==n:!1):!0)}var ma=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(t){var e,o,n;let{rects:a,middlewareData:s,placement:l,platform:c,elements:d}=t,{crossAxis:u=!1,alignment:h,allowedPlacements:y=ca,autoAlignment:b=!0,...v}=ii(r,t),O=h!==void 0||y===ca?uu(h||null,b,y):y,T=await ha(t,v),I=((e=s.autoPlacement)==null?void 0:e.index)||0,k=O[I];if(k==null)return{};let w=Cl(k,a,await(c.isRTL==null?void 0:c.isRTL(d.floating)));if(l!==k)return{reset:{placement:O[0]}};let S=[T[_r(k)],T[w[0]],T[w[1]]],C=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:k,overflows:S}],M=O[I+1];if(M)return{data:{index:I+1,overflows:C},reset:{placement:M}};let W=C.map(m=>{let x=ke(m.placement);return[m.placement,x&&u?m.overflows.slice(0,2).reduce((N,G)=>N+G,0):m.overflows[0],m.overflows]}).sort((m,x)=>m[1]-x[1]),Y=((n=W.filter(m=>m[2].slice(0,ke(m[0])?2:3).every(x=>x<=0))[0])==null?void 0:n[0])||W[0][0];return Y!==l?{data:{index:I+1,overflows:C},reset:{placement:Y}}:{}}}};var ga=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){let{x:e,y:o,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:T=>{let{x:I,y:k}=T;return{x:I,y:k}}},...c}=ii(r,t),d={x:e,y:o},u=await ha(t,c),h=ni(_r(n)),y=pa(h),b=d[y],v=d[h];if(a){let T=y==="y"?"top":"left",I=y==="y"?"bottom":"right",k=b+u[T],w=b-u[I];b=da(k,b,w)}if(s){let T=h==="y"?"top":"left",I=h==="y"?"bottom":"right",k=v+u[T],w=v-u[I];v=da(k,v,w)}let O=l.fn({...t,[y]:b,[h]:v});return{...O,data:{x:O.x-e,y:O.y-o}}}}};function xe(r){return Il(r)?(r.nodeName||"").toLowerCase():"#document"}function Dt(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function Se(r){var t;return(t=(Il(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function Il(r){return r instanceof Node||r instanceof Dt(r).Node}function ae(r){return r instanceof Element||r instanceof Dt(r).Element}function Xt(r){return r instanceof HTMLElement||r instanceof Dt(r).HTMLElement}function Tl(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Dt(r).ShadowRoot}function Nr(r){let{overflow:t,overflowX:e,overflowY:o,display:n}=Wt(r);return/auto|scroll|overlay|hidden|clip/.test(t+o+e)&&!["inline","contents"].includes(n)}function Pl(r){return["table","td","th"].includes(xe(r))}function si(r){let t=li(),e=Wt(r);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(e.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(e.contain||"").includes(o))}function $l(r){let t=cr(r);for(;Xt(t)&&!ho(t);){if(si(t))return t;t=cr(t)}return null}function li(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ho(r){return["html","body","#document"].includes(xe(r))}function Wt(r){return Dt(r).getComputedStyle(r)}function mo(r){return ae(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function cr(r){if(xe(r)==="html")return r;let t=r.assignedSlot||r.parentNode||Tl(r)&&r.host||Se(r);return Tl(t)?t.host:t}function kl(r){let t=cr(r);return ho(t)?r.ownerDocument?r.ownerDocument.body:r.body:Xt(t)&&Nr(t)?t:kl(t)}function ai(r,t,e){var o;t===void 0&&(t=[]),e===void 0&&(e=!0);let n=kl(r),a=n===((o=r.ownerDocument)==null?void 0:o.body),s=Dt(n);return a?t.concat(s,s.visualViewport||[],Nr(n)?n:[],s.frameElement&&e?ai(s.frameElement):[]):t.concat(n,ai(n,[],e))}function Ml(r){let t=Wt(r),e=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=Xt(r),a=n?r.offsetWidth:e,s=n?r.offsetHeight:o,l=fo(e)!==a||fo(o)!==s;return l&&(e=a,o=s),{width:e,height:o,$:l}}function Ul(r){return ae(r)?r:r.contextElement}function Tr(r){let t=Ul(r);if(!Xt(t))return ve(1);let e=t.getBoundingClientRect(),{width:o,height:n,$:a}=Ml(t),s=(a?fo(e.width):e.width)/o,l=(a?fo(e.height):e.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var fu=ve(0);function Bl(r){let t=Dt(r);return!li()||!t.visualViewport?fu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hu(r,t,e){return t===void 0&&(t=!1),!e||t&&e!==Dt(r)?!1:t}function go(r,t,e,o){t===void 0&&(t=!1),e===void 0&&(e=!1);let n=r.getBoundingClientRect(),a=Ul(r),s=ve(1);t&&(o?ae(o)&&(s=Tr(o)):s=Tr(r));let l=hu(a,e,o)?Bl(a):ve(0),c=(n.left+l.x)/s.x,d=(n.top+l.y)/s.y,u=n.width/s.x,h=n.height/s.y;if(a){let y=Dt(a),b=o&&ae(o)?Dt(o):o,v=y.frameElement;for(;v&&o&&b!==y;){let O=Tr(v),T=v.getBoundingClientRect(),I=Wt(v),k=T.left+(v.clientLeft+parseFloat(I.paddingLeft))*O.x,w=T.top+(v.clientTop+parseFloat(I.paddingTop))*O.y;c*=O.x,d*=O.y,u*=O.x,h*=O.y,c+=k,d+=w,v=Dt(v).frameElement}}return lr({width:u,height:h,x:c,y:d})}function mu(r){let{rect:t,offsetParent:e,strategy:o}=r,n=Xt(e),a=Se(e);if(e===a)return t;let s={scrollLeft:0,scrollTop:0},l=ve(1),c=ve(0);if((n||!n&&o!=="fixed")&&((xe(e)!=="body"||Nr(a))&&(s=mo(e)),Xt(e))){let d=go(e);l=Tr(e),c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+c.x,y:t.y*l.y-s.scrollTop*l.y+c.y}}function gu(r){return Array.from(r.getClientRects())}function Fl(r){return go(Se(r)).left+mo(r).scrollLeft}function yu(r){let t=Se(r),e=mo(r),o=r.ownerDocument.body,n=$e(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=$e(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-e.scrollLeft+Fl(r),l=-e.scrollTop;return Wt(o).direction==="rtl"&&(s+=$e(t.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}function bu(r,t){let e=Dt(r),o=Se(r),n=e.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,c=0;if(n){a=n.width,s=n.height;let d=li();(!d||d&&t==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:a,height:s,x:l,y:c}}function vu(r,t){let e=go(r,!0,t==="fixed"),o=e.top+r.clientTop,n=e.left+r.clientLeft,a=Xt(r)?Tr(r):ve(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,c=n*a.x,d=o*a.y;return{width:s,height:l,x:c,y:d}}function Ll(r,t,e){let o;if(t==="viewport")o=bu(r,e);else if(t==="document")o=yu(Se(r));else if(ae(t))o=vu(t,e);else{let n=Bl(r);o={...t,x:t.x-n.x,y:t.y-n.y}}return lr(o)}function zl(r,t){let e=cr(r);return e===t||!ae(e)||ho(e)?!1:Wt(e).position==="fixed"||zl(e,t)}function xu(r,t){let e=t.get(r);if(e)return e;let o=ai(r,[],!1).filter(l=>ae(l)&&xe(l)!=="body"),n=null,a=Wt(r).position==="fixed",s=a?cr(r):r;for(;ae(s)&&!ho(s);){let l=Wt(s),c=si(s);!c&&l.position==="fixed"&&(n=null),(a?!c&&!n:!c&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Nr(s)&&!c&&zl(r,s))?o=o.filter(u=>u!==s):n=l,s=cr(s)}return t.set(r,o),o}function Su(r){let{element:t,boundary:e,rootBoundary:o,strategy:n}=r,s=[...e==="clippingAncestors"?xu(t,this._c):[].concat(e),o],l=s[0],c=s.reduce((d,u)=>{let h=Ll(t,u,n);return d.top=$e(h.top,d.top),d.right=uo(h.right,d.right),d.bottom=uo(h.bottom,d.bottom),d.left=$e(h.left,d.left),d},Ll(t,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function wu(r){return Ml(r)}function Ou(r,t,e){let o=Xt(t),n=Se(t),a=e==="fixed",s=go(r,!0,a,t),l={scrollLeft:0,scrollTop:0},c=ve(0);if(o||!o&&!a)if((xe(t)!=="body"||Nr(n))&&(l=mo(t)),o){let d=go(t,!0,a,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else n&&(c.x=Fl(n));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Dl(r,t){return!Xt(r)||Wt(r).position==="fixed"?null:t?t(r):r.offsetParent}function Wl(r,t){let e=Dt(r);if(!Xt(r))return e;let o=Dl(r,t);for(;o&&Pl(o)&&Wt(o).position==="static";)o=Dl(o,t);return o&&(xe(o)==="html"||xe(o)==="body"&&Wt(o).position==="static"&&!si(o))?e:o||$l(r)||e}var Eu=async function(r){let{reference:t,floating:e,strategy:o}=r,n=this.getOffsetParent||Wl,a=this.getDimensions;return{reference:Ou(t,await n(e),o),floating:{x:0,y:0,...await a(e)}}};function Cu(r){return Wt(r).direction==="rtl"}var ci={convertOffsetParentRelativeRectToViewportRelativeRect:mu,getDocumentElement:Se,getClippingRect:Su,getOffsetParent:Wl,getElementRects:Eu,getClientRects:gu,getDimensions:wu,getScale:Tr,isElement:ae,isRTL:Cu};var Hl=(r,t,e)=>{let o=new Map,n={platform:ci,...e},a={...n.platform,_c:o};return Nl(r,t,{...n,platform:a})};function Vl(r){return Au(r)}function ya(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Au(r){for(let t=r;t;t=ya(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=ya(r);t;t=ya(t)){if(!(t instanceof Element))continue;let e=getComputedStyle(t);if(e.display!=="contents"&&(e.position!=="static"||e.filter!=="none"||t.tagName==="BODY"))return t}return null}async function yo(r,t,e){return Hl(r,t,{platform:{...ci,getOffsetParent:o=>ci.getOffsetParent(o,Vl)},middleware:[ga({crossAxis:!0}),ma({allowedPlacements:[e]})]})}var wa={};Q(wa,{FtdsBase:()=>Sa,toFtdsBase:()=>ui});var xa={};Q(xa,{FtLitElement:()=>F});var va={};Q(va,{ScopedRegistryLitElement:()=>bo});var di=window,Ru=di.ShadowRoot&&(di.ShadyCSS===void 0||di.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nb=Symbol();var jl=(r,t)=>{Ru?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let o=document.createElement("style"),n=di.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=e.cssText,r.appendChild(o)})};var bo=class extends me{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,a])=>t.registry.define(n,a)));let e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return jl(o,t.elementStyles),o}};var pi=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ql,Kl=Symbol("constructorPrototype"),Gl=Symbol("constructorName"),Yl=Symbol("exportpartsDebouncer"),Zl=Symbol("dynamicDependenciesLoaded"),F=class extends bo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ql]=new ot(5),this[Gl]=this.constructor.name,this[Kl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Gl]&&Object.setPrototypeOf(this,this[Kl])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(e){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",e)}let t=this.constructor;t[Zl]||(t[Zl]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var e,o,n;if(((o=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}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,e,o;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(o=(e=this.exportpartsPrefixes)===null||e===void 0?void 0:e.length)!==null&&o!==void 0&&o)&&this[Yl].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.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 e,o,n,a,s,l;let c=y=>y!=null&&y.trim().length>0,d=t.filter(c).map(y=>y.trim());if(d.length===0){this.removeAttribute("exportparts");return}let u=new Set;for(let y of(o=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let b=(a=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],v=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...b,...v).filter(c).map(O=>O.trim()).forEach(O=>u.add(O))}if(u.size===0){this.removeAttribute("exportparts");return}let h=[...u.values()].flatMap(y=>d.map(b=>`${y}:${b}--${y}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};ql=Yl;pi([g()],F.prototype,"exportpartsPrefix",void 0);pi([ne([])],F.prototype,"exportpartsPrefixes",void 0);pi([g()],F.prototype,"customStylesheet",void 0);pi([H()],F.prototype,"useAdoptedStyleSheets",void 0);var Xl=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a};function ui(r){class t extends r{constructor(){super(...arguments),this.size=be.medium,this.family=sr.neutral}getDesignSystemBaseClasses(){return{[ea(this.family)]:!0,[ra(this.size)]:!0}}}return Xl([g()],t.prototype,"size",void 0),Xl([g()],t.prototype,"family",void 0),t}var Sa=class extends ui(F){};var Jl={};var Ca={};Q(Ca,{highlightHtml:()=>Ea,highlightHtmlColorCssVariable:()=>Ql,highlightHtmlStyles:()=>Nu});var dr=class r{constructor(t,e=!0,o=[],n=5e3){this.ctx=t,this.iframes=e,this.exclude=o,this.iframesTimeout=n}static matches(t,e){let o=typeof e=="string"?[e]:e,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(t,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let t,e=[];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(o=>{let n=e.filter(a=>a.contains(o)).length>0;e.indexOf(o)===-1&&!n&&e.push(o)}),e}getIframeContents(t,e,o=()=>{}){let n;try{let a=t.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&e(n)}isIframeBlank(t){let e="about:blank",o=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&o!==e&&o}observeIframeLoad(t,e,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,e,o))}catch{o()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,e,o){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,e,o):this.getIframeContents(t,e,o):this.observeIframeLoad(t,e,o)}catch{o()}}waitForIframes(t,e){let o=0;this.forEachIframe(t,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||e()})},n=>{n||e()})}forEachIframe(t,e,o,n=()=>{}){let a=t.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let c=()=>{--s<=0&&n(l)};s||c(),a.forEach(d=>{r.matches(d,this.exclude)?c():this.onIframeReady(d,u=>{e(d)&&(l++,o(u)),c()},c)})}createIterator(t,e,o){return document.createNodeIterator(t,e,o,!1)}createInstanceOnIframe(t){return new r(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,o){let n=t.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(e!==null){let s=e.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let e=t.previousNode(),o;return e===null?o=t.nextNode():o=t.nextNode()&&t.nextNode(),{prevNode:e,node:o}}checkIframeFilter(t,e,o,n){let a=!1,s=!1;return n.forEach((l,c)=>{l.val===o&&(a=c,s=l.handled)}),this.compareNodeIframe(t,e,o)?(a===!1&&!s?n.push({val:o,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:o,handled:!1}),!1)}handleOpenIframes(t,e,o,n){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(e,o,n)})})}iterateThroughNodes(t,e,o,n,a){let s=this.createIterator(e,t,n),l=[],c=[],d,u,h=()=>({prevNode:u,node:d}=this.getIteratorNode(s),d);for(;h();)this.iframes&&this.forEachIframe(e,y=>this.checkIframeFilter(d,u,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(t,b=>c.push(b),n)}),c.push(d);c.forEach(y=>{o(y)}),this.iframes&&this.handleOpenIframes(l,t,o,n),a()}forEachNode(t,e,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let c=()=>{this.iterateThroughNodes(t,l,e,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,c):c()})}};var vo=class{constructor(t){this.ctx=t,this.ie=!1;let e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.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 dr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[e]=="function"&&o[e](`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 e=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in e)if(e.hasOwnProperty(a)){let s=e[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&c!==""&&(t=t.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(c)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(c)})`+n))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return t=t.replace(/(?:\\)*\?/g,e=>e.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,e=>e.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let e=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(e,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?e:e+"\0"})}createJoinersRegExp(t){let e=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&e.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){let e=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return t.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;t=t.replace(new RegExp(`[${s}]`,`gm${e}`),`[${s}]`),n.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let e="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,n=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${t})`;case"complementary":return s="\\s"+(s||this.escapeStr(e)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let e=[];return t.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&e.indexOf(n)===-1&&e.push(n)}):o.trim()&&e.indexOf(o)===-1&&e.push(o)}),{keywords:e.sort((o,n)=>n.length-o.length),length:e.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 e=[],o=0;return t.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,o);l&&(n.start=a,n.length=s-a,e.push(n),o=s)}),e}callNoMatchOnInvalidRanges(t,e){let o,n,a=!1;return t&&typeof t.start<"u"?(o=parseInt(t.start,10),n=o+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&n-e>0&&n-o>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:o,end:n,valid:a}}checkWhitespaceRanges(t,e,o){let n,a=!0,s=o.length,l=e-s,c=parseInt(t.start,10)-l;return c=c>s?s:c,n=c+parseInt(t.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),c<0||n-c<0||c>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):o.substring(c,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:c,end:n,valid:a}}getTextNodes(t){let e="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:e.length,end:(e+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:e,nodes:o})})}matchesExclude(t){return dr.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,o){let n=this.opt.element?this.opt.element:"mark",a=t.splitText(e),s=a.splitText(o-e),l=document.createElement(n);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,e,o,n,a){t.nodes.every((s,l)=>{let c=t.nodes[l+1];if(typeof c>"u"||c.start>e){if(!n(s.node))return!1;let d=e-s.start,u=(o>s.end?s.end:o)-s.start,h=t.value.substr(0,s.start),y=t.value.substr(u+s.start);if(s.node=this.wrapRangeInTextNode(s.node,d,u),t.value=h+y,t.nodes.forEach((b,v)=>{v>=l&&(t.nodes[v].start>0&&v!==l&&(t.nodes[v].start-=u),t.nodes[v].end-=u)}),o-=u,a(s.node.previousSibling,s.start),o>s.end)e=s.end;else return!1}return!0})}wrapMatches(t,e,o,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{l.nodes.forEach(c=>{c=c.node;let d;for(;(d=t.exec(c.textContent))!==null&&d[s]!=="";){if(!o(d[s],c))continue;let u=d.index;if(s!==0)for(let h=1;h<s;h++)u+=d[h].length;c=this.wrapRangeInTextNode(c,u,u+d[s].length),n(c.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,e,o,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{let c;for(;(c=t.exec(l.value))!==null&&c[s]!=="";){let d=c.index;if(s!==0)for(let h=1;h<s;h++)d+=c[h].length;let u=d+c[s].length;this.wrapRangeInMappedTextNode(l,d,u,h=>o(c[s],h),(h,y)=>{t.lastIndex=y,n(h)})}a()})}wrapRangeFromIndex(t,e,o,n){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,c)=>{let{start:d,end:u,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,d,u,y=>e(y,l,a.value.substring(d,u),c),y=>{o(y,l)})}),n()})}unwrapMatches(t){let e=t.parentNode,o=document.createDocumentFragment();for(;t.firstChild;)o.appendChild(t.removeChild(t.firstChild));e.replaceChild(o,t),this.ie?this.normalizeTextNode(e):e.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,e){this.opt=e,this.log(`Searching with expression "${t}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](t,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(t),this.opt.done(o)})}mark(t,e){this.opt=e;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",c=d=>{let u=new RegExp(this.createRegExp(d),`gm${l}`),h=0;this.log(`Searching with expression "${u}"`),this[n](u,1,(y,b)=>this.opt.filter(b,d,o,h),y=>{h++,o++,this.opt.each(y)},()=>{h===0&&this.opt.noMatch(d),a[s-1]===d?this.opt.done(o):c(a[a.indexOf(d)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):c(a[0])}markRanges(t,e){this.opt=e;let o=0,n=this.checkRanges(t);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,c)=>this.opt.filter(a,s,l,c),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=dr.matches(o,e),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Oa(r){let t=new vo(r);return this.mark=(e,o)=>(t.mark(e,o),this),this.markRegExp=(e,o)=>(t.markRegExp(e,o),this),this.markRanges=(e,o)=>(t.markRanges(e,o),this),this.unmark=e=>(t.unmark(e),this),this}var _u=Oa,Ql=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Nu=P`
7
7
  .highlight-html-match {
8
8
  background: ${Ql};
9
9
  }
@@ -46,7 +46,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
46
46
  input::-webkit-search-results-decoration {
47
47
  display: none;
48
48
  }
49
- `;var tc={};var _a={};Q(_a,{ParametrizedLabelResolver:()=>xo});var xo=class{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,n;t=this.resolvePluralKey(t,e);let a=(n=(o=this.labels[t])!==null&&o!==void 0?o:this.defaultLabels[t])!==null&&n!==void 0?n:"";return e.forEach((s,l)=>a=a.replace(new RegExp(`\\{${l}([^}]*)\\}`,"g"),(c,d)=>this.formatValue(s,d))),a}resolvePluralKey(t,e){for(let o of e)if(typeof o=="number"){let n=`${String(t)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):t??""}formatDate(t,e){let o=n=>e?.includes("date")?t.toLocaleDateString(n):e?.includes("time")?t.toLocaleTimeString(n):t.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var ts={};Q(ts,{FtCommandQueue:()=>Oo,FtLitElementRedux:()=>jt,FtReduxStore:()=>we,clearAllStores:()=>mf,isFtReduxStore:()=>fr,redux:()=>nt,reduxEventListener:()=>So,reduxReactive:()=>Iu});var Iu=()=>(r,t)=>{var e;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(e=o.reduxReactiveProperties)===null||e===void 0||e.add(t)},nt=r=>{let t=r??{};return(e,o)=>{var n;let a={hasChanged:co,attribute:!1,...t};g(a)(e,o);let s=e.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=t.selector)!==null&&n!==void 0?n:l=>l[o],store:t.store})}},So=r=>(t,e)=>{let o=t.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(e,r)};var Oo=class{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter(o=>o.type!==t.type)),this.queue.push(t)}consume(t){let e=this.queue.find(o=>o.type===t);return e&&(this.queue=this.queue.filter(o=>o!==e)),e}};function fr(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var ec,rc,oc,fi=Symbol("internalReduxEventsUnsubscribers"),Le=Symbol("internalStoresUnsubscribers"),hr=Symbol("internalStores"),jt=class extends F{constructor(){super(...arguments),this[ec]=new Map,this[rc]=new Map,this[oc]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(e=>t.has(e))&&this.updateFromStores()}getUnnamedStore(){if(this[hr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[hr].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[hr].get(t)}addStore(t,e){var o;e=(o=e??(fr(t)?t.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){let e=typeof t=="string"?t:t.name;this.unsubscribeFromStore(e),this[hr].delete(e)}setupStore(t,e){this[hr].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[hr].forEach((t,e)=>this.subscribeToStore(e,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,e)=>{let o=this.constructor.getPropertyOptions(e);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:e)){let n=this.getStore(t.store);n&&(t.store?this[Le].has(t.store):this[Le].size>0)&&(this[e]=t.selector(n.getState(),this))}})}subscribeToStore(t,e){var o;this[Le].set(t,e.subscribe(()=>this.updateFromStores())),fr(e)&&e.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||e.name===n.store)){let s=l=>this[a](l);e.eventBus.addEventListener(n.eventName,s),this[fi].push(()=>e.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Le].forEach((t,e)=>this.unsubscribeFromStore(e)),this[fi].forEach(t=>t()),this[fi]=[]}unsubscribeFromStore(t){this[Le].has(t)&&this[Le].get(t)(),this[Le].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};ec=Le,rc=hr,oc=fi;jt.reduxProperties=new Map;jt.reduxReactiveProperties=new Set;jt.reduxEventListeners=new Map;function Kt(r){for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(e.length?" "+e.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Oe(r){return!!r&&!!r[at]}function Jt(r){var t;return!!r&&(function(e){if(!e||typeof e!="object")return!1;var o=Object.getPrototypeOf(e);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Bu}(r)||Array.isArray(r)||!!r[dc]||!!(!((t=r.constructor)===null||t===void 0)&&t[dc])||Ma(r)||Ua(r))}function mr(r,t,e){e===void 0&&(e=!1),Pr(r)===0?(e?Object.keys:Ir)(r).forEach(function(o){e&&typeof o=="symbol"||t(o,r[o],r)}):r.forEach(function(o,n){return t(n,o,r)})}function Pr(r){var t=r[at];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:Ma(r)?2:Ua(r)?3:0}function Tr(r,t){return Pr(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function Pu(r,t){return Pr(r)===2?r.get(t):r[t]}function pc(r,t,e){var o=Pr(r);o===2?r.set(t,e):o===3?r.add(e):r[t]=e}function uc(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function Ma(r){return Mu&&r instanceof Map}function Ua(r){return Uu&&r instanceof Set}function De(r){return r.o||r.t}function Ba(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=mc(r);delete t[at];for(var e=Ir(t),o=0;o<e.length;o++){var n=e[o],a=t[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),t)}function Fa(r,t){return t===void 0&&(t=!1),za(r)||Oe(r)||!Jt(r)||(Pr(r)>1&&(r.set=r.add=r.clear=r.delete=$u),Object.freeze(r),t&&mr(r,function(e,o){return Fa(o,!0)},!0)),r}function $u(){Kt(2)}function za(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function se(r){var t=Da[r];return t||Kt(18,r),t}function ku(r,t){Da[r]||(Da[r]=t)}function $a(){return Eo}function Na(r,t){t&&(se("Patches"),r.u=[],r.s=[],r.v=t)}function hi(r){ka(r),r.p.forEach(Lu),r.p=null}function ka(r){r===Eo&&(Eo=r.l)}function ic(r){return Eo={p:[],l:Eo,h:r,m:!0,_:0}}function Lu(r){var t=r[at];t.i===0||t.i===1?t.j():t.g=!0}function Ta(r,t){t._=t.p.length;var e=t.p[0],o=r!==void 0&&r!==e;return t.h.O||se("ES5").S(t,r,o),o?(e[at].P&&(hi(t),Kt(4)),Jt(r)&&(r=mi(t,r),t.l||gi(t,r)),t.u&&se("Patches").M(e[at].t,r,t.u,t.s)):r=mi(t,e,[]),hi(t),t.u&&t.v(t.u,t.s),r!==hc?r:void 0}function mi(r,t,e){if(za(t))return t;var o=t[at];if(!o)return mr(t,function(l,c){return nc(r,o,t,l,c,e)},!0),t;if(o.A!==r)return t;if(!o.P)return gi(r,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=Ba(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),mr(a,function(l,c){return nc(r,o,n,l,c,e,s)}),gi(r,n,!1),e&&r.u&&se("Patches").N(o,e,r.u,r.s)}return o.o}function nc(r,t,e,o,n,a,s){if(Oe(n)){var l=mi(r,n,a&&t&&t.i!==3&&!Tr(t.R,o)?a.concat(o):void 0);if(pc(e,o,l),!Oe(l))return;r.m=!1}else s&&e.add(n);if(Jt(n)&&!za(n)){if(!r.h.D&&r._<1)return;mi(r,n),t&&t.A.l||gi(r,n)}}function gi(r,t,e){e===void 0&&(e=!1),!r.l&&r.h.D&&r.m&&Fa(t,e)}function Ia(r,t){var e=r[at];return(e?De(e):r)[t]}function ac(r,t){if(t in r)for(var e=Object.getPrototypeOf(r);e;){var o=Object.getOwnPropertyDescriptor(e,t);if(o)return o;e=Object.getPrototypeOf(e)}}function Me(r){r.P||(r.P=!0,r.l&&Me(r.l))}function Pa(r){r.o||(r.o=Ba(r.t))}function La(r,t,e){var o=Ma(t)?se("MapSet").F(t,e):Ua(t)?se("MapSet").T(t,e):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:$a(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},c=l,d=Co;s&&(c=[l],d=wo);var u=Proxy.revocable(c,d),h=u.revoke,y=u.proxy;return l.k=y,l.j=h,y}(t,e):se("ES5").J(t,e);return(e?e.A:$a()).p.push(o),o}function Du(r){return Oe(r)||Kt(22,r),function t(e){if(!Jt(e))return e;var o,n=e[at],a=Pr(e);if(n){if(!n.P&&(n.i<4||!se("ES5").K(n)))return n.t;n.I=!0,o=sc(e,a),n.I=!1}else o=sc(e,a);return mr(o,function(s,l){n&&Pu(n.t,s)===l||pc(o,s,t(l))}),a===3?new Set(o):o}(r)}function sc(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return Ba(r)}function fc(){function r(s,l){var c=a[s];return c?c.enumerable=l:a[s]=c={configurable:!0,enumerable:l,get:function(){var d=this[at];return Co.get(d,s)},set:function(d){var u=this[at];Co.set(u,s,d)}},c}function t(s){for(var l=s.length-1;l>=0;l--){var c=s[l][at];if(!c.P)switch(c.i){case 5:o(c)&&Me(c);break;case 4:e(c)&&Me(c)}}}function e(s){for(var l=s.t,c=s.k,d=Ir(c),u=d.length-1;u>=0;u--){var h=d[u];if(h!==at){var y=l[h];if(y===void 0&&!Tr(l,h))return!0;var b=c[h],v=b&&b[at];if(v?v.t!==y:!uc(b,y))return!0}}var w=!!l[at];return d.length!==Ir(l).length+(w?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var c=Object.getOwnPropertyDescriptor(l,l.length-1);if(c&&!c.get)return!0;for(var d=0;d<l.length;d++)if(!l.hasOwnProperty(d))return!0;return!1}function n(s){s.g&&Kt(3,JSON.stringify(De(s)))}var a={};ku("ES5",{J:function(s,l){var c=Array.isArray(s),d=function(h,y){if(h){for(var b=Array(y.length),v=0;v<y.length;v++)Object.defineProperty(b,""+v,r(v,!0));return b}var w=mc(y);delete w[at];for(var T=Ir(w),I=0;I<T.length;I++){var k=T[I];w[k]=r(k,h||!!w[k].enumerable)}return Object.create(Object.getPrototypeOf(y),w)}(c,s),u={i:c?5:4,A:l?l.A:$a(),P:!1,I:!1,R:{},l,t:s,k:d,o:null,g:!1,C:!1};return Object.defineProperty(d,at,{value:u,writable:!0}),d},S:function(s,l,c){c?Oe(l)&&l[at].A===s&&t(s.p):(s.u&&function d(u){if(u&&typeof u=="object"){var h=u[at];if(h){var y=h.t,b=h.k,v=h.R,w=h.i;if(w===4)mr(b,function(S){S!==at&&(y[S]!==void 0||Tr(y,S)?v[S]||d(b[S]):(v[S]=!0,Me(h)))}),mr(y,function(S){b[S]!==void 0||Tr(b,S)||(v[S]=!1,Me(h))});else if(w===5){if(o(h)&&(Me(h),v.length=!0),b.length<y.length)for(var T=b.length;T<y.length;T++)v[T]=!1;else for(var I=y.length;I<b.length;I++)v[I]=!0;for(var k=Math.min(b.length,y.length),O=0;O<k;O++)b.hasOwnProperty(O)||(v[O]=!0),v[O]===void 0&&d(b[O])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?e(s):o(s)}})}var lc,Eo,Wa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Mu=typeof Map<"u",Uu=typeof Set<"u",cc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",hc=Wa?Symbol.for("immer-nothing"):((lc={})["immer-nothing"]=!0,lc),dc=Wa?Symbol.for("immer-draftable"):"__$immer_draftable",at=Wa?Symbol.for("immer-state"):"__$immer_state";var Bu=""+Object.prototype.constructor,Ir=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,mc=Object.getOwnPropertyDescriptors||function(r){var t={};return Ir(r).forEach(function(e){t[e]=Object.getOwnPropertyDescriptor(r,e)}),t},Da={},Co={get:function(r,t){if(t===at)return r;var e=De(r);if(!Tr(e,t))return function(n,a,s){var l,c=ac(a,s);return c?"value"in c?c.value:(l=c.get)===null||l===void 0?void 0:l.call(n.k):void 0}(r,e,t);var o=e[t];return r.I||!Jt(o)?o:o===Ia(r.t,t)?(Pa(r),r.o[t]=La(r.A.h,o,r)):o},has:function(r,t){return t in De(r)},ownKeys:function(r){return Reflect.ownKeys(De(r))},set:function(r,t,e){var o=ac(De(r),t);if(o?.set)return o.set.call(r.k,e),!0;if(!r.P){var n=Ia(De(r),t),a=n?.[at];if(a&&a.t===e)return r.o[t]=e,r.R[t]=!1,!0;if(uc(e,n)&&(e!==void 0||Tr(r.t,t)))return!0;Pa(r),Me(r)}return r.o[t]===e&&(e!==void 0||t in r.o)||Number.isNaN(e)&&Number.isNaN(r.o[t])||(r.o[t]=e,r.R[t]=!0),!0},deleteProperty:function(r,t){return Ia(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,Pa(r),Me(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var e=De(r),o=Reflect.getOwnPropertyDescriptor(e,t);return o&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:o.enumerable,value:e[t]}},defineProperty:function(){Kt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){Kt(12)}},wo={};mr(Co,function(r,t){wo[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),wo.deleteProperty=function(r,t){return wo.set.call(this,r,t,void 0)},wo.set=function(r,t,e){return Co.set.call(this,r[0],t,e,r[0])};var Fu=function(){function r(e){var o=this;this.O=cc,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var c=o;return function(w){var T=this;w===void 0&&(w=l);for(var I=arguments.length,k=Array(I>1?I-1:0),O=1;O<I;O++)k[O-1]=arguments[O];return c.produce(w,function(S){var C;return(C=a).call.apply(C,[T,S].concat(k))})}}var d;if(typeof a!="function"&&Kt(6),s!==void 0&&typeof s!="function"&&Kt(7),Jt(n)){var u=ic(o),h=La(o,n,void 0),y=!0;try{d=a(h),y=!1}finally{y?hi(u):ka(u)}return typeof Promise<"u"&&d instanceof Promise?d.then(function(w){return Na(u,s),Ta(w,u)},function(w){throw hi(u),w}):(Na(u,s),Ta(d,u))}if(!n||typeof n!="object"){if((d=a(n))===void 0&&(d=n),d===hc&&(d=void 0),o.D&&Fa(d,!0),s){var b=[],v=[];se("Patches").M(n,d,b,v),s(b,v)}return d}Kt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(d){for(var u=arguments.length,h=Array(u>1?u-1:0),y=1;y<u;y++)h[y-1]=arguments[y];return o.produceWithPatches(d,function(b){return n.apply(void 0,[b].concat(h))})};var s,l,c=o.produce(n,a,function(d,u){s=d,l=u});return typeof Promise<"u"&&c instanceof Promise?c.then(function(d){return[d,s,l]}):[c,s,l]},typeof e?.useProxies=="boolean"&&this.setUseProxies(e.useProxies),typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze)}var t=r.prototype;return t.createDraft=function(e){Jt(e)||Kt(8),Oe(e)&&(e=Du(e));var o=ic(this),n=La(this,e,void 0);return n[at].C=!0,ka(o),n},t.finishDraft=function(e,o){var n=e&&e[at],a=n.A;return Na(a,o),Ta(void 0,a)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!cc&&Kt(20),this.O=e},t.applyPatches=function(e,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(o=o.slice(n+1));var s=se("Patches").$;return Oe(e)?s(e,o):this.produce(e,function(l){return s(l,o)})},r}(),Wt=new Fu,zu=Wt.produce,$b=Wt.produceWithPatches.bind(Wt),kb=Wt.setAutoFreeze.bind(Wt),Lb=Wt.setUseProxies.bind(Wt),Db=Wt.applyPatches.bind(Wt),Mb=Wt.createDraft.bind(Wt),Ub=Wt.finishDraft.bind(Wt),yi=zu;function Ue(r){"@babel/helpers - typeof";return Ue=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},Ue(r)}function Ha(r,t){if(Ue(r)!=="object"||r===null)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var o=e.call(r,t||"default");if(Ue(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function Va(r){var t=Ha(r,"string");return Ue(t)==="symbol"?t:String(t)}function ja(r,t,e){return t=Va(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function gc(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,o)}return e}function bi(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?gc(Object(e),!0).forEach(function(o){ja(r,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):gc(Object(e)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(e,o))})}return r}function Rt(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var yc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ka=function(){return Math.random().toString(36).substring(7).split("").join(".")},vi={INIT:"@@redux/INIT"+Ka(),REPLACE:"@@redux/REPLACE"+Ka(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ka()}};function Wu(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function Ga(r,t,e){var o;if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(Rt(0));if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(Rt(1));return e(Ga)(r,t)}if(typeof r!="function")throw new Error(Rt(2));var n=r,a=t,s=[],l=s,c=!1;function d(){l===s&&(l=s.slice())}function u(){if(c)throw new Error(Rt(3));return a}function h(w){if(typeof w!="function")throw new Error(Rt(4));if(c)throw new Error(Rt(5));var T=!0;return d(),l.push(w),function(){if(T){if(c)throw new Error(Rt(6));T=!1,d();var k=l.indexOf(w);l.splice(k,1),s=null}}}function y(w){if(!Wu(w))throw new Error(Rt(7));if(typeof w.type>"u")throw new Error(Rt(8));if(c)throw new Error(Rt(9));try{c=!0,a=n(a,w)}finally{c=!1}for(var T=s=l,I=0;I<T.length;I++){var k=T[I];k()}return w}function b(w){if(typeof w!="function")throw new Error(Rt(10));n=w,y({type:vi.REPLACE})}function v(){var w,T=h;return w={subscribe:function(k){if(typeof k!="object"||k===null)throw new Error(Rt(11));function O(){k.next&&k.next(u())}O();var S=T(O);return{unsubscribe:S}}},w[yc]=function(){return this},w}return y({type:vi.INIT}),o={dispatch:y,subscribe:h,getState:u,replaceReducer:b},o[yc]=v,o}function Hu(r){Object.keys(r).forEach(function(t){var e=r[t],o=e(void 0,{type:vi.INIT});if(typeof o>"u")throw new Error(Rt(12));if(typeof e(void 0,{type:vi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Rt(13))})}function bc(r){for(var t=Object.keys(r),e={},o=0;o<t.length;o++){var n=t[o];typeof r[n]=="function"&&(e[n]=r[n])}var a=Object.keys(e),s,l;try{Hu(e)}catch(c){l=c}return function(d,u){if(d===void 0&&(d={}),l)throw l;if(0)var h;for(var y=!1,b={},v=0;v<a.length;v++){var w=a[v],T=e[w],I=d[w],k=T(I,u);if(typeof k>"u"){var O=u&&u.type;throw new Error(Rt(14))}b[w]=k,y=y||k!==I}return y=y||a.length!==Object.keys(d).length,y?b:d}}function $r(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.length===0?function(o){return o}:t.length===1?t[0]:t.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function vc(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(Rt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(c){return c(s)});return a=$r.apply(void 0,l)(n.dispatch),bi(bi({},n),{},{dispatch:a})}}}function xc(r){var t=function(o){var n=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return t}var Sc=xc();Sc.withExtraArgument=xc;var Za=Sc;var Ac=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Vu=function(r,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,n,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(d){return function(u){return c([d,u])}}function c(d){if(o)throw new TypeError("Generator is already executing.");for(;e;)try{if(o=1,n&&(a=d[0]&2?n.return:d[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,d[1])).done)return a;switch(n=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return e.label++,{value:d[1],done:!1};case 5:e.label++,n=d[1],d=[0];continue;case 7:d=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){e=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){e.label=d[1];break}if(d[0]===6&&e.label<a[1]){e.label=a[1],a=d;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(d);break}a[2]&&e.ops.pop(),e.trys.pop();continue}d=t.call(r,e)}catch(u){d=[6,u],n=0}finally{o=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},kr=function(r,t){for(var e=0,o=t.length,n=r.length;e<o;e++,n++)r[n]=t[e];return r},ju=Object.defineProperty,Ku=Object.defineProperties,Gu=Object.getOwnPropertyDescriptors,Oc=Object.getOwnPropertySymbols,Zu=Object.prototype.hasOwnProperty,qu=Object.prototype.propertyIsEnumerable,wc=function(r,t,e){return t in r?ju(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e},Be=function(r,t){for(var e in t||(t={}))Zu.call(t,e)&&wc(r,e,t[e]);if(Oc)for(var o=0,n=Oc(t);o<n.length;o++){var e=n[o];qu.call(t,e)&&wc(r,e,t[e])}return r},qa=function(r,t){return Ku(r,Gu(t))},Yu=function(r,t,e){return new Promise(function(o,n){var a=function(c){try{l(e.next(c))}catch(d){n(d)}},s=function(c){try{l(e.throw(c))}catch(d){n(d)}},l=function(c){return c.done?o(c.value):Promise.resolve(c.value).then(a,s)};l((e=e.apply(r,t)).next())})};var Xu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$r:$r.apply(null,arguments)},rv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function Ju(r){if(typeof r!="object"||r===null)return!1;var t=Object.getPrototypeOf(r);if(t===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return t===e}var Qu=function(r){Ac(t,r);function t(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,kr([void 0],e[0].concat(this)))):new(t.bind.apply(t,kr([void 0],e.concat(this))))},t}(Array),tf=function(r){Ac(t,r);function t(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,kr([void 0],e[0].concat(this)))):new(t.bind.apply(t,kr([void 0],e.concat(this))))},t}(Array);function Ja(r){return Jt(r)?yi(r,function(){}):r}function ef(r){return typeof r=="boolean"}function rf(){return function(t){return of(t)}}function of(r){r===void 0&&(r={});var t=r.thunk,e=t===void 0?!0:t,o=r.immutableCheck,n=o===void 0?!0:o,a=r.serializableCheck,s=a===void 0?!0:a,l=new Qu;if(e&&(ef(e)?l.push(Za):l.push(Za.withExtraArgument(e.extraArgument))),0){if(n)var c;if(s)var d}return l}var Ya=!0;function Rc(r){var t=rf(),e=r||{},o=e.reducer,n=o===void 0?void 0:o,a=e.middleware,s=a===void 0?t():a,l=e.devTools,c=l===void 0?!0:l,d=e.preloadedState,u=d===void 0?void 0:d,h=e.enhancers,y=h===void 0?void 0:h,b;if(typeof n=="function")b=n;else if(Ju(n))b=bc(n);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 v=s;if(typeof v=="function"&&(v=v(t),!Ya&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ya&&v.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=vc.apply(void 0,v),T=$r;c&&(T=Xu(Be({trace:!Ya},typeof c=="object"&&c)));var I=new tf(w),k=I;Array.isArray(y)?k=kr([w],y):typeof y=="function"&&(k=y(I));var O=T.apply(void 0,k);return Ga(b,u,O)}function Fe(r,t){function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(t){var a=t.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return Be(Be({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:o[0]}}return e.toString=function(){return""+r},e.type=r,e.match=function(o){return o.type===r},e}function _c(r){var t={},e=[],o,n={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,n},addMatcher:function(a,s){return e.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return r(n),[t,e,o]}function nf(r){return typeof r=="function"}function af(r,t,e,o){e===void 0&&(e=[]);var n=typeof t=="function"?_c(t):[t,e,o],a=n[0],s=n[1],l=n[2],c;if(nf(r))c=function(){return Ja(r())};else{var d=Ja(r);c=function(){return d}}function u(h,y){h===void 0&&(h=c());var b=kr([a[y.type]],s.filter(function(v){var w=v.matcher;return w(y)}).map(function(v){var w=v.reducer;return w}));return b.filter(function(v){return!!v}).length===0&&(b=[l]),b.reduce(function(v,w){if(w)if(Oe(v)){var T=v,I=w(T,y);return I===void 0?v:I}else{if(Jt(v))return yi(v,function(k){return w(k,y)});var I=w(v,y);if(I===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return v},h)}return u.getInitialState=c,u}function sf(r,t){return r+"/"+t}function Nc(r){var t=r.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var e=typeof r.initialState=="function"?r.initialState:Ja(r.initialState),o=r.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(u){var h=o[u],y=sf(t,u),b,v;"reducer"in h?(b=h.reducer,v=h.prepare):b=h,a[u]=b,s[y]=b,l[u]=v?Fe(y,v):Fe(y)});function c(){var u=typeof r.extraReducers=="function"?_c(r.extraReducers):[r.extraReducers],h=u[0],y=h===void 0?{}:h,b=u[1],v=b===void 0?[]:b,w=u[2],T=w===void 0?void 0:w,I=Be(Be({},y),s);return af(e,function(k){for(var O in I)k.addCase(O,I[O]);for(var S=0,C=v;S<C.length;S++){var M=C[S];k.addMatcher(M.matcher,M.reducer)}T&&k.addDefaultCase(T)})}var d;return{name:t,reducer:function(u,h){return d||(d=c()),d(u,h)},actions:l,caseReducers:a,getInitialState:function(){return d||(d=c()),d.getInitialState()}}}var lf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",cf=function(r){r===void 0&&(r=21);for(var t="",e=r;e--;)t+=lf[Math.random()*64|0];return t},df=["name","message","stack","code"],Xa=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),Ec=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),pf=function(r){if(typeof r=="object"&&r!==null){for(var t={},e=0,o=df;e<o.length;e++){var n=o[e];typeof r[n]=="string"&&(t[n]=r[n])}return t}return{message:String(r)}},av=function(){function r(t,e,o){var n=Fe(t+"/fulfilled",function(u,h,y,b){return{payload:u,meta:qa(Be({},b||{}),{arg:y,requestId:h,requestStatus:"fulfilled"})}}),a=Fe(t+"/pending",function(u,h,y){return{payload:void 0,meta:qa(Be({},y||{}),{arg:h,requestId:u,requestStatus:"pending"})}}),s=Fe(t+"/rejected",function(u,h,y,b,v){return{payload:b,error:(o&&o.serializeError||pf)(u||"Rejected"),meta:qa(Be({},v||{}),{arg:y,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),l=!1,c=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function d(u){return function(h,y,b){var v=o?.idGenerator?o.idGenerator(u):cf(),w=new c,T,I=!1;function k(S){T=S,w.abort()}var O=function(){return Yu(this,null,function(){var S,C,M,W,At,Y,m;return Vu(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),W=(S=o?.condition)==null?void 0:S.call(o,u,{getState:y,extra:b}),ff(W)?[4,W]:[3,2];case 1:W=x.sent(),x.label=2;case 2:if(W===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,At=new Promise(function(N,G){return w.signal.addEventListener("abort",function(){return G({name:"AbortError",message:T||"Aborted"})})}),h(a(v,u,(C=o?.getPendingMeta)==null?void 0:C.call(o,{requestId:v,arg:u},{getState:y,extra:b}))),[4,Promise.race([At,Promise.resolve(e(u,{dispatch:h,getState:y,extra:b,requestId:v,signal:w.signal,abort:k,rejectWithValue:function(N,G){return new Xa(N,G)},fulfillWithValue:function(N,G){return new Ec(N,G)}})).then(function(N){if(N instanceof Xa)throw N;return N instanceof Ec?n(N.payload,v,u,N.meta):n(N,v,u)})])];case 3:return M=x.sent(),[3,5];case 4:return Y=x.sent(),M=Y instanceof Xa?s(null,v,u,Y.payload,Y.meta):s(Y,v,u),[3,5];case 5:return m=o&&!o.dispatchConditionRejection&&s.match(M)&&M.meta.condition,m||h(M),[2,M]}})})}();return Object.assign(O,{abort:k,requestId:v,arg:u,unwrap:function(){return O.then(uf)}})}}return Object.assign(d,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return r.withTypes=function(){return r},r}();function uf(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function ff(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Tc="listener",Ic="completed",Pc="cancelled",sv="task-"+Pc,lv="task-"+Ic,cv=Tc+"-"+Pc,dv=Tc+"-"+Ic;var Qa="listenerMiddleware";var pv=Fe(Qa+"/add"),uv=Fe(Qa+"/removeAll"),fv=Fe(Qa+"/remove");var Cc,hv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Cc||(Cc=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},hf=function(r){return function(t){setTimeout(t,r)}},mv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:hf(10);fc();window.ftReduxStores||(window.ftReduxStores={});var we=class r{static get(t){var e;let o=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[o];if(fr(a))return a;if(n==null)return;let s=Nc({...n,reducers:(e=n.reducers)!==null&&e!==void 0?e:{}}),l=Rc({reducer:(c,d)=>d.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...d.overwrites}:s.reducer(c,d)});return window.ftReduxStores[n.name]=new r(s,l)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Oo,this.actions=new Proxy(this.reduxSlice.actions,{get:(o,n,a)=>{let s=n,l=o[s];return l?(...c)=>{let d=l(...c);return this.reduxStore.dispatch(d),d}:c=>{this.setState({[s]:c})}}})}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 mf(){var r;for(let t of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))fr(t)&&t.clear()}var os={};Q(os,{scrollHelper:()=>gf});var es,xi=new Map,rs=class{lock(t,e){if(e){let o=xi.get(e);if(o==null||o===t)return xi.set(e,t),e}}release(t,e){e&&xi.get(e)===t&&xi.delete(e)}findFirstScrollableParent(t){let e,o=n=>{var a;n.stopPropagation();let s,l;for(let c of n.composedPath()){let d=c,u=this.elementCanScroll(d);if(u&&d.clientHeight&&d.clientHeight<d.scrollHeight){s=d;break}else u&&l==null&&(l=d)}e=(a=s??l)!==null&&a!==void 0?a:document.body};return t.addEventListener("find-scrollable-parent",o),t.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),t.removeEventListener("find-scrollable-parent",o),e}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,e){let o=0;for(;e&&e.offsetParent!==t.offsetParent;)o+=e.offsetTop,e=e.offsetParent;return o+e.offsetTop-t.offsetTop}computeTopOffsetRatio(t,e){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return e;default:return 0}}scrollIntoViewIfPossible(t,e){let o=this.findFirstScrollableParent(t);if(t&&this.lock(this,o)){let n=this.getAbsoluteScrollOffset(o,t),a=n-o.clientHeight+t.clientHeight,s=n,l=Rn(0,(s-o.scrollTop)/(s-a),1),c=this.computeTopOffsetRatio(e?.position,l)*(a-s)+s;o.scrollTo({behavior:e?.behavior,top:c})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(es=window.FluidTopicsScrollHelper)!==null&&es!==void 0?es:new rs;var gf=window.FluidTopicsScrollHelper;var is={};Q(is,{shadowQuerySelector:()=>yf,shadowQuerySelectorAll:()=>bf});function yf(r,t,...e){var o;let n=r.querySelector(t);for(let a of e)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function bf(r,t,...e){let o=[...r.querySelectorAll(t)];for(let n of e)o=o.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return o}var ns={};Q(ns,{serializeRequest:()=>xf});function vf(r){return`"${r}"`}function xf(r,t){var e,o,n,a;let s=new URLSearchParams({"content-lang":(e=t.contentLocale)!==null&&e!==void 0?e:"all"});if(((o=t.query)===null||o===void 0?void 0:o.length)>0&&s.append("query",t.query),t.scope&&t.scope!=="DEFAULT"&&s.append("scope",t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&s.append("virtual-field",t.virtualField.toLowerCase()),t.periodFilter){let c=t.periodFilter.period,d=c?`_${c.from}_${c.to}`:"";s.append("period",t.periodFilter.periodType.toLowerCase()+d)}if(((n=t.sort)===null||n===void 0?void 0:n.length)>0&&t.sort[0].key==="ft:lastEdition"&&s.append("sort","last_update"),((a=t.filters)===null||a===void 0?void 0:a.length)>0){let c=t.filters.map(d=>{let u=d.values.map(h=>h.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(h=>encodeURIComponent(vf(h))).join("_");return`${d.key}~${u}`}).join("*");s.append("filters",c)}return new URL(`${r.replace(/\/+$/,"")}/search?${s.toString()}`).href}var as={};Q(as,{toFtFormComponent:()=>gr});var Si=Symbol("elementInternals");function gr(r,t){class e extends r{static get formAssociated(){return!0}get form(){return this[Si].form}constructor(...n){super(n),this[Si]=this.attachInternals(),this[Si].role=t}setFormValue(n){this[Si].setFormValue(n)}}return e}var ss={};Q(ss,{DateFormatter:()=>Lr});var Lr=class{static format(t,e,o,n){return window.moment?window.moment(t).locale(e).format(this.getDateFormat(o,n)):t}static getDateFormat(t,e){return t?e?"lll":"ll":e?"L LT":"L"}};var ls,cs,ds,ps,Ao=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ds=(cs=(ls=window.safari)===null||ls===void 0?void 0:ls.pushNotification)===null||cs===void 0?void 0:cs.toString())!==null&&ds!==void 0?ds:"")==="[object SafariRemoteNotification]",Sf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ps=window.ftGlobals)!==null&&ps!==void 0?ps:{lit:un,litDecorators:hn,litRepeat:gn,litClassMap:yn,litStyleMap:bn,litUnsafeHTML:xn,wcUtils:{...wn,...On,...En,...ss,...Cn,...Nn,...ia,...sa,...ba,...oa,...Oa,...xa,...Jl,..._n,...Ca,...Ra,...tc,..._a,...ts,...va,...os,...is,...ns,...as,isSafari:Ao,isTouchScreen:Sf,setVariable:E}};var Gt;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Gt||(Gt={}));var Of=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},fs=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},us=Symbol("registerInterval");function wf(r){var t;class e extends r{constructor(){super(...arguments),this[t]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[us]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[us]):this.dispatchEvent(new fs)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=us,Of([H()],e.prototype,"stateManager",void 0),e}var ze=class extends wf(jt){};var $c=i.extend("--ft-ripple-color","",R.colorContent),z={color:$c,backgroundColor:i.extend("--ft-ripple-background-color","",$c),opacityContentOnSurfacePressed:i.external(R.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(R.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(R.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(R.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},kc=i.extend("--ft-ripple-color","",R.colorPrimary),Lc={color:kc,backgroundColor:i.extend("--ft-ripple-background-color","",kc)},Dc=i.extend("--ft-ripple-color","",R.colorSecondary),Mc={color:Dc,backgroundColor:i.extend("--ft-ripple-background-color","",Dc)},Uc=P`
49
+ `;var tc={};var _a={};Q(_a,{ParametrizedLabelResolver:()=>xo});var xo=class r{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,n;t=this.resolvePluralKey(t,e);let a=(n=(o=this.labels[t])!==null&&o!==void 0?o:this.defaultLabels[t])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...e)}static replaceParameters(t,...e){return e.forEach((o,n)=>t=t.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(o,s))),t}resolvePluralKey(t,e){for(let o of e)if(typeof o=="number"){let n=`${String(t)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return t}static formatValue(t,e){return t instanceof Date?r.formatDate(t,e):t??""}static formatDate(t,e){let o=n=>e?.includes("date")?t.toLocaleDateString(n):e?.includes("time")?t.toLocaleTimeString(n):t.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var ts={};Q(ts,{FtCommandQueue:()=>wo,FtLitElementRedux:()=>jt,FtReduxStore:()=>Oe,clearAllStores:()=>mf,isFtReduxStore:()=>fr,redux:()=>nt,reduxEventListener:()=>So,reduxReactive:()=>Iu});var Iu=()=>(r,t)=>{var e;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(e=o.reduxReactiveProperties)===null||e===void 0||e.add(t)},nt=r=>{let t=r??{};return(e,o)=>{var n;let a={hasChanged:co,attribute:!1,...t};g(a)(e,o);let s=e.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=t.selector)!==null&&n!==void 0?n:l=>l[o],store:t.store})}},So=r=>(t,e)=>{let o=t.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(e,r)};var wo=class{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter(o=>o.type!==t.type)),this.queue.push(t)}consume(t){let e=this.queue.find(o=>o.type===t);return e&&(this.queue=this.queue.filter(o=>o!==e)),e}};function fr(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var ec,rc,oc,fi=Symbol("internalReduxEventsUnsubscribers"),Le=Symbol("internalStoresUnsubscribers"),hr=Symbol("internalStores"),jt=class extends F{constructor(){super(...arguments),this[ec]=new Map,this[rc]=new Map,this[oc]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(e=>t.has(e))&&this.updateFromStores()}getUnnamedStore(){if(this[hr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[hr].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[hr].get(t)}addStore(t,e){var o;e=(o=e??(fr(t)?t.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){let e=typeof t=="string"?t:t.name;this.unsubscribeFromStore(e),this[hr].delete(e)}setupStore(t,e){this[hr].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[hr].forEach((t,e)=>this.subscribeToStore(e,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,e)=>{let o=this.constructor.getPropertyOptions(e);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:e)){let n=this.getStore(t.store);n&&(t.store?this[Le].has(t.store):this[Le].size>0)&&(this[e]=t.selector(n.getState(),this))}})}subscribeToStore(t,e){var o;this[Le].set(t,e.subscribe(()=>this.updateFromStores())),fr(e)&&e.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||e.name===n.store)){let s=l=>this[a](l);e.eventBus.addEventListener(n.eventName,s),this[fi].push(()=>e.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Le].forEach((t,e)=>this.unsubscribeFromStore(e)),this[fi].forEach(t=>t()),this[fi]=[]}unsubscribeFromStore(t){this[Le].has(t)&&this[Le].get(t)(),this[Le].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};ec=Le,rc=hr,oc=fi;jt.reduxProperties=new Map;jt.reduxReactiveProperties=new Set;jt.reduxEventListeners=new Map;function Kt(r){for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(e.length?" "+e.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function we(r){return!!r&&!!r[at]}function Jt(r){var t;return!!r&&(function(e){if(!e||typeof e!="object")return!1;var o=Object.getPrototypeOf(e);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Bu}(r)||Array.isArray(r)||!!r[dc]||!!(!((t=r.constructor)===null||t===void 0)&&t[dc])||Ma(r)||Ua(r))}function mr(r,t,e){e===void 0&&(e=!1),$r(r)===0?(e?Object.keys:Pr)(r).forEach(function(o){e&&typeof o=="symbol"||t(o,r[o],r)}):r.forEach(function(o,n){return t(n,o,r)})}function $r(r){var t=r[at];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:Ma(r)?2:Ua(r)?3:0}function Ir(r,t){return $r(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function Pu(r,t){return $r(r)===2?r.get(t):r[t]}function pc(r,t,e){var o=$r(r);o===2?r.set(t,e):o===3?r.add(e):r[t]=e}function uc(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function Ma(r){return Mu&&r instanceof Map}function Ua(r){return Uu&&r instanceof Set}function De(r){return r.o||r.t}function Ba(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=mc(r);delete t[at];for(var e=Pr(t),o=0;o<e.length;o++){var n=e[o],a=t[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),t)}function Fa(r,t){return t===void 0&&(t=!1),za(r)||we(r)||!Jt(r)||($r(r)>1&&(r.set=r.add=r.clear=r.delete=$u),Object.freeze(r),t&&mr(r,function(e,o){return Fa(o,!0)},!0)),r}function $u(){Kt(2)}function za(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function se(r){var t=Da[r];return t||Kt(18,r),t}function ku(r,t){Da[r]||(Da[r]=t)}function $a(){return Eo}function Na(r,t){t&&(se("Patches"),r.u=[],r.s=[],r.v=t)}function hi(r){ka(r),r.p.forEach(Lu),r.p=null}function ka(r){r===Eo&&(Eo=r.l)}function ic(r){return Eo={p:[],l:Eo,h:r,m:!0,_:0}}function Lu(r){var t=r[at];t.i===0||t.i===1?t.j():t.g=!0}function Ta(r,t){t._=t.p.length;var e=t.p[0],o=r!==void 0&&r!==e;return t.h.O||se("ES5").S(t,r,o),o?(e[at].P&&(hi(t),Kt(4)),Jt(r)&&(r=mi(t,r),t.l||gi(t,r)),t.u&&se("Patches").M(e[at].t,r,t.u,t.s)):r=mi(t,e,[]),hi(t),t.u&&t.v(t.u,t.s),r!==hc?r:void 0}function mi(r,t,e){if(za(t))return t;var o=t[at];if(!o)return mr(t,function(l,c){return nc(r,o,t,l,c,e)},!0),t;if(o.A!==r)return t;if(!o.P)return gi(r,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=Ba(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),mr(a,function(l,c){return nc(r,o,n,l,c,e,s)}),gi(r,n,!1),e&&r.u&&se("Patches").N(o,e,r.u,r.s)}return o.o}function nc(r,t,e,o,n,a,s){if(we(n)){var l=mi(r,n,a&&t&&t.i!==3&&!Ir(t.R,o)?a.concat(o):void 0);if(pc(e,o,l),!we(l))return;r.m=!1}else s&&e.add(n);if(Jt(n)&&!za(n)){if(!r.h.D&&r._<1)return;mi(r,n),t&&t.A.l||gi(r,n)}}function gi(r,t,e){e===void 0&&(e=!1),!r.l&&r.h.D&&r.m&&Fa(t,e)}function Ia(r,t){var e=r[at];return(e?De(e):r)[t]}function ac(r,t){if(t in r)for(var e=Object.getPrototypeOf(r);e;){var o=Object.getOwnPropertyDescriptor(e,t);if(o)return o;e=Object.getPrototypeOf(e)}}function Me(r){r.P||(r.P=!0,r.l&&Me(r.l))}function Pa(r){r.o||(r.o=Ba(r.t))}function La(r,t,e){var o=Ma(t)?se("MapSet").F(t,e):Ua(t)?se("MapSet").T(t,e):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:$a(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},c=l,d=Co;s&&(c=[l],d=Oo);var u=Proxy.revocable(c,d),h=u.revoke,y=u.proxy;return l.k=y,l.j=h,y}(t,e):se("ES5").J(t,e);return(e?e.A:$a()).p.push(o),o}function Du(r){return we(r)||Kt(22,r),function t(e){if(!Jt(e))return e;var o,n=e[at],a=$r(e);if(n){if(!n.P&&(n.i<4||!se("ES5").K(n)))return n.t;n.I=!0,o=sc(e,a),n.I=!1}else o=sc(e,a);return mr(o,function(s,l){n&&Pu(n.t,s)===l||pc(o,s,t(l))}),a===3?new Set(o):o}(r)}function sc(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return Ba(r)}function fc(){function r(s,l){var c=a[s];return c?c.enumerable=l:a[s]=c={configurable:!0,enumerable:l,get:function(){var d=this[at];return Co.get(d,s)},set:function(d){var u=this[at];Co.set(u,s,d)}},c}function t(s){for(var l=s.length-1;l>=0;l--){var c=s[l][at];if(!c.P)switch(c.i){case 5:o(c)&&Me(c);break;case 4:e(c)&&Me(c)}}}function e(s){for(var l=s.t,c=s.k,d=Pr(c),u=d.length-1;u>=0;u--){var h=d[u];if(h!==at){var y=l[h];if(y===void 0&&!Ir(l,h))return!0;var b=c[h],v=b&&b[at];if(v?v.t!==y:!uc(b,y))return!0}}var O=!!l[at];return d.length!==Pr(l).length+(O?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var c=Object.getOwnPropertyDescriptor(l,l.length-1);if(c&&!c.get)return!0;for(var d=0;d<l.length;d++)if(!l.hasOwnProperty(d))return!0;return!1}function n(s){s.g&&Kt(3,JSON.stringify(De(s)))}var a={};ku("ES5",{J:function(s,l){var c=Array.isArray(s),d=function(h,y){if(h){for(var b=Array(y.length),v=0;v<y.length;v++)Object.defineProperty(b,""+v,r(v,!0));return b}var O=mc(y);delete O[at];for(var T=Pr(O),I=0;I<T.length;I++){var k=T[I];O[k]=r(k,h||!!O[k].enumerable)}return Object.create(Object.getPrototypeOf(y),O)}(c,s),u={i:c?5:4,A:l?l.A:$a(),P:!1,I:!1,R:{},l,t:s,k:d,o:null,g:!1,C:!1};return Object.defineProperty(d,at,{value:u,writable:!0}),d},S:function(s,l,c){c?we(l)&&l[at].A===s&&t(s.p):(s.u&&function d(u){if(u&&typeof u=="object"){var h=u[at];if(h){var y=h.t,b=h.k,v=h.R,O=h.i;if(O===4)mr(b,function(S){S!==at&&(y[S]!==void 0||Ir(y,S)?v[S]||d(b[S]):(v[S]=!0,Me(h)))}),mr(y,function(S){b[S]!==void 0||Ir(b,S)||(v[S]=!1,Me(h))});else if(O===5){if(o(h)&&(Me(h),v.length=!0),b.length<y.length)for(var T=b.length;T<y.length;T++)v[T]=!1;else for(var I=y.length;I<b.length;I++)v[I]=!0;for(var k=Math.min(b.length,y.length),w=0;w<k;w++)b.hasOwnProperty(w)||(v[w]=!0),v[w]===void 0&&d(b[w])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?e(s):o(s)}})}var lc,Eo,Wa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Mu=typeof Map<"u",Uu=typeof Set<"u",cc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",hc=Wa?Symbol.for("immer-nothing"):((lc={})["immer-nothing"]=!0,lc),dc=Wa?Symbol.for("immer-draftable"):"__$immer_draftable",at=Wa?Symbol.for("immer-state"):"__$immer_state";var Bu=""+Object.prototype.constructor,Pr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,mc=Object.getOwnPropertyDescriptors||function(r){var t={};return Pr(r).forEach(function(e){t[e]=Object.getOwnPropertyDescriptor(r,e)}),t},Da={},Co={get:function(r,t){if(t===at)return r;var e=De(r);if(!Ir(e,t))return function(n,a,s){var l,c=ac(a,s);return c?"value"in c?c.value:(l=c.get)===null||l===void 0?void 0:l.call(n.k):void 0}(r,e,t);var o=e[t];return r.I||!Jt(o)?o:o===Ia(r.t,t)?(Pa(r),r.o[t]=La(r.A.h,o,r)):o},has:function(r,t){return t in De(r)},ownKeys:function(r){return Reflect.ownKeys(De(r))},set:function(r,t,e){var o=ac(De(r),t);if(o?.set)return o.set.call(r.k,e),!0;if(!r.P){var n=Ia(De(r),t),a=n?.[at];if(a&&a.t===e)return r.o[t]=e,r.R[t]=!1,!0;if(uc(e,n)&&(e!==void 0||Ir(r.t,t)))return!0;Pa(r),Me(r)}return r.o[t]===e&&(e!==void 0||t in r.o)||Number.isNaN(e)&&Number.isNaN(r.o[t])||(r.o[t]=e,r.R[t]=!0),!0},deleteProperty:function(r,t){return Ia(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,Pa(r),Me(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var e=De(r),o=Reflect.getOwnPropertyDescriptor(e,t);return o&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:o.enumerable,value:e[t]}},defineProperty:function(){Kt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){Kt(12)}},Oo={};mr(Co,function(r,t){Oo[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Oo.deleteProperty=function(r,t){return Oo.set.call(this,r,t,void 0)},Oo.set=function(r,t,e){return Co.set.call(this,r[0],t,e,r[0])};var Fu=function(){function r(e){var o=this;this.O=cc,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var c=o;return function(O){var T=this;O===void 0&&(O=l);for(var I=arguments.length,k=Array(I>1?I-1:0),w=1;w<I;w++)k[w-1]=arguments[w];return c.produce(O,function(S){var C;return(C=a).call.apply(C,[T,S].concat(k))})}}var d;if(typeof a!="function"&&Kt(6),s!==void 0&&typeof s!="function"&&Kt(7),Jt(n)){var u=ic(o),h=La(o,n,void 0),y=!0;try{d=a(h),y=!1}finally{y?hi(u):ka(u)}return typeof Promise<"u"&&d instanceof Promise?d.then(function(O){return Na(u,s),Ta(O,u)},function(O){throw hi(u),O}):(Na(u,s),Ta(d,u))}if(!n||typeof n!="object"){if((d=a(n))===void 0&&(d=n),d===hc&&(d=void 0),o.D&&Fa(d,!0),s){var b=[],v=[];se("Patches").M(n,d,b,v),s(b,v)}return d}Kt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(d){for(var u=arguments.length,h=Array(u>1?u-1:0),y=1;y<u;y++)h[y-1]=arguments[y];return o.produceWithPatches(d,function(b){return n.apply(void 0,[b].concat(h))})};var s,l,c=o.produce(n,a,function(d,u){s=d,l=u});return typeof Promise<"u"&&c instanceof Promise?c.then(function(d){return[d,s,l]}):[c,s,l]},typeof e?.useProxies=="boolean"&&this.setUseProxies(e.useProxies),typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze)}var t=r.prototype;return t.createDraft=function(e){Jt(e)||Kt(8),we(e)&&(e=Du(e));var o=ic(this),n=La(this,e,void 0);return n[at].C=!0,ka(o),n},t.finishDraft=function(e,o){var n=e&&e[at],a=n.A;return Na(a,o),Ta(void 0,a)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!cc&&Kt(20),this.O=e},t.applyPatches=function(e,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(o=o.slice(n+1));var s=se("Patches").$;return we(e)?s(e,o):this.produce(e,function(l){return s(l,o)})},r}(),Ht=new Fu,zu=Ht.produce,$b=Ht.produceWithPatches.bind(Ht),kb=Ht.setAutoFreeze.bind(Ht),Lb=Ht.setUseProxies.bind(Ht),Db=Ht.applyPatches.bind(Ht),Mb=Ht.createDraft.bind(Ht),Ub=Ht.finishDraft.bind(Ht),yi=zu;function Ue(r){"@babel/helpers - typeof";return Ue=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},Ue(r)}function Ha(r,t){if(Ue(r)!=="object"||r===null)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var o=e.call(r,t||"default");if(Ue(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function Va(r){var t=Ha(r,"string");return Ue(t)==="symbol"?t:String(t)}function ja(r,t,e){return t=Va(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function gc(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,o)}return e}function bi(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?gc(Object(e),!0).forEach(function(o){ja(r,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):gc(Object(e)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(e,o))})}return r}function Rt(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var yc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ka=function(){return Math.random().toString(36).substring(7).split("").join(".")},vi={INIT:"@@redux/INIT"+Ka(),REPLACE:"@@redux/REPLACE"+Ka(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ka()}};function Wu(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function Ga(r,t,e){var o;if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(Rt(0));if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(Rt(1));return e(Ga)(r,t)}if(typeof r!="function")throw new Error(Rt(2));var n=r,a=t,s=[],l=s,c=!1;function d(){l===s&&(l=s.slice())}function u(){if(c)throw new Error(Rt(3));return a}function h(O){if(typeof O!="function")throw new Error(Rt(4));if(c)throw new Error(Rt(5));var T=!0;return d(),l.push(O),function(){if(T){if(c)throw new Error(Rt(6));T=!1,d();var k=l.indexOf(O);l.splice(k,1),s=null}}}function y(O){if(!Wu(O))throw new Error(Rt(7));if(typeof O.type>"u")throw new Error(Rt(8));if(c)throw new Error(Rt(9));try{c=!0,a=n(a,O)}finally{c=!1}for(var T=s=l,I=0;I<T.length;I++){var k=T[I];k()}return O}function b(O){if(typeof O!="function")throw new Error(Rt(10));n=O,y({type:vi.REPLACE})}function v(){var O,T=h;return O={subscribe:function(k){if(typeof k!="object"||k===null)throw new Error(Rt(11));function w(){k.next&&k.next(u())}w();var S=T(w);return{unsubscribe:S}}},O[yc]=function(){return this},O}return y({type:vi.INIT}),o={dispatch:y,subscribe:h,getState:u,replaceReducer:b},o[yc]=v,o}function Hu(r){Object.keys(r).forEach(function(t){var e=r[t],o=e(void 0,{type:vi.INIT});if(typeof o>"u")throw new Error(Rt(12));if(typeof e(void 0,{type:vi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Rt(13))})}function bc(r){for(var t=Object.keys(r),e={},o=0;o<t.length;o++){var n=t[o];typeof r[n]=="function"&&(e[n]=r[n])}var a=Object.keys(e),s,l;try{Hu(e)}catch(c){l=c}return function(d,u){if(d===void 0&&(d={}),l)throw l;if(0)var h;for(var y=!1,b={},v=0;v<a.length;v++){var O=a[v],T=e[O],I=d[O],k=T(I,u);if(typeof k>"u"){var w=u&&u.type;throw new Error(Rt(14))}b[O]=k,y=y||k!==I}return y=y||a.length!==Object.keys(d).length,y?b:d}}function kr(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.length===0?function(o){return o}:t.length===1?t[0]:t.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function vc(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(Rt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(c){return c(s)});return a=kr.apply(void 0,l)(n.dispatch),bi(bi({},n),{},{dispatch:a})}}}function xc(r){var t=function(o){var n=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return t}var Sc=xc();Sc.withExtraArgument=xc;var Za=Sc;var Ac=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Vu=function(r,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,n,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(d){return function(u){return c([d,u])}}function c(d){if(o)throw new TypeError("Generator is already executing.");for(;e;)try{if(o=1,n&&(a=d[0]&2?n.return:d[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,d[1])).done)return a;switch(n=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return e.label++,{value:d[1],done:!1};case 5:e.label++,n=d[1],d=[0];continue;case 7:d=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){e=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){e.label=d[1];break}if(d[0]===6&&e.label<a[1]){e.label=a[1],a=d;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(d);break}a[2]&&e.ops.pop(),e.trys.pop();continue}d=t.call(r,e)}catch(u){d=[6,u],n=0}finally{o=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},Lr=function(r,t){for(var e=0,o=t.length,n=r.length;e<o;e++,n++)r[n]=t[e];return r},ju=Object.defineProperty,Ku=Object.defineProperties,Gu=Object.getOwnPropertyDescriptors,wc=Object.getOwnPropertySymbols,Zu=Object.prototype.hasOwnProperty,qu=Object.prototype.propertyIsEnumerable,Oc=function(r,t,e){return t in r?ju(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e},Be=function(r,t){for(var e in t||(t={}))Zu.call(t,e)&&Oc(r,e,t[e]);if(wc)for(var o=0,n=wc(t);o<n.length;o++){var e=n[o];qu.call(t,e)&&Oc(r,e,t[e])}return r},qa=function(r,t){return Ku(r,Gu(t))},Yu=function(r,t,e){return new Promise(function(o,n){var a=function(c){try{l(e.next(c))}catch(d){n(d)}},s=function(c){try{l(e.throw(c))}catch(d){n(d)}},l=function(c){return c.done?o(c.value):Promise.resolve(c.value).then(a,s)};l((e=e.apply(r,t)).next())})};var Xu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?kr:kr.apply(null,arguments)},rv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function Ju(r){if(typeof r!="object"||r===null)return!1;var t=Object.getPrototypeOf(r);if(t===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return t===e}var Qu=function(r){Ac(t,r);function t(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,Lr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Lr([void 0],e.concat(this))))},t}(Array),tf=function(r){Ac(t,r);function t(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,Lr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Lr([void 0],e.concat(this))))},t}(Array);function Ja(r){return Jt(r)?yi(r,function(){}):r}function ef(r){return typeof r=="boolean"}function rf(){return function(t){return of(t)}}function of(r){r===void 0&&(r={});var t=r.thunk,e=t===void 0?!0:t,o=r.immutableCheck,n=o===void 0?!0:o,a=r.serializableCheck,s=a===void 0?!0:a,l=new Qu;if(e&&(ef(e)?l.push(Za):l.push(Za.withExtraArgument(e.extraArgument))),0){if(n)var c;if(s)var d}return l}var Ya=!0;function Rc(r){var t=rf(),e=r||{},o=e.reducer,n=o===void 0?void 0:o,a=e.middleware,s=a===void 0?t():a,l=e.devTools,c=l===void 0?!0:l,d=e.preloadedState,u=d===void 0?void 0:d,h=e.enhancers,y=h===void 0?void 0:h,b;if(typeof n=="function")b=n;else if(Ju(n))b=bc(n);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 v=s;if(typeof v=="function"&&(v=v(t),!Ya&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ya&&v.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=vc.apply(void 0,v),T=kr;c&&(T=Xu(Be({trace:!Ya},typeof c=="object"&&c)));var I=new tf(O),k=I;Array.isArray(y)?k=Lr([O],y):typeof y=="function"&&(k=y(I));var w=T.apply(void 0,k);return Ga(b,u,w)}function Fe(r,t){function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(t){var a=t.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return Be(Be({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:o[0]}}return e.toString=function(){return""+r},e.type=r,e.match=function(o){return o.type===r},e}function _c(r){var t={},e=[],o,n={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,n},addMatcher:function(a,s){return e.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return r(n),[t,e,o]}function nf(r){return typeof r=="function"}function af(r,t,e,o){e===void 0&&(e=[]);var n=typeof t=="function"?_c(t):[t,e,o],a=n[0],s=n[1],l=n[2],c;if(nf(r))c=function(){return Ja(r())};else{var d=Ja(r);c=function(){return d}}function u(h,y){h===void 0&&(h=c());var b=Lr([a[y.type]],s.filter(function(v){var O=v.matcher;return O(y)}).map(function(v){var O=v.reducer;return O}));return b.filter(function(v){return!!v}).length===0&&(b=[l]),b.reduce(function(v,O){if(O)if(we(v)){var T=v,I=O(T,y);return I===void 0?v:I}else{if(Jt(v))return yi(v,function(k){return O(k,y)});var I=O(v,y);if(I===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return v},h)}return u.getInitialState=c,u}function sf(r,t){return r+"/"+t}function Nc(r){var t=r.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var e=typeof r.initialState=="function"?r.initialState:Ja(r.initialState),o=r.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(u){var h=o[u],y=sf(t,u),b,v;"reducer"in h?(b=h.reducer,v=h.prepare):b=h,a[u]=b,s[y]=b,l[u]=v?Fe(y,v):Fe(y)});function c(){var u=typeof r.extraReducers=="function"?_c(r.extraReducers):[r.extraReducers],h=u[0],y=h===void 0?{}:h,b=u[1],v=b===void 0?[]:b,O=u[2],T=O===void 0?void 0:O,I=Be(Be({},y),s);return af(e,function(k){for(var w in I)k.addCase(w,I[w]);for(var S=0,C=v;S<C.length;S++){var M=C[S];k.addMatcher(M.matcher,M.reducer)}T&&k.addDefaultCase(T)})}var d;return{name:t,reducer:function(u,h){return d||(d=c()),d(u,h)},actions:l,caseReducers:a,getInitialState:function(){return d||(d=c()),d.getInitialState()}}}var lf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",cf=function(r){r===void 0&&(r=21);for(var t="",e=r;e--;)t+=lf[Math.random()*64|0];return t},df=["name","message","stack","code"],Xa=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),Ec=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),pf=function(r){if(typeof r=="object"&&r!==null){for(var t={},e=0,o=df;e<o.length;e++){var n=o[e];typeof r[n]=="string"&&(t[n]=r[n])}return t}return{message:String(r)}},av=function(){function r(t,e,o){var n=Fe(t+"/fulfilled",function(u,h,y,b){return{payload:u,meta:qa(Be({},b||{}),{arg:y,requestId:h,requestStatus:"fulfilled"})}}),a=Fe(t+"/pending",function(u,h,y){return{payload:void 0,meta:qa(Be({},y||{}),{arg:h,requestId:u,requestStatus:"pending"})}}),s=Fe(t+"/rejected",function(u,h,y,b,v){return{payload:b,error:(o&&o.serializeError||pf)(u||"Rejected"),meta:qa(Be({},v||{}),{arg:y,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),l=!1,c=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function d(u){return function(h,y,b){var v=o?.idGenerator?o.idGenerator(u):cf(),O=new c,T,I=!1;function k(S){T=S,O.abort()}var w=function(){return Yu(this,null,function(){var S,C,M,W,At,Y,m;return Vu(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),W=(S=o?.condition)==null?void 0:S.call(o,u,{getState:y,extra:b}),ff(W)?[4,W]:[3,2];case 1:W=x.sent(),x.label=2;case 2:if(W===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,At=new Promise(function(N,G){return O.signal.addEventListener("abort",function(){return G({name:"AbortError",message:T||"Aborted"})})}),h(a(v,u,(C=o?.getPendingMeta)==null?void 0:C.call(o,{requestId:v,arg:u},{getState:y,extra:b}))),[4,Promise.race([At,Promise.resolve(e(u,{dispatch:h,getState:y,extra:b,requestId:v,signal:O.signal,abort:k,rejectWithValue:function(N,G){return new Xa(N,G)},fulfillWithValue:function(N,G){return new Ec(N,G)}})).then(function(N){if(N instanceof Xa)throw N;return N instanceof Ec?n(N.payload,v,u,N.meta):n(N,v,u)})])];case 3:return M=x.sent(),[3,5];case 4:return Y=x.sent(),M=Y instanceof Xa?s(null,v,u,Y.payload,Y.meta):s(Y,v,u),[3,5];case 5:return m=o&&!o.dispatchConditionRejection&&s.match(M)&&M.meta.condition,m||h(M),[2,M]}})})}();return Object.assign(w,{abort:k,requestId:v,arg:u,unwrap:function(){return w.then(uf)}})}}return Object.assign(d,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return r.withTypes=function(){return r},r}();function uf(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function ff(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Tc="listener",Ic="completed",Pc="cancelled",sv="task-"+Pc,lv="task-"+Ic,cv=Tc+"-"+Pc,dv=Tc+"-"+Ic;var Qa="listenerMiddleware";var pv=Fe(Qa+"/add"),uv=Fe(Qa+"/removeAll"),fv=Fe(Qa+"/remove");var Cc,hv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Cc||(Cc=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},hf=function(r){return function(t){setTimeout(t,r)}},mv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:hf(10);fc();window.ftReduxStores||(window.ftReduxStores={});var Oe=class r{static get(t){var e;let o=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[o];if(fr(a))return a;if(n==null)return;let s=Nc({...n,reducers:(e=n.reducers)!==null&&e!==void 0?e:{}}),l=Rc({reducer:(c,d)=>d.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...d.overwrites}:s.reducer(c,d)});return window.ftReduxStores[n.name]=new r(s,l)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new wo,this.actions=new Proxy(this.reduxSlice.actions,{get:(o,n,a)=>{let s=n,l=o[s];return l?(...c)=>{let d=l(...c);return this.reduxStore.dispatch(d),d}:c=>{this.setState({[s]:c})}}})}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 mf(){var r;for(let t of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))fr(t)&&t.clear()}var os={};Q(os,{scrollHelper:()=>gf});var es,xi=new Map,rs=class{lock(t,e){if(e){let o=xi.get(e);if(o==null||o===t)return xi.set(e,t),e}}release(t,e){e&&xi.get(e)===t&&xi.delete(e)}findFirstScrollableParent(t){let e,o=n=>{var a;n.stopPropagation();let s,l;for(let c of n.composedPath()){let d=c,u=this.elementCanScroll(d);if(u&&d.clientHeight&&d.clientHeight<d.scrollHeight){s=d;break}else u&&l==null&&(l=d)}e=(a=s??l)!==null&&a!==void 0?a:document.body};return t.addEventListener("find-scrollable-parent",o),t.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),t.removeEventListener("find-scrollable-parent",o),e}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,e){let o=0;for(;e&&e.offsetParent!==t.offsetParent;)o+=e.offsetTop,e=e.offsetParent;return o+e.offsetTop-t.offsetTop}computeTopOffsetRatio(t,e){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return e;default:return 0}}scrollIntoViewIfPossible(t,e){let o=this.findFirstScrollableParent(t);if(t&&this.lock(this,o)){let n=this.getAbsoluteScrollOffset(o,t),a=n-o.clientHeight+t.clientHeight,s=n,l=Rn(0,(s-o.scrollTop)/(s-a),1),c=this.computeTopOffsetRatio(e?.position,l)*(a-s)+s;o.scrollTo({behavior:e?.behavior,top:c})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(es=window.FluidTopicsScrollHelper)!==null&&es!==void 0?es:new rs;var gf=window.FluidTopicsScrollHelper;var is={};Q(is,{shadowQuerySelector:()=>yf,shadowQuerySelectorAll:()=>bf});function yf(r,t,...e){var o;let n=r.querySelector(t);for(let a of e)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function bf(r,t,...e){let o=[...r.querySelectorAll(t)];for(let n of e)o=o.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return o}var ns={};Q(ns,{serializeRequest:()=>xf});function vf(r){return`"${r}"`}function xf(r,t){var e,o,n,a;let s=new URLSearchParams({"content-lang":(e=t.contentLocale)!==null&&e!==void 0?e:"all"});if(((o=t.query)===null||o===void 0?void 0:o.length)>0&&s.append("query",t.query),t.scope&&t.scope!=="DEFAULT"&&s.append("scope",t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&s.append("virtual-field",t.virtualField.toLowerCase()),t.periodFilter){let c=t.periodFilter.period,d=c?`_${c.from}_${c.to}`:"";s.append("period",t.periodFilter.periodType.toLowerCase()+d)}if(((n=t.sort)===null||n===void 0?void 0:n.length)>0&&t.sort[0].key==="ft:lastEdition"&&s.append("sort","last_update"),((a=t.filters)===null||a===void 0?void 0:a.length)>0){let c=t.filters.map(d=>{let u=d.values.map(h=>h.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(h=>encodeURIComponent(vf(h))).join("_");return`${d.key}~${u}`}).join("*");s.append("filters",c)}return new URL(`${r.replace(/\/+$/,"")}/search?${s.toString()}`).href}var as={};Q(as,{toFtFormComponent:()=>gr});var Si=Symbol("elementInternals");function gr(r,t){class e extends r{static get formAssociated(){return!0}get form(){return this[Si].form}constructor(...n){super(n),this[Si]=this.attachInternals(),this[Si].role=t}setFormValue(n){this[Si].setFormValue(n)}}return e}var ss={};Q(ss,{DateFormatter:()=>Dr});var Dr=class{static format(t,e,o,n){return window.moment?window.moment(t).locale(e).format(this.getDateFormat(o,n)):t}static getDateFormat(t,e){return t?e?"lll":"ll":e?"L LT":"L"}};var ls,cs,ds,ps,Ao=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ds=(cs=(ls=window.safari)===null||ls===void 0?void 0:ls.pushNotification)===null||cs===void 0?void 0:cs.toString())!==null&&ds!==void 0?ds:"")==="[object SafariRemoteNotification]",Sf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ps=window.ftGlobals)!==null&&ps!==void 0?ps:{lit:un,litDecorators:hn,litRepeat:gn,litClassMap:yn,litStyleMap:bn,litUnsafeHTML:xn,wcUtils:{...On,...wn,...En,...ss,...Cn,...Nn,...ia,...sa,...ba,...oa,...wa,...xa,...Jl,..._n,...Ca,...Ra,...tc,..._a,...ts,...va,...os,...is,...ns,...as,isSafari:Ao,isTouchScreen:Sf,setVariable:E}};var Gt;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Gt||(Gt={}));var wf=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},fs=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},us=Symbol("registerInterval");function Of(r){var t;class e extends r{constructor(){super(...arguments),this[t]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[us]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[us]):this.dispatchEvent(new fs)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=us,wf([H()],e.prototype,"stateManager",void 0),e}var ze=class extends Of(jt){};var $c=i.extend("--ft-ripple-color","",R.colorContent),z={color:$c,backgroundColor:i.extend("--ft-ripple-background-color","",$c),opacityContentOnSurfacePressed:i.external(R.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(R.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(R.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(R.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},kc=i.extend("--ft-ripple-color","",R.colorPrimary),Lc={color:kc,backgroundColor:i.extend("--ft-ripple-background-color","",kc)},Dc=i.extend("--ft-ripple-color","",R.colorSecondary),Mc={color:Dc,backgroundColor:i.extend("--ft-ripple-background-color","",Dc)},Uc=P`
50
50
  :host {
51
51
  display: contents;
52
52
  }
@@ -167,7 +167,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
167
167
  line-height: ${t.lineHeight};
168
168
  text-transform: ${t.textCase};
169
169
  }
170
- `}var Fc=i.extend("--ft-typography-font-family","",R.titleFont),Ee=i.extend("--ft-typography-font-family","",R.contentFont),D={fontFamily:Ee,fontSize:i.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:i.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:i.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:i.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:i.create("--ft-typography-text-transform","","UNKNOWN","inherit")},We={fontFamily:i.extend("--ft-typography-title-font-family","",Fc),fontSize:i.extend("--ft-typography-title-font-size","",D.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",D.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",D.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",D.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",D.textTransform,"inherit")},He={fontFamily:i.extend("--ft-typography-title-dense-font-family","",Fc),fontSize:i.extend("--ft-typography-title-dense-font-size","",D.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",D.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",D.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",D.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",D.textTransform,"inherit")},Dr={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",Ee),fontSize:i.extend("--ft-typography-subtitle1-font-size","",D.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",D.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",D.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",D.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",D.textTransform,"inherit")},Mr={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",Ee),fontSize:i.extend("--ft-typography-subtitle2-font-size","",D.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",D.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",D.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",D.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",D.textTransform,"inherit")},Zt={fontFamily:i.extend("--ft-typography-body1-font-family","",Ee),fontSize:i.extend("--ft-typography-body1-font-size","",D.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",D.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",D.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",D.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",D.textTransform,"inherit")},Ur={fontFamily:i.extend("--ft-typography-body2-font-family","",Ee),fontSize:i.extend("--ft-typography-body2-font-size","",D.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",D.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",D.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",D.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",D.textTransform,"inherit")},Qt={fontFamily:i.extend("--ft-typography-caption-font-family","",Ee),fontSize:i.extend("--ft-typography-caption-font-size","",D.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",D.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",D.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",D.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",D.textTransform,"inherit")},Br={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",Ee),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",D.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",D.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",D.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",D.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",D.textTransform,"inherit")},Fr={fontFamily:i.extend("--ft-typography-overline-font-family","",Ee),fontSize:i.extend("--ft-typography-overline-font-size","",D.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",D.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",D.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",D.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",D.textTransform,"uppercase")},Pt={fontFamily:i.extend("--ft-typography-button-font-family","",Ee),fontSize:i.extend("--ft-typography-button-font-size","",D.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",D.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",D.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",D.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",D.textTransform,"uppercase")},zc=P`
170
+ `}var Fc=i.extend("--ft-typography-font-family","",R.titleFont),Ee=i.extend("--ft-typography-font-family","",R.contentFont),D={fontFamily:Ee,fontSize:i.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:i.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:i.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:i.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:i.create("--ft-typography-text-transform","","UNKNOWN","inherit")},We={fontFamily:i.extend("--ft-typography-title-font-family","",Fc),fontSize:i.extend("--ft-typography-title-font-size","",D.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",D.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",D.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",D.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",D.textTransform,"inherit")},He={fontFamily:i.extend("--ft-typography-title-dense-font-family","",Fc),fontSize:i.extend("--ft-typography-title-dense-font-size","",D.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",D.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",D.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",D.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",D.textTransform,"inherit")},Mr={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",Ee),fontSize:i.extend("--ft-typography-subtitle1-font-size","",D.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",D.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",D.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",D.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",D.textTransform,"inherit")},Ur={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",Ee),fontSize:i.extend("--ft-typography-subtitle2-font-size","",D.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",D.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",D.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",D.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",D.textTransform,"inherit")},Zt={fontFamily:i.extend("--ft-typography-body1-font-family","",Ee),fontSize:i.extend("--ft-typography-body1-font-size","",D.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",D.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",D.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",D.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",D.textTransform,"inherit")},Br={fontFamily:i.extend("--ft-typography-body2-font-family","",Ee),fontSize:i.extend("--ft-typography-body2-font-size","",D.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",D.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",D.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",D.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",D.textTransform,"inherit")},Qt={fontFamily:i.extend("--ft-typography-caption-font-family","",Ee),fontSize:i.extend("--ft-typography-caption-font-size","",D.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",D.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",D.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",D.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",D.textTransform,"inherit")},Fr={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",Ee),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",D.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",D.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",D.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",D.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",D.textTransform,"inherit")},zr={fontFamily:i.extend("--ft-typography-overline-font-family","",Ee),fontSize:i.extend("--ft-typography-overline-font-size","",D.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",D.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",D.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",D.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",D.textTransform,"uppercase")},Pt={fontFamily:i.extend("--ft-typography-button-font-family","",Ee),fontSize:i.extend("--ft-typography-button-font-size","",D.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",D.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",D.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",D.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",D.textTransform,"uppercase")},zc=P`
171
171
  .ft-typography--title {
172
172
  font-family: ${We.fontFamily};
173
173
  font-size: ${We.fontSize};
@@ -187,15 +187,6 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
187
187
  }
188
188
  `,Hc=P`
189
189
  .ft-typography--subtitle1 {
190
- font-family: ${Dr.fontFamily};
191
- font-size: ${Dr.fontSize};
192
- font-weight: ${Dr.fontWeight};
193
- letter-spacing: ${Dr.letterSpacing};
194
- line-height: ${Dr.lineHeight};
195
- text-transform: ${Dr.textTransform};
196
- }
197
- `,Vc=P`
198
- .ft-typography--subtitle2 {
199
190
  font-family: ${Mr.fontFamily};
200
191
  font-size: ${Mr.fontSize};
201
192
  font-weight: ${Mr.fontWeight};
@@ -203,8 +194,17 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
203
194
  line-height: ${Mr.lineHeight};
204
195
  text-transform: ${Mr.textTransform};
205
196
  }
197
+ `,Vc=P`
198
+ .ft-typography--subtitle2 {
199
+ font-family: ${Ur.fontFamily};
200
+ font-size: ${Ur.fontSize};
201
+ font-weight: ${Ur.fontWeight};
202
+ letter-spacing: ${Ur.letterSpacing};
203
+ line-height: ${Ur.lineHeight};
204
+ text-transform: ${Ur.textTransform};
205
+ }
206
206
 
207
- `,zr=P`
207
+ `,Wr=P`
208
208
  .ft-typography--body1 {
209
209
  font-family: ${Zt.fontFamily};
210
210
  font-size: ${Zt.fontSize};
@@ -215,14 +215,14 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
215
215
  }
216
216
  `,jc=P`
217
217
  .ft-typography--body2 {
218
- font-family: ${Ur.fontFamily};
219
- font-size: ${Ur.fontSize};
220
- font-weight: ${Ur.fontWeight};
221
- letter-spacing: ${Ur.letterSpacing};
222
- line-height: ${Ur.lineHeight};
223
- text-transform: ${Ur.textTransform};
218
+ font-family: ${Br.fontFamily};
219
+ font-size: ${Br.fontSize};
220
+ font-weight: ${Br.fontWeight};
221
+ letter-spacing: ${Br.letterSpacing};
222
+ line-height: ${Br.lineHeight};
223
+ text-transform: ${Br.textTransform};
224
224
  }
225
- `,Oi=P`
225
+ `,wi=P`
226
226
  .ft-typography--caption {
227
227
  font-family: ${Qt.fontFamily};
228
228
  font-size: ${Qt.fontSize};
@@ -233,15 +233,6 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
233
233
  }
234
234
  `,Kc=P`
235
235
  .ft-typography--breadcrumb {
236
- font-family: ${Br.fontFamily};
237
- font-size: ${Br.fontSize};
238
- font-weight: ${Br.fontWeight};
239
- letter-spacing: ${Br.letterSpacing};
240
- line-height: ${Br.lineHeight};
241
- text-transform: ${Br.textTransform};
242
- }
243
- `,Gc=P`
244
- .ft-typography--overline {
245
236
  font-family: ${Fr.fontFamily};
246
237
  font-size: ${Fr.fontSize};
247
238
  font-weight: ${Fr.fontWeight};
@@ -249,6 +240,15 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
249
240
  line-height: ${Fr.lineHeight};
250
241
  text-transform: ${Fr.textTransform};
251
242
  }
243
+ `,Gc=P`
244
+ .ft-typography--overline {
245
+ font-family: ${zr.fontFamily};
246
+ font-size: ${zr.fontSize};
247
+ font-weight: ${zr.fontWeight};
248
+ letter-spacing: ${zr.letterSpacing};
249
+ line-height: ${zr.lineHeight};
250
+ text-transform: ${zr.textTransform};
251
+ }
252
252
  `,Zc=P`
253
253
  .ft-typography--button {
254
254
  font-family: ${Pt.fontFamily};
@@ -579,7 +579,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
579
579
  </${ms(this.element)}>
580
580
  `:gs`
581
581
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
582
- `}};ht.styles=[zc,Wc,Hc,Vc,zr,jc,Oi,Kc,Gc,Zc,qc,...Yc];ad([g()],ht.prototype,"element",void 0);ad([g()],ht.prototype,"variant",void 0);V("ft-typography")(ht);var Mt=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},J=class extends F{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 ot(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 ot(10),this.moveRipple=t=>{var e,o;let{x:n,y:a}=this.getCoordinates(t),s=(o=(e=this.ripple)===null||e===void 0?void 0:e.getBoundingClientRect())!==null&&o!==void 0?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-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 $`
582
+ `}};ht.styles=[zc,Wc,Hc,Vc,Wr,jc,wi,Kc,Gc,Zc,qc,...Yc];ad([g()],ht.prototype,"element",void 0);ad([g()],ht.prototype,"variant",void 0);V("ft-typography")(ht);var Mt=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},J=class extends F{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 ot(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 ot(10),this.moveRipple=t=>{var e,o;let{x:n,y:a}=this.getCoordinates(t),s=(o=(e=this.ripple)===null||e===void 0?void 0:e.getBoundingClientRect())!==null&&o!==void 0?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-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 $`
583
583
  <style>
584
584
  .ft-ripple .ft-ripple--effect {
585
585
  left: ${this.originX}px;
@@ -590,7 +590,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
590
590
  <div class="ft-ripple--background"></div>
591
591
  <div class="ft-ripple--effect"></div>
592
592
  </div>
593
- `}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 e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(e=this.target)===null||e===void 0||e.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.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,e;let o=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;o&&this.setupFor((e=this.target)!==null&&e!==void 0?e:o)}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 e=(...l)=>c=>{l.forEach(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(c)},o=e("mouseup","contextmenu"),n=e("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&e("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",o,s),t.addEventListener("touchstart",n,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",o,s),t.removeEventListener("touchstart",n,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 e=t,o=t,n,a;return e.x!=null?{x:n,y:a}=e:o.touches!=null&&(n=o.touches[0].clientX,a=o.touches[0].clientY),{x:n,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 e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};J.elementDefinitions={};J.styles=Uc;Mt([g({type:Boolean})],J.prototype,"primary",void 0);Mt([g({type:Boolean})],J.prototype,"secondary",void 0);Mt([g({type:Boolean})],J.prototype,"unbounded",void 0);Mt([g({type:Boolean})],J.prototype,"activated",void 0);Mt([g({type:Boolean})],J.prototype,"selected",void 0);Mt([g({type:Boolean})],J.prototype,"disabled",void 0);Mt([H()],J.prototype,"hovered",void 0);Mt([H()],J.prototype,"focused",void 0);Mt([H()],J.prototype,"pressed",void 0);Mt([H()],J.prototype,"rippling",void 0);Mt([H()],J.prototype,"originX",void 0);Mt([H()],J.prototype,"originY",void 0);Mt([Z(".ft-ripple")],J.prototype,"ripple",void 0);Mt([Z(".ft-ripple--effect")],J.prototype,"rippleEffect",void 0);V("ft-ripple")(J);var Wr={distance:i.create("--ft-tooltip-distance","","SIZE","4px"),color:i.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:i.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:i.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:i.external(R.borderRadiusS,"Design system"),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","150px")},sd=P`
593
+ `}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 e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(e=this.target)===null||e===void 0||e.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.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,e;let o=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;o&&this.setupFor((e=this.target)!==null&&e!==void 0?e:o)}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 e=(...l)=>c=>{l.forEach(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(c)},o=e("mouseup","contextmenu"),n=e("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&e("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",o,s),t.addEventListener("touchstart",n,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",o,s),t.removeEventListener("touchstart",n,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 e=t,o=t,n,a;return e.x!=null?{x:n,y:a}=e:o.touches!=null&&(n=o.touches[0].clientX,a=o.touches[0].clientY),{x:n,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 e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};J.elementDefinitions={};J.styles=Uc;Mt([g({type:Boolean})],J.prototype,"primary",void 0);Mt([g({type:Boolean})],J.prototype,"secondary",void 0);Mt([g({type:Boolean})],J.prototype,"unbounded",void 0);Mt([g({type:Boolean})],J.prototype,"activated",void 0);Mt([g({type:Boolean})],J.prototype,"selected",void 0);Mt([g({type:Boolean})],J.prototype,"disabled",void 0);Mt([H()],J.prototype,"hovered",void 0);Mt([H()],J.prototype,"focused",void 0);Mt([H()],J.prototype,"pressed",void 0);Mt([H()],J.prototype,"rippling",void 0);Mt([H()],J.prototype,"originX",void 0);Mt([H()],J.prototype,"originY",void 0);Mt([Z(".ft-ripple")],J.prototype,"ripple",void 0);Mt([Z(".ft-ripple--effect")],J.prototype,"rippleEffect",void 0);V("ft-ripple")(J);var Hr={distance:i.create("--ft-tooltip-distance","","SIZE","4px"),color:i.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:i.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:i.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:i.external(R.borderRadiusS,"Design system"),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","150px")},sd=P`
594
594
  .ft-tooltip--container {
595
595
  display: block;
596
596
  }
@@ -605,17 +605,17 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
605
605
  box-sizing: border-box;
606
606
  overflow: hidden;
607
607
  width: max-content;
608
- max-width: ${Wr.maxWidth};
608
+ max-width: ${Hr.maxWidth};
609
609
  text-align: center;
610
- padding: ${Wr.distance};
611
- z-index: ${Wr.zIndex};
610
+ padding: ${Hr.distance};
611
+ z-index: ${Hr.zIndex};
612
612
  }
613
613
 
614
614
  .ft-tooltip--content {
615
615
  padding: 4px 8px;
616
- border-radius: ${Wr.borderRadiusS};
617
- background-color: ${Wr.backgroundColor};
618
- color: ${Wr.color};
616
+ border-radius: ${Hr.borderRadiusS};
617
+ background-color: ${Hr.backgroundColor};
618
+ color: ${Hr.color};
619
619
  position: relative;
620
620
  word-break: break-word;
621
621
  }
@@ -637,12 +637,12 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
637
637
  </div>
638
638
  </div>
639
639
  </div>
640
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(e=>t.has(e))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(e=>e.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="",yo(this.slottedElement,this.tooltip,this.position).then(({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}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,e){return Math.max(t,Math.min(0,-e))}};st.elementDefinitions={"ft-typography":ht};st.styles=sd;Ut([g()],st.prototype,"text",void 0);Ut([g({type:Boolean})],st.prototype,"manual",void 0);Ut([g({type:Boolean})],st.prototype,"inline",void 0);Ut([g({type:Number})],st.prototype,"delay",void 0);Ut([g()],st.prototype,"position",void 0);Ut([ao()],st.prototype,"slotNodes",void 0);Ut([Z(".ft-tooltip--container")],st.prototype,"container",void 0);Ut([Z(".ft-tooltip")],st.prototype,"tooltip",void 0);Ut([Z(".ft-tooltip--content")],st.prototype,"tooltipContent",void 0);Ut([H()],st.prototype,"visible",void 0);Ut([ge({passive:!0})],st.prototype,"onTouch",null);Ut([ge({passive:!0})],st.prototype,"onHover",null);Ut([ge({passive:!0})],st.prototype,"onOut",null);Ut([ge({passive:!0})],st.prototype,"onClick",null);V("ft-tooltip")(st);var yr;(function(r){r.ADD_TO_PBK="&#xe800;",r.ALERT="&#xe801;",r.ADD_ALERT="&#xe802;",r.BACK_TO_SEARCH="&#xe803;",r.ADD_BOOKMARK="&#xe804;",r.BOOKMARK="&#xe805;",r.BOOKS="&#xe806;",r.MENU="&#xe807;",r.DOWNLOAD="&#xe808;",r.EDIT="&#xe809;",r.FEEDBACK="&#xe80a;",r.HOME="&#xe80b;",r.MODIFY_PBK="&#xe80c;",r.SCHEDULED="&#xe80d;",r.SEARCH="&#xe80e;",r.EXPORT="&#xe80f;",r.TOC="&#xe810;",r.WRITE_UGC="&#xe811;",r.TRASH="&#xe812;",r.USER="&#xe813;",r.EXTLINK="&#xe814;",r.CALENDAR="&#xe815;",r.OFFLINE="&#xe816;",r.BOOK="&#xe817;",r.DOWNLOAD_PLAIN="&#xe818;",r.CHECK="&#xe819;",r.STAR_PLAIN="&#xe900;",r.TOPICS="&#xe901;",r.DISC="&#xe902;",r.CIRCLE="&#xe903;",r.SHARED="&#xe904;",r.SORT_UNSORTED="&#xe905;",r.SORT_UP="&#xe906;",r.SORT_DOWN="&#xe907;",r.WORKING="&#xe908;",r.CLOSE="&#xe909;",r.ZOOM_OUT="&#xe90a;",r.ZOOM_IN="&#xe90b;",r.ZOOM_REALSIZE="&#xe90c;",r.ZOOM_FULLSCREEN="&#xe90d;",r.ADMIN_RESTRICTED="&#xe90e;",r.ADMIN="&#xe90f;",r.ADMIN_KHUB="&#xe910;",r.ADMIN_THEME="&#xe911;",r.ADMIN_USERS="&#xe912;",r.WARNING="&#xe913;",r.CONTEXT="&#xe914;",r.SEARCH_HOME="&#xe915;",r.STEPS="&#xe916;",r.ICON_EXPAND="&#xe917;",r.ICON_COLLAPSE="&#xe918;",r.INFO="&#xe919;",r.MINUS_PLAIN="&#xe91a;",r.PLUS_PLAIN="&#xe91b;",r.FACET_HAS_DESCENDANT="&#xe91c;",r.TRIANGLE_BOTTOM="&#xe91d;",r.TRIANGLE_LEFT="&#xe91e;",r.TRIANGLE_RIGHT="&#xe91f;",r.TRIANGLE_TOP="&#xe920;",r.THIN_ARROW="&#xe921;",r.SIGN_IN="&#xe922;",r.LOGOUT="&#xe923;",r.TRANSLATE="&#xe924;",r.CLOSE_PLAIN="&#xe925;",r.CHECK_PLAIN="&#xe926;",r.ARTICLE="&#xe927;",r.COLUMNS="&#xe928;",r.ANALYTICS="&#xe929;",r.COLLECTIONS="&#xe92a;",r.ARROW_DOWN="&#xe92b;",r.ARROW_LEFT="&#xe92c;",r.ARROW_RIGHT="&#xe92d;",r.ARROW_UP="&#xe92e;",r.SEARCH_IN_PUBLICATION="&#xe92f;",r.COPY_TO_CLIPBOARD="&#xe930;",r.SHARED_PBK="&#xe931;",r.ATTACHMENTS="&#xe932;",r.STRIPE_ARROW_LEFT="&#xe933;",r.STRIPE_ARROW_RIGHT="&#xe934;",r.FILTERS="&#xe935;",r.DOT="&#xe936;",r.MINUS="&#xe937;",r.PLUS="&#xe938;",r.MAILS_AND_NOTIFICATIONS="&#xe939;",r.SAVE="&#xe93a;",r.LOCKER="&#xe93b;",r.ADMIN_INTEGRATION="&#xe93c;",r.SYNC="&#xe93d;",r.TAG="&#xe93e;",r.BOOK_PLAIN="&#xe93f;",r.UPLOAD="&#xe940;",r.ONLINE="&#xe941;",r.TAG_PLAIN="&#xe942;",r.ACCOUNT_SETTINGS="&#xe943;",r.PRINT="&#xe944;",r.DEFAULT_ROLES="&#xe945;",r.SHORTCUT_MENU="&#xe946;",r.RELATIVES_PLAIN="&#xe947;",r.RELATIVES="&#xe948;",r.PAUSE="&#xe949;",r.PLAY="&#xe94a;",r.ADMIN_PORTAL="&#xe94b;",r.STAR="&#xe94c;",r.THUMBS_DOWN="&#xe94d;",r.THUMBS_DOWN_PLAIN="&#xe94e;",r.THUMBS_UP="&#xe94f;",r.THUMBS_UP_PLAIN="&#xe950;",r.FEEDBACK_PLAIN="&#xe951;",r.RATE_PLAIN="&#xe952;",r.RATE="&#xe953;",r.OFFLINE_SETTINGS="&#xe954;",r.MY_COLLECTIONS="&#xe955;",r.THIN_ARROW_LEFT="&#xe956;",r.THIN_ARROW_RIGHT="&#xe957;",r.RESET="&#xe958;",r.MY_LIBRARY="&#xe959;",r.UNSTRUCTURED_DOC="&#xe95a;",r.CONTEXTUAL="&#xe95b;",r.THIN_ARROW_UP="&#xe95c;",r.ARROW_RIGHT_TO_LINE="&#xe95d;",r.DESKTOP="&#xe95e;",r.TABLET_LANDSCAPE="&#xe95f;",r.TABLET_PORTRAIT="&#xe960;",r.MOBILE_LANDSCAPE="&#xe961;",r.MOBILE_PORTRAIT="&#xe962;",r.DIAGRAM_SUNBURST="&#xe963;",r.DIAGRAM_SANKEY="&#xe964;",r.COMMENT_QUESTION="&#xe965;",r.COMMENT_QUESTION_PLAIN="&#xe966;",r.MESSAGE_BOT="&#xe967;",r.CHART_SIMPLE="&#xe968;",r.BARS_PROGRESS="&#xe969;",r.BOOK_OPEN_GEAR="&#xe96a;",r.BOOK_OPEN_GEAR_SLASH="&#xe96b;",r.LINE_CHART="&#xe96c;",r.STACKED_CHART="&#xe96d;",r.CHART_BAR_STACKED="&#xe96e;",r.CHART_BAR_GROUPED="&#xe96f;",r.EYE_SLASH="&#xe970;",r.X_MARK="&#xe971;",r.EXPAND_WIDE="&#xe972;",r.PIP="&#xe973;",r.PIP_WIDE="&#xe974;",r.LIFE_RING="&#xe975;",r.GLOBE="&#xe976;",r.PIGGY_BANK="&#xe977;",r.EXTLINK_LIGHT="&#xe978;",r.CLONE="&#xe979;",r.CLONE_LINK_SIMPLE="&#xe97a;",r.CHART_BAR_NORMALIZED="&#xe97b;",r.CONSUMER="&#xe97c;",r.OCTAGON_XMARK="&#xe97d;",r.HOURGLASS_HALF="&#xe97e;",r.CLOCK="&#xe97f;",r.CLOCK_THREE="&#xe97f;",r.CALENDAR_DAY="&#xe980;",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",r.WAND_MAGIC_SPARKLES="&#xe982;",r.PAPER_PLANE="&#xe983;",r.CIRCLE_STOP="&#xe984;",r.ARROW_ROTATE_RIGHT="&#xe985;",r.ARROWS_ROTATE="&#xe986;",r.ALIGN_RIGHT="&#xe987;",r.FORMAT_CLEAR="&#xe988;",r.ALIGN_CENTER="&#xe989;",r.ALIGN_LEFT="&#xe98a;",r.PALETTE="&#xe98b;",r.BOLD="&#xe98c;",r.ITALIC="&#xe98d;",r.UNDERLINE="&#xe98e;",r.STRIKETHROUGH="&#xe98f;",r.LINK_SIMPLE_SLASH="&#xe990;",r.LINK_SIMPLE="&#xe991;",r.ROUTE="&#xe992;",r.CIRCLE_USER_SLASH="&#xe993;",r.CIRCLE_USER_CHECK="&#xe994;",r.LIST_MAGNIFYING_GLASS="&#xe995;",r.MEDAL="&#xe996;",r.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",r.ARROW_TURN_DOWN_RIGHT="&#xe998;",r.FLASK="&#xe999;",r.EYE="&#xf06e;",r.SHARE="&#xe80f1;"})(yr||(yr={}));var _;(function(r){r.UNKNOWN="&#xe90a;",r.ABW="&#xe900;",r.AUDIO="&#xe901;",r.AVI="&#xe902;",r.CHM="&#xe904;",r.CODE="&#xe905;",r.CSV="&#xe903;",r.DITA="&#xe906;",r.EPUB="&#xe907;",r.EXCEL="&#xe908;",r.FLAC="&#xe909;",r.GIF="&#xe90b;",r.GZIP="&#xe90c;",r.HTML="&#xe90d;",r.IMAGE="&#xe90e;",r.JPEG="&#xe90f;",r.JSON="&#xe910;",r.M4A="&#xe911;",r.MOV="&#xe912;",r.MP3="&#xe913;",r.MP4="&#xe914;",r.OGG="&#xe915;",r.PDF="&#xe916;",r.PNG="&#xe917;",r.POWERPOINT="&#xe918;",r.RAR="&#xe91a;",r.STP="&#xe91b;",r.TEXT="&#xe91c;",r.VIDEO="&#xe91e;",r.WAV="&#xe91f;",r.WMA="&#xe920;",r.WORD="&#xe921;",r.XML="&#xe922;",r.YAML="&#xe919;",r.ZIP="&#xe923;"})(_||(_={}));var oS=new Map([...["abw"].map(r=>[r,_.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(r=>[r,_.AUDIO]),...["avi"].map(r=>[r,_.AVI]),...["chm","xhs"].map(r=>[r,_.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(r=>[r,_.CODE]),...["csv"].map(r=>[r,_.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,_.DITA]),...["epub"].map(r=>[r,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,_.EXCEL]),...["flac"].map(r=>[r,_.FLAC]),...["gif"].map(r=>[r,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,_.GZIP]),...["html","htm","xhtml"].map(r=>[r,_.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(r=>[r,_.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,_.JPEG]),...["json"].map(r=>[r,_.JSON]),...["m4a","m4p"].map(r=>[r,_.M4A]),...["mov","qt"].map(r=>[r,_.MOV]),...["mp3"].map(r=>[r,_.MP3]),...["mp4","m4v"].map(r=>[r,_.MP4]),...["ogg","oga"].map(r=>[r,_.OGG]),...["pdf","ps"].map(r=>[r,_.PDF]),...["png"].map(r=>[r,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,_.POWERPOINT]),...["rar"].map(r=>[r,_.RAR]),...["stp"].map(r=>[r,_.STP]),...["txt","rtf","md","mdown"].map(r=>[r,_.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(r=>[r,_.VIDEO]),...["wav"].map(r=>[r,_.WAV]),...["wma"].map(r=>[r,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,_.WORD]),...["xml","xsl","rdf"].map(r=>[r,_.XML]),...["yaml","yml","x-yaml"].map(r=>[r,_.YAML]),...["zip"].map(r=>[r,_.ZIP])]);var iS={[_.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 _t;(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(_t||(_t={}));var wi=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},gt=class extends F{constructor(){super(...arguments),this.resolvedIcon=B}render(){let t=this.variant&&Object.values(_t).includes(this.variant)?this.variant:_t.fluid_topics,e=t!==_t.material||!!this.value;return $`
640
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(e=>t.has(e))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(e=>e.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="",yo(this.slottedElement,this.tooltip,this.position).then(({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}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,e){return Math.max(t,Math.min(0,-e))}};st.elementDefinitions={"ft-typography":ht};st.styles=sd;Ut([g()],st.prototype,"text",void 0);Ut([g({type:Boolean})],st.prototype,"manual",void 0);Ut([g({type:Boolean})],st.prototype,"inline",void 0);Ut([g({type:Number})],st.prototype,"delay",void 0);Ut([g()],st.prototype,"position",void 0);Ut([ao()],st.prototype,"slotNodes",void 0);Ut([Z(".ft-tooltip--container")],st.prototype,"container",void 0);Ut([Z(".ft-tooltip")],st.prototype,"tooltip",void 0);Ut([Z(".ft-tooltip--content")],st.prototype,"tooltipContent",void 0);Ut([H()],st.prototype,"visible",void 0);Ut([ge({passive:!0})],st.prototype,"onTouch",null);Ut([ge({passive:!0})],st.prototype,"onHover",null);Ut([ge({passive:!0})],st.prototype,"onOut",null);Ut([ge({passive:!0})],st.prototype,"onClick",null);V("ft-tooltip")(st);var yr;(function(r){r.ADD_TO_PBK="&#xe800;",r.ALERT="&#xe801;",r.ADD_ALERT="&#xe802;",r.BACK_TO_SEARCH="&#xe803;",r.ADD_BOOKMARK="&#xe804;",r.BOOKMARK="&#xe805;",r.BOOKS="&#xe806;",r.MENU="&#xe807;",r.DOWNLOAD="&#xe808;",r.EDIT="&#xe809;",r.FEEDBACK="&#xe80a;",r.HOME="&#xe80b;",r.MODIFY_PBK="&#xe80c;",r.SCHEDULED="&#xe80d;",r.SEARCH="&#xe80e;",r.EXPORT="&#xe80f;",r.TOC="&#xe810;",r.WRITE_UGC="&#xe811;",r.TRASH="&#xe812;",r.USER="&#xe813;",r.EXTLINK="&#xe814;",r.CALENDAR="&#xe815;",r.OFFLINE="&#xe816;",r.BOOK="&#xe817;",r.DOWNLOAD_PLAIN="&#xe818;",r.CHECK="&#xe819;",r.STAR_PLAIN="&#xe900;",r.TOPICS="&#xe901;",r.DISC="&#xe902;",r.CIRCLE="&#xe903;",r.SHARED="&#xe904;",r.SORT_UNSORTED="&#xe905;",r.SORT_UP="&#xe906;",r.SORT_DOWN="&#xe907;",r.WORKING="&#xe908;",r.CLOSE="&#xe909;",r.ZOOM_OUT="&#xe90a;",r.ZOOM_IN="&#xe90b;",r.ZOOM_REALSIZE="&#xe90c;",r.ZOOM_FULLSCREEN="&#xe90d;",r.ADMIN_RESTRICTED="&#xe90e;",r.ADMIN="&#xe90f;",r.ADMIN_KHUB="&#xe910;",r.ADMIN_THEME="&#xe911;",r.ADMIN_USERS="&#xe912;",r.WARNING="&#xe913;",r.CONTEXT="&#xe914;",r.SEARCH_HOME="&#xe915;",r.STEPS="&#xe916;",r.ICON_EXPAND="&#xe917;",r.ICON_COLLAPSE="&#xe918;",r.INFO="&#xe919;",r.MINUS_PLAIN="&#xe91a;",r.PLUS_PLAIN="&#xe91b;",r.FACET_HAS_DESCENDANT="&#xe91c;",r.TRIANGLE_BOTTOM="&#xe91d;",r.TRIANGLE_LEFT="&#xe91e;",r.TRIANGLE_RIGHT="&#xe91f;",r.TRIANGLE_TOP="&#xe920;",r.THIN_ARROW="&#xe921;",r.SIGN_IN="&#xe922;",r.LOGOUT="&#xe923;",r.TRANSLATE="&#xe924;",r.CLOSE_PLAIN="&#xe925;",r.CHECK_PLAIN="&#xe926;",r.ARTICLE="&#xe927;",r.COLUMNS="&#xe928;",r.ANALYTICS="&#xe929;",r.COLLECTIONS="&#xe92a;",r.ARROW_DOWN="&#xe92b;",r.ARROW_LEFT="&#xe92c;",r.ARROW_RIGHT="&#xe92d;",r.ARROW_UP="&#xe92e;",r.SEARCH_IN_PUBLICATION="&#xe92f;",r.COPY_TO_CLIPBOARD="&#xe930;",r.SHARED_PBK="&#xe931;",r.ATTACHMENTS="&#xe932;",r.STRIPE_ARROW_LEFT="&#xe933;",r.STRIPE_ARROW_RIGHT="&#xe934;",r.FILTERS="&#xe935;",r.DOT="&#xe936;",r.MINUS="&#xe937;",r.PLUS="&#xe938;",r.MAILS_AND_NOTIFICATIONS="&#xe939;",r.SAVE="&#xe93a;",r.LOCKER="&#xe93b;",r.ADMIN_INTEGRATION="&#xe93c;",r.SYNC="&#xe93d;",r.TAG="&#xe93e;",r.BOOK_PLAIN="&#xe93f;",r.UPLOAD="&#xe940;",r.ONLINE="&#xe941;",r.TAG_PLAIN="&#xe942;",r.ACCOUNT_SETTINGS="&#xe943;",r.PRINT="&#xe944;",r.DEFAULT_ROLES="&#xe945;",r.SHORTCUT_MENU="&#xe946;",r.RELATIVES_PLAIN="&#xe947;",r.RELATIVES="&#xe948;",r.PAUSE="&#xe949;",r.PLAY="&#xe94a;",r.ADMIN_PORTAL="&#xe94b;",r.STAR="&#xe94c;",r.THUMBS_DOWN="&#xe94d;",r.THUMBS_DOWN_PLAIN="&#xe94e;",r.THUMBS_UP="&#xe94f;",r.THUMBS_UP_PLAIN="&#xe950;",r.FEEDBACK_PLAIN="&#xe951;",r.RATE_PLAIN="&#xe952;",r.RATE="&#xe953;",r.OFFLINE_SETTINGS="&#xe954;",r.MY_COLLECTIONS="&#xe955;",r.THIN_ARROW_LEFT="&#xe956;",r.THIN_ARROW_RIGHT="&#xe957;",r.RESET="&#xe958;",r.MY_LIBRARY="&#xe959;",r.UNSTRUCTURED_DOC="&#xe95a;",r.CONTEXTUAL="&#xe95b;",r.THIN_ARROW_UP="&#xe95c;",r.ARROW_RIGHT_TO_LINE="&#xe95d;",r.DESKTOP="&#xe95e;",r.TABLET_LANDSCAPE="&#xe95f;",r.TABLET_PORTRAIT="&#xe960;",r.MOBILE_LANDSCAPE="&#xe961;",r.MOBILE_PORTRAIT="&#xe962;",r.DIAGRAM_SUNBURST="&#xe963;",r.DIAGRAM_SANKEY="&#xe964;",r.COMMENT_QUESTION="&#xe965;",r.COMMENT_QUESTION_PLAIN="&#xe966;",r.MESSAGE_BOT="&#xe967;",r.CHART_SIMPLE="&#xe968;",r.BARS_PROGRESS="&#xe969;",r.BOOK_OPEN_GEAR="&#xe96a;",r.BOOK_OPEN_GEAR_SLASH="&#xe96b;",r.LINE_CHART="&#xe96c;",r.STACKED_CHART="&#xe96d;",r.CHART_BAR_STACKED="&#xe96e;",r.CHART_BAR_GROUPED="&#xe96f;",r.EYE_SLASH="&#xe970;",r.X_MARK="&#xe971;",r.EXPAND_WIDE="&#xe972;",r.PIP="&#xe973;",r.PIP_WIDE="&#xe974;",r.LIFE_RING="&#xe975;",r.GLOBE="&#xe976;",r.PIGGY_BANK="&#xe977;",r.EXTLINK_LIGHT="&#xe978;",r.CLONE="&#xe979;",r.CLONE_LINK_SIMPLE="&#xe97a;",r.CHART_BAR_NORMALIZED="&#xe97b;",r.CONSUMER="&#xe97c;",r.OCTAGON_XMARK="&#xe97d;",r.HOURGLASS_HALF="&#xe97e;",r.CLOCK="&#xe97f;",r.CLOCK_THREE="&#xe97f;",r.CALENDAR_DAY="&#xe980;",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",r.WAND_MAGIC_SPARKLES="&#xe982;",r.PAPER_PLANE="&#xe983;",r.CIRCLE_STOP="&#xe984;",r.ARROW_ROTATE_RIGHT="&#xe985;",r.ARROWS_ROTATE="&#xe986;",r.ALIGN_RIGHT="&#xe987;",r.FORMAT_CLEAR="&#xe988;",r.ALIGN_CENTER="&#xe989;",r.ALIGN_LEFT="&#xe98a;",r.PALETTE="&#xe98b;",r.BOLD="&#xe98c;",r.ITALIC="&#xe98d;",r.UNDERLINE="&#xe98e;",r.STRIKETHROUGH="&#xe98f;",r.LINK_SIMPLE_SLASH="&#xe990;",r.LINK_SIMPLE="&#xe991;",r.ROUTE="&#xe992;",r.CIRCLE_USER_SLASH="&#xe993;",r.CIRCLE_USER_CHECK="&#xe994;",r.LIST_MAGNIFYING_GLASS="&#xe995;",r.MEDAL="&#xe996;",r.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",r.ARROW_TURN_DOWN_RIGHT="&#xe998;",r.FLASK="&#xe999;",r.EYE="&#xf06e;",r.SHARE="&#xe80f1;"})(yr||(yr={}));var _;(function(r){r.UNKNOWN="&#xe90a;",r.ABW="&#xe900;",r.AUDIO="&#xe901;",r.AVI="&#xe902;",r.CHM="&#xe904;",r.CODE="&#xe905;",r.CSV="&#xe903;",r.DITA="&#xe906;",r.EPUB="&#xe907;",r.EXCEL="&#xe908;",r.FLAC="&#xe909;",r.GIF="&#xe90b;",r.GZIP="&#xe90c;",r.HTML="&#xe90d;",r.IMAGE="&#xe90e;",r.JPEG="&#xe90f;",r.JSON="&#xe910;",r.M4A="&#xe911;",r.MOV="&#xe912;",r.MP3="&#xe913;",r.MP4="&#xe914;",r.OGG="&#xe915;",r.PDF="&#xe916;",r.PNG="&#xe917;",r.POWERPOINT="&#xe918;",r.RAR="&#xe91a;",r.STP="&#xe91b;",r.TEXT="&#xe91c;",r.VIDEO="&#xe91e;",r.WAV="&#xe91f;",r.WMA="&#xe920;",r.WORD="&#xe921;",r.XML="&#xe922;",r.YAML="&#xe919;",r.ZIP="&#xe923;"})(_||(_={}));var oS=new Map([...["abw"].map(r=>[r,_.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(r=>[r,_.AUDIO]),...["avi"].map(r=>[r,_.AVI]),...["chm","xhs"].map(r=>[r,_.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(r=>[r,_.CODE]),...["csv"].map(r=>[r,_.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,_.DITA]),...["epub"].map(r=>[r,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,_.EXCEL]),...["flac"].map(r=>[r,_.FLAC]),...["gif"].map(r=>[r,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,_.GZIP]),...["html","htm","xhtml"].map(r=>[r,_.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(r=>[r,_.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,_.JPEG]),...["json"].map(r=>[r,_.JSON]),...["m4a","m4p"].map(r=>[r,_.M4A]),...["mov","qt"].map(r=>[r,_.MOV]),...["mp3"].map(r=>[r,_.MP3]),...["mp4","m4v"].map(r=>[r,_.MP4]),...["ogg","oga"].map(r=>[r,_.OGG]),...["pdf","ps"].map(r=>[r,_.PDF]),...["png"].map(r=>[r,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,_.POWERPOINT]),...["rar"].map(r=>[r,_.RAR]),...["stp"].map(r=>[r,_.STP]),...["txt","rtf","md","mdown"].map(r=>[r,_.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(r=>[r,_.VIDEO]),...["wav"].map(r=>[r,_.WAV]),...["wma"].map(r=>[r,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,_.WORD]),...["xml","xsl","rdf"].map(r=>[r,_.XML]),...["yaml","yml","x-yaml"].map(r=>[r,_.YAML]),...["zip"].map(r=>[r,_.ZIP])]);var iS={[_.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 _t;(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(_t||(_t={}));var Oi=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},yt=class extends F{constructor(){super(...arguments),this.resolvedIcon=B}render(){let t=this.variant&&Object.values(_t).includes(this.variant)?this.variant:_t.fluid_topics,e=t!==_t.material||!!this.value;return $`
641
641
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
642
642
  ${vn(this.resolvedIcon)}
643
643
  <slot ?hidden=${e}></slot>
644
644
  </i>
645
- `}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&e!==void 0?e:""}update(t){super.update(t),["value","variant"].some(e=>t.has(e))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case _t.file_format:this.resolvedIcon=(t=_[o.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:o;break;case _t.material:this.resolvedIcon=this.value||B;break;default:this.resolvedIcon=(e=yr[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};gt.elementDefinitions={};gt.styles=Jc;wi([g()],gt.prototype,"variant",void 0);wi([g()],gt.prototype,"value",void 0);wi([H()],gt.prototype,"resolvedIcon",void 0);wi([Z("slot")],gt.prototype,"slottedContent",void 0);V("ft-icon")(gt);var xt={borderRadiusLeft:i.extend("--ft-switch-option-border-radius-left","",R.borderRadiusL),borderRadiusRight:i.extend("--ft-switch-option-border-radius-right","",R.borderRadiusL),borderWidthLeft:i.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:i.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:i.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},ld=P`
645
+ `}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&e!==void 0?e:""}update(t){super.update(t),["value","variant"].some(e=>t.has(e))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case _t.file_format:this.resolvedIcon=(t=_[o.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:o;break;case _t.material:this.resolvedIcon=this.value||B;break;default:this.resolvedIcon=(e=yr[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};yt.elementDefinitions={};yt.styles=Jc;Oi([g()],yt.prototype,"variant",void 0);Oi([g()],yt.prototype,"value",void 0);Oi([H()],yt.prototype,"resolvedIcon",void 0);Oi([Z("slot")],yt.prototype,"slottedContent",void 0);V("ft-icon")(yt);var xt={borderRadiusLeft:i.extend("--ft-switch-option-border-radius-left","",R.borderRadiusL),borderRadiusRight:i.extend("--ft-switch-option-border-radius-right","",R.borderRadiusL),borderWidthLeft:i.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:i.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:i.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},ld=P`
646
646
  .ft-switch-option {
647
647
  position: relative;
648
648
  display: inline-block;
@@ -726,7 +726,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
726
726
  .ft-switch-option--selected ft-icon {
727
727
  color: ${ft.selectedTextColor};
728
728
  }
729
- `;var de=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ys=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},bs=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},yt=class extends F{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new bs(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip($`
729
+ `;var de=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ys=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},bs=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},bt=class extends F{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new bs(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip($`
730
730
  <label part="label" for="input" class=${Tt(t)}
731
731
  @click=${this.onChange}>
732
732
  <div class="ft-switch-option--content">
@@ -750,14 +750,14 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
750
750
  </ft-tooltip>
751
751
  `}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new ys(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?$`
752
752
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
753
- `:B}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&e!==void 0?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};yt.elementDefinitions={"ft-ripple":J,"ft-typography":ht,"ft-tooltip":st,"ft-icon":gt};yt.styles=[ur,ld];de([g()],yt.prototype,"value",void 0);de([g()],yt.prototype,"icon",void 0);de([g()],yt.prototype,"iconVariant",void 0);de([g()],yt.prototype,"label",void 0);de([g()],yt.prototype,"tooltipPosition",void 0);de([g({type:Boolean,reflect:!0})],yt.prototype,"selected",void 0);de([g({type:Boolean})],yt.prototype,"trailingIcon",void 0);de([g({type:Boolean})],yt.prototype,"unselectable",void 0);de([Z(".ft-switch-option--content slot")],yt.prototype,"slottedContent",void 0);de([Z(".ft-switch-option--input")],yt.prototype,"input",void 0);var Ro=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},vs=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Ht=class extends F{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(e=>e.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return $`
753
+ `:B}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&e!==void 0?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};bt.elementDefinitions={"ft-ripple":J,"ft-typography":ht,"ft-tooltip":st,"ft-icon":yt};bt.styles=[ur,ld];de([g()],bt.prototype,"value",void 0);de([g()],bt.prototype,"icon",void 0);de([g()],bt.prototype,"iconVariant",void 0);de([g()],bt.prototype,"label",void 0);de([g()],bt.prototype,"tooltipPosition",void 0);de([g({type:Boolean,reflect:!0})],bt.prototype,"selected",void 0);de([g({type:Boolean})],bt.prototype,"trailingIcon",void 0);de([g({type:Boolean})],bt.prototype,"unselectable",void 0);de([Z(".ft-switch-option--content slot")],bt.prototype,"slottedContent",void 0);de([Z(".ft-switch-option--input")],bt.prototype,"input",void 0);var Ro=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},vs=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Vt=class extends F{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(e=>e.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return $`
754
754
  <div @keydown=${this.onKeyDown} tabindex="0" class="${Tt(t)}">
755
755
  <slot @slotchange=${this.onSlotchange}
756
756
  @option-change=${this.onOptionChangeByScript}
757
757
  @option-change-by-user=${this.onOptionChangeByUser}
758
758
  ></slot>
759
759
  </div>
760
- `}onKeyDown(t){let e;(t.key=="ArrowDown"||t.key=="ArrowRight")&&(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(t.key=="ArrowUp"||t.key=="ArrowLeft")&&(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e!=null&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],(t=this.slottedContent)===null||t===void 0||t.assignedElements().forEach(e=>{e instanceof yt&&this.registerOption(e)}),this.selectedOption=this.options.find(e=>e.selected)}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new vs((e=this.selectedOption)===null||e===void 0?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(e=>e.selected)}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(e=>e.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(t=>{t.selected=t===this.selectedOption})}};Ht.elementDefinitions={};Ht.styles=P`
760
+ `}onKeyDown(t){let e;(t.key=="ArrowDown"||t.key=="ArrowRight")&&(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(t.key=="ArrowUp"||t.key=="ArrowLeft")&&(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e!=null&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],(t=this.slottedContent)===null||t===void 0||t.assignedElements().forEach(e=>{e instanceof bt&&this.registerOption(e)}),this.selectedOption=this.options.find(e=>e.selected)}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new vs((e=this.selectedOption)===null||e===void 0?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(e=>e.selected)}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(e=>e.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(t=>{t.selected=t===this.selectedOption})}};Vt.elementDefinitions={};Vt.styles=P`
761
761
  :host {
762
762
  display: inline-block;
763
763
  }
@@ -791,7 +791,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
791
791
  --ft-switch-internal-vertical-padding: 2px;
792
792
  --ft-switch-internal-horizontal-padding: 4px;
793
793
  }
794
- `;Ro([g({type:Boolean})],Ht.prototype,"dense",void 0);Ro([g({type:Boolean})],Ht.prototype,"unselectable",void 0);Ro([Z(".ft-switch slot")],Ht.prototype,"slottedContent",void 0);Ro([H()],Ht.prototype,"selectedOption",void 0);Ro([Z(".ft-switch")],Ht.prototype,"ftSwitchDiv",void 0);V("ft-switch")(Ht);V("ft-switch-option")(yt);var cd={colorOutline:i.external(R.colorOutline,"Design system"),colorOnSurfaceMedium:i.external(R.colorOnSurfaceMedium,"Design system")},dd=P`
794
+ `;Ro([g({type:Boolean})],Vt.prototype,"dense",void 0);Ro([g({type:Boolean})],Vt.prototype,"unselectable",void 0);Ro([Z(".ft-switch slot")],Vt.prototype,"slottedContent",void 0);Ro([H()],Vt.prototype,"selectedOption",void 0);Ro([Z(".ft-switch")],Vt.prototype,"ftSwitchDiv",void 0);V("ft-switch")(Vt);V("ft-switch-option")(bt);var cd={colorOutline:i.external(R.colorOutline,"Design system"),colorOnSurfaceMedium:i.external(R.colorOnSurfaceMedium,"Design system")},dd=P`
795
795
  :host {
796
796
  display: block;
797
797
  }
@@ -820,7 +820,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
820
820
  @touchstart=${this.initDragFromTouch}>
821
821
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
822
822
  </div>
823
- `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let o=this.fixedWidth+t-this.startX,n=this.fixedHeight+e-this.startY;this.dispatchEvent(new xs(o,n))}};Nt.elementDefinitions={"ft-icon":gt};Nt.styles=[pr,dd];je([g({type:Number})],Nt.prototype,"initialWidth",void 0);je([g({type:Number})],Nt.prototype,"initialHeight",void 0);je([g()],Nt.prototype,"icon",void 0);je([g()],Nt.prototype,"iconVariant",void 0);je([g()],Nt.prototype,"cursor",void 0);je([H()],Nt.prototype,"dragging",void 0);je([ge({passive:!0})],Nt.prototype,"initDragFromMouse",null);je([ge({passive:!0})],Nt.prototype,"initDragFromTouch",null);V("ft-resizer")(Nt);var U={fontSize:i.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:i.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:i.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:i.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:i.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:i.extend("--ft-input-label-border-color","",R.colorOutline),textColor:i.extend("--ft-input-label-text-color","",R.colorOnSurfaceMedium),disabledTextColor:i.extend("--ft-input-label-disabled-text-color","",R.colorOnSurfaceDisabled),colorSurface:i.external(R.colorSurface,"Design system"),borderRadiusS:i.external(R.borderRadiusS,"Design system"),colorError:i.external(R.colorError,"Design system")},pd=P`
823
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let o=this.fixedWidth+t-this.startX,n=this.fixedHeight+e-this.startY;this.dispatchEvent(new xs(o,n))}};Nt.elementDefinitions={"ft-icon":yt};Nt.styles=[pr,dd];je([g({type:Number})],Nt.prototype,"initialWidth",void 0);je([g({type:Number})],Nt.prototype,"initialHeight",void 0);je([g()],Nt.prototype,"icon",void 0);je([g()],Nt.prototype,"iconVariant",void 0);je([g()],Nt.prototype,"cursor",void 0);je([H()],Nt.prototype,"dragging",void 0);je([ge({passive:!0})],Nt.prototype,"initDragFromMouse",null);je([ge({passive:!0})],Nt.prototype,"initDragFromTouch",null);V("ft-resizer")(Nt);var U={fontSize:i.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:i.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:i.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:i.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:i.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:i.extend("--ft-input-label-border-color","",R.colorOutline),textColor:i.extend("--ft-input-label-text-color","",R.colorOnSurfaceMedium),disabledTextColor:i.extend("--ft-input-label-disabled-text-color","",R.colorOnSurfaceDisabled),colorSurface:i.external(R.colorSurface,"Design system"),borderRadiusS:i.external(R.borderRadiusS,"Design system"),colorError:i.external(R.colorError,"Design system")},pd=P`
824
824
  .ft-input-label {
825
825
  position: absolute;
826
826
  inset: 0;
@@ -951,7 +951,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
951
951
  </div>
952
952
  `:null}
953
953
  </div>
954
- `}};kt.elementDefinitions={};kt.styles=[Oi,pd];_o([g({type:String})],kt.prototype,"text",void 0);_o([g({type:Boolean})],kt.prototype,"raised",void 0);_o([g({type:Boolean})],kt.prototype,"outlined",void 0);_o([g({type:Boolean})],kt.prototype,"disabled",void 0);_o([g({type:Boolean})],kt.prototype,"error",void 0);V("ft-input-label")(kt);var tt={fontSize:i.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-area-helper-color","",R.colorOnSurfaceMedium),colorPrimary:i.external(R.colorPrimary,"Design system"),colorOnSurface:i.external(R.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(R.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(R.borderRadiusS,"Design system"),colorError:i.external(R.colorError,"Design system")},ud=P`
954
+ `}};kt.elementDefinitions={};kt.styles=[wi,pd];_o([g({type:String})],kt.prototype,"text",void 0);_o([g({type:Boolean})],kt.prototype,"raised",void 0);_o([g({type:Boolean})],kt.prototype,"outlined",void 0);_o([g({type:Boolean})],kt.prototype,"disabled",void 0);_o([g({type:Boolean})],kt.prototype,"error",void 0);V("ft-input-label")(kt);var tt={fontSize:i.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-area-helper-color","",R.colorOnSurfaceMedium),colorPrimary:i.external(R.colorPrimary,"Design system"),colorOnSurface:i.external(R.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(R.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(R.borderRadiusS,"Design system"),colorError:i.external(R.colorError,"Design system")},ud=P`
955
955
  *:focus {
956
956
  outline: none;
957
957
  }
@@ -1051,7 +1051,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1051
1051
  position: absolute;
1052
1052
  bottom: 0;
1053
1053
  }
1054
- `;var Ce=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},wt=class extends gr(F,"textbox"){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return $`
1054
+ `;var Ce=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ot=class extends gr(F,"textbox"){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return $`
1055
1055
  <style>
1056
1056
  .ft-text-area--main-panel {
1057
1057
  height: calc(4 * ${tt.verticalSpacing} + ${tt.labelSize} + ${tt.fontSize} + ${this.height}px);
@@ -1093,17 +1093,17 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1093
1093
  ${this.helper}
1094
1094
  </ft-typography>`:void 0}
1095
1095
  </div>
1096
- `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){(t.key==="Enter"||t.key===" ")&&t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}};wt.elementDefinitions={"ft-input-label":kt,"ft-resizer":Nt,"ft-ripple":J,"ft-typography":ht};wt.styles=[zr,ud];Ce([g({type:String})],wt.prototype,"label",void 0);Ce([g({reflect:!0})],wt.prototype,"value",void 0);Ce([g({type:String})],wt.prototype,"helper",void 0);Ce([g({type:Boolean})],wt.prototype,"outlined",void 0);Ce([g({type:Boolean})],wt.prototype,"disabled",void 0);Ce([g({type:Boolean})],wt.prototype,"error",void 0);Ce([g({type:Number,reflect:!0})],wt.prototype,"height",void 0);Ce([Z("textarea")],wt.prototype,"textarea",void 0);Ce([H()],wt.prototype,"focused",void 0);V("ft-text-area")(wt);var br=class extends F{render(){return $`
1096
+ `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){(t.key==="Enter"||t.key===" ")&&t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}};Ot.elementDefinitions={"ft-input-label":kt,"ft-resizer":Nt,"ft-ripple":J,"ft-typography":ht};Ot.styles=[Wr,ud];Ce([g({type:String})],Ot.prototype,"label",void 0);Ce([g({reflect:!0})],Ot.prototype,"value",void 0);Ce([g({type:String})],Ot.prototype,"helper",void 0);Ce([g({type:Boolean})],Ot.prototype,"outlined",void 0);Ce([g({type:Boolean})],Ot.prototype,"disabled",void 0);Ce([g({type:Boolean})],Ot.prototype,"error",void 0);Ce([g({type:Number,reflect:!0})],Ot.prototype,"height",void 0);Ce([Z("textarea")],Ot.prototype,"textarea",void 0);Ce([H()],Ot.prototype,"focused",void 0);V("ft-text-area")(Ot);var br=class extends F{render(){return $`
1097
1097
  <div class="ft-loader">
1098
1098
  <div></div>
1099
1099
  <div></div>
1100
1100
  <div></div>
1101
1101
  <div></div>
1102
1102
  </div>
1103
- `}};br.styles=Xc;V("ft-loader")(br);var Vt=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},bt=class extends gr(F,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((e=this.form)===null||e===void 0||e.requestSubmit())})}render(){return this.addTooltipIfNeeded($`
1103
+ `}};br.styles=Xc;V("ft-loader")(br);var Bt=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},mt=class extends gr(F,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.role="button",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.addEventListener("click",t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((e=this.form)===null||e===void 0||e.requestSubmit())})}render(){var t;return this.addTooltipIfNeeded($`
1104
1104
  <button part="button"
1105
1105
  class="${Tt(this.buttonClasses)}"
1106
- aria-label="${this.getLabel()}"
1106
+ aria-label="${(t=this.ariaLabel)!==null&&t!==void 0?t:this.getLabel()}"
1107
1107
  ?disabled=${this.isDisabled()}>
1108
1108
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1109
1109
  <ft-typography part="label"
@@ -1126,7 +1126,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1126
1126
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
1127
1127
  `:$`
1128
1128
  <slot part="icon" name="icon"></slot>
1129
- `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>this.unslotText(e)).join(""):t?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};bt.elementDefinitions={"ft-ripple":J,"ft-tooltip":st,"ft-typography":ht,"ft-icon":gt,"ft-loader":br};Vt([g({type:String,reflect:!0})],bt.prototype,"role",void 0);Vt([g()],bt.prototype,"type",void 0);Vt([g({type:Boolean})],bt.prototype,"disabled",void 0);Vt([g()],bt.prototype,"label",void 0);Vt([g()],bt.prototype,"icon",void 0);Vt([g()],bt.prototype,"iconVariant",void 0);Vt([g({type:Boolean})],bt.prototype,"trailingIcon",void 0);Vt([g({type:Boolean})],bt.prototype,"loading",void 0);Vt([g()],bt.prototype,"tooltipPosition",void 0);Vt([g({type:Boolean})],bt.prototype,"hideTooltip",void 0);Vt([g({type:Boolean})],bt.prototype,"forceTooltip",void 0);Vt([Z(".ft-button")],bt.prototype,"button",void 0);Vt([Z(".ft-button--label slot")],bt.prototype,"slottedContent",void 0);var Ei=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},te=class extends bt{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"}};te.styles=[ur,ed];Ei([g({type:Boolean})],te.prototype,"primary",void 0);Ei([g({type:Boolean})],te.prototype,"outlined",void 0);Ei([g({type:Boolean})],te.prototype,"dense",void 0);Ei([g({type:Boolean})],te.prototype,"round",void 0);var fd=[P`
1129
+ `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>this.unslotText(e)).join(""):t?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};mt.elementDefinitions={"ft-ripple":J,"ft-tooltip":st,"ft-typography":ht,"ft-icon":yt,"ft-loader":br};Bt([g({type:String,reflect:!0})],mt.prototype,"role",void 0);Bt([g()],mt.prototype,"type",void 0);Bt([g({type:Boolean})],mt.prototype,"disabled",void 0);Bt([g()],mt.prototype,"label",void 0);Bt([g()],mt.prototype,"icon",void 0);Bt([g()],mt.prototype,"iconVariant",void 0);Bt([g({type:Boolean})],mt.prototype,"trailingIcon",void 0);Bt([g({type:Boolean})],mt.prototype,"loading",void 0);Bt([g({attribute:"aria-label"})],mt.prototype,"ariaLabel",void 0);Bt([g()],mt.prototype,"tooltipPosition",void 0);Bt([g({type:Boolean})],mt.prototype,"hideTooltip",void 0);Bt([g({type:Boolean})],mt.prototype,"forceTooltip",void 0);Bt([Z(".ft-button")],mt.prototype,"button",void 0);Bt([Z(".ft-button--label slot")],mt.prototype,"slottedContent",void 0);var Ei=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},te=class extends mt{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"}};te.styles=[ur,ed];Ei([g({type:Boolean})],te.prototype,"primary",void 0);Ei([g({type:Boolean})],te.prototype,"outlined",void 0);Ei([g({type:Boolean})],te.prototype,"dense",void 0);Ei([g({type:Boolean})],te.prototype,"round",void 0);var fd=[P`
1130
1130
  :host {
1131
1131
  display: inline-block;
1132
1132
  max-width: 100%;
@@ -1370,15 +1370,15 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1370
1370
  .ftds--size-small.ft-button--icon-only {
1371
1371
  width: ${A.smallIconOnlyWidth};
1372
1372
  }
1373
- `,pr];var Ci=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ae=class extends ui(bt){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=sr.brand,this.iconVariant=_t.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 be.large:return Ve.body2medium;case be.medium:return Ve.caption1medium;case be.small:return Ve.caption2medium}}};Ae.styles=[ur,fd];Ci([g({type:Boolean})],Ae.prototype,"primary",void 0);Ci([g({type:Boolean})],Ae.prototype,"secondary",void 0);Ci([g({type:Boolean})],Ae.prototype,"tertiary",void 0);Ci([g({type:Boolean})],Ae.prototype,"round",void 0);V("ft-button")(te);V("ftds-button")(Ae);var hd=P`
1373
+ `,pr];var Ci=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ae=class extends ui(mt){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=sr.brand,this.iconVariant=_t.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 be.large:return Ve.body2medium;case be.medium:return Ve.caption1medium;case be.small:return Ve.caption2medium}}};Ae.styles=[ur,fd];Ci([g({type:Boolean})],Ae.prototype,"primary",void 0);Ci([g({type:Boolean})],Ae.prototype,"secondary",void 0);Ci([g({type:Boolean})],Ae.prototype,"tertiary",void 0);Ci([g({type:Boolean})],Ae.prototype,"round",void 0);V("ft-button")(te);V("ftds-button")(Ae);var hd=P`
1374
1374
  `;var md=P`
1375
- `;var Cf="ft-app-info",Ss=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},Af={session:(r,t)=>{Yt(r.session,t.payload)||(r.session=t.payload,setTimeout(()=>L.eventBus.dispatchEvent(new Ss(t.payload)),0))}},L=we.get({name:Cf,reducers:Af,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var vr=class r{static get(t){let{baseUrl:e,apiIntegrationIdentifier:o}=L.getState(),n=t??o;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static await(t){return new Promise(e=>{let o=r.get(t);if(o)e(o);else{let n=L.subscribe(()=>{o=r.get(t),o&&(n(),e(o))})}})}};var pe=class{constructor(t=!0,e){var o;this.overrideApi=e;let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new ie,this.cache=t?n.commonCache:new ie}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:vr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):vr.await()}clearCache(){this.cache.clearAll()}};var gd,Rf=Symbol("clearAfterUnitTest"),Ai=class extends pe{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[gd]=()=>{this.defaultMessages={},this.cache=new ie,this.listeners={}},this.currentUiLocale=L.getState().uiLocale,L.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=L.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){let n={...(o=this.defaultMessages[t])!==null&&o!==void 0?o:{},...e};Yt(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var n,a,s;t=t.toLowerCase(),this.fetchContext(t);let l=(a=(n=this.cache.getNow(t))===null||n===void 0?void 0:n.messages)!==null&&a!==void 0?a:{};return new xo((s=this.defaultMessages[t])!==null&&s!==void 0?s:{},l).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(e){console.error(e)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=(o=this.listeners[t])!==null&&o!==void 0?o:new Set,this.listeners[t].add(e),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(e)}}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(e=>ri(0).then(()=>e()).catch(()=>null)))}};gd=Rf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ai{constructor(){super(async(r,t)=>(await this.awaitApi).getFluidTopicsMessageContext(r,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ai{constructor(){super(async(r,t)=>(await this.awaitApi).getCustomMessageContext(r,t))}});var Hr=window.FluidTopicsI18nService,yd=window.FluidTopicsCustomI18nService;var Lt=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},mt=class extends F{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=()=>vr.get(),this.messageContexts=[],this.cache=new ie,this.cleanSessionDebouncer=new ot}render(){return $`
1375
+ `;var Cf="ft-app-info",Ss=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},Af={session:(r,t)=>{Yt(r.session,t.payload)||(r.session=t.payload,setTimeout(()=>L.eventBus.dispatchEvent(new Ss(t.payload)),0))}},L=Oe.get({name:Cf,reducers:Af,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var vr=class r{static get(t){let{baseUrl:e,apiIntegrationIdentifier:o}=L.getState(),n=t??o;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static await(t){return new Promise(e=>{let o=r.get(t);if(o)e(o);else{let n=L.subscribe(()=>{o=r.get(t),o&&(n(),e(o))})}})}};var pe=class{constructor(t=!0,e){var o;this.overrideApi=e;let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new ie,this.cache=t?n.commonCache:new ie}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:vr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):vr.await()}clearCache(){this.cache.clearAll()}};var gd,Rf=Symbol("clearAfterUnitTest"),Ai=class extends pe{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[gd]=()=>{this.defaultMessages={},this.cache=new ie,this.listeners={}},this.currentUiLocale=L.getState().uiLocale,L.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=L.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){let n={...(o=this.defaultMessages[t])!==null&&o!==void 0?o:{},...e};Yt(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveContext(t){var e,o;return this.fetchContext(t),(o=(e=this.cache.getNow(t))===null||e===void 0?void 0:e.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(t,e){let o=t.toLowerCase();return this.resolveContext(o)[e]}resolveMessage(t,e,...o){var n;let a=t.toLowerCase(),s=this.resolveContext(a);return new xo((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(e){console.error(e)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=(o=this.listeners[t])!==null&&o!==void 0?o:new Set,this.listeners[t].add(e),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(e)}}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(e=>ri(0).then(()=>e()).catch(()=>null)))}};gd=Rf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ai{constructor(){super(async(r,t)=>(await this.awaitApi).getFluidTopicsMessageContext(r,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ai{constructor(){super(async(r,t)=>(await this.awaitApi).getCustomMessageContext(r,t))}});var xr=window.FluidTopicsI18nService,yd=window.FluidTopicsCustomI18nService;var Lt=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},gt=class extends F{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=()=>vr.get(),this.messageContexts=[],this.cache=new ie,this.cleanSessionDebouncer=new ot}render(){return $`
1376
1376
  <slot></slot>
1377
- `}update(t){super.update(t),t.has("baseUrl")&&(L.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&L.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&L.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&L.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&L.actions.noCustom(this.noCustom),t.has("editorMode")&&L.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&L.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&L.actions.session(this.session),t.has("availableUiLocales")&&L.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(e=>Hr.addContext(e)),t.has("openExternalDocumentInNewTab")&&L.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&L.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&L.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};mt.elementDefinitions={};mt.styles=md;Lt([g()],mt.prototype,"baseUrl",void 0);Lt([g()],mt.prototype,"apiIntegrationIdentifier",void 0);Lt([g()],mt.prototype,"uiLocale",void 0);Lt([ne(null)],mt.prototype,"availableUiLocales",void 0);Lt([ne(null)],mt.prototype,"metadataConfiguration",void 0);Lt([g({type:Boolean})],mt.prototype,"editorMode",void 0);Lt([g({type:Boolean})],mt.prototype,"noCustom",void 0);Lt([g({type:Boolean})],mt.prototype,"openExternalDocumentInNewTab",void 0);Lt([g({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],mt.prototype,"noCustomComponent",void 0);Lt([g({type:Boolean})],mt.prototype,"withManualResources",void 0);Lt([g({type:Boolean})],mt.prototype,"navigatorOnline",void 0);Lt([g({type:Boolean})],mt.prototype,"forcedOffline",void 0);Lt([g({type:Object})],mt.prototype,"apiProvider",void 0);Lt([ne([])],mt.prototype,"messageContexts",void 0);Lt([ne(void 0)],mt.prototype,"session",void 0);var Ri=class extends pe{async listMySearches(){let t=L.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var _i=class extends pe{async listMyBookmarks(){let t=L.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var _f="ft-user-assets",Ni=we.get({name:_f,initialState:{savedSearches:void 0,bookmarks:void 0}}),Os=class{constructor(){this.currentSession=L.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new _i,this.savedSearchesService=new Ri,L.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:e}=L.getState();Yt((t=this.currentSession)===null||t===void 0?void 0:t.profile,e?.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ni.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ni.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Ni.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 e=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ni.actions.bookmarks(e)}}},bd=new Os;var ws=class{addCommand(t,e=!1){L.commands.add(t,e)}consumeCommand(t){return L.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new ws;var Es=class{highlightHtml(t,e,o){Ea(t,e,o)}};window.FluidTopicsHighlightHtmlService=new Es;var Cs=class{isDate(t){var e,o,n,a;return(a=(n=((o=(e=L.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===t))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(t,e){var o,n,a;return Lr.format(t,(o=e?.locale)!==null&&o!==void 0?o:L.getState().uiLocale,(n=e?.longFormat)!==null&&n!==void 0?n:!1,(a=e?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Cs;V("ft-app-context")(mt);var Nf=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},As=Symbol("i18nAttributes"),xr=Symbol("i18nProperties"),No=Symbol("i18nUnsubs");function Ke(r){var t;class e extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map}get i18nService(){return this.useCustomMessageContexts?yd:Hr}i18n(n,a,...s){var l;if(typeof n=="string")return this.i18nService.resolveMessage(n,a,...s);let c=(l=n.args)!==null&&l!==void 0?l:n.argsProvider?n.argsProvider(this):[];return this.i18nService.resolveMessage(n.context,n.key,...c)}onI18nUpdate(n){var a,s;(a=this[As])===null||a===void 0||a.forEach((l,c)=>{var d;let u=this.getI18nAttributeValue(c);((d=u?.context)===null||d===void 0?void 0:d.toLowerCase())===n.toLowerCase()&&this.updateI18nAttributeMessage(c,u,l)}),(s=this[xr])===null||s===void 0||s.forEach((l,c)=>{l.context.toLowerCase()===n.toLowerCase()&&(this[c]=this.i18n(l))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(n,a,s){this[n]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(n){var a,s;super.update(n),(a=this[As])===null||a===void 0||a.forEach((l,c)=>{let d=this.getI18nAttributeValue(c);d?.context&&d.key&&(n.has(c)||l.argsProvider!=null)&&(n.has(c)&&this.addI18nContext(d.context),this.updateI18nAttributeMessage(c,d,l))}),(s=this[xr])===null||s===void 0||s.forEach((l,c)=>{l.argsProvider!=null&&(this[c]=this.i18n(l))})}getI18nAttributeValue(n){return this[n]}connectedCallback(){var n,a,s,l;super.connectedCallback(),new Set([...(a=(n=this[xr])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[As])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(c=>this.getI18nAttributeValue(c))].map(c=>c?.context)).forEach(c=>c&&this.addI18nMessages(c))}addI18nMessages(n,a){n=n.toLowerCase(),this[No].has(n)||this[No].set(n,this.i18nService.subscribe(n,()=>this.onI18nUpdate(n))),this.i18nService.prepareContext(n,a??{}),this.onI18nUpdate(n)}addI18nContext(n,a){this.addI18nMessages(typeof n=="string"?n:n.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[No].forEach(n=>n()),this[No].clear()}}return t=No,Nf([g({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}var vd=class extends Ke(F){},Ti=class extends Ke(jt){};var To=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ee=class extends Ti{constructor(){super(),this.editorMode=!1,this.addStore(L)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":B:$`
1377
+ `}update(t){super.update(t),t.has("baseUrl")&&(L.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&L.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&L.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&L.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&L.actions.noCustom(this.noCustom),t.has("editorMode")&&L.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&L.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&L.actions.session(this.session),t.has("availableUiLocales")&&L.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(e=>xr.addContext(e)),t.has("openExternalDocumentInNewTab")&&L.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&L.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&L.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};gt.elementDefinitions={};gt.styles=md;Lt([g()],gt.prototype,"baseUrl",void 0);Lt([g()],gt.prototype,"apiIntegrationIdentifier",void 0);Lt([g()],gt.prototype,"uiLocale",void 0);Lt([ne(null)],gt.prototype,"availableUiLocales",void 0);Lt([ne(null)],gt.prototype,"metadataConfiguration",void 0);Lt([g({type:Boolean})],gt.prototype,"editorMode",void 0);Lt([g({type:Boolean})],gt.prototype,"noCustom",void 0);Lt([g({type:Boolean})],gt.prototype,"openExternalDocumentInNewTab",void 0);Lt([g({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],gt.prototype,"noCustomComponent",void 0);Lt([g({type:Boolean})],gt.prototype,"withManualResources",void 0);Lt([g({type:Boolean})],gt.prototype,"navigatorOnline",void 0);Lt([g({type:Boolean})],gt.prototype,"forcedOffline",void 0);Lt([g({type:Object})],gt.prototype,"apiProvider",void 0);Lt([ne([])],gt.prototype,"messageContexts",void 0);Lt([ne(void 0)],gt.prototype,"session",void 0);var Ri=class extends pe{async listMySearches(){let t=L.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var _i=class extends pe{async listMyBookmarks(){let t=L.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var _f="ft-user-assets",Ni=Oe.get({name:_f,initialState:{savedSearches:void 0,bookmarks:void 0}}),ws=class{constructor(){this.currentSession=L.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new _i,this.savedSearchesService=new Ri,L.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:e}=L.getState();Yt((t=this.currentSession)===null||t===void 0?void 0:t.profile,e?.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ni.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ni.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Ni.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 e=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ni.actions.bookmarks(e)}}},bd=new ws;var Os=class{addCommand(t,e=!1){L.commands.add(t,e)}consumeCommand(t){return L.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Os;var Es=class{highlightHtml(t,e,o){Ea(t,e,o)}};window.FluidTopicsHighlightHtmlService=new Es;var Cs=class{isDate(t){var e,o,n,a;return(a=(n=((o=(e=L.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===t))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(t,e){var o,n,a;return Dr.format(t,(o=e?.locale)!==null&&o!==void 0?o:L.getState().uiLocale,(n=e?.longFormat)!==null&&n!==void 0?n:!1,(a=e?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Cs;V("ft-app-context")(gt);var Nf=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},As=Symbol("i18nAttributes"),Sr=Symbol("i18nProperties"),No=Symbol("i18nUnsubs");function Ke(r){var t;class e extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map}get i18nService(){return this.useCustomMessageContexts?yd:xr}i18n(n,a,...s){var l;if(typeof n=="string")return this.i18nService.resolveMessage(n,a,...s);let c=(l=n.args)!==null&&l!==void 0?l:n.argsProvider?n.argsProvider(this):[];return this.i18nService.resolveMessage(n.context,n.key,...c)}onI18nUpdate(n){var a,s;(a=this[As])===null||a===void 0||a.forEach((l,c)=>{var d;let u=this.getI18nAttributeValue(c);((d=u?.context)===null||d===void 0?void 0:d.toLowerCase())===n.toLowerCase()&&this.updateI18nAttributeMessage(c,u,l)}),(s=this[Sr])===null||s===void 0||s.forEach((l,c)=>{l.context.toLowerCase()===n.toLowerCase()&&(this[c]=this.i18n(l))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(n,a,s){this[n]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(n){var a,s;super.update(n),(a=this[As])===null||a===void 0||a.forEach((l,c)=>{let d=this.getI18nAttributeValue(c);d?.context&&d.key&&(n.has(c)||l.argsProvider!=null)&&(n.has(c)&&this.addI18nContext(d.context),this.updateI18nAttributeMessage(c,d,l))}),(s=this[Sr])===null||s===void 0||s.forEach((l,c)=>{l.argsProvider!=null&&(this[c]=this.i18n(l))})}getI18nAttributeValue(n){return this[n]}connectedCallback(){var n,a,s,l;super.connectedCallback(),new Set([...(a=(n=this[Sr])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[As])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(c=>this.getI18nAttributeValue(c))].map(c=>c?.context)).forEach(c=>c&&this.addI18nMessages(c))}addI18nMessages(n,a){n=n.toLowerCase(),this[No].has(n)||this[No].set(n,this.i18nService.subscribe(n,()=>this.onI18nUpdate(n))),this.i18nService.prepareContext(n,a??{}),this.onI18nUpdate(n)}addI18nContext(n,a){this.addI18nMessages(typeof n=="string"?n:n.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[No].forEach(n=>n()),this[No].clear()}}return t=No,Nf([g({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}var vd=class extends Ke(F){},Ti=class extends Ke(jt){};var To=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ee=class extends Ti{constructor(){super(),this.editorMode=!1,this.addStore(L)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":B:$`
1378
1378
  <span class="ft-i18n">
1379
1379
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1380
1380
  </span>
1381
- `}update(t){var e;super.update(t),["context","key","defaultMessage"].some(o=>t.has(o))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(e=this.defaultMessage)!==null&&e!==void 0?e:""})}};ee.elementDefinitions={};ee.styles=hd;To([nt()],ee.prototype,"editorMode",void 0);To([g()],ee.prototype,"context",void 0);To([g()],ee.prototype,"key",void 0);To([ne([])],ee.prototype,"args",void 0);To([g()],ee.prototype,"defaultMessage",void 0);var Ge=class r{static build(t){return new r(t)}static fromGwt(t){return new r(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(e,o)=>{let n=o;return a=>({context:this.name,key:n,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(e,o)=>(...n)=>Hr.resolveMessage(this.name,o,...n)})}};var Ii=(r,t)=>(e,o)=>{var n,a;e.constructor.createProperty(o,t??{attribute:!1,type:String});let s={...r,key:(n=r.key)!==null&&n!==void 0?n:o};e[xr]=(a=e[xr])!==null&&a!==void 0?a:new Map,e[xr].set(o,s)};V("ft-i18n")(ee);var q=Ge.build("integratedFeedbackComponent"),xd={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var Rs=r=>r??ct;var j={fontSize:i.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-field-helper-color","",R.colorOnSurfaceMedium),colorPrimary:i.external(R.colorPrimary,"Design system"),colorOnSurface:i.external(R.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(R.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(R.borderRadiusS,"Design system"),colorError:i.external(R.colorError,"Design system"),prefixColor:i.extend("--ft-text-field-prefix-color","",R.colorOnSurfaceMedium),iconColor:i.extend("--ft-text-field-icon-color","",R.colorOnSurfaceMedium),floatingZIndex:i.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:i.external(R.colorSurface,"Design system"),colorOutline:i.external(R.colorOutline,"Design system"),elevation02:i.external(R.elevation02,"Design system"),suggestSize:i.create("--ft-text-field-suggest-size","","SIZE","300px")},Sd=P`
1381
+ `}update(t){var e;super.update(t),["context","key","defaultMessage"].some(o=>t.has(o))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(e=this.defaultMessage)!==null&&e!==void 0?e:""})}};ee.elementDefinitions={};ee.styles=hd;To([nt()],ee.prototype,"editorMode",void 0);To([g()],ee.prototype,"context",void 0);To([g()],ee.prototype,"key",void 0);To([ne([])],ee.prototype,"args",void 0);To([g()],ee.prototype,"defaultMessage",void 0);var Ge=class r{static build(t){return new r(t)}static fromGwt(t){return new r(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(e,o)=>{let n=o;return a=>({context:this.name,key:n,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(e,o)=>(...n)=>xr.resolveMessage(this.name,o,...n)}),this.rawMessages=new Proxy({},{get:(e,o)=>xr.resolveRawMessage(this.name,o)})}};var Ii=(r,t)=>(e,o)=>{var n,a;e.constructor.createProperty(o,t??{attribute:!1,type:String});let s={...r,key:(n=r.key)!==null&&n!==void 0?n:o};e[Sr]=(a=e[Sr])!==null&&a!==void 0?a:new Map,e[Sr].set(o,s)};V("ft-i18n")(ee);var q=Ge.build("integratedFeedbackComponent"),xd={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var Rs=r=>r??ct;var j={fontSize:i.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-field-helper-color","",R.colorOnSurfaceMedium),colorPrimary:i.external(R.colorPrimary,"Design system"),colorOnSurface:i.external(R.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(R.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(R.borderRadiusS,"Design system"),colorError:i.external(R.colorError,"Design system"),prefixColor:i.extend("--ft-text-field-prefix-color","",R.colorOnSurfaceMedium),iconColor:i.extend("--ft-text-field-icon-color","",R.colorOnSurfaceMedium),floatingZIndex:i.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:i.external(R.colorSurface,"Design system"),colorOutline:i.external(R.colorOutline,"Design system"),elevation02:i.external(R.elevation02,"Design system"),suggestSize:i.create("--ft-text-field-suggest-size","","SIZE","300px")},Sd=P`
1382
1382
  *:focus {
1383
1383
  outline: none;
1384
1384
  }
@@ -1581,7 +1581,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1581
1581
  .variant=${this.iconVariant}
1582
1582
  .value=${this.icon}
1583
1583
  @click=${()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.focus()}}></ft-icon>
1584
- `:B}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",yo(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:e,y:o})=>{this.suggestionsContainer.style.left=`${e}px`,this.suggestionsContainer.style.top=`${o}px`}))}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;let o=((e=this.input)===null||e===void 0?void 0:e.value)||"";this.setValue(o,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let o=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;t.key==="ArrowDown"?n=o<this.visibleSuggestions.length-1?o+1:0:n=o>0?o-1:this.visibleSuggestions.length-1,(e=this.visibleSuggestions[n])===null||e===void 0||e.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}};K.elementDefinitions={"ft-input-label":kt,"ft-ripple":J,"ft-typography":ht,"ft-icon":gt};K.styles=[zr,Aa,Sd];rt([g()],K.prototype,"label",void 0);rt([g({noAccessor:!0})],K.prototype,"value",null);rt([H()],K.prototype,"dispatchedValue",void 0);rt([g()],K.prototype,"helper",void 0);rt([g({type:Boolean})],K.prototype,"outlined",void 0);rt([g({type:Boolean})],K.prototype,"disabled",void 0);rt([g({type:Boolean})],K.prototype,"error",void 0);rt([g({type:Boolean})],K.prototype,"fixedMenuPosition",void 0);rt([g()],K.prototype,"prefix",void 0);rt([g()],K.prototype,"icon",void 0);rt([g()],K.prototype,"name",void 0);rt([g()],K.prototype,"type",void 0);rt([g()],K.prototype,"passwordHiddenIcon",void 0);rt([g()],K.prototype,"passwordRevealedIcon",void 0);rt([g()],K.prototype,"iconVariant",void 0);rt([g({type:Boolean})],K.prototype,"filterSuggestions",void 0);rt([g({type:Number})],K.prototype,"maxLength",void 0);rt([g({type:Boolean})],K.prototype,"password",void 0);rt([H()],K.prototype,"focused",void 0);rt([H()],K.prototype,"hidePassword",void 0);rt([H()],K.prototype,"hideSuggestions",void 0);rt([H()],K.prototype,"visibleSuggestions",void 0);rt([Z(".ft-text-field--main-panel")],K.prototype,"mainPanel",void 0);rt([Z(".ft-text-field--input")],K.prototype,"input",void 0);rt([Z(".ft-text-field--suggestions")],K.prototype,"suggestionsContainer",void 0);rt([fn({selector:"ft-text-field-suggestion"})],K.prototype,"suggestions",void 0);var Od=P`
1584
+ `:B}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",yo(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:e,y:o})=>{this.suggestionsContainer.style.left=`${e}px`,this.suggestionsContainer.style.top=`${o}px`}))}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;let o=((e=this.input)===null||e===void 0?void 0:e.value)||"";this.setValue(o,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let o=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;t.key==="ArrowDown"?n=o<this.visibleSuggestions.length-1?o+1:0:n=o>0?o-1:this.visibleSuggestions.length-1,(e=this.visibleSuggestions[n])===null||e===void 0||e.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}};K.elementDefinitions={"ft-input-label":kt,"ft-ripple":J,"ft-typography":ht,"ft-icon":yt};K.styles=[Wr,Aa,Sd];rt([g()],K.prototype,"label",void 0);rt([g({noAccessor:!0})],K.prototype,"value",null);rt([H()],K.prototype,"dispatchedValue",void 0);rt([g()],K.prototype,"helper",void 0);rt([g({type:Boolean})],K.prototype,"outlined",void 0);rt([g({type:Boolean})],K.prototype,"disabled",void 0);rt([g({type:Boolean})],K.prototype,"error",void 0);rt([g({type:Boolean})],K.prototype,"fixedMenuPosition",void 0);rt([g()],K.prototype,"prefix",void 0);rt([g()],K.prototype,"icon",void 0);rt([g()],K.prototype,"name",void 0);rt([g()],K.prototype,"type",void 0);rt([g()],K.prototype,"passwordHiddenIcon",void 0);rt([g()],K.prototype,"passwordRevealedIcon",void 0);rt([g()],K.prototype,"iconVariant",void 0);rt([g({type:Boolean})],K.prototype,"filterSuggestions",void 0);rt([g({type:Number})],K.prototype,"maxLength",void 0);rt([g({type:Boolean})],K.prototype,"password",void 0);rt([H()],K.prototype,"focused",void 0);rt([H()],K.prototype,"hidePassword",void 0);rt([H()],K.prototype,"hideSuggestions",void 0);rt([H()],K.prototype,"visibleSuggestions",void 0);rt([Z(".ft-text-field--main-panel")],K.prototype,"mainPanel",void 0);rt([Z(".ft-text-field--input")],K.prototype,"input",void 0);rt([Z(".ft-text-field--suggestions")],K.prototype,"suggestionsContainer",void 0);rt([fn({selector:"ft-text-field-suggestion"})],K.prototype,"suggestions",void 0);var wd=P`
1585
1585
  .ft-text-field-suggestion {
1586
1586
  position: relative;
1587
1587
  padding: 8px 16px;
@@ -1618,15 +1618,15 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1618
1618
  <slot></slot>
1619
1619
  </ft-typography>
1620
1620
  </div>
1621
- `}focus(t){var e;(e=this.container)===null||e===void 0||e.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new _s(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}};Re.elementDefinitions={"ft-ripple":J,"ft-typography":ht,"ft-icon":gt};Re.styles=Od;Ns([g()],Re.prototype,"value",void 0);Ns([Z(".ft-text-field-suggestion")],Re.prototype,"container",void 0);Ns([ao()],Re.prototype,"assignedNodes",void 0);V("ft-text-field")(K);V("ft-text-field-suggestion")(Re);var wd=r=>we.get({name:"ft-reader-"+r,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var Ts=class{constructor(t,e){this.mapId=t,this.paginatedToc=e,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,o){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,o)),n.tocId==null?this.extractPagesToc(n.children,e,o):[{tocId:n.tocId,title:n.title,depth:e,children:this.extractPagesToc(n.children,e+1,n.tocId)}]))}convertNodes(t,e,o){return t.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],e,n.tocId),...this.convertNodes(n.children,e,n.tocId)];let c=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),d={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:c,depth:e,parentTocId:o,children:[]};this.register(d);let u=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],e+1,n.tocId),h=this.convertNodes(n.children,e+1,d.tocId);return d.children=[...u,...h],[d]})}convertSectionNodes(t,e,o){return t.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:e,parentTocId:o,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,e+1,n.tocId),[l]})}buildPage(t,e){var o,n,a,s,l,c;let d={number:this.pages.length+1,title:(o=t.title)!==null&&o!==void 0?o:"",rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},u=(y,b)=>(b?d.topics:d.hiddenTopics).push(y),h=(l=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return d.breadcrumb.forEach((y,b)=>{u(y,h[b])}),t.tocId&&u(t.tocId,t.pageConfiguration.isVisible),d.topics.push(...this.tocIds((c=t.pageToc)!==null&&c!==void 0?c:[])),d}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap(e=>[e.tocId,...this.tocIds(e.children)])}buildBreadcrumb(t){let e=[t.tocId];for(;t?.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}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}},Pi=class{convertPaginatedToc(t,e){return new Ts(t,e).build()}};var BA=Qd(Cd(),1);var Ad;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Ad||(Ad={}));var Rd;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Rd||(Rd={}));var _d;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(_d||(_d={}));var Nd;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(Nd||(Nd={}));var Td;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Td||(Td={}));var Id;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Id||(Id={}));var Pd;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Pd||(Pd={}));var _e;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(_e||(_e={}));var $d;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})($d||($d={}));var kd;(function(r){r.ASC="ASC",r.DESC="DESC"})(kd||(kd={}));var Ld;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Ld||(Ld={}));var Dd;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Dd||(Dd={}));var Md;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Md||(Md={}));var Ud;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Ud||(Ud={}));var Bd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Bd||(Bd={}));var Fd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(Fd||(Fd={}));var zd;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(zd||(zd={}));var lt;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})(lt||(lt={}));var Wd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Wd||(Wd={}));var Tf={[lt.PERSONAL_BOOK_SHARE_USER]:[lt.PERSONAL_BOOK_USER],[lt.HTML_EXPORT_USER]:[lt.PERSONAL_BOOK_USER],[lt.PDF_EXPORT_USER]:[lt.PERSONAL_BOOK_USER],[lt.KHUB_ADMIN]:[lt.CONTENT_PUBLISHER],[lt.ADMIN]:[lt.KHUB_ADMIN,lt.USERS_ADMIN,lt.PORTAL_ADMIN],[lt.DEVELOPER]:[lt.BETA_USER,lt.DEBUG_USER]};function Hd(r,t){return r===t||(Tf[r]??[]).some(e=>Hd(e,t))}function Sr(r,t){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>Hd(o,t))}var $i=class extends pe{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o){super(!1,e),this.converter=t,this._mapId=o,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(e=>this.converter.convertPaginatedToc(t,e)))),this.cache.register("ratingSummary",()=>{var t,e;return Sr((e=(t=L.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&e!==void 0?e:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return(e=this.enrichedToc)===null||e===void 0?void 0:e.nodeByTocId[t]}getTocNodeNowByUrl(t){var e,o;let n=this.getMapNow();return n?.prettyUrl==t||`${n?.id}/root`===t?(e=this.enrichedToc)===null||e===void 0?void 0:e.toc[0]:(o=this.enrichedToc)===null||o===void 0?void 0:o.nodeByUrl[t]}async getPage(t){let e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){let e=await this.getEnrichedToc();return e.pageByTocId[t]||e.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))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),()=>this.fetchRelativesForDocument(t,e))}getRelativesForTopicInMap(t,e,o){return this.cache.get("topic-relatives-"+[t,e,...o].join("-"),()=>this.fetchRelativesForTopicInMap(t,e,o))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,o){let n=this.getNavigationData(t,e,o),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(t,e,o){var n,a;t=t||"root";let s=this.enrichedToc,l=s?.pageByTocId[t],c=s?.nodeByTocId[t],d=c?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(n=c?.title)!==null&&n!==void 0?n:"",page:e&&l&&l.number!==e?e:void 0,prettyUrl:d?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(d??""))!==null&&a!==void 0?a:!1,section:o}}async getAccurateNavigationData(t,e,o){return await this.getEnrichedToc(),this.getNavigationData(t,e,o)}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(e=>{var o;return e?{type:e.topics.type,rating:(o=e.topics)===null||o===void 0?void 0:o.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,e){return this.makeRateMapRequest(t,e).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,o){return this.makeRateTopicRequest(t,e,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=L.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,o){return this.makeTopicFeedbackRequest(t,e,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),o=[{tocId:e.tocId,title:e.title}],n=this.getTocNodeNow(e.parentTocId);for(;n;)o.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return o}isFeatureAccessible(t,{session:e,ratingType:o}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case Gt.FEEDBACK:return Sr(e??[],lt.FEEDBACK_USER);case Gt.RATING:return Sr(e??[],lt.RATING_USER)&&o!=null&&o!==_e.NO_RATING;case Gt.PRINT:return Sr(e??[],lt.PRINT_USER);case Gt.BOOKMARK:return!!e?.sessionAuthenticated;case Gt.COLLECTIONS:return Sr(e??[],lt.COLLECTION_USER);case Gt.PERSONAL_BOOKS:return Sr(e??[],lt.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var ki=class r extends $i{static async build(t){return new r(new Pi,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,o){return this.api.rateTopic(this.mapId,t,e,o)}makeTopicFeedbackRequest(t,e,o){return this.api.sendTopicFeedback(this.mapId,t,e,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var Li=class r{static build(t,e){return new r(wd(t.trim()||"context"),e??ki.build)}loaded(){return An(()=>this._loaded)}constructor(t,e,o){this.store=t,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new ot(10),this.initService(e)}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())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return lo(()=>this.service)}async navigateToTopic(t,e,o){await this.loaded();let n=await this.awaitService(),a=await(o!=null?n.getPage(o):n.getPageByTocId(t??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,a),section:e})}resolveValidNonRootTocId(t,e){var o,n,a;let s=(o=t==="root"?void 0:t)!==null&&o!==void 0?o:e.rootTocId;return e.topics.includes(s)?s:(a=(n=e.topics[0])!==null&&n!==void 0?n:e.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){await this.loaded();let o=await(await this.awaitService()).getPage(t);this.store.actions.currentPage(o)}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())}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),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,e,o,n,a;try{await Promise.all([(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(s=>this.store.actions.configuration(s)),(e=this.service)===null||e===void 0?void 0:e.getMap().then(s=>this.store.actions.map(s)),(o=this.service)===null||o===void 0?void 0:o.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof ar)&&this.errorHandler(s)}}fetchRelatives(){var t,e,o;let n=(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);n!==void 0&&n.length>0?(e=this.service)===null||e===void 0||e.getRelativesForDocument((o=this.store.getState().configuration)===null||o===void 0?void 0:o.relativePivotMetadata,n).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.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,e;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let n=o.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(e=(t=L.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&e!==void 0?e:[];return new so(o,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var e,o,n;await this.loaded();let a=await lo(()=>{var d;return(d=this.store.getState().configuration)===null||d===void 0?void 0:d.relativeTopicPivotMetadata}),s=this.store.getState().mapId,c=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(o=(e=c?.results)===null||e===void 0?void 0:e[0])===null||o===void 0?void 0:o.entries)===null||n===void 0)&&n[0]){let d=c.results[0].entries[0].topic.tocId;return await this.navigateToTopic(d),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}};var Vd=P`
1622
- `;var Di=class extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}},Mi=class extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}},Ui=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},Bi=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},Fi=class extends Event{constructor(){super("ft-reader-map-not-found")}},zi=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Wi=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Hi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Bt=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},If=r=>t=>+(t??"NaN")>0?+t:r,St=class extends jt{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new ot(5),this.navigationDebouncer=new ot(10),this.mapLoadedEventDebouncer=new ot(50),this.addStore(L)}render(){return $`
1621
+ `}focus(t){var e;(e=this.container)===null||e===void 0||e.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new _s(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}};Re.elementDefinitions={"ft-ripple":J,"ft-typography":ht,"ft-icon":yt};Re.styles=wd;Ns([g()],Re.prototype,"value",void 0);Ns([Z(".ft-text-field-suggestion")],Re.prototype,"container",void 0);Ns([ao()],Re.prototype,"assignedNodes",void 0);V("ft-text-field")(K);V("ft-text-field-suggestion")(Re);var Od=r=>Oe.get({name:"ft-reader-"+r,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var Ts=class{constructor(t,e){this.mapId=t,this.paginatedToc=e,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,o){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,o)),n.tocId==null?this.extractPagesToc(n.children,e,o):[{tocId:n.tocId,title:n.title,depth:e,children:this.extractPagesToc(n.children,e+1,n.tocId)}]))}convertNodes(t,e,o){return t.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],e,n.tocId),...this.convertNodes(n.children,e,n.tocId)];let c=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),d={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:c,depth:e,parentTocId:o,children:[]};this.register(d);let u=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],e+1,n.tocId),h=this.convertNodes(n.children,e+1,d.tocId);return d.children=[...u,...h],[d]})}convertSectionNodes(t,e,o){return t.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:e,parentTocId:o,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,e+1,n.tocId),[l]})}buildPage(t,e){var o,n,a,s,l,c;let d={number:this.pages.length+1,title:(o=t.title)!==null&&o!==void 0?o:"",rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},u=(y,b)=>(b?d.topics:d.hiddenTopics).push(y),h=(l=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return d.breadcrumb.forEach((y,b)=>{u(y,h[b])}),t.tocId&&u(t.tocId,t.pageConfiguration.isVisible),d.topics.push(...this.tocIds((c=t.pageToc)!==null&&c!==void 0?c:[])),d}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap(e=>[e.tocId,...this.tocIds(e.children)])}buildBreadcrumb(t){let e=[t.tocId];for(;t?.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}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}},Pi=class{convertPaginatedToc(t,e){return new Ts(t,e).build()}};var BA=Qd(Cd(),1);var Ad;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Ad||(Ad={}));var Rd;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Rd||(Rd={}));var _d;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(_d||(_d={}));var Nd;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(Nd||(Nd={}));var Td;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Td||(Td={}));var Id;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Id||(Id={}));var Pd;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Pd||(Pd={}));var _e;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(_e||(_e={}));var $d;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})($d||($d={}));var kd;(function(r){r.ASC="ASC",r.DESC="DESC"})(kd||(kd={}));var Ld;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Ld||(Ld={}));var Dd;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Dd||(Dd={}));var Md;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Md||(Md={}));var Ud;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Ud||(Ud={}));var Bd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Bd||(Bd={}));var Fd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(Fd||(Fd={}));var zd;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(zd||(zd={}));var lt;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})(lt||(lt={}));var Wd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Wd||(Wd={}));var Tf={[lt.PERSONAL_BOOK_SHARE_USER]:[lt.PERSONAL_BOOK_USER],[lt.HTML_EXPORT_USER]:[lt.PERSONAL_BOOK_USER],[lt.PDF_EXPORT_USER]:[lt.PERSONAL_BOOK_USER],[lt.KHUB_ADMIN]:[lt.CONTENT_PUBLISHER],[lt.ADMIN]:[lt.KHUB_ADMIN,lt.USERS_ADMIN,lt.PORTAL_ADMIN],[lt.DEVELOPER]:[lt.BETA_USER,lt.DEBUG_USER]};function Hd(r,t){return r===t||(Tf[r]??[]).some(e=>Hd(e,t))}function wr(r,t){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>Hd(o,t))}var $i=class extends pe{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o){super(!1,e),this.converter=t,this._mapId=o,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(e=>this.converter.convertPaginatedToc(t,e)))),this.cache.register("ratingSummary",()=>{var t,e;return wr((e=(t=L.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&e!==void 0?e:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return(e=this.enrichedToc)===null||e===void 0?void 0:e.nodeByTocId[t]}getTocNodeNowByUrl(t){var e,o;let n=this.getMapNow();return n?.prettyUrl==t||`${n?.id}/root`===t?(e=this.enrichedToc)===null||e===void 0?void 0:e.toc[0]:(o=this.enrichedToc)===null||o===void 0?void 0:o.nodeByUrl[t]}async getPage(t){let e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){let e=await this.getEnrichedToc();return e.pageByTocId[t]||e.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))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),()=>this.fetchRelativesForDocument(t,e))}getRelativesForTopicInMap(t,e,o){return this.cache.get("topic-relatives-"+[t,e,...o].join("-"),()=>this.fetchRelativesForTopicInMap(t,e,o))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,o){let n=this.getNavigationData(t,e,o),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(t,e,o){var n,a;t=t||"root";let s=this.enrichedToc,l=s?.pageByTocId[t],c=s?.nodeByTocId[t],d=c?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(n=c?.title)!==null&&n!==void 0?n:"",page:e&&l&&l.number!==e?e:void 0,prettyUrl:d?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(d??""))!==null&&a!==void 0?a:!1,section:o}}async getAccurateNavigationData(t,e,o){return await this.getEnrichedToc(),this.getNavigationData(t,e,o)}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(e=>{var o;return e?{type:e.topics.type,rating:(o=e.topics)===null||o===void 0?void 0:o.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,e){return this.makeRateMapRequest(t,e).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,o){return this.makeRateTopicRequest(t,e,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=L.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,o){return this.makeTopicFeedbackRequest(t,e,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),o=[{tocId:e.tocId,title:e.title}],n=this.getTocNodeNow(e.parentTocId);for(;n;)o.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return o}isFeatureAccessible(t,{session:e,ratingType:o}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case Gt.FEEDBACK:return wr(e??[],lt.FEEDBACK_USER);case Gt.RATING:return wr(e??[],lt.RATING_USER)&&o!=null&&o!==_e.NO_RATING;case Gt.PRINT:return wr(e??[],lt.PRINT_USER);case Gt.BOOKMARK:return!!e?.sessionAuthenticated;case Gt.COLLECTIONS:return wr(e??[],lt.COLLECTION_USER);case Gt.PERSONAL_BOOKS:return wr(e??[],lt.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var ki=class r extends $i{static async build(t){return new r(new Pi,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,o){return this.api.rateTopic(this.mapId,t,e,o)}makeTopicFeedbackRequest(t,e,o){return this.api.sendTopicFeedback(this.mapId,t,e,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var Li=class r{static build(t,e){return new r(Od(t.trim()||"context"),e??ki.build)}loaded(){return An(()=>this._loaded)}constructor(t,e,o){this.store=t,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new ot(10),this.initService(e)}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())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return lo(()=>this.service)}async navigateToTopic(t,e,o){await this.loaded();let n=await this.awaitService(),a=await(o!=null?n.getPage(o):n.getPageByTocId(t??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,a),section:e})}resolveValidNonRootTocId(t,e){var o,n,a;let s=(o=t==="root"?void 0:t)!==null&&o!==void 0?o:e.rootTocId;return e.topics.includes(s)?s:(a=(n=e.topics[0])!==null&&n!==void 0?n:e.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){await this.loaded();let o=await(await this.awaitService()).getPage(t);this.store.actions.currentPage(o)}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())}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),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,e,o,n,a;try{await Promise.all([(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(s=>this.store.actions.configuration(s)),(e=this.service)===null||e===void 0?void 0:e.getMap().then(s=>this.store.actions.map(s)),(o=this.service)===null||o===void 0?void 0:o.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof ar)&&this.errorHandler(s)}}fetchRelatives(){var t,e,o;let n=(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);n!==void 0&&n.length>0?(e=this.service)===null||e===void 0||e.getRelativesForDocument((o=this.store.getState().configuration)===null||o===void 0?void 0:o.relativePivotMetadata,n).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.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,e;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let n=o.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(e=(t=L.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&e!==void 0?e:[];return new so(o,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var e,o,n;await this.loaded();let a=await lo(()=>{var d;return(d=this.store.getState().configuration)===null||d===void 0?void 0:d.relativeTopicPivotMetadata}),s=this.store.getState().mapId,c=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(o=(e=c?.results)===null||e===void 0?void 0:e[0])===null||o===void 0?void 0:o.entries)===null||n===void 0)&&n[0]){let d=c.results[0].entries[0].topic.tocId;return await this.navigateToTopic(d),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}};var Vd=P`
1622
+ `;var Di=class extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}},Mi=class extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}},Ui=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},Bi=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},Fi=class extends Event{constructor(){super("ft-reader-map-not-found")}},zi=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Wi=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Hi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Ft=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},If=r=>t=>+(t??"NaN")>0?+t:r,St=class extends jt{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new ot(5),this.navigationDebouncer=new ot(10),this.mapLoadedEventDebouncer=new ot(50),this.addStore(L)}render(){return $`
1623
1623
  ${this.importStyleIfNeeded()}
1624
1624
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1625
1625
  `}importStyleIfNeeded(){var t,e;let o=(t=this.stateManager.service)===null||t===void 0?void 0:t.themeStylesheet();return!o||window.location.href.startsWith((e=this.baseUrl)!==null&&e!==void 0?e:"")?B:$`
1626
1626
  <style>
1627
1627
  @import "${o}"
1628
1628
  </style>
1629
- `}get stateManager(){return this._stateManager==null&&(this._stateManager=Li.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 e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){let o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",e),document.head.append(o)}})}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(e=>t.has(e))&&this.mapId&&this.navigateToTarget(),t.has("session")&&this.reload()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((e=this.scrollTarget)===null||e===void 0?void 0:e.tocId)==null){let o=t.get("scrollTarget");o?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var n;return this.stateManager.service.getAccurateNavigationData(o.tocId,(n=this.currentPage)===null||n===void 0?void 0:n.number,o.section).then(a=>this.dispatchEvent(new Ui(a)))})}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map(o=>{var n;return this.stateManager.service.getAccurateNavigationData(o,(n=this.currentPage)===null||n===void 0?void 0:n.number)})).then(o=>{let n=o.filter(a=>a!=null&&a.topicTitle!=="").map(a=>{var s;return{tocId:a.tocId,title:a.topicTitle,page:a.page,prettyUrl:a.prettyUrl,prettyUrlDuplicated:a.prettyUrlDuplicated,breadcrumb:(s=this.stateManager.service)===null||s===void 0?void 0:s.buildBreadcrumb(a.tocId)}});this.dispatchEvent(new Mi(this.map,n))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Hi),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(t){t.stopPropagation();let e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let e=t;e.status===401?this.dispatchEvent(new zi):e.status===403?this.dispatchEvent(new Wi):e.status===404?this.dispatchEvent(new Fi):this.dispatchEvent(new Bi(t))}reloadBookmarks(){bd.reloadBookmarks()}async reloadRating(){var t,e;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(e=this.stateManager.store)===null||e===void 0||e.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Di(this.map,this.toc))})}};St.styles=Vd;Bt([nt({store:L.name})],St.prototype,"baseUrl",void 0);Bt([nt({store:L.name})],St.prototype,"session",void 0);Bt([g()],St.prototype,"mapId",void 0);Bt([g()],St.prototype,"tocId",void 0);Bt([g()],St.prototype,"section",void 0);Bt([g()],St.prototype,"topicPivot",void 0);Bt([g()],St.prototype,"searchInDocumentQuery",void 0);Bt([g({type:Number,converter:{fromAttribute:If()}})],St.prototype,"page",void 0);Bt([nt({store:"reader"})],St.prototype,"map",void 0);Bt([nt({store:"reader"})],St.prototype,"toc",void 0);Bt([nt({store:"reader"})],St.prototype,"visibleTopics",void 0);Bt([nt({store:"reader"})],St.prototype,"currentPage",void 0);Bt([nt({store:"reader"})],St.prototype,"scrollTarget",void 0);Bt([g({attribute:!1})],St.prototype,"readerServiceProvider",void 0);V("ft-reader-context")(St);var Vi=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},ji=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},Ki=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},Gi=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},Zi=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var Ot=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},et=class extends Ke(ze){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(q,xd)}get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Gt.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Gt.RATING,{session:this.session,ratingType:(e=this.ratingSummary)===null||e===void 0?void 0:e.type})}get configuredRatingType(){var t,e;return(e=this.ratingAllowed?(t=this.ratingSummary)===null||t===void 0?void 0:t.type:"NO_RATING")!==null&&e!==void 0?e:"NO_RATING"}get ratingType(){var t,e,o;return(o=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.type)!==null&&o!==void 0?o:"NO_RATING"}get ratingValue(){var t,e,o;return(o=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.value)!==null&&o!==void 0?o:-1}get ratingDate(){var t,e;let o=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.date;return typeof o=="string"?oi(o):o}render(){return!this.canAccessFeedback&&!this.canAccessRating?B:$`
1629
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=Li.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 e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){let o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",e),document.head.append(o)}})}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(e=>t.has(e))&&this.mapId&&this.navigateToTarget(),t.has("session")&&this.reload()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((e=this.scrollTarget)===null||e===void 0?void 0:e.tocId)==null){let o=t.get("scrollTarget");o?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var n;return this.stateManager.service.getAccurateNavigationData(o.tocId,(n=this.currentPage)===null||n===void 0?void 0:n.number,o.section).then(a=>this.dispatchEvent(new Ui(a)))})}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map(o=>{var n;return this.stateManager.service.getAccurateNavigationData(o,(n=this.currentPage)===null||n===void 0?void 0:n.number)})).then(o=>{let n=o.filter(a=>a!=null&&a.topicTitle!=="").map(a=>{var s;return{tocId:a.tocId,title:a.topicTitle,page:a.page,prettyUrl:a.prettyUrl,prettyUrlDuplicated:a.prettyUrlDuplicated,breadcrumb:(s=this.stateManager.service)===null||s===void 0?void 0:s.buildBreadcrumb(a.tocId)}});this.dispatchEvent(new Mi(this.map,n))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Hi),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(t){t.stopPropagation();let e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let e=t;e.status===401?this.dispatchEvent(new zi):e.status===403?this.dispatchEvent(new Wi):e.status===404?this.dispatchEvent(new Fi):this.dispatchEvent(new Bi(t))}reloadBookmarks(){bd.reloadBookmarks()}async reloadRating(){var t,e;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(e=this.stateManager.store)===null||e===void 0||e.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Di(this.map,this.toc))})}};St.styles=Vd;Ft([nt({store:L.name})],St.prototype,"baseUrl",void 0);Ft([nt({store:L.name})],St.prototype,"session",void 0);Ft([g()],St.prototype,"mapId",void 0);Ft([g()],St.prototype,"tocId",void 0);Ft([g()],St.prototype,"section",void 0);Ft([g()],St.prototype,"topicPivot",void 0);Ft([g()],St.prototype,"searchInDocumentQuery",void 0);Ft([g({type:Number,converter:{fromAttribute:If()}})],St.prototype,"page",void 0);Ft([nt({store:"reader"})],St.prototype,"map",void 0);Ft([nt({store:"reader"})],St.prototype,"toc",void 0);Ft([nt({store:"reader"})],St.prototype,"visibleTopics",void 0);Ft([nt({store:"reader"})],St.prototype,"currentPage",void 0);Ft([nt({store:"reader"})],St.prototype,"scrollTarget",void 0);Ft([g({attribute:!1})],St.prototype,"readerServiceProvider",void 0);V("ft-reader-context")(St);var Vi=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},ji=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},Ki=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},Gi=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},Zi=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var wt=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},et=class extends Ke(ze){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(q,xd)}get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Gt.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Gt.RATING,{session:this.session,ratingType:(e=this.ratingSummary)===null||e===void 0?void 0:e.type})}get configuredRatingType(){var t,e;return(e=this.ratingAllowed?(t=this.ratingSummary)===null||t===void 0?void 0:t.type:"NO_RATING")!==null&&e!==void 0?e:"NO_RATING"}get ratingType(){var t,e,o;return(o=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.type)!==null&&o!==void 0?o:"NO_RATING"}get ratingValue(){var t,e,o;return(o=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.value)!==null&&o!==void 0?o:-1}get ratingDate(){var t,e;let o=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.date;return typeof o=="string"?oi(o):o}render(){return!this.canAccessFeedback&&!this.canAccessRating?B:$`
1630
1630
  <div class="ft-reader-feedback">
1631
1631
  ${this.hideTitle?B:$`
1632
1632
  <ft-typography variant="title" part="main-title">
@@ -1734,7 +1734,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1734
1734
  ${l}
1735
1735
  </div>
1736
1736
  </form>
1737
- `}return B}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,o;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0?void 0:e.userId)==null&&(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new Vi({message:this.feedbackInput.value,...((t=this.configuration)===null||t===void 0?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.value="",0)}};et.elementDefinitions={"ft-button":te,"ft-typography":ht,"ft-switch":Ht,"ft-switch-option":yt,"ft-text-area":wt,"ft-text-field":K};et.styles=rd;Ot([g({type:Boolean})],et.prototype,"editorMode",void 0);Ot([g({type:Boolean})],et.prototype,"hideTitle",void 0);Ot([g({type:Boolean})],et.prototype,"withMoreOptionsButton",void 0);Ot([g({type:Boolean})],et.prototype,"ratingAllowed",void 0);Ot([g({attribute:!1})],et.prototype,"i18nProperties",void 0);Ot([g({attribute:!1})],et.prototype,"ratingSummary",void 0);Ot([g({attribute:!1})],et.prototype,"session",void 0);Ot([Z(".ft-reader-feedback--feedback-input")],et.prototype,"feedbackInput",void 0);Ot([H()],et.prototype,"from",void 0);Ot([H()],et.prototype,"feedbackMessage",void 0);Ot([g()],et.prototype,"iconVariant",void 0);Ot([g()],et.prototype,"emptyStarIcon",void 0);Ot([g()],et.prototype,"filledStarIcon",void 0);Ot([g()],et.prototype,"emptyLikeIcon",void 0);Ot([g()],et.prototype,"filledLikeIcon",void 0);Ot([g()],et.prototype,"emptyDislikeIcon",void 0);Ot([g()],et.prototype,"filledDislikeIcon",void 0);Ot([nt({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],et.prototype,"configuration",void 0);Ot([g()],et.prototype,"feedbackMailLinkBuilder",void 0);var Vr=Ge.fromGwt("server");var jr=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,o,n,a){var s;this.subject=t,this.url=e,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(o,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(o,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(t,e){return e.map(o=>t.find(n=>n.key===o)).filter(o=>o!=null&&o.values.length>0)}shouldUseMailer(){var t,e;let o=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||n}build(t){var e;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let o=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1737
+ `}return B}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,o;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0?void 0:e.userId)==null&&(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new Vi({message:this.feedbackInput.value,...((t=this.configuration)===null||t===void 0?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.value="",0)}};et.elementDefinitions={"ft-button":te,"ft-typography":ht,"ft-switch":Vt,"ft-switch-option":bt,"ft-text-area":Ot,"ft-text-field":K};et.styles=rd;wt([g({type:Boolean})],et.prototype,"editorMode",void 0);wt([g({type:Boolean})],et.prototype,"hideTitle",void 0);wt([g({type:Boolean})],et.prototype,"withMoreOptionsButton",void 0);wt([g({type:Boolean})],et.prototype,"ratingAllowed",void 0);wt([g({attribute:!1})],et.prototype,"i18nProperties",void 0);wt([g({attribute:!1})],et.prototype,"ratingSummary",void 0);wt([g({attribute:!1})],et.prototype,"session",void 0);wt([Z(".ft-reader-feedback--feedback-input")],et.prototype,"feedbackInput",void 0);wt([H()],et.prototype,"from",void 0);wt([H()],et.prototype,"feedbackMessage",void 0);wt([g()],et.prototype,"iconVariant",void 0);wt([g()],et.prototype,"emptyStarIcon",void 0);wt([g()],et.prototype,"filledStarIcon",void 0);wt([g()],et.prototype,"emptyLikeIcon",void 0);wt([g()],et.prototype,"filledLikeIcon",void 0);wt([g()],et.prototype,"emptyDislikeIcon",void 0);wt([g()],et.prototype,"filledDislikeIcon",void 0);wt([nt({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],et.prototype,"configuration",void 0);wt([g()],et.prototype,"feedbackMailLinkBuilder",void 0);var Vr=Ge.fromGwt("server");var jr=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,o,n,a){var s;this.subject=t,this.url=e,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(o,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(o,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(t,e){return e.map(o=>t.find(n=>n.key===o)).filter(o=>o!=null&&o.values.length>0)}shouldUseMailer(){var t,e;let o=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||n}build(t){var e;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let o=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1738
1738
  ${this.bodyMetadata}
1739
1739
  ${this.url}
1740
1740
  _________________________________________________________________