@fluid-topics/ft-reader-feedback 1.1.115 → 1.1.116

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
- "use strict";(()=>{var cp=Object.create;var pn=Object.defineProperty;var dp=Object.getOwnPropertyDescriptor;var pp=Object.getOwnPropertyNames;var up=Object.getPrototypeOf,fp=Object.prototype.hasOwnProperty;var hp=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),re=(r,e)=>{for(var t in e)pn(r,t,{get:e[t],enumerable:!0})},mp=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of pp(e))!fp.call(r,n)&&n!==t&&pn(r,n,{get:()=>e[n],enumerable:!(o=dp(e,n))||o.enumerable});return r};var gp=(r,e,t)=>(t=r!=null?cp(up(r)):{},mp(e||!r||!r.__esModule?pn(t,"default",{value:r,enumerable:!0}):t,r));var Zc=hp((Kt,Gc)=>{var Ii=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Pi=function(){function r(){this.fetch=!1,this.DOMException=Ii.DOMException}return r.prototype=Ii,new r}();(function(r){var e=function(t){var o=typeof r<"u"&&r||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function a(g){return g&&DataView.prototype.isPrototypeOf(g)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(g){return g&&s.indexOf(Object.prototype.toString.call(g))>-1};function c(g){if(typeof g!="string"&&(g=String(g)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(g)||g==="")throw new TypeError('Invalid character in header field name: "'+g+'"');return g.toLowerCase()}function p(g){return typeof g!="string"&&(g=String(g)),g}function h(g){var x={next:function(){var k=g.shift();return{done:k===void 0,value:k}}};return n.iterable&&(x[Symbol.iterator]=function(){return x}),x}function f(g){this.map={},g instanceof f?g.forEach(function(x,k){this.append(k,x)},this):Array.isArray(g)?g.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):g&&Object.getOwnPropertyNames(g).forEach(function(x){this.append(x,g[x])},this)}f.prototype.append=function(g,x){g=c(g),x=p(x);var k=this.map[g];this.map[g]=k?k+", "+x:x},f.prototype.delete=function(g){delete this.map[c(g)]},f.prototype.get=function(g){return g=c(g),this.has(g)?this.map[g]:null},f.prototype.has=function(g){return this.map.hasOwnProperty(c(g))},f.prototype.set=function(g,x){this.map[c(g)]=p(x)},f.prototype.forEach=function(g,x){for(var k in this.map)this.map.hasOwnProperty(k)&&g.call(x,this.map[k],k,this)},f.prototype.keys=function(){var g=[];return this.forEach(function(x,k){g.push(k)}),h(g)},f.prototype.values=function(){var g=[];return this.forEach(function(x){g.push(x)}),h(g)},f.prototype.entries=function(){var g=[];return this.forEach(function(x,k){g.push([k,x])}),h(g)},n.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function m(g){if(!g._noBody){if(g.bodyUsed)return Promise.reject(new TypeError("Already read"));g.bodyUsed=!0}}function b(g){return new Promise(function(x,k){g.onload=function(){x(g.result)},g.onerror=function(){k(g.error)}})}function v(g){var x=new FileReader,k=b(x);return x.readAsArrayBuffer(g),k}function w(g){var x=new FileReader,k=b(x),j=/charset=([A-Za-z0-9_-]+)/.exec(g.type),Y=j?j[1]:"utf-8";return x.readAsText(g,Y),k}function I(g){for(var x=new Uint8Array(g),k=new Array(x.length),j=0;j<x.length;j++)k[j]=String.fromCharCode(x[j]);return k.join("")}function A(g){if(g.slice)return g.slice(0);var x=new Uint8Array(g.byteLength);return x.set(new Uint8Array(g)),x.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(g){this.bodyUsed=this.bodyUsed,this._bodyInit=g,g?typeof g=="string"?this._bodyText=g:n.blob&&Blob.prototype.isPrototypeOf(g)?this._bodyBlob=g:n.formData&&FormData.prototype.isPrototypeOf(g)?this._bodyFormData=g:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(g)?this._bodyText=g.toString():n.arrayBuffer&&n.blob&&a(g)?(this._bodyArrayBuffer=A(g.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(g)||l(g))?this._bodyArrayBuffer=A(g):this._bodyText=g=Object.prototype.toString.call(g):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof g=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(g)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var g=m(this);if(g)return g;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var g=m(this);return g||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var g=m(this);if(g)return g;if(this._bodyBlob)return w(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(I(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(M)}),this.json=function(){return this.text().then(JSON.parse)},this}var S=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function O(g){var x=g.toUpperCase();return S.indexOf(x)>-1?x:g}function E(g,x){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x=x||{};var k=x.body;if(g instanceof E){if(g.bodyUsed)throw new TypeError("Already read");this.url=g.url,this.credentials=g.credentials,x.headers||(this.headers=new f(g.headers)),this.method=g.method,this.mode=g.mode,this.signal=g.signal,!k&&g._bodyInit!=null&&(k=g._bodyInit,g.bodyUsed=!0)}else this.url=String(g);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new f(x.headers)),this.method=O(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal||function(){if("AbortController"in o){var B=new AbortController;return B.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&k)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(k),(this.method==="GET"||this.method==="HEAD")&&(x.cache==="no-store"||x.cache==="no-cache")){var j=/([?&])_=[^&]*/;if(j.test(this.url))this.url=this.url.replace(j,"$1_="+new Date().getTime());else{var Y=/\?/;this.url+=(Y.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})};function M(g){var x=new FormData;return g.trim().split("&").forEach(function(k){if(k){var j=k.split("="),Y=j.shift().replace(/\+/g," "),B=j.join("=").replace(/\+/g," ");x.append(decodeURIComponent(Y),decodeURIComponent(B))}}),x}function Z(g){var x=new f,k=g.replace(/\r?\n[\t ]+/g," ");return k.split("\r").map(function(j){return j.indexOf(`
2
- `)===0?j.substr(1,j.length):j}).forEach(function(j){var Y=j.split(":"),B=Y.shift().trim();if(B){var at=Y.join(":").trim();try{x.append(B,at)}catch(ro){console.warn("Response "+ro.message)}}}),x}N.call(E.prototype);function J(g,x){if(!(this instanceof J))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=x.statusText===void 0?"":""+x.statusText,this.headers=new f(x.headers),this.url=x.url||"",this._initBody(g)}N.call(J.prototype),J.prototype.clone=function(){return new J(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},J.error=function(){var g=new J(null,{status:200,statusText:""});return g.ok=!1,g.status=0,g.type="error",g};var ee=[301,302,303,307,308];J.redirect=function(g,x){if(ee.indexOf(x)===-1)throw new RangeError("Invalid status code");return new J(null,{status:x,headers:{location:g}})},t.DOMException=o.DOMException;try{new t.DOMException}catch{t.DOMException=function(x,k){this.message=x,this.name=k;var j=Error(x);this.stack=j.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function L(g,x){return new Promise(function(k,j){var Y=new E(g,x);if(Y.signal&&Y.signal.aborted)return j(new t.DOMException("Aborted","AbortError"));var B=new XMLHttpRequest;function at(){B.abort()}B.onload=function(){var Ae={statusText:B.statusText,headers:Z(B.getAllResponseHeaders()||"")};Y.url.indexOf("file://")===0&&(B.status<200||B.status>599)?Ae.status=200:Ae.status=B.status,Ae.url="responseURL"in B?B.responseURL:Ae.headers.get("X-Request-URL");var tr="response"in B?B.response:B.responseText;setTimeout(function(){k(new J(tr,Ae))},0)},B.onerror=function(){setTimeout(function(){j(new TypeError("Network request failed"))},0)},B.ontimeout=function(){setTimeout(function(){j(new TypeError("Network request timed out"))},0)},B.onabort=function(){setTimeout(function(){j(new t.DOMException("Aborted","AbortError"))},0)};function ro(Ae){try{return Ae===""&&o.location.href?o.location.href:Ae}catch{return Ae}}if(B.open(Y.method,ro(Y.url),!0),Y.credentials==="include"?B.withCredentials=!0:Y.credentials==="omit"&&(B.withCredentials=!1),"responseType"in B&&(n.blob?B.responseType="blob":n.arrayBuffer&&(B.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof f||o.Headers&&x.headers instanceof o.Headers)){var Zs=[];Object.getOwnPropertyNames(x.headers).forEach(function(Ae){Zs.push(c(Ae)),B.setRequestHeader(Ae,p(x.headers[Ae]))}),Y.headers.forEach(function(Ae,tr){Zs.indexOf(tr)===-1&&B.setRequestHeader(tr,Ae)})}else Y.headers.forEach(function(Ae,tr){B.setRequestHeader(tr,Ae)});Y.signal&&(Y.signal.addEventListener("abort",at),B.onreadystatechange=function(){B.readyState===4&&Y.signal.removeEventListener("abort",at)}),B.send(typeof Y._bodyInit>"u"?null:Y._bodyInit)})}return L.polyfill=!0,o.fetch||(o.fetch=L,o.Headers=f,o.Request=E,o.Response=J),t.Headers=f,t.Request=E,t.Response=J,t.fetch=L,t}({})})(Pi);Pi.fetch.ponyfill=!0;delete Pi.fetch.polyfill;var jr=Ii.fetch?Ii:Pi;Kt=jr.fetch;Kt.default=jr.fetch;Kt.fetch=jr.fetch;Kt.Headers=jr.Headers;Kt.Request=jr.Request;Kt.Response=jr.Response;Gc.exports=Kt});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=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(S,O){if(S=S.toLowerCase(),this._getDefinition(S)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${S}" has already been used with this registry`);if(this._definitionsByClass.get(O)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let E=O.prototype.attributeChangedCallback,M=new Set(O.observedAttributes||[]);m(O,M,E);let Z={elementClass:O,connectedCallback:O.prototype.connectedCallback,disconnectedCallback:O.prototype.disconnectedCallback,adoptedCallback:O.prototype.adoptedCallback,attributeChangedCallback:E,formAssociated:O.formAssociated,formAssociatedCallback:O.prototype.formAssociatedCallback,formDisabledCallback:O.prototype.formDisabledCallback,formResetCallback:O.prototype.formResetCallback,formStateRestoreCallback:O.prototype.formStateRestoreCallback,observedAttributes:M};this._definitionsByTag.set(S,Z),this._definitionsByClass.set(O,Z);let J=t.call(o,S);J||(J=f(S),e.call(o,S,J)),this===window.customElements&&(s.set(O,Z),Z.standInClass=J);let ee=this._awaitingUpgrade.get(S);if(ee){this._awaitingUpgrade.delete(S);for(let g of ee)a.delete(g),v(g,Z,!0)}let L=this._whenDefinedPromises.get(S);return L!==void 0&&(L.resolve(O),this._whenDefinedPromises.delete(S)),O}upgrade(){I.push(this),o.upgrade.apply(o,arguments),I.pop()}get(S){return this._definitionsByTag.get(S)?.elementClass}_getDefinition(S){return this._definitionsByTag.get(S)}whenDefined(S){let O=this._getDefinition(S);if(O!==void 0)return Promise.resolve(O.elementClass);let E=this._whenDefinedPromises.get(S);return E===void 0&&(E={},E.promise=new Promise(M=>E.resolve=M),this._whenDefinedPromises.set(S,E)),E.promise}_upgradeWhenDefined(S,O,E){let M=this._awaitingUpgrade.get(O);M||this._awaitingUpgrade.set(O,M=new Set),E?M.add(S):M.delete(S)}};let c;window.HTMLElement=function(){let O=c;if(O)return c=void 0,O;let E=s.get(this.constructor);if(!E)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return O=Reflect.construct(r,[],E.standInClass),Object.setPrototypeOf(O,this.constructor.prototype),n.set(O,E),O},window.HTMLElement.prototype=r.prototype;let p=S=>S===document||S instanceof ShadowRoot,h=S=>{let O=S.getRootNode();if(!p(O)){let E=I[I.length-1];if(E instanceof CustomElementRegistry)return E;O=E.getRootNode(),p(O)||(O=l.get(O)?.getRootNode()||document)}return O.customElements},f=S=>class{static get formAssociated(){return!0}constructor(){let E=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(E,HTMLElement.prototype);let M=h(E)||window.customElements,Z=M._getDefinition(S);return Z?v(E,Z):a.set(E,M),E}connectedCallback(){let E=n.get(this);E?E.connectedCallback&&E.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!0)}disconnectedCallback(){let E=n.get(this);E?E.disconnectedCallback&&E.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let E=n.get(this);E&&E.formAssociated&&E?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let E=n.get(this);E?.formAssociated&&E?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let E=n.get(this);E?.formAssociated&&E?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let E=n.get(this);E?.formAssociated&&E?.formStateRestoreCallback?.apply(this,arguments)}},m=(S,O,E)=>{if(O.size===0||E===void 0)return;let M=S.prototype.setAttribute;M&&(S.prototype.setAttribute=function(ee,L){let g=ee.toLowerCase();if(O.has(g)){let x=this.getAttribute(g);M.call(this,g,L),E.call(this,g,x,L)}else M.call(this,g,L)});let Z=S.prototype.removeAttribute;Z&&(S.prototype.removeAttribute=function(ee){let L=ee.toLowerCase();if(O.has(L)){let g=this.getAttribute(L);Z.call(this,L),E.call(this,L,g,null)}else Z.call(this,L)});let J=S.prototype.toggleAttribute;J&&(S.prototype.toggleAttribute=function(ee,L){let g=ee.toLowerCase();if(O.has(g)){let x=this.getAttribute(g);J.call(this,g,L);let k=this.getAttribute(g);E.call(this,g,x,k)}else J.call(this,g,L)})},b=S=>{let O=Object.getPrototypeOf(S);if(O!==window.HTMLElement)return O===r?Object.setPrototypeOf(S,window.HTMLElement):b(O)},v=(S,O,E=!1)=>{Object.setPrototypeOf(S,O.elementClass.prototype),n.set(S,O),c=S;try{new O.elementClass}catch{b(O.elementClass),new O.elementClass}O.attributeChangedCallback&&O.observedAttributes.forEach(M=>{S.hasAttribute(M)&&O.attributeChangedCallback.call(S,M,null,S.getAttribute(M))}),E&&O.connectedCallback&&S.isConnected&&O.connectedCallback.call(S)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(S){let O=w.apply(this,arguments);return S.customElements&&(O.customElements=S.customElements),O};let I=[document],A=(S,O,E=void 0)=>{let M=(E?Object.getPrototypeOf(E):S.prototype)[O];S.prototype[O]=function(){I.push(this);let Z=M.apply(E||this,arguments);return Z!==void 0&&l.set(Z,this),I.pop(),Z}};A(ShadowRoot,"createElement",document),A(ShadowRoot,"importNode",document),A(Element,"insertAdjacentHTML");let N=(S,O)=>{let E=Object.getOwnPropertyDescriptor(S.prototype,O);Object.defineProperty(S.prototype,O,{...E,set(M){I.push(this),E.set.call(this,M),I.pop()}})};if(N(Element,"innerHTML"),N(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let S=new WeakMap,O=HTMLElement.prototype.attachInternals,E=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...ee){let L=O.call(this,...ee);return S.set(L,this),L},E.forEach(ee=>{let L=window.ElementInternals.prototype,g=L[ee];L[ee]=function(...x){let k=S.get(this);if(n.get(k).formAssociated===!0)return g?.call(this,...x);throw new DOMException(`Failed to execute ${g} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class M extends Array{constructor(L){super(...L),this._elements=L}get value(){return this._elements.find(L=>L.checked===!0)?.value||""}}class Z{constructor(L){let g=new Map;L.forEach((x,k)=>{let j=x.getAttribute("name"),Y=g.get(j)||[];this[+k]=x,Y.push(x),g.set(j,Y)}),this.length=L.length,g.forEach((x,k)=>{x&&(x.length===1?this[k]=x[0]:this[k]=new M(x))})}namedItem(L){return this[L]}}let J=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let ee=J.get.call(this,[]),L=[];for(let g of ee){let x=n.get(g);(!x||x.formAssociated===!0)&&L.push(g)}return new Z(L)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,o,n)=>{if(o!==null)try{e.bind(window.customElements)(t,o,n)}catch(a){console.info(t,o,n,a)}}}var En={};re(En,{CSSResult:()=>Ir,LitElement:()=>St,ReactiveElement:()=>st,_$LE:()=>Bp,_$LH:()=>Mp,adoptStyles:()=>ii,css:()=>P,defaultConverter:()=>ni,getCompatibleStyle:()=>po,html:()=>$,isServer:()=>wh,noChange:()=>Lt,notEqual:()=>bn,nothing:()=>z,render:()=>wn,supportsAdoptingStyleSheets:()=>co,svg:()=>Dp,unsafeCSS:()=>vt});var Vo=globalThis,Ko=Vo.ShadowRoot&&(Vo.ShadyCSS===void 0||Vo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ys=Symbol(),qs=new WeakMap,jo=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==Ys)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Ko&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=qs.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&qs.set(t,e))}return e}toString(){return this.cssText}},Xs=r=>new jo(typeof r=="string"?r:r+"",void 0,Ys);var un=(r,e)=>{if(Ko)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),n=Vo.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)}},Go=Ko?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return Xs(t)})(r):r;var{is:yp,defineProperty:bp,getOwnPropertyDescriptor:vp,getOwnPropertyNames:xp,getOwnPropertySymbols:Sp,getPrototypeOf:Op}=Object,Zo=globalThis,Js=Zo.trustedTypes,wp=Js?Js.emptyScript:"",Ep=Zo.reactiveElementPolyfillSupport,oo=(r,e)=>r,io={toAttribute(r,e){switch(e){case Boolean:r=r?wp:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},qo=(r,e)=>!yp(r,e),Qs={attribute:!0,type:String,converter:io,reflect:!1,hasChanged:qo};Symbol.metadata??=Symbol("metadata"),Zo.litPropertyMetadata??=new WeakMap;var rr=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Qs){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,t);n!==void 0&&bp(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:a}=vp(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Qs}static _$Ei(){if(this.hasOwnProperty(oo("elementProperties")))return;let e=Op(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(oo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(oo("properties"))){let t=this.properties,o=[...xp(t),...Sp(t)];for(let n of o)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,n]of t)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let n=this._$Eu(t,o);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)t.unshift(Go(n))}else e!==void 0&&t.push(Go(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return un(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EO(e,t){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:io).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,n=o._$Eh.get(e);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:io;this._$Em=n,this[n]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,o,n=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??qo)(n?a:this[e],t))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[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 e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EO(t,this[t])),this._$ET()}updated(e){}firstUpdated(e){}};rr.elementStyles=[],rr.shadowRootOptions={mode:"open"},rr[oo("elementProperties")]=new Map,rr[oo("finalized")]=new Map,Ep?.({ReactiveElement:rr}),(Zo.reactiveElementVersions??=[]).push("2.0.2");var hn=globalThis,Yo=hn.trustedTypes,el=Yo?Yo.createPolicy("lit-html",{createHTML:r=>r}):void 0,mn="$lit$",bt=`lit$${(Math.random()+"").slice(9)}$`,gn="?"+bt,Cp=`<${gn}>`,nr=document,Xo=()=>nr.createComment(""),ao=r=>r===null||typeof r!="object"&&typeof r!="function",al=Array.isArray,sl=r=>al(r)||typeof r?.[Symbol.iterator]=="function",fn=`[
3
- \f\r]`,no=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tl=/-->/g,rl=/>/g,or=RegExp(`>|${fn}(?:([^\\s"'>=/]+)(${fn}*=${fn}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ol=/'/g,il=/"/g,ll=/^(?:script|style|textarea|title)$/i,cl=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),dl=cl(1),pl=cl(2),je=Symbol.for("lit-noChange"),fe=Symbol.for("lit-nothing"),nl=new WeakMap,ir=nr.createTreeWalker(nr,129);function ul(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return el!==void 0?el.createHTML(e):e}var fl=(r,e)=>{let t=r.length-1,o=[],n,a=e===2?"<svg>":"",s=no;for(let l=0;l<t;l++){let c=r[l],p,h,f=-1,m=0;for(;m<c.length&&(s.lastIndex=m,h=s.exec(c),h!==null);)m=s.lastIndex,s===no?h[1]==="!--"?s=tl:h[1]!==void 0?s=rl:h[2]!==void 0?(ll.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=or):h[3]!==void 0&&(s=or):s===or?h[0]===">"?(s=n??no,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?or:h[3]==='"'?il:ol):s===il||s===ol?s=or:s===tl||s===rl?s=no:(s=or,n=void 0);let b=s===or&&r[l+1].startsWith("/>")?" ":"";a+=s===no?c+Cp:f>=0?(o.push(p),c.slice(0,f)+mn+c.slice(f)+bt+b):c+bt+(f===-2?l:b)}return[ul(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),o]},so=class r{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[p,h]=fl(e,t);if(this.el=r.createElement(p,o),ir.currentNode=this.el.content,t===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=ir.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(mn)){let m=h[s++],b=n.getAttribute(f).split(bt),v=/([.?@])?(.*)/.exec(m);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?Qo:v[1]==="?"?ei:v[1]==="@"?ti:sr}),n.removeAttribute(f)}else f.startsWith(bt)&&(c.push({type:6,index:a}),n.removeAttribute(f));if(ll.test(n.tagName)){let f=n.textContent.split(bt),m=f.length-1;if(m>0){n.textContent=Yo?Yo.emptyScript:"";for(let b=0;b<m;b++)n.append(f[b],Xo()),ir.nextNode(),c.push({type:2,index:++a});n.append(f[m],Xo())}}}else if(n.nodeType===8)if(n.data===gn)c.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(bt,f+1))!==-1;)c.push({type:7,index:a}),f+=bt.length-1}a++}}static createElement(e,t){let o=nr.createElement("template");return o.innerHTML=e,o}};function ar(r,e,t=r,o){if(e===je)return e;let n=o!==void 0?t._$Co?.[o]:t._$Cl,a=ao(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=n:t._$Cl=n),n!==void 0&&(e=ar(r,n._$AS(r,e.values),n,o)),e}var Jo=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,n=(e?.creationScope??nr).importNode(t,!0);ir.currentNode=n;let a=ir.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let p;c.type===2?p=new lo(a,a.nextSibling,this,e):c.type===1?p=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(p=new ri(a,this,e)),this._$AV.push(p),c=o[++l]}s!==c?.index&&(a=ir.nextNode(),s++)}return ir.currentNode=nr,n}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},lo=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,n){this.type=2,this._$AH=fe,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ar(this,e,t),ao(e)?e===fe||e==null||e===""?(this._$AH!==fe&&this._$AR(),this._$AH=fe):e!==this._$AH&&e!==je&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):sl(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==fe&&ao(this._$AH)?this._$AA.nextSibling.data=e:this.$(nr.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=so.createElement(ul(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new Jo(n,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=nl.get(e.strings);return t===void 0&&nl.set(e.strings,t=new so(e)),t}T(e){al(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let a of e)n===t.length?t.push(o=new r(this.k(Xo()),this.k(Xo()),this,this.options)):o=t[n],o._$AI(a),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},sr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,n,a){this.type=1,this._$AH=fe,this._$AN=void 0,this.element=e,this.name=t,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=fe}_$AI(e,t=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=ar(this,e,t,0),s=!ao(e)||e!==this._$AH&&e!==je,s&&(this._$AH=e);else{let l=e,c,p;for(e=a[0],c=0;c<a.length-1;c++)p=ar(this,l[o+c],t,c),p===je&&(p=this._$AH[c]),s||=!ao(p)||p!==this._$AH[c],p===fe?e=fe:e!==fe&&(e+=(p??"")+a[c+1]),this._$AH[c]=p}s&&!n&&this.O(e)}O(e){e===fe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Qo=class extends sr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===fe?void 0:e}},ei=class extends sr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==fe)}},ti=class extends sr{constructor(e,t,o,n,a){super(e,t,o,n,a),this.type=5}_$AI(e,t=this){if((e=ar(this,e,t,0)??fe)===je)return;let o=this._$AH,n=e===fe&&o!==fe||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==fe&&(o===fe||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ri=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){ar(this,e)}},hl={j:mn,P:bt,A:gn,C:1,M:fl,L:Jo,R:sl,V:ar,D:lo,I:sr,H:ei,N:ti,U:Qo,B:ri},Ap=hn.litHtmlPolyfillSupport;Ap?.(so,lo),(hn.litHtmlVersions??=[]).push("3.1.0");var oi=globalThis,co=oi.ShadowRoot&&(oi.ShadyCSS===void 0||oi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,yn=Symbol(),ml=new WeakMap,Ir=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==yn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(co&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=ml.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&ml.set(t,e))}return e}toString(){return this.cssText}},vt=r=>new Ir(typeof r=="string"?r:r+"",void 0,yn),P=(r,...e)=>{let t=r.length===1?r[0]:e.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 Ir(t,r,yn)},ii=(r,e)=>{if(co)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),n=oi.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)}},po=co?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return vt(t)})(r):r;var{is:Rp,defineProperty:_p,getOwnPropertyDescriptor:Tp,getOwnPropertyNames:Np,getOwnPropertySymbols:Ip,getPrototypeOf:Pp}=Object,ai=globalThis,gl=ai.trustedTypes,$p=gl?gl.emptyScript:"",kp=ai.reactiveElementPolyfillSupport,uo=(r,e)=>r,ni={toAttribute(r,e){switch(e){case Boolean:r=r?$p:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},bn=(r,e)=>!Rp(r,e),yl={attribute:!0,type:String,converter:ni,reflect:!1,hasChanged:bn};Symbol.metadata??=Symbol("metadata"),ai.litPropertyMetadata??=new WeakMap;var st=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=yl){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,t);n!==void 0&&_p(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:a}=Tp(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??yl}static _$Ei(){if(this.hasOwnProperty(uo("elementProperties")))return;let e=Pp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(uo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(uo("properties"))){let t=this.properties,o=[...Np(t),...Ip(t)];for(let n of o)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,n]of t)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let n=this._$Eu(t,o);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)t.unshift(po(n))}else e!==void 0&&t.push(po(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ii(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EO(e,t){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:ni).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,n=o._$Eh.get(e);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:ni;this._$Em=n,this[n]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,o,n=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??bn)(n?a:this[e],t))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[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 e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EO(t,this[t])),this._$ET()}updated(e){}firstUpdated(e){}};st.elementStyles=[],st.shadowRootOptions={mode:"open"},st[uo("elementProperties")]=new Map,st[uo("finalized")]=new Map,kp?.({ReactiveElement:st}),(ai.reactiveElementVersions??=[]).push("2.0.2");var xn=globalThis,si=xn.trustedTypes,bl=si?si.createPolicy("lit-html",{createHTML:r=>r}):void 0,Sn="$lit$",xt=`lit$${(Math.random()+"").slice(9)}$`,On="?"+xt,Lp=`<${On}>`,dr=document,ho=()=>dr.createComment(""),mo=r=>r===null||typeof r!="object"&&typeof r!="function",El=Array.isArray,Cl=r=>El(r)||typeof r?.[Symbol.iterator]=="function",vn=`[
1
+ "use strict";(()=>{var cp=Object.create;var pn=Object.defineProperty;var dp=Object.getOwnPropertyDescriptor;var pp=Object.getOwnPropertyNames;var up=Object.getPrototypeOf,fp=Object.prototype.hasOwnProperty;var hp=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),rt=(r,t)=>{for(var e in t)pn(r,e,{get:t[e],enumerable:!0})},mp=(r,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of pp(t))!fp.call(r,n)&&n!==e&&pn(r,n,{get:()=>t[n],enumerable:!(i=dp(t,n))||i.enumerable});return r};var yp=(r,t,e)=>(e=r!=null?cp(up(r)):{},mp(t||!r||!r.__esModule?pn(e,"default",{value:r,enumerable:!0}):e,r));var Zc=hp((Ge,Kc)=>{var Ii=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,$i=function(){function r(){this.fetch=!1,this.DOMException=Ii.DOMException}return r.prototype=Ii,new r}();(function(r){var t=function(e){var i=typeof r<"u"&&r||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(y){return y&&DataView.prototype.isPrototypeOf(y)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function c(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var O={next:function(){var k=y.shift();return{done:k===void 0,value:k}}};return n.iterable&&(O[Symbol.iterator]=function(){return O}),O}function f(y){this.map={},y instanceof f?y.forEach(function(O,k){this.append(k,O)},this):Array.isArray(y)?y.forEach(function(O){if(O.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+O.length);this.append(O[0],O[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(O){this.append(O,y[O])},this)}f.prototype.append=function(y,O){y=c(y),O=p(O);var k=this.map[y];this.map[y]=k?k+", "+O:O},f.prototype.delete=function(y){delete this.map[c(y)]},f.prototype.get=function(y){return y=c(y),this.has(y)?this.map[y]:null},f.prototype.has=function(y){return this.map.hasOwnProperty(c(y))},f.prototype.set=function(y,O){this.map[c(y)]=p(O)},f.prototype.forEach=function(y,O){for(var k in this.map)this.map.hasOwnProperty(k)&&y.call(O,this.map[k],k,this)},f.prototype.keys=function(){var y=[];return this.forEach(function(O,k){y.push(k)}),h(y)},f.prototype.values=function(){var y=[];return this.forEach(function(O){y.push(O)}),h(y)},f.prototype.entries=function(){var y=[];return this.forEach(function(O,k){y.push([k,O])}),h(y)},n.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function m(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function v(y){return new Promise(function(O,k){y.onload=function(){O(y.result)},y.onerror=function(){k(y.error)}})}function S(y){var O=new FileReader,k=v(O);return O.readAsArrayBuffer(y),k}function w(y){var O=new FileReader,k=v(O),j=/charset=([A-Za-z0-9_-]+)/.exec(y.type),Y=j?j[1]:"utf-8";return O.readAsText(y,Y),k}function $(y){for(var O=new Uint8Array(y),k=new Array(O.length),j=0;j<O.length;j++)k[j]=String.fromCharCode(O[j]);return k.join("")}function _(y){if(y.slice)return y.slice(0);var O=new Uint8Array(y.byteLength);return O.set(new Uint8Array(y)),O.buffer}function I(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:n.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:n.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():n.arrayBuffer&&n.blob&&a(y)?(this._bodyArrayBuffer=_(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||l(y))?this._bodyArrayBuffer=_(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var y=m(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var y=m(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=m(this);if(y)return y;if(this._bodyBlob)return w(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve($(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(F)}),this.json=function(){return this.text().then(JSON.parse)},this}var C=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function E(y){var O=y.toUpperCase();return C.indexOf(O)>-1?O:y}function A(y,O){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');O=O||{};var k=O.body;if(y instanceof A){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,O.headers||(this.headers=new f(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!k&&y._bodyInit!=null&&(k=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=O.credentials||this.credentials||"same-origin",(O.headers||!this.headers)&&(this.headers=new f(O.headers)),this.method=E(O.method||this.method||"GET"),this.mode=O.mode||this.mode||null,this.signal=O.signal||this.signal||function(){if("AbortController"in i){var W=new AbortController;return W.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&k)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(k),(this.method==="GET"||this.method==="HEAD")&&(O.cache==="no-store"||O.cache==="no-cache")){var j=/([?&])_=[^&]*/;if(j.test(this.url))this.url=this.url.replace(j,"$1_="+new Date().getTime());else{var Y=/\?/;this.url+=(Y.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})};function F(y){var O=new FormData;return y.trim().split("&").forEach(function(k){if(k){var j=k.split("="),Y=j.shift().replace(/\+/g," "),W=j.join("=").replace(/\+/g," ");O.append(decodeURIComponent(Y),decodeURIComponent(W))}}),O}function Z(y){var O=new f,k=y.replace(/\r?\n[\t ]+/g," ");return k.split("\r").map(function(j){return j.indexOf(`
2
+ `)===0?j.substr(1,j.length):j}).forEach(function(j){var Y=j.split(":"),W=Y.shift().trim();if(W){var ae=Y.join(":").trim();try{O.append(W,ae)}catch(ro){console.warn("Response "+ro.message)}}}),O}I.call(A.prototype);function J(y,O){if(!(this instanceof J))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(O||(O={}),this.type="default",this.status=O.status===void 0?200:O.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=O.statusText===void 0?"":""+O.statusText,this.headers=new f(O.headers),this.url=O.url||"",this._initBody(y)}I.call(J.prototype),J.prototype.clone=function(){return new J(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},J.error=function(){var y=new J(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var tt=[301,302,303,307,308];J.redirect=function(y,O){if(tt.indexOf(O)===-1)throw new RangeError("Invalid status code");return new J(null,{status:O,headers:{location:y}})},e.DOMException=i.DOMException;try{new e.DOMException}catch{e.DOMException=function(O,k){this.message=O,this.name=k;var j=Error(O);this.stack=j.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function D(y,O){return new Promise(function(k,j){var Y=new A(y,O);if(Y.signal&&Y.signal.aborted)return j(new e.DOMException("Aborted","AbortError"));var W=new XMLHttpRequest;function ae(){W.abort()}W.onload=function(){var Rt={statusText:W.statusText,headers:Z(W.getAllResponseHeaders()||"")};Y.url.indexOf("file://")===0&&(W.status<200||W.status>599)?Rt.status=200:Rt.status=W.status,Rt.url="responseURL"in W?W.responseURL:Rt.headers.get("X-Request-URL");var er="response"in W?W.response:W.responseText;setTimeout(function(){k(new J(er,Rt))},0)},W.onerror=function(){setTimeout(function(){j(new TypeError("Network request failed"))},0)},W.ontimeout=function(){setTimeout(function(){j(new TypeError("Network request timed out"))},0)},W.onabort=function(){setTimeout(function(){j(new e.DOMException("Aborted","AbortError"))},0)};function ro(Rt){try{return Rt===""&&i.location.href?i.location.href:Rt}catch{return Rt}}if(W.open(Y.method,ro(Y.url),!0),Y.credentials==="include"?W.withCredentials=!0:Y.credentials==="omit"&&(W.withCredentials=!1),"responseType"in W&&(n.blob?W.responseType="blob":n.arrayBuffer&&(W.responseType="arraybuffer")),O&&typeof O.headers=="object"&&!(O.headers instanceof f||i.Headers&&O.headers instanceof i.Headers)){var Zs=[];Object.getOwnPropertyNames(O.headers).forEach(function(Rt){Zs.push(c(Rt)),W.setRequestHeader(Rt,p(O.headers[Rt]))}),Y.headers.forEach(function(Rt,er){Zs.indexOf(er)===-1&&W.setRequestHeader(er,Rt)})}else Y.headers.forEach(function(Rt,er){W.setRequestHeader(er,Rt)});Y.signal&&(Y.signal.addEventListener("abort",ae),W.onreadystatechange=function(){W.readyState===4&&Y.signal.removeEventListener("abort",ae)}),W.send(typeof Y._bodyInit>"u"?null:Y._bodyInit)})}return D.polyfill=!0,i.fetch||(i.fetch=D,i.Headers=f,i.Request=A,i.Response=J),e.Headers=f,e.Request=A,e.Response=J,e.fetch=D,e}({})})($i);$i.fetch.ponyfill=!0;delete $i.fetch.polyfill;var jr=Ii.fetch?Ii:$i;Ge=jr.fetch;Ge.default=jr.fetch;Ge.fetch=jr.fetch;Ge.Headers=jr.Headers;Ge.Request=jr.Request;Ge.Response=jr.Response;Kc.exports=Ge});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,t=window.customElements.define,e=window.customElements.get,i=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(C,E){if(C=C.toLowerCase(),this._getDefinition(C)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${C}" has already been used with this registry`);if(this._definitionsByClass.get(E)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let A=E.prototype.attributeChangedCallback,F=new Set(E.observedAttributes||[]);m(E,F,A);let Z={elementClass:E,connectedCallback:E.prototype.connectedCallback,disconnectedCallback:E.prototype.disconnectedCallback,adoptedCallback:E.prototype.adoptedCallback,attributeChangedCallback:A,formAssociated:E.formAssociated,formAssociatedCallback:E.prototype.formAssociatedCallback,formDisabledCallback:E.prototype.formDisabledCallback,formResetCallback:E.prototype.formResetCallback,formStateRestoreCallback:E.prototype.formStateRestoreCallback,observedAttributes:F};this._definitionsByTag.set(C,Z),this._definitionsByClass.set(E,Z);let J=e.call(i,C);J||(J=f(C),t.call(i,C,J)),this===window.customElements&&(s.set(E,Z),Z.standInClass=J);let tt=this._awaitingUpgrade.get(C);if(tt){this._awaitingUpgrade.delete(C);for(let y of tt)a.delete(y),S(y,Z,!0)}let D=this._whenDefinedPromises.get(C);return D!==void 0&&(D.resolve(E),this._whenDefinedPromises.delete(C)),E}upgrade(){$.push(this),i.upgrade.apply(i,arguments),$.pop()}get(C){return this._definitionsByTag.get(C)?.elementClass}_getDefinition(C){return this._definitionsByTag.get(C)}whenDefined(C){let E=this._getDefinition(C);if(E!==void 0)return Promise.resolve(E.elementClass);let A=this._whenDefinedPromises.get(C);return A===void 0&&(A={},A.promise=new Promise(F=>A.resolve=F),this._whenDefinedPromises.set(C,A)),A.promise}_upgradeWhenDefined(C,E,A){let F=this._awaitingUpgrade.get(E);F||this._awaitingUpgrade.set(E,F=new Set),A?F.add(C):F.delete(C)}};let c;window.HTMLElement=function(){let E=c;if(E)return c=void 0,E;let A=s.get(this.constructor);if(!A)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return E=Reflect.construct(r,[],A.standInClass),Object.setPrototypeOf(E,this.constructor.prototype),n.set(E,A),E},window.HTMLElement.prototype=r.prototype;let p=C=>C===document||C instanceof ShadowRoot,h=C=>{let E=C.getRootNode();if(!p(E)){let A=$[$.length-1];if(A instanceof CustomElementRegistry)return A;E=A.getRootNode(),p(E)||(E=l.get(E)?.getRootNode()||document)}return E.customElements},f=C=>class{static get formAssociated(){return!0}constructor(){let A=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(A,HTMLElement.prototype);let F=h(A)||window.customElements,Z=F._getDefinition(C);return Z?S(A,Z):a.set(A,F),A}connectedCallback(){let A=n.get(this);A?A.connectedCallback&&A.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,C,!0)}disconnectedCallback(){let A=n.get(this);A?A.disconnectedCallback&&A.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,C,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let A=n.get(this);A&&A.formAssociated&&A?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let A=n.get(this);A?.formAssociated&&A?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let A=n.get(this);A?.formAssociated&&A?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let A=n.get(this);A?.formAssociated&&A?.formStateRestoreCallback?.apply(this,arguments)}},m=(C,E,A)=>{if(E.size===0||A===void 0)return;let F=C.prototype.setAttribute;F&&(C.prototype.setAttribute=function(tt,D){let y=tt.toLowerCase();if(E.has(y)){let O=this.getAttribute(y);F.call(this,y,D),A.call(this,y,O,D)}else F.call(this,y,D)});let Z=C.prototype.removeAttribute;Z&&(C.prototype.removeAttribute=function(tt){let D=tt.toLowerCase();if(E.has(D)){let y=this.getAttribute(D);Z.call(this,D),A.call(this,D,y,null)}else Z.call(this,D)});let J=C.prototype.toggleAttribute;J&&(C.prototype.toggleAttribute=function(tt,D){let y=tt.toLowerCase();if(E.has(y)){let O=this.getAttribute(y);J.call(this,y,D);let k=this.getAttribute(y);A.call(this,y,O,k)}else J.call(this,y,D)})},v=C=>{let E=Object.getPrototypeOf(C);if(E!==window.HTMLElement)return E===r?Object.setPrototypeOf(C,window.HTMLElement):v(E)},S=(C,E,A=!1)=>{Object.setPrototypeOf(C,E.elementClass.prototype),n.set(C,E),c=C;try{new E.elementClass}catch{v(E.elementClass),new E.elementClass}E.attributeChangedCallback&&E.observedAttributes.forEach(F=>{C.hasAttribute(F)&&E.attributeChangedCallback.call(C,F,null,C.getAttribute(F))}),A&&E.connectedCallback&&C.isConnected&&E.connectedCallback.call(C)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(C){let E=w.apply(this,arguments);return C.customElements&&(E.customElements=C.customElements),E};let $=[document],_=(C,E,A=void 0)=>{let F=(A?Object.getPrototypeOf(A):C.prototype)[E];C.prototype[E]=function(){$.push(this);let Z=F.apply(A||this,arguments);return Z!==void 0&&l.set(Z,this),$.pop(),Z}};_(ShadowRoot,"createElement",document),_(ShadowRoot,"importNode",document),_(Element,"insertAdjacentHTML");let I=(C,E)=>{let A=Object.getOwnPropertyDescriptor(C.prototype,E);Object.defineProperty(C.prototype,E,{...A,set(F){$.push(this),A.set.call(this,F),$.pop()}})};if(I(Element,"innerHTML"),I(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let C=new WeakMap,E=HTMLElement.prototype.attachInternals,A=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...tt){let D=E.call(this,...tt);return C.set(D,this),D},A.forEach(tt=>{let D=window.ElementInternals.prototype,y=D[tt];D[tt]=function(...O){let k=C.get(this);if(n.get(k).formAssociated===!0)return y?.call(this,...O);throw new DOMException(`Failed to execute ${y} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class F extends Array{constructor(D){super(...D),this._elements=D}get value(){return this._elements.find(D=>D.checked===!0)?.value||""}}class Z{constructor(D){let y=new Map;D.forEach((O,k)=>{let j=O.getAttribute("name"),Y=y.get(j)||[];this[+k]=O,Y.push(O),y.set(j,Y)}),this.length=D.length,y.forEach((O,k)=>{O&&(O.length===1?this[k]=O[0]:this[k]=new F(O))})}namedItem(D){return this[D]}}let J=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let tt=J.get.call(this,[]),D=[];for(let y of tt){let O=n.get(y);(!O||O.formAssociated===!0)&&D.push(y)}return new Z(D)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(i!==null)try{t.bind(window.customElements)(e,i,n)}catch(a){console.info(e,i,n,a)}}}var En={};rt(En,{CSSResult:()=>Ir,LitElement:()=>Se,ReactiveElement:()=>se,_$LE:()=>Bp,_$LH:()=>Mp,adoptStyles:()=>ii,css:()=>P,defaultConverter:()=>ni,getCompatibleStyle:()=>po,html:()=>L,isServer:()=>Eh,noChange:()=>ke,notEqual:()=>bn,nothing:()=>H,render:()=>Cn,supportsAdoptingStyleSheets:()=>co,svg:()=>Dp,unsafeCSS:()=>ve});var Vo=globalThis,Go=Vo.ShadowRoot&&(Vo.ShadyCSS===void 0||Vo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ys=Symbol(),qs=new WeakMap,jo=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Ys)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(Go&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=qs.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&qs.set(e,t))}return t}toString(){return this.cssText}},Xs=r=>new jo(typeof r=="string"?r:r+"",void 0,Ys);var un=(r,t)=>{if(Go)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let i=document.createElement("style"),n=Vo.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)}},Ko=Go?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return Xs(e)})(r):r;var{is:gp,defineProperty:bp,getOwnPropertyDescriptor:vp,getOwnPropertyNames:xp,getOwnPropertySymbols:Sp,getPrototypeOf:Op}=Object,Zo=globalThis,Js=Zo.trustedTypes,Cp=Js?Js.emptyScript:"",Ep=Zo.reactiveElementPolyfillSupport,oo=(r,t)=>r,io={toAttribute(r,t){switch(t){case Boolean:r=r?Cp: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}},qo=(r,t)=>!gp(r,t),Qs={attribute:!0,type:String,converter:io,reflect:!1,hasChanged:qo};Symbol.metadata??=Symbol("metadata"),Zo.litPropertyMetadata??=new WeakMap;var rr=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=Qs){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,e);n!==void 0&&bp(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){let{get:n,set:a}=vp(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,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Qs}static _$Ei(){if(this.hasOwnProperty(oo("elementProperties")))return;let t=Op(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(oo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(oo("properties"))){let e=this.properties,i=[...xp(e),...Sp(e)];for(let n of i)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[i,n]of e)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[e,i]of this.elementProperties){let n=this._$Eu(e,i);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)e.unshift(Ko(n))}else t!==void 0&&e.push(Ko(t));return e}static _$Eu(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i: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 i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return un(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,i){this._$AK(t,i)}_$EO(t,e){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:io).toAttribute(e,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let i=this.constructor,n=i._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:io;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??qo)(n?a:this[t],e))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.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 i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i)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(i=>i.hostUpdate?.()),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}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){}};rr.elementStyles=[],rr.shadowRootOptions={mode:"open"},rr[oo("elementProperties")]=new Map,rr[oo("finalized")]=new Map,Ep?.({ReactiveElement:rr}),(Zo.reactiveElementVersions??=[]).push("2.0.2");var hn=globalThis,Yo=hn.trustedTypes,tl=Yo?Yo.createPolicy("lit-html",{createHTML:r=>r}):void 0,mn="$lit$",be=`lit$${(Math.random()+"").slice(9)}$`,yn="?"+be,wp=`<${yn}>`,nr=document,Xo=()=>nr.createComment(""),ao=r=>r===null||typeof r!="object"&&typeof r!="function",al=Array.isArray,sl=r=>al(r)||typeof r?.[Symbol.iterator]=="function",fn=`[
3
+ \f\r]`,no=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,el=/-->/g,rl=/>/g,or=RegExp(`>|${fn}(?:([^\\s"'>=/]+)(${fn}*=${fn}*(?:[^
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ol=/'/g,il=/"/g,ll=/^(?:script|style|textarea|title)$/i,cl=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),dl=cl(1),pl=cl(2),jt=Symbol.for("lit-noChange"),ht=Symbol.for("lit-nothing"),nl=new WeakMap,ir=nr.createTreeWalker(nr,129);function ul(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return tl!==void 0?tl.createHTML(t):t}var fl=(r,t)=>{let e=r.length-1,i=[],n,a=t===2?"<svg>":"",s=no;for(let l=0;l<e;l++){let c=r[l],p,h,f=-1,m=0;for(;m<c.length&&(s.lastIndex=m,h=s.exec(c),h!==null);)m=s.lastIndex,s===no?h[1]==="!--"?s=el:h[1]!==void 0?s=rl:h[2]!==void 0?(ll.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=or):h[3]!==void 0&&(s=or):s===or?h[0]===">"?(s=n??no,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?or:h[3]==='"'?il:ol):s===il||s===ol?s=or:s===el||s===rl?s=no:(s=or,n=void 0);let v=s===or&&r[l+1].startsWith("/>")?" ":"";a+=s===no?c+wp:f>=0?(i.push(p),c.slice(0,f)+mn+c.slice(f)+be+v):c+be+(f===-2?l:v)}return[ul(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),i]},so=class r{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,c=this.parts,[p,h]=fl(t,e);if(this.el=r.createElement(p,i),ir.currentNode=this.el.content,e===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=ir.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(mn)){let m=h[s++],v=n.getAttribute(f).split(be),S=/([.?@])?(.*)/.exec(m);c.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?Qo:S[1]==="?"?ti:S[1]==="@"?ei:sr}),n.removeAttribute(f)}else f.startsWith(be)&&(c.push({type:6,index:a}),n.removeAttribute(f));if(ll.test(n.tagName)){let f=n.textContent.split(be),m=f.length-1;if(m>0){n.textContent=Yo?Yo.emptyScript:"";for(let v=0;v<m;v++)n.append(f[v],Xo()),ir.nextNode(),c.push({type:2,index:++a});n.append(f[m],Xo())}}}else if(n.nodeType===8)if(n.data===yn)c.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(be,f+1))!==-1;)c.push({type:7,index:a}),f+=be.length-1}a++}}static createElement(t,e){let i=nr.createElement("template");return i.innerHTML=t,i}};function ar(r,t,e=r,i){if(t===jt)return t;let n=i!==void 0?e._$Co?.[i]:e._$Cl,a=ao(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,i)),i!==void 0?(e._$Co??=[])[i]=n:e._$Cl=n),n!==void 0&&(t=ar(r,n._$AS(r,t.values),n,i)),t}var Jo=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:i}=this._$AD,n=(t?.creationScope??nr).importNode(e,!0);ir.currentNode=n;let a=ir.nextNode(),s=0,l=0,c=i[0];for(;c!==void 0;){if(s===c.index){let p;c.type===2?p=new lo(a,a.nextSibling,this,t):c.type===1?p=new c.ctor(a,c.name,c.strings,this,t):c.type===6&&(p=new ri(a,this,t)),this._$AV.push(p),c=i[++l]}s!==c?.index&&(a=ir.nextNode(),s++)}return ir.currentNode=nr,n}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},lo=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=ht,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,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=ar(this,t,e),ao(t)?t===ht||t==null||t===""?(this._$AH!==ht&&this._$AR(),this._$AH=ht):t!==this._$AH&&t!==jt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):sl(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!==ht&&ao(this._$AH)?this._$AA.nextSibling.data=t:this.$(nr.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=so.createElement(ul(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new Jo(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=nl.get(t.strings);return e===void 0&&nl.set(t.strings,e=new so(t)),e}T(t){al(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,n=0;for(let a of t)n===e.length?e.push(i=new r(this.k(Xo()),this.k(Xo()),this,this.options)):i=e[n],i._$AI(a),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},sr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,a){this.type=1,this._$AH=ht,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ht}_$AI(t,e=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=ar(this,t,e,0),s=!ao(t)||t!==this._$AH&&t!==jt,s&&(this._$AH=t);else{let l=t,c,p;for(t=a[0],c=0;c<a.length-1;c++)p=ar(this,l[i+c],e,c),p===jt&&(p=this._$AH[c]),s||=!ao(p)||p!==this._$AH[c],p===ht?t=ht:t!==ht&&(t+=(p??"")+a[c+1]),this._$AH[c]=p}s&&!n&&this.O(t)}O(t){t===ht?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Qo=class extends sr{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ht?void 0:t}},ti=class extends sr{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ht)}},ei=class extends sr{constructor(t,e,i,n,a){super(t,e,i,n,a),this.type=5}_$AI(t,e=this){if((t=ar(this,t,e,0)??ht)===jt)return;let i=this._$AH,n=t===ht&&i!==ht||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==ht&&(i===ht||n);n&&this.element.removeEventListener(this.name,this,i),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)}},ri=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ar(this,t)}},hl={j:mn,P:be,A:yn,C:1,M:fl,L:Jo,R:sl,V:ar,D:lo,I:sr,H:ti,N:ei,U:Qo,B:ri},Ap=hn.litHtmlPolyfillSupport;Ap?.(so,lo),(hn.litHtmlVersions??=[]).push("3.1.0");var oi=globalThis,co=oi.ShadowRoot&&(oi.ShadyCSS===void 0||oi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gn=Symbol(),ml=new WeakMap,Ir=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==gn)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(co&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=ml.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&ml.set(e,t))}return t}toString(){return this.cssText}},ve=r=>new Ir(typeof r=="string"?r:r+"",void 0,gn),P=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((i,n,a)=>i+(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 Ir(e,r,gn)},ii=(r,t)=>{if(co)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let i=document.createElement("style"),n=oi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)}},po=co?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return ve(e)})(r):r;var{is:Rp,defineProperty:_p,getOwnPropertyDescriptor:Np,getOwnPropertyNames:Tp,getOwnPropertySymbols:Ip,getPrototypeOf:$p}=Object,ai=globalThis,yl=ai.trustedTypes,Pp=yl?yl.emptyScript:"",Lp=ai.reactiveElementPolyfillSupport,uo=(r,t)=>r,ni={toAttribute(r,t){switch(t){case Boolean:r=r?Pp: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}},bn=(r,t)=>!Rp(r,t),gl={attribute:!0,type:String,converter:ni,reflect:!1,hasChanged:bn};Symbol.metadata??=Symbol("metadata"),ai.litPropertyMetadata??=new WeakMap;var se=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=gl){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,e);n!==void 0&&_p(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){let{get:n,set:a}=Np(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,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??gl}static _$Ei(){if(this.hasOwnProperty(uo("elementProperties")))return;let t=$p(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(uo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(uo("properties"))){let e=this.properties,i=[...Tp(e),...Ip(e)];for(let n of i)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[i,n]of e)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[e,i]of this.elementProperties){let n=this._$Eu(e,i);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)e.unshift(po(n))}else t!==void 0&&e.push(po(t));return e}static _$Eu(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i: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 i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ii(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,i){this._$AK(t,i)}_$EO(t,e){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:ni).toAttribute(e,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let i=this.constructor,n=i._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:ni;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??bn)(n?a:this[t],e))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.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 i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i)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(i=>i.hostUpdate?.()),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}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){}};se.elementStyles=[],se.shadowRootOptions={mode:"open"},se[uo("elementProperties")]=new Map,se[uo("finalized")]=new Map,Lp?.({ReactiveElement:se}),(ai.reactiveElementVersions??=[]).push("2.0.2");var xn=globalThis,si=xn.trustedTypes,bl=si?si.createPolicy("lit-html",{createHTML:r=>r}):void 0,Sn="$lit$",xe=`lit$${(Math.random()+"").slice(9)}$`,On="?"+xe,kp=`<${On}>`,dr=document,ho=()=>dr.createComment(""),mo=r=>r===null||typeof r!="object"&&typeof r!="function",El=Array.isArray,wl=r=>El(r)||typeof r?.[Symbol.iterator]=="function",vn=`[
5
5
  \f\r]`,fo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vl=/-->/g,xl=/>/g,lr=RegExp(`>|${vn}(?:([^\\s"'>=/]+)(${vn}*=${vn}*(?:[^
6
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Sl=/'/g,Ol=/"/g,Al=/^(?:script|style|textarea|title)$/i,Rl=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),$=Rl(1),Dp=Rl(2),Lt=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),wl=new WeakMap,cr=dr.createTreeWalker(dr,129);function _l(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return bl!==void 0?bl.createHTML(e):e}var Tl=(r,e)=>{let t=r.length-1,o=[],n,a=e===2?"<svg>":"",s=fo;for(let l=0;l<t;l++){let c=r[l],p,h,f=-1,m=0;for(;m<c.length&&(s.lastIndex=m,h=s.exec(c),h!==null);)m=s.lastIndex,s===fo?h[1]==="!--"?s=vl:h[1]!==void 0?s=xl:h[2]!==void 0?(Al.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=lr):h[3]!==void 0&&(s=lr):s===lr?h[0]===">"?(s=n??fo,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?lr:h[3]==='"'?Ol:Sl):s===Ol||s===Sl?s=lr:s===vl||s===xl?s=fo:(s=lr,n=void 0);let b=s===lr&&r[l+1].startsWith("/>")?" ":"";a+=s===fo?c+Lp:f>=0?(o.push(p),c.slice(0,f)+Sn+c.slice(f)+xt+b):c+xt+(f===-2?l:b)}return[_l(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),o]},go=class r{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[p,h]=Tl(e,t);if(this.el=r.createElement(p,o),cr.currentNode=this.el.content,t===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=cr.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(Sn)){let m=h[s++],b=n.getAttribute(f).split(xt),v=/([.?@])?(.*)/.exec(m);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?ci:v[1]==="?"?di:v[1]==="@"?pi:ur}),n.removeAttribute(f)}else f.startsWith(xt)&&(c.push({type:6,index:a}),n.removeAttribute(f));if(Al.test(n.tagName)){let f=n.textContent.split(xt),m=f.length-1;if(m>0){n.textContent=si?si.emptyScript:"";for(let b=0;b<m;b++)n.append(f[b],ho()),cr.nextNode(),c.push({type:2,index:++a});n.append(f[m],ho())}}}else if(n.nodeType===8)if(n.data===On)c.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(xt,f+1))!==-1;)c.push({type:7,index:a}),f+=xt.length-1}a++}}static createElement(e,t){let o=dr.createElement("template");return o.innerHTML=e,o}};function pr(r,e,t=r,o){if(e===Lt)return e;let n=o!==void 0?t._$Co?.[o]:t._$Cl,a=mo(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=n:t._$Cl=n),n!==void 0&&(e=pr(r,n._$AS(r,e.values),n,o)),e}var li=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,n=(e?.creationScope??dr).importNode(t,!0);cr.currentNode=n;let a=cr.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let p;c.type===2?p=new Pr(a,a.nextSibling,this,e):c.type===1?p=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(p=new ui(a,this,e)),this._$AV.push(p),c=o[++l]}s!==c?.index&&(a=cr.nextNode(),s++)}return cr.currentNode=dr,n}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},Pr=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,n){this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=pr(this,e,t),mo(e)?e===z||e==null||e===""?(this._$AH!==z&&this._$AR(),this._$AH=z):e!==this._$AH&&e!==Lt&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Cl(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==z&&mo(this._$AH)?this._$AA.nextSibling.data=e:this.$(dr.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=go.createElement(_l(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new li(n,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=wl.get(e.strings);return t===void 0&&wl.set(e.strings,t=new go(e)),t}T(e){El(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let a of e)n===t.length?t.push(o=new r(this.k(ho()),this.k(ho()),this,this.options)):o=t[n],o._$AI(a),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ur=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,n,a){this.type=1,this._$AH=z,this._$AN=void 0,this.element=e,this.name=t,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=z}_$AI(e,t=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=pr(this,e,t,0),s=!mo(e)||e!==this._$AH&&e!==Lt,s&&(this._$AH=e);else{let l=e,c,p;for(e=a[0],c=0;c<a.length-1;c++)p=pr(this,l[o+c],t,c),p===Lt&&(p=this._$AH[c]),s||=!mo(p)||p!==this._$AH[c],p===z?e=z:e!==z&&(e+=(p??"")+a[c+1]),this._$AH[c]=p}s&&!n&&this.O(e)}O(e){e===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ci=class extends ur{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===z?void 0:e}},di=class extends ur{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==z)}},pi=class extends ur{constructor(e,t,o,n,a){super(e,t,o,n,a),this.type=5}_$AI(e,t=this){if((e=pr(this,e,t,0)??z)===Lt)return;let o=this._$AH,n=e===z&&o!==z||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==z&&(o===z||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ui=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){pr(this,e)}},Mp={j:Sn,P:xt,A:On,C:1,M:Tl,L:li,R:Cl,V:pr,D:Pr,I:ur,H:di,N:pi,U:ci,B:ui},Up=xn.litHtmlPolyfillSupport;Up?.(go,Pr),(xn.litHtmlVersions??=[]).push("3.1.0");var wn=(r,e,t)=>{let o=t?.renderBefore??e,n=o._$litPart$;if(n===void 0){let a=t?.renderBefore??null;o._$litPart$=n=new Pr(e.insertBefore(ho(),a),a,void 0,t??{})}return n._$AI(r),n};var St=class extends st{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=wn(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Lt}};St._$litElement$=!0,St.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:St});var Fp=globalThis.litElementPolyfillSupport;Fp?.({LitElement:St});var Bp={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var wh=!1;var An={};re(An,{customElement:()=>zp,eventOptions:()=>Ot,property:()=>y,query:()=>X,queryAll:()=>Vp,queryAssignedElements:()=>Cn,queryAssignedNodes:()=>yo,queryAsync:()=>jp,standardProperty:()=>Nl,state:()=>H});var zp=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)};var Hp={attribute:!0,type:String,converter:io,reflect:!1,hasChanged:qo},Nl=(r=Hp,e,t)=>{let{kind:o,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(t.name,r),o==="accessor"){let{name:s}=t;return{set(l){let c=e.get.call(this);e.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}=t;return function(l){let c=this[s];e.call(this,l),this.requestUpdate(s,c,r)}}throw Error("Unsupported decorator location: "+o)};function y(r){return(e,t)=>typeof t=="object"?Nl(r,e,t):((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,e,t)}function H(r){return y({...r,state:!0,attribute:!1})}function Ot(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var Je=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function X(r,e){return(t,o,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof o=="object"?t:n??(()=>{let c=Symbol();return{get(){return this[c]},set(p){this[c]=p}}})();return Je(t,o,{get(){let c=s.call(this);return c===void 0&&(c=a(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return Je(t,o,{get(){return a(this)}})}}var Wp;function Vp(r){return(e,t)=>Je(e,t,{get(){return(this.renderRoot??(Wp??=document.createDocumentFragment())).querySelectorAll(r)}})}function jp(r){return(e,t)=>Je(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function Cn(r){return(e,t)=>{let{slot:o,selector:n}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return Je(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(c=>c.matches(n))}})}}function yo(r){return(e,t)=>{let{slot:o}=r??{},n="slot"+(o?`[name=${o}]`:":not([name])");return Je(e,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var _n={};re(_n,{repeat:()=>Rn});var Dt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Mt=r=>(...e)=>({_$litDirective$:r,values:e}),lt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{D:Kp}=hl;var Il=()=>document.createComment(""),$r=(r,e,t)=>{let o=r._$AA.parentNode,n=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=o.insertBefore(Il(),n),s=o.insertBefore(Il(),n);t=new Kp(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let c;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(c=r._$AU)!==s._$AU&&t._$AP(c)}if(a!==n||l){let c=t._$AA;for(;c!==a;){let p=c.nextSibling;o.insertBefore(c,n),c=p}}}return t},Ut=(r,e,t=r)=>(r._$AI(e,t),r),Gp={},Pl=(r,e=Gp)=>r._$AH=e,$l=r=>r._$AH,fi=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let o=e.nextSibling;e.remove(),e=o}};var kl=(r,e,t)=>{let o=new Map;for(let n=e;n<=t;n++)o.set(r[n],n);return o},Rn=Mt(class extends lt{constructor(r){if(super(r),r.type!==Dt.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);let n=[],a=[],s=0;for(let l of r)n[s]=o?o(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:n}}render(r,e,t){return this.ht(r,e,t).values}update(r,[e,t,o]){let n=$l(r),{values:a,keys:s}=this.ht(e,t,o);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],c=[],p,h,f=0,m=n.length-1,b=0,v=a.length-1;for(;f<=m&&b<=v;)if(n[f]===null)f++;else if(n[m]===null)m--;else if(l[f]===s[b])c[b]=Ut(n[f],a[b]),f++,b++;else if(l[m]===s[v])c[v]=Ut(n[m],a[v]),m--,v--;else if(l[f]===s[v])c[v]=Ut(n[f],a[v]),$r(r,c[v+1],n[f]),f++,v--;else if(l[m]===s[b])c[b]=Ut(n[m],a[b]),$r(r,n[f],n[m]),m--,b++;else if(p===void 0&&(p=kl(s,b,v),h=kl(l,f,m)),p.has(l[f]))if(p.has(l[m])){let w=h.get(s[b]),I=w!==void 0?n[w]:null;if(I===null){let A=$r(r,n[f]);Ut(A,a[b]),c[b]=A}else c[b]=Ut(I,a[b]),$r(r,n[f],I),n[w]=null;b++}else fi(n[m]),m--;else fi(n[f]),f++;for(;b<=v;){let w=$r(r,c[v+1]);Ut(w,a[b]),c[b++]=w}for(;f<=m;){let w=n[f++];w!==null&&fi(w)}return this.dt=s,Pl(r,c),je}});var Tn={};re(Tn,{classMap:()=>$e});var $e=Mt(class extends lt{constructor(r){if(super(r),r.type!==Dt.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in e)e[o]&&!this.st?.has(o)&&this.it.add(o);return this.render(e)}let t=r.element.classList;for(let o of this.it)o in e||(t.remove(o),this.it.delete(o));for(let o in e){let n=!!e[o];n===this.it.has(o)||this.st?.has(o)||(n?(t.add(o),this.it.add(o)):(t.remove(o),this.it.delete(o)))}return je}});var Nn={};re(Nn,{styleMap:()=>qp});var Ll="important",Zp=" !"+Ll,qp=Mt(class extends lt{constructor(r){if(super(r),r.type!==Dt.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((e,t)=>{let o=r[t];return o==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(r,[e]){let{style:t}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(e)),this.render(e);for(let o of this.ut)e[o]==null&&(this.ut.delete(o),o.includes("-")?t.removeProperty(o):t[o]=null);for(let o in e){let n=e[o];if(n!=null){this.ut.add(o);let a=typeof n=="string"&&n.endsWith(Zp);o.includes("-")||a?t.setProperty(o,a?n.slice(0,-11):n,a?Ll:""):t[o]=n}}return je}});var Pn={};re(Pn,{UnsafeHTMLDirective:()=>kr,unsafeHTML:()=>In});var kr=class extends lt{constructor(e){if(super(e),this.et=fe,e.type!==Dt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===fe||e==null)return this.vt=void 0,this.et=e;if(e===je)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;let t=[e];return t.raw=t,this.vt={_$litType$:this.constructor.resultType,strings:t,values:[]}}};kr.directiveName="unsafeHTML",kr.resultType=1;var In=Mt(kr);var Ln={};re(Ln,{CacheRegistry:()=>ct});var kn={};re(kn,{CancelablePromise:()=>Lr,CanceledPromiseError:()=>fr,cancelable:()=>$n});var fr=class extends Error{constructor(e,t,o){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=o}},Lr=class extends Promise{constructor(e){super((t,o)=>e(n=>{this.isCanceled?o(new fr("Promise has been canceled",n)):t(n)},n=>{this.isCanceled?o(new fr("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},$n=r=>new Lr((e,t)=>r.then(e).catch(t));var ct=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(e,t){this.loaders[e]=t,this.finalContent.delete(e)}registerFinal(e,t){this.loaders[e]=t,this.finalContent.add(e)}clearAll(){for(let e in this.content)this.clear(e)}clear(e){this.finalContent.has(e)||this.forceClear(e)}forceClear(e){this.clearClearTimeout(e),this.content[e]instanceof Lr&&this.content[e].cancel(),delete this.content[e]}clearClearTimeout(e){this.clearTimeouts[e]!=null&&(window.clearTimeout(this.clearTimeouts[e]),delete this.clearTimeouts[e])}set(e,t){this.forceClear(e),this.register(e,async()=>t),this.content[e]=t}setFinal(e,t){this.forceClear(e),this.registerFinal(e,async()=>t),this.content[e]=t}async get(e,t,o){if(this.content[e]===void 0){if(t=t??this.loaders[e],t==null)throw new Error("Unknown cache key "+e);let n=$n(t());return this.content[e]=n,n.then(a=>(this.content[e]=a,o!=null&&(this.clearClearTimeout(e),this.clearTimeouts[e]=window.setTimeout(()=>this.clear(e),o)),a))}if(this.content[e]instanceof Error)throw this.content[e];return this.content[e]}isResolvedValue(e){return e!=null&&!(e instanceof Promise)&&!(e instanceof Error)}getNow(e){if(this.isResolvedValue(this.content[e]))return this.content[e]}has(e){return this.content[e]!=null}resolvedKeys(){return Object.keys(this.content).filter(e=>this.isResolvedValue(this.content[e]))}resolvedValues(){return Object.values(this.content).filter(e=>this.isResolvedValue(e))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var Dn={};re(Dn,{ClusteringHelper:()=>bo});var bo=class r{constructor(e,t,o,n){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=o,this.metadataDescriptors=n}static extractResultMetadata(e,t){var o,n;let a=((n=(o=e?.map)!==null&&o!==void 0?o:e?.document)!==null&&n!==void 0?n:e?.topic).metadata;return t==null?r.flattenMetadata(a):r.flattenMetadata(a.find(s=>s.key===t))}static flattenMetadata(e){if(Array.isArray(e))return e.map(o=>r.flattenMetadata(o)).filter(o=>o!=null);let t=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!t))if(t){let o=[],n=[];return e.hierarchicalValues.forEach(a=>{o.push(a.join(" > ")),a.length>2?n.push(`... > ${a[a.length-1]}`):n.push(a.join(" > "))}),{key:e.key,label:e.label,value:o.join(", "),displayValue:n.join(", ")}}else{let o=e.values.join(", ");return{key:e.key,label:e.label,value:o,displayValue:o}}}computeClustersItemsForMetadata(e,t,o="No value"){var n,a;let s=r.extractResultMetadata(this.selectedResult,e),l=(n=s?.label)!==null&&n!==void 0?n:(a=this.getMetadataDescriptor(e))===null||a===void 0?void 0:a.label;return this.allResults.map(p=>r.extractResultMetadata(p,e)).map(p=>p??{key:e,label:l,value:void 0,displayValue:o}).filter(p=>p.value!=s?.value).filter((p,h,f)=>f.findIndex(m=>m.value===p.value)===h).map(p=>({result:this.findBestResultForMetadataValue(e,p.value),metadata:p})).sort((p,h)=>this.compareMetadata(p.metadata.value,h.metadata.value,e,t))}compareMetadata(e,t,o,n){if(e==null)return-1;if(t==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let c=e.localeCompare(t,n,{numeric:!0});return l?c*-1:c}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let o=this.allResults.filter(c=>{var p;return((p=r.extractResultMetadata(c,e))===null||p===void 0?void 0:p.value)==t}),a=[...r.extractResultMetadata(this.selectedResult).filter(c=>this.clusteringMetadata.has(c.key)).filter(c=>c.key!==e)],s,l=-1;for(let c of o){let p=this.countMatchingMetadata(c,a);if(p>l&&(l=p,s=c,p===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata(e).filter(o=>t.some(n=>n.key===o.key&&n.value===o.value)).length}};var Mn={};re(Mn,{Debouncer:()=>ae});var ae=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,o)=>{this.resolvePromise=t,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let o=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(t=this.resolvePromise)!==null&&t!==void 0?t:()=>null;this.clearPromise();for(let s of o)try{await s()}catch(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 zn={};re(zn,{customElement:()=>K,isNumber:()=>Ml,jsonProperty:()=>dt,optionalNumberProperty:()=>eu});var Bn={};re(Bn,{dateReviver:()=>Yp,deepEqual:()=>Qe,delay:()=>hi,eventPathContainsMatchingElement:()=>Jp,flatDeep:()=>Dl,hasChanged:()=>xo,last:()=>Qp,minmax:()=>Fn,parseDate:()=>mi,waitFor:()=>vo,waitUntil:()=>Un});var hi=r=>new Promise(e=>setTimeout(e,r));async function Un(r,e=10,t=2e4){await vo(async()=>await r()||void 0,e,t)}async function vo(r,e=10,t=2e4){let o=await r(),n,a;for(n=a=performance.now();o==null&&(!t||a-n<t);)await hi(e),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function Dl(r,e){return r.flatMap(t=>[t,...Dl(e(t),e)])}function Yp(...r){return function(e,t){return r.includes(e)?mi(t):t}}function mi(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,o,n)=>t+o+":"+n),new Date(r)}function Xp(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;var t,o,n;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(o=t;o--!==0;)if(!Qe(r[o],e[o]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;for(o of r.entries())if(!Qe(o[1],e.get(o[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();if(n=Object.keys(r),t=n.length,t!==Object.keys(e).length)return!1;for(o=t;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=t;o--!==0;){var a=n[o];if(!Qe(r[a],e[a]))return!1}return!0}return r!==r&&e!==e}function Qe(r,e){try{return Xp(r,e)}catch{return!1}}function xo(r,e){return!Qe(r,e)}function Jp(r,e,t=window.document.body){if(e.length>0){let o=r.composedPath();for(let n of o){if(n===t)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function Fn(r,e,t){return Math.min(Math.max(r,e),t)}function Qp(r){return r[r.length-1]}var K=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)};function dt(r,e){let t=()=>JSON.parse(JSON.stringify(r));return y({type:Object,converter:{fromAttribute:o=>{if(o==null)return t();try{return JSON.parse(o)}catch{return t()}},toAttribute:o=>JSON.stringify(o)},hasChanged:xo,...e??{}})}function eu(r){return y({type:Object,converter:{fromAttribute:e=>{if(e!=null)return Ml(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...r??{}})}function Ml(r){return!isNaN(parseFloat(r))}var ga={};re(ga,{designSystemVariables:()=>_});var ma={};re(ma,{DesignSystemFamily:()=>hr,DesignSystemSize:()=>Et,FtCssVariableFactory:()=>i,badge:()=>au,banner:()=>nu,breadcrumb:()=>su,button:()=>R,chart:()=>xu,checkbox:()=>Ou,chip:()=>ou,chipChoice:()=>ru,collapsible:()=>bu,comboboxMultiSelect:()=>gu,comboboxSingleSelect:()=>mu,drawer:()=>du,floatingMenu:()=>hu,foundation:()=>d,link:()=>iu,modal:()=>cu,notice:()=>Su,notification:()=>Cu,pageHeader:()=>lu,popover:()=>yu,radio:()=>Eu,resolveFamilyClass:()=>fa,resolveSizeClass:()=>ha,semantic:()=>u,setVariable:()=>C,switch_:()=>vu,tabs:()=>pu,textArea:()=>fu,textInput:()=>uu,toggle:()=>wu,tooltip:()=>Au,typographies:()=>So,typographyBody1Medium:()=>Gn,typographyBody1Regular:()=>Kn,typographyBody1Semibold:()=>Zn,typographyBody2Medium:()=>Yn,typographyBody2MediumUnderline:()=>Ul,typographyBody2Regular:()=>qn,typographyBody2Semibold:()=>Xn,typographyCaption1Bold:()=>aa,typographyCaption1Medium:()=>ia,typographyCaption1Semibold:()=>na,typographyCaption2Bold:()=>ca,typographyCaption2Medium:()=>sa,typographyCaption2Semibold:()=>la,typographyCaption3Bold:()=>ua,typographyCaption3Medium:()=>da,typographyCaption3Semibold:()=>pa,typographyDisplay:()=>Hn,typographyLabel1Bold:()=>ea,typographyLabel1Medium:()=>Jn,typographyLabel1Semibold:()=>Qn,typographyLabel2Bold:()=>oa,typographyLabel2Medium:()=>ta,typographyLabel2Semibold:()=>ra,typographyTitle1:()=>Wn,typographyTitle2:()=>Vn,typographyTitle3:()=>jn,typographyVariants:()=>tu});var wt=r=>typeof r=="string"?vt(r):r,i=class{static create(e,t,o,n){let a=l=>wt(l??n),s=P`var(${wt(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${wt(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,t,o,n){let a=l=>o.get(l??n),s=P`var(${wt(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${wt(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(e,t){let o=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):wt(a??e.lastResortDefaultValue()),n=P`var(${wt(e.name)}, ${o(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=t,n.defaultCssValue=o,n.get=a=>P`var(${wt(e.name)}, ${o(a)})`,n.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function C(r,e){return wt(`${r.name}: ${e}`)}var d={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"),opacity32:i.create("--ft-opacity-32","","NUMBER","0.32"),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)")},Hn={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")},Wn={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")},Vn={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")},jn={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")},Gn={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")},Zn={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")},qn={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")},Yn={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")},Ul={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")},Xn={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")},Jn={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")},Qn={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")},ea={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")},ta={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")},ra={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")},oa={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")},ia={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")},na={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")},aa={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")},sa={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")},la={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")},ca={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")},da={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")},pa={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")},ua={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")},So={display:Hn,"title-1":Wn,"title-2":Vn,"title-3":jn,"body-1-regular":Kn,"body-1-medium":Gn,"body-1-semibold":Zn,"body-2-regular":qn,"body-2-medium":Yn,"body-2-medium-underline":Ul,"body-2-semibold":Xn,"label-1-medium":Jn,"label-1-semibold":Qn,"label-1-bold":ea,"label-2-medium":ta,"label-2-semibold":ra,"label-2-bold":oa,"caption-1-medium":ia,"caption-1-semibold":na,"caption-1-bold":aa,"caption-2-medium":sa,"caption-2-semibold":la,"caption-2-bold":ca,"caption-3-medium":da,"caption-3-semibold":pa,"caption-3-bold":ua},tu=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var u={backgroundActionPrimary:i.extend("--ft-background-action-primary","Used as backgorund of primary action components.",d.colorBrand0),backgroundErrorSubtle:i.extend("--ft-background-error-subtle","Used as background of subtle error components.",d.colorRed10),backgroundInfoSubtle:i.extend("--ft-background-info-subtle","Used as background of subtle information components.",d.colorCyan10),backgroundWarningSubtle:i.extend("--ft-background-warning-subtle","Used as background of subtle information components.",d.colorOrange10),backgroundSuccessSubtle:i.extend("--ft-background-success-subtle","Used as background of subtle success components.",d.colorGreen10),backgroundGlobalSurface:i.extend("--ft-background-global-surface","Used as app background.",d.colorWhite),backgroundGlobalOnSurface:i.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",d.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",d.colorGray30),contentActionPrimary:i.extend("--ft-content-action-primary","Used on label of primary action on light surface.",d.colorBrand0),contentWarningPrimary:i.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",d.colorOrange200),contentWarningIconOnly:i.extend("--ft-content-warning-icon-only","Used on warning status icons alone",d.colorOrange0),contentErrorPrimary:i.extend("--ft-content-error-primary","Used on label of error messages on light surface.",d.colorRed0),contentErrorIconOnly:i.extend("--ft-content-error-icon-only","Used on error status icons alone",d.colorRed70),contentInfoPrimary:i.extend("--ft-content-info-primary","Used on label of information messages on light surface.",d.colorCyan200),contentInfoIconOnly:i.extend("--ft-content-info-icon-only","Used on info status icons alone",d.colorCyan0),contentSuccessPrimary:i.extend("--ft-content-success-primary","Used on label of success messages on light surface.",d.colorGreen200),contentSuccessIconOnly:i.extend("--ft-content-success-icon-only","Used on success status icons alone",d.colorGreen0),contentGlobalPrimary:i.extend("--ft-content-global-primary","Used for main content on the page.",d.colorGray500),contentGlobalSecondary:i.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
7
- Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",d.colorGray0),contentGlobalOnColor:i.extend("--ft-content-global-on-color","Used for content on a dominant color.",d.colorWhite),borderActionPrimary:i.extend("--ft-border-action-primary","Used as border for primary action components.",d.colorBrand0),borderActionFocusRing:i.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",d.colorCyan0),borderWarningPrimary:i.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",d.colorOrange200),borderWarningSubtle:i.extend("--ft-border-warning-subtle","Used as border for warning components.",d.colorOrange30),borderSuccessPrimary:i.extend("--ft-border-success-primary","Used as border for success buttons.",d.colorGreen200),borderSuccessSubtle:i.extend("--ft-border-success-subtle","Used as border for success components.",d.colorGreen30),borderErrorPrimary:i.extend("--ft-border-error-primary","Used as border for text fields in error states.",d.colorRed0),borderErrorSubtle:i.extend("--ft-border-error-subtle","Used as border for error components.",d.colorRed30),borderInfoPrimary:i.extend("--ft-border-info-primary","Used as border for buttons in info color.",d.colorCyan200),borderInfoSubtle:i.extend("--ft-border-info-subtle","Used as border for information components.",d.colorCyan30),borderGlobalPrimary:i.extend("--ft-border-global-primary","Used as border for element like input.",d.colorGray50),borderGlobalSubtle:i.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",d.colorGray30),borderInputPrimary:i.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",d.colorGray80)};var R={largeHeight:i.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ft-button-large-horizontal-padding","",d.spacing4),largeGap:i.extend("--ft-button-large-gap","",d.spacing2),largeBorderRadius:i.extend("--ft-button-large-border-radius","",d.borderRadiusS),largeIconSize:i.extend("--ft-button-large-icon-size","",d.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","",d.spacing3),mediumGap:i.extend("--ft-button-medium-gap","",d.spacing2),mediumBorderRadius:i.extend("--ft-button-medium-border-radius","",d.borderRadiusS),mediumIconSize:i.extend("--ft-button-medium-icon-size","",d.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","",d.spacing2),smallGap:i.extend("--ft-button-small-gap","",d.spacing1),smallBorderRadius:i.extend("--ft-button-small-border-radius","",d.borderRadiusS),smallIconSize:i.extend("--ft-button-small-icon-size","",d.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","",d.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","",d.borderRadiusPill),primaryBackgroundColor:i.extend("--ft-button-primary-background-color","",u.backgroundActionPrimary),primaryColor:i.extend("--ft-button-primary-color","",u.contentGlobalOnColor),primaryIconColor:i.extend("--ft-button-primary-icon-color","",u.contentGlobalOnColor),primaryStateLayerColor:i.extend("--ft-button-primary-state-layer-color","",u.contentGlobalOnColor),primaryHoverStateLayerOpacity:i.extend("--ft-button-primary-hover-state-layer-opacity","",d.opacity16),primaryFocusStateLayerOpacity:i.extend("--ft-button-primary-focus-state-layer-opacity","",d.opacity16),primaryActiveStateLayerOpacity:i.extend("--ft-button-primary-active-state-layer-opacity","",d.opacity24),primaryDisabledComponentOpacity:i.extend("--ft-button-primary-disabled-component-opacity","",d.opacity40),focusFocusRingColor:i.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBackgroundColor:i.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:i.extend("--ft-button-tertiary-color","",u.contentActionPrimary),tertiaryIconColor:i.extend("--ft-button-tertiary-icon-color","",u.contentActionPrimary),tertiaryStateLayerColor:i.extend("--ft-button-tertiary-state-layer-color","",u.contentActionPrimary),tertiaryHoverStateLayerOpacity:i.extend("--ft-button-tertiary-hover-state-layer-opacity","",d.opacity8),tertiaryFocusStateLayerOpacity:i.extend("--ft-button-tertiary-focus-state-layer-opacity","",d.opacity8),tertiaryActiveStateLayerOpacity:i.extend("--ft-button-tertiary-active-state-layer-opacity","",d.opacity16),tertiaryDisabledComponentOpacity:i.extend("--ft-button-tertiary-disabled-component-opacity","",d.opacity40),secondaryBackgroundColor:i.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:i.extend("--ft-button-secondary-color","",u.contentActionPrimary),secondaryIconColor:i.extend("--ft-button-secondary-icon-color","",u.contentActionPrimary),secondaryStateLayerColor:i.extend("--ft-button-secondary-state-layer-color","",u.contentActionPrimary),secondaryHoverStateLayerOpacity:i.extend("--ft-button-secondary-hover-state-layer-opacity","",d.opacity8),secondaryFocusStateLayerOpacity:i.extend("--ft-button-secondary-focus-state-layer-opacity","",d.opacity8),secondaryActiveStateLayerOpacity:i.extend("--ft-button-secondary-active-state-layer-opacity","",d.opacity16),secondaryDisabledComponentOpacity:i.extend("--ft-button-secondary-disabled-component-opacity","",d.opacity40),secondaryBorderColor:i.extend("--ft-button-secondary-border-color","",u.borderActionPrimary),neutralBackgroundColor:i.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:i.extend("--ft-button-neutral-icon-color","",u.contentGlobalSecondary),neutralColor:i.extend("--ft-button-neutral-color","",u.contentGlobalSecondary),neutralStateLayerColor:i.extend("--ft-button-neutral-state-layer-color","",u.contentGlobalSecondary),neutralHoverStateLayerOpacity:i.extend("--ft-button-neutral-hover-state-layer-opacity","",d.opacity8),neutralFocusStateLayerOpacity:i.extend("--ft-button-neutral-focus-state-layer-opacity","",d.opacity8),neutralActiveStateLayerOpacity:i.extend("--ft-button-neutral-active-state-layer-opacity","",d.opacity16),neutralDisabledComponentOpacity:i.extend("--ft-button-neutral-disabled-component-opacity","",d.opacity40)};var ru={neutralOffHoverStateLayerOpacity:i.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",d.opacity8),neutralOffFocusStateLayerOpacity:i.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",d.opacity8),neutralOffFocusFocusRingColor:i.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:i.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",d.opacity16),neutralOffBackgroundColor:i.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:i.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:i.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:i.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:i.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",d.opacity16),neutralOnHoverStateLayerOpacity:i.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",d.opacity24),neutralOnFocusStateLayerOpacity:i.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",d.opacity24),neutralOnFocusFocusRingColor:i.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:i.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",d.opacity32),neutralOnBackgroundColor:i.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:i.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:i.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:i.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:i.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:i.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ft-chip-choice-large-horizontal-padding","",d.spacing3),largeGap:i.extend("--ft-chip-choice-large-gap","",d.spacing1),largeBorderRadius:i.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ft-chip-choice-large-icon-size","",d.iconSize3),mediumMinHeight:i.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ft-chip-choice-medium-horizontal-padding","",d.spacing2),mediumGap:i.extend("--ft-chip-choice-medium-gap","",d.spacing1),mediumBorderRadius:i.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ft-chip-choice-medium-icon-size","",d.iconSize2)};var ou={largeMinHeight:i.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ft-chip-large-horizontal-padding","",d.spacing3),largeButtonRightPadding:i.extend("--ft-chip-large-button-right-padding","",d.spacing1),largeGap:i.extend("--ft-chip-large-gap","",d.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","",d.iconSize3),mediumMinHeight:i.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ft-chip-medium-horizontal-padding","",d.spacing2),mediumButtonRightPadding:i.extend("--ft-chip-medium-button-right-padding","",d.spacing05),mediumGap:i.extend("--ft-chip-medium-gap","",d.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","",d.iconSize2),smallMinHeight:i.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ft-chip-small-horizontal-padding","",d.spacing1),smallButtonRightPadding:i.extend("--ft-chip-small-button-right-padding","",d.spacing05),smallGap:i.extend("--ft-chip-small-gap","",d.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","",d.iconSize1),neutralBackgroundColor:i.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:i.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:i.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:i.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:i.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)};var iu={brandHoverOpacity:i.extend("--ft-link-brand-hover-opacity","",d.opacity80),brandHoverColor:i.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:i.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:i.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:i.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:i.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:i.extend("--ft-link-info-hover-opacity","",d.opacity80),infoHoverColor:i.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:i.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:i.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:i.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:i.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:i.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:i.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:i.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:i.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:i.extend("--ft-link-neutral-active-color","",u.contentActionPrimary)};var nu={iconSize:i.extend("--ft-banner-icon-size","",d.iconSize5),borderWidth:i.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ft-banner-left-padding","",d.spacing6),rightPadding:i.extend("--ft-banner-right-padding","",d.spacing6),verticalPadding:i.extend("--ft-banner-vertical-padding","",d.spacing6),horizontalSideGap:i.extend("--ft-banner-horizontal-side-gap","",d.spacing6),horizontalMobileGap:i.extend("--ft-banner-horizontal-mobile-gap","",d.spacing4),verticalMobileGap:i.extend("--ft-banner-vertical-mobile-gap","",d.spacing6),horizontalMiddleGap:i.extend("--ft-banner-horizontal-middle-gap","",d.spacing20),infoBackgroundColor:i.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)};var au={horizontalPadding:i.extend("--ft-badge-horizontal-padding","",d.spacing1),verticalPadding:i.extend("--ft-badge-vertical-padding","",d.spacing1),borderRadius:i.extend("--ft-badge-border-radius","",d.borderRadiusPill),color:i.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ft-badge-background-color","",u.contentActionPrimary)};var su={horizontalGap:i.extend("--ft-breadcrumb-horizontal-gap","",d.spacing1),verticalGap:i.extend("--ft-breadcrumb-vertical-gap","",d.spacing2),currentColor:i.extend("--ft-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:i.extend("--ft-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:i.extend("--ft-breadcrumb-icon-color","",u.contentGlobalSubtle)};var lu={horizontalPadding:i.extend("--ft-page-header-horizontal-padding","",d.spacing6),horizontalGap:i.extend("--ft-page-header-horizontal-gap","",d.spacing4),verticalGap:i.extend("--ft-page-header-vertical-gap","",d.spacing2),classicVerticalPadding:i.extend("--ft-page-header-classic-vertical-padding","",d.spacing6),multilineVerticalPadding:i.extend("--ft-page-header-multiline-vertical-padding","",d.spacing4),inlineVerticalPadding:i.extend("--ft-page-header-inline-vertical-padding","",d.spacing2),backgroundColor:i.extend("--ft-page-header-background-color","",d.colorWhite),bottomBorderColor:i.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),titleColor:i.extend("--ft-page-header-title-color","",u.contentGlobalPrimary),subtitleColor:i.extend("--ft-page-header-subtitle-color","",u.contentGlobalSecondary)};var cu={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","",d.colorGray700),overlayOpacity:i.extend("--ft-modal-overlay-opacity","",d.opacity40),shadow:i.extend("--ft-modal-shadow","",d.shadowElevation03),bodyBackgroundColor:i.extend("--ft-modal-body-background-color","",d.colorWhite),bodyColor:i.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-modal-body-horizontal-padding","",d.spacing6),bodyVerticalPadding:i.extend("--ft-modal-body-vertical-padding","",d.spacing6),bodyVerticalGap:i.extend("--ft-modal-body-vertical-gap","",d.spacing6),containerMargin:i.extend("--ft-modal-container-margin","",d.spacing3),headerBackgroundColor:i.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-modal-header-trailing-icon-color","",u.contentGlobalSecondary),headerVerticalPadding:i.extend("--ft-modal-header-vertical-padding","",d.spacing1),headerRightPadding:i.extend("--ft-modal-header-right-padding","",d.spacing1),headerLeftPadding:i.extend("--ft-modal-header-left-padding","",d.spacing6),headerGap:i.extend("--ft-modal-header-gap","",d.spacing2),headerBorderBottom:i.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:i.extend("--ft-modal-border-radius","",d.borderRadiusM)};var du={overlayOpacity:i.extend("--ft-drawer-overlay-opacity","",d.opacity40),shadow:i.extend("--ft-drawer-shadow","",d.shadowElevation03),bodyColor:i.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-drawer-body-horizontal-padding","",d.spacing6),bodyVerticalPadding:i.extend("--ft-drawer-body-vertical-padding","",d.spacing6),bodyGap:i.extend("--ft-drawer-body-gap","",d.spacing6),bodyBackgroundColor:i.extend("--ft-drawer-body-background-color","",d.colorWhite),headerBackgroundColor:i.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:i.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:i.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ft-drawer-header-horizontal-padding","",d.spacing2),headerBorderWidth:i.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ft-drawer-header-gap","",d.spacing3),buttonsBarBackgroundColor:i.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:i.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ft-drawer-buttons-bar-horizontal-padding","",d.spacing6),buttonsBarVerticalPadding:i.extend("--ft-drawer-buttons-bar-vertical-padding","",d.spacing4),buttonsBarGap:i.extend("--ft-drawer-buttons-bar-gap","",d.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","",d.colorGray700)};var pu={offBorderBottomWidth:i.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ft-tabs-off-hover-state-layer-opacity","",d.opacity8),offDefaultStateLayerOpacity:i.extend("--ft-tabs-off-default-state-layer-opacity","",d.opacity0),offFocusStateLayerOpacity:i.extend("--ft-tabs-off-focus-state-layer-opacity","",d.opacity8),offDisabledComponentOpacity:i.extend("--ft-tabs-off-disabled-component-opacity","",d.opacity40),offColor:i.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:i.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:i.extend("--ft-tabs-top-left-border-radius","",d.borderRadiusS),topRightBorderRadius:i.extend("--ft-tabs-top-right-border-radius","",d.borderRadiusS),withLabelHorizontalPadding:i.extend("--ft-tabs-with-label-horizontal-padding","",d.spacing4),withLabelVerticalPadding:i.extend("--ft-tabs-with-label-vertical-padding","",d.spacing3),horizontalGap:i.extend("--ft-tabs-horizontal-gap","",d.spacing1),verticalGap:i.extend("--ft-tabs-vertical-gap","",d.spacing1),onHoverStateLayerOpacity:i.extend("--ft-tabs-on-hover-state-layer-opacity","",d.opacity16),onDefaultStateLayerOpacity:i.extend("--ft-tabs-on-default-state-layer-opacity","",d.opacity8),onFocusStateLayerOpacity:i.extend("--ft-tabs-on-focus-state-layer-opacity","",d.opacity16),onActiveStateLayerOpacity:i.extend("--ft-tabs-on-active-state-layer-opacity","",d.opacity24),onColor:i.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:i.extend("--ft-tabs-icon-only-horizontal-padding","",d.spacing4),iconOnlyVerticalPadding:i.extend("--ft-tabs-icon-only-vertical-padding","",d.spacing4),alertTopPadding:i.extend("--ft-tabs-alert-top-padding","",d.spacing1),alertRightPadding:i.extend("--ft-tabs-alert-right-padding","",d.spacing05),focusOutlineWidth:i.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)};var uu={fieldHorizontalPadding:i.extend("--ft-text-input-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:i.extend("--ft-text-input-field-horizontal-gap","",d.spacing3),fieldVerticalGap:i.extend("--ft-text-input-field-vertical-gap","",d.spacing05),fieldIconSize:i.extend("--ft-text-input-field-icon-size","",d.iconSize3),fieldHeight:i.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-text-input-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:i.extend("--ft-text-input-helper-horizontal-gap","",d.spacing1),helperIconSize:i.extend("--ft-text-input-helper-icon-size","",d.iconSize2),borderRadius:i.extend("--ft-text-input-border-radius","",d.borderRadiusM),backgroundColor:i.extend("--ft-text-input-background-color","",d.colorWhite),contentValueColor:i.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:i.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:i.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-input-default-helper-text-color","",u.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","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-input-error-helper-icon-color","",u.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","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-input-disabled-component-opacity","",d.opacity40)};var fu={backgroundColor:i.extend("--ft-text-area-background-color","",d.colorWhite),contentValueColor:i.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:i.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-area-default-helper-text-color","",u.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","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:i.extend("--ft-text-area-focus-focus-ring-color","",u.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","",d.opacity40),fieldHorizontalLeftPadding:i.extend("--ft-text-area-field-horizontal-left-padding","",d.spacing4),fieldHorizontalGap:i.extend("--ft-text-area-field-horizontal-gap","",d.spacing3),fieldVerticalGap:i.extend("--ft-text-area-field-vertical-gap","",d.spacing05),fieldMinHeight:i.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:i.extend("--ft-text-area-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:i.extend("--ft-text-area-helper-horizontal-gap","",d.spacing1),helperIconSize:i.extend("--ft-text-area-helper-icon-size","",d.iconSize2),borderRadius:i.extend("--ft-text-area-border-radius","",d.borderRadiusM)};var hu={height:i.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:i.extend("--ft-floating-menu-horizontal-padding","",d.spacing4),offIconColor:i.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:i.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:i.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:i.extend("--ft-floating-menu-gap","",d.spacing3),focusFocusRingColor:i.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:i.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ft-floating-menu-focus-state-layer-opacity","",d.opacity8),hoverStateLayerOpacity:i.extend("--ft-floating-menu-hover-state-layer-opacity","",d.opacity8),activeStateLayerOpacity:i.extend("--ft-floating-menu-active-state-layer-opacity","",d.opacity16),disabledComponentOpacity:i.extend("--ft-floating-menu-disabled-component-opacity","",d.opacity40),iconSize:i.extend("--ft-floating-menu-icon-size","",d.iconSize3),backgroundColor:i.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:i.extend("--ft-floating-menu-shadow","",d.shadowElevation02)};var mu={fieldHorizontalPadding:i.extend("--ft-combobox-single-select-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-single-select-field-horizontal-gap","",d.spacing3),fieldVerticalGap:i.extend("--ft-combobox-single-select-field-vertical-gap","",d.spacing05),fieldIconSize:i.extend("--ft-combobox-single-select-field-icon-size","",d.iconSize3),fieldHeight:i.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-combobox-single-select-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:i.extend("--ft-combobox-single-select-helper-horizontal-gap","",d.spacing1),helperVerticalGap:i.extend("--ft-combobox-single-select-helper-vertical-gap","",d.spacing1),helperIconSize:i.extend("--ft-combobox-single-select-helper-icon-size","",d.iconSize2),menuVerticalGap:i.extend("--ft-combobox-single-select-menu-vertical-gap","",d.spacing2),borderRadius:i.extend("--ft-combobox-single-select-border-radius","",d.borderRadiusM),backgroundColor:i.extend("--ft-combobox-single-select-background-color","",d.colorWhite),labelColor:i.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:i.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:i.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-single-select-default-helper-text-color","",u.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","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:i.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:i.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:i.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-single-select-disabled-component-opacity","",d.opacity40)};var gu={backgroundColor:i.extend("--ft-combobox-multi-select-background-color","",d.colorWhite),labelColor:i.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:i.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:i.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:i.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:i.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:i.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.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","",d.opacity40),helperHorizontalPadding:i.extend("--ft-combobox-multi-select-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:i.extend("--ft-combobox-multi-select-helper-horizontal-gap","",d.spacing1),helperVerticalGap:i.extend("--ft-combobox-multi-select-helper-vertical-gap","",d.spacing1),helperIconSize:i.extend("--ft-combobox-multi-select-helper-icon-size","",d.iconSize2),fieldHorizontalPadding:i.extend("--ft-combobox-multi-select-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-multi-select-field-horizontal-gap","",d.spacing3),fieldVerticalGap:i.extend("--ft-combobox-multi-select-field-vertical-gap","",d.spacing05),fieldIconSize:i.extend("--ft-combobox-multi-select-field-icon-size","",d.iconSize3),fieldMaxHeight:i.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:i.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",d.spacing1),contentValuesVerticalGap:i.extend("--ft-combobox-multi-select-content-values-vertical-gap","",d.spacing1),borderRadius:i.extend("--ft-combobox-multi-select-border-radius","",d.borderRadiusM)};var yu={backgroundColor:i.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:i.extend("--ft-popover-horizontal-padding","",d.spacing6),verticalPadding:i.extend("--ft-popover-vertical-padding","",d.spacing6),titleColor:i.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:i.extend("--ft-popover-body-color","",u.contentGlobalSecondary),linkColor:i.extend("--ft-popover-link-color","",u.contentActionPrimary),gap:i.extend("--ft-popover-gap","",d.spacing3),borderRadius:i.extend("--ft-popover-border-radius","",d.borderRadiusM),shadow:i.extend("--ft-popover-shadow","",d.shadowElevation02)};var bu={hoverStateLayerOpacity:i.extend("--ft-collapsible-hover-state-layer-opacity","",d.opacity8),focusStateLayerOpacity:i.extend("--ft-collapsible-focus-state-layer-opacity","",d.opacity8),focusOutlineWidth:i.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ft-collapsible-active-state-layer-opacity","",d.opacity16),disabledComponentOpacity:i.extend("--ft-collapsible-disabled-component-opacity","",d.opacity40),horizontalPadding:i.extend("--ft-collapsible-horizontal-padding","",d.spacing4),verticalPadding:i.extend("--ft-collapsible-vertical-padding","",d.spacing3),color:i.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:i.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:i.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:i.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:i.extend("--ft-collapsible-icon-size","",d.iconSize3)};var vu={groupHorizontalPadding:i.extend("--ft-switch-group-horizontal-padding","",d.spacing1),groupVerticalPadding:i.extend("--ft-switch-group-vertical-padding","",d.spacing1),groupGap:i.extend("--ft-switch-group-gap","",d.spacing1),groupBackgroundColor:i.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:i.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:i.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ft-switch-label-horizontal-padding","",d.spacing2),labelVerticalPadding:i.extend("--ft-switch-label-vertical-padding","",d.spacing1),offHoverStateLayerOpacity:i.extend("--ft-switch-off-hover-state-layer-opacity","",d.opacity8),offFocusStateLayerOpacity:i.extend("--ft-switch-off-focus-state-layer-opacity","",d.opacity8),offActiveStateLayerOpacity:i.extend("--ft-switch-off-active-state-layer-opacity","",d.opacity16),offDisabledComponentOpacity:i.extend("--ft-switch-off-disabled-component-opacity","",d.opacity40),offColor:i.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-switch-on-hover-state-layer-opacity","",d.opacity8),onFocusStateLayerOpacity:i.extend("--ft-switch-on-focus-state-layer-opacity","",d.opacity8),onActiveStateLayerOpacity:i.extend("--ft-switch-on-active-state-layer-opacity","",d.opacity16),onDisabledComponentOpacity:i.extend("--ft-switch-on-disabled-component-opacity","",d.opacity40),onColor:i.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:i.extend("--ft-switch-icon-horizontal-padding","",d.spacing1),iconVerticalPadding:i.extend("--ft-switch-icon-vertical-padding","",d.spacing1),focusOutlineWidth:i.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:i.extend("--ft-switch-option-border-radius","",d.borderRadiusS)};var xu={color1Light:i.extend("--ft-chart-1-light","for area color charts",d.colorBrand40),color1Base:i.extend("--ft-chart-1-base","for line charts",d.colorBrand0),color2Light:i.extend("--ft-chart-2-light","for area color charts",d.colorYellow60),color2Base:i.extend("--ft-chart-2-base","for line charts",d.colorYellow100),color3Light:i.extend("--ft-chart-3-light","",d.colorUltramarine40),color3Base:i.extend("--ft-chart-3-base","",d.colorUltramarine70),color4Light:i.extend("--ft-chart-4-light","",d.colorCyan50),color4Base:i.extend("--ft-chart-4-base","",d.colorCyan100),color5Light:i.extend("--ft-chart-5-light","",d.colorRed40),color5Base:i.extend("--ft-chart-5-base","",d.colorRed60),color6Light:i.extend("--ft-chart-6-light","",d.colorGreen40),color6Base:i.extend("--ft-chart-6-base","",d.colorGreen70),color7Light:i.extend("--ft-chart-7-light","",d.colorOrange70),color7Base:i.extend("--ft-chart-7-base","",d.colorOrange100),color8Light:i.extend("--ft-chart-8-light","",d.colorAvocado70),color8Base:i.extend("--ft-chart-8-base","",d.colorAvocado200),color9Light:i.extend("--ft-chart-9-light","",d.colorBrown50),color9Base:i.extend("--ft-chart-9-base","",d.colorBrown200),color10Light:i.extend("--ft-chart-10-light","",d.colorGray50),color10Base:i.extend("--ft-chart-10-base","",d.colorGray80),monochrome10:i.extend("--ft-chart-monochrome-10","",d.colorBrand10),monochrome20:i.extend("--ft-chart-monochrome-20","",d.colorBrand20),monochrome30:i.extend("--ft-chart-monochrome-30","",d.colorBrand40),monochrome40:i.extend("--ft-chart-monochrome-40","",d.colorBrand60),monochrome50:i.extend("--ft-chart-monochrome-50","",d.colorBrand0),monochrome60:i.extend("--ft-chart-monochrome-60","",d.colorBrand200)};var Su={borderWidth:i.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ft-notice-horizontal-padding","",d.spacing3),verticalPadding:i.extend("--ft-notice-vertical-padding","",d.spacing2),borderRadius:i.extend("--ft-notice-border-radius","",d.borderRadiusS),gap:i.extend("--ft-notice-gap","",d.spacing2),iconSize:i.extend("--ft-notice-icon-size","",d.iconSize3),infoBackgroundColor:i.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:i.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:i.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:i.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:i.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:i.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:i.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:i.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:i.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:i.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:i.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:i.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly)};var Ou={color:i.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:i.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:i.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ft-checkbox-checked-hover-state-layer-opacity","",d.opacity16),checkedFocusStateLayerOpacity:i.extend("--ft-checkbox-checked-focus-state-layer-opacity","",d.opacity16),checkedActiveStateLayerOpacity:i.extend("--ft-checkbox-checked-active-state-layer-opacity","",d.opacity24),checkedDisabledComponentOpacity:i.extend("--ft-checkbox-checked-disabled-component-opacity","",d.opacity40),uncheckedBorderColor:i.extend("--ft-checkbox-unchecked-border-color","",d.colorGray80),uncheckedStateLayerColor:i.extend("--ft-checkbox-unchecked-state-layer-color","",d.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",d.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",d.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",d.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ft-checkbox-unchecked-disabled-component-opacity","",d.opacity40),focusFocusRingColor:i.extend("--ft-checkbox-focus-focus-ring-color","",u.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","",d.spacing3)};var wu={offHoverStateLayerOpacity:i.extend("--ft-toggle-off-hover-state-layer-opacity","",d.opacity16),offFocusStateLayerOpacity:i.extend("--ft-toggle-off-focus-state-layer-opacity","",d.opacity16),offActiveStateLayerOpacity:i.extend("--ft-toggle-off-active-state-layer-opacity","",d.opacity24),offDisabledComponentOpacity:i.extend("--ft-toggle-off-disabled-component-opacity","",d.opacity40),offBackgroundColor:i.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:i.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-toggle-on-hover-state-layer-opacity","",d.opacity16),onFocusStateLayerOpacity:i.extend("--ft-toggle-on-focus-state-layer-opacity","",d.opacity16),onActiveStateLayerOpacity:i.extend("--ft-toggle-on-active-state-layer-opacity","",d.opacity24),onDisabledComponentOpacity:i.extend("--ft-toggle-on-disabled-component-opacity","",d.opacity40),onBackgroundColor:i.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:i.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:i.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:i.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:i.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:i.extend("--ft-toggle-gap","",d.spacing3)};var Eu={color:i.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:i.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:i.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ft-radio-selected-hover-state-layer-opacity","",d.opacity16),selectedFocusStateLayerOpacity:i.extend("--ft-radio-selected-focus-state-layer-opacity","",d.opacity16),selectedActiveStateLayerOpacity:i.extend("--ft-radio-selected-active-state-layer-opacity","",d.opacity24),selectedDisabledComponentOpacity:i.extend("--ft-radio-selected-disabled-component-opacity","",d.opacity40),unselectedStateLayerColor:i.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:i.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ft-radio-unselected-hover-state-layer-opacity","",d.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ft-radio-unselected-focus-state-layer-opacity","",d.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ft-radio-unselected-active-state-layer-opacity","",d.opacity24),unselectedDisabledComponentOpacity:i.extend("--ft-radio-unselected-disabled-component-opacity","",d.opacity40),focusFocusRingColor:i.extend("--ft-radio-focus-focus-ring-color","",u.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","",d.spacing3)};var Cu={iconSize:i.extend("--ft-notification-icon-size","",d.iconSize4),leftPadding:i.extend("--ft-notification-left-padding","",d.spacing5),rightPadding:i.extend("--ft-notification-right-padding","",d.spacing4),verticalPadding:i.extend("--ft-notification-vertical-padding","",d.spacing3),infoBackgroundColor:i.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:i.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:i.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:i.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:i.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:i.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:i.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:i.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:i.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:i.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:i.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:i.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:i.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:i.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:i.extend("--ft-notification-border-radius","",d.borderRadiusPill),borderWidth:i.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ft-notification-leading-gap","",d.spacing2),trailingGap:i.extend("--ft-notification-trailing-gap","",d.spacing8)};var Au={horizontalPadding:i.extend("--ft-tooltip-horizontal-padding","",d.spacing2),verticalPadding:i.extend("--ft-tooltip-vertical-padding","",d.spacing2),borderRadius:i.extend("--ft-tooltip-border-radius","",d.borderRadiusS),color:i.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:i.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:i.extend("--ft-tooltip-background-opacity","",d.opacity80),shadow:i.extend("--ft-tooltip-shadow","",d.shadowElevation02),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ft-tooltip-gap","",d.spacing05)};var hr;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(hr||(hr={}));var Et;(function(r){r.large="large",r.medium="medium",r.small="small"})(Et||(Et={}));function fa(r){return`ftds--family-${r}`}function ha(r){return`ftds--size-${r}`}var _={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 va={};re(va,{FtNotificationEvent:()=>ke,PostResizeEvent:()=>ba,PreResizeEvent:()=>ya});var ke=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},ya=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ba=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var $a={};re($a,{computeFlipOffsetPosition:()=>Gu,computeOffsetPosition:()=>No});var Bl=["top","right","bottom","left"],Fl=["start","end"],xa=Bl.reduce((r,e)=>r.concat(e,e+"-"+Fl[0],e+"-"+Fl[1]),[]),Eo=Math.min,Ft=Math.max,Co=Math.round;var Ct=r=>({x:r,y:r}),Ru={left:"right",right:"left",bottom:"top",top:"bottom"},_u={start:"end",end:"start"};function Sa(r,e,t){return Ft(r,Eo(e,t))}function Dr(r,e){return typeof r=="function"?r(e):r}function pt(r){return r.split("-")[0]}function ut(r){return r.split("-")[1]}function Oa(r){return r==="x"?"y":"x"}function wa(r){return r==="y"?"height":"width"}function Ao(r){return["top","bottom"].includes(pt(r))?"y":"x"}function Ea(r){return Oa(Ao(r))}function Ca(r,e,t){t===void 0&&(t=!1);let o=ut(r),n=Ea(r),a=wa(n),s=n==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=wo(s)),[s,wo(s)]}function zl(r){let e=wo(r);return[Oo(r),e,Oo(e)]}function Oo(r){return r.replace(/start|end/g,e=>_u[e])}function Tu(r,e,t){let o=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(r){case"top":case"bottom":return t?e?n:o:e?o:n;case"left":case"right":return e?a:s;default:return[]}}function Hl(r,e,t,o){let n=ut(r),a=Tu(pt(r),t==="start",o);return n&&(a=a.map(s=>s+"-"+n),e&&(a=a.concat(a.map(Oo)))),a}function wo(r){return r.replace(/left|right|bottom|top/g,e=>Ru[e])}function Nu(r){return{top:0,right:0,bottom:0,left:0,...r}}function Wl(r){return typeof r!="number"?Nu(r):{top:r,right:r,bottom:r,left:r}}function mr(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function Vl(r,e,t){let{reference:o,floating:n}=r,a=Ao(e),s=Ea(e),l=wa(s),c=pt(e),p=a==="y",h=o.x+o.width/2-n.width/2,f=o.y+o.height/2-n.height/2,m=o[l]/2-n[l]/2,b;switch(c){case"top":b={x:h,y:o.y-n.height};break;case"bottom":b={x:h,y:o.y+o.height};break;case"right":b={x:o.x+o.width,y:f};break;case"left":b={x:o.x-n.width,y:f};break;default:b={x:o.x,y:o.y}}switch(ut(e)){case"start":b[s]-=m*(t&&p?-1:1);break;case"end":b[s]+=m*(t&&p?-1:1);break}return b}var jl=async(r,e,t)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:r,floating:e,strategy:n}),{x:h,y:f}=Vl(p,o,c),m=o,b={},v=0;for(let w=0;w<l.length;w++){let{name:I,fn:A}=l[w],{x:N,y:S,data:O,reset:E}=await A({x:h,y:f,initialPlacement:o,placement:m,strategy:n,middlewareData:b,rects:p,platform:s,elements:{reference:r,floating:e}});if(h=N??h,f=S??f,b={...b,[I]:{...b[I],...O}},E&&v<=50){v++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(p=E.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:n}):E.rects),{x:h,y:f}=Vl(p,m,c)),w=-1;continue}}return{x:h,y:f,placement:m,strategy:n,middlewareData:b}};async function gi(r,e){var t;e===void 0&&(e={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:c}=r,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:m=!1,padding:b=0}=Dr(e,r),v=Wl(b),I=l[m?f==="floating"?"reference":"floating":f],A=mr(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(I)))==null||t?I:I.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:c})),N=f==="floating"?{...s.floating,x:o,y:n}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),O=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},E=mr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:N,offsetParent:S,strategy:c}):N);return{top:(A.top-E.top+v.top)/O.y,bottom:(E.bottom-A.bottom+v.bottom)/O.y,left:(A.left-E.left+v.left)/O.x,right:(E.right-A.right+v.right)/O.x}}function Iu(r,e,t){return(r?[...t.filter(n=>ut(n)===r),...t.filter(n=>ut(n)!==r)]:t.filter(n=>pt(n)===n)).filter(n=>r?ut(n)===r||(e?Oo(n)!==n:!1):!0)}var Aa=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,o,n;let{rects:a,middlewareData:s,placement:l,platform:c,elements:p}=e,{crossAxis:h=!1,alignment:f,allowedPlacements:m=xa,autoAlignment:b=!0,...v}=Dr(r,e),w=f!==void 0||m===xa?Iu(f||null,b,m):m,I=await gi(e,v),A=((t=s.autoPlacement)==null?void 0:t.index)||0,N=w[A];if(N==null)return{};let S=Ca(N,a,await(c.isRTL==null?void 0:c.isRTL(p.floating)));if(l!==N)return{reset:{placement:w[0]}};let O=[I[pt(N)],I[S[0]],I[S[1]]],E=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:N,overflows:O}],M=w[A+1];if(M)return{data:{index:A+1,overflows:E},reset:{placement:M}};let Z=E.map(L=>{let g=ut(L.placement);return[L.placement,g&&h?L.overflows.slice(0,2).reduce((x,k)=>x+k,0):L.overflows[0],L.overflows]}).sort((L,g)=>L[1]-g[1]),ee=((n=Z.filter(L=>L[2].slice(0,ut(L[0])?2:3).every(g=>g<=0))[0])==null?void 0:n[0])||Z[0][0];return ee!==l?{data:{index:A+1,overflows:E},reset:{placement:ee}}:{}}}},Ra=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(e){var t,o;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:c,elements:p}=e,{mainAxis:h=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:w=!0,...I}=Dr(r,e);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let A=pt(n),N=pt(l)===l,S=await(c.isRTL==null?void 0:c.isRTL(p.floating)),O=m||(N||!w?[wo(l)]:zl(l));!m&&v!=="none"&&O.push(...Hl(l,w,v,S));let E=[l,...O],M=await gi(e,I),Z=[],J=((o=a.flip)==null?void 0:o.overflows)||[];if(h&&Z.push(M[A]),f){let x=Ca(n,s,S);Z.push(M[x[0]],M[x[1]])}if(J=[...J,{placement:n,overflows:Z}],!Z.every(x=>x<=0)){var ee,L;let x=(((ee=a.flip)==null?void 0:ee.index)||0)+1,k=E[x];if(k)return{data:{index:x,overflows:J},reset:{placement:k}};let j=(L=J.filter(Y=>Y.overflows[0]<=0).sort((Y,B)=>Y.overflows[1]-B.overflows[1])[0])==null?void 0:L.placement;if(!j)switch(b){case"bestFit":{var g;let Y=(g=J.map(B=>[B.placement,B.overflows.filter(at=>at>0).reduce((at,ro)=>at+ro,0)]).sort((B,at)=>B[1]-at[1])[0])==null?void 0:g[0];Y&&(j=Y);break}case"initialPlacement":j=l;break}if(n!==j)return{reset:{placement:j}}}return{}}}};async function Pu(r,e){let{placement:t,platform:o,elements:n}=r,a=await(o.isRTL==null?void 0:o.isRTL(n.floating)),s=pt(t),l=ut(t),c=Ao(t)==="y",p=["left","top"].includes(s)?-1:1,h=a&&c?-1:1,f=Dr(e,r),{mainAxis:m,crossAxis:b,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof v=="number"&&(b=l==="end"?v*-1:v),c?{x:b*h,y:m*p}:{x:m*p,y:b*h}}var _a=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,o;let{x:n,y:a,placement:s,middlewareData:l}=e,c=await Pu(e,r);return s===((t=l.offset)==null?void 0:t.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:n+c.x,y:a+c.y,data:{...c,placement:s}}}}},Ta=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:o,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:I=>{let{x:A,y:N}=I;return{x:A,y:N}}},...c}=Dr(r,e),p={x:t,y:o},h=await gi(e,c),f=Ao(pt(n)),m=Oa(f),b=p[m],v=p[f];if(a){let I=m==="y"?"top":"left",A=m==="y"?"bottom":"right",N=b+h[I],S=b-h[A];b=Sa(N,b,S)}if(s){let I=f==="y"?"top":"left",A=f==="y"?"bottom":"right",N=v+h[I],S=v-h[A];v=Sa(N,v,S)}let w=l.fn({...e,[m]:b,[f]:v});return{...w,data:{x:w.x-t,y:w.y-o}}}}};function At(r){return Gl(r)?(r.nodeName||"").toLowerCase():"#document"}function Be(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Rt(r){var e;return(e=(Gl(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function Gl(r){return r instanceof Node||r instanceof Be(r).Node}function ft(r){return r instanceof Element||r instanceof Be(r).Element}function et(r){return r instanceof HTMLElement||r instanceof Be(r).HTMLElement}function Kl(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Be(r).ShadowRoot}function Mr(r){let{overflow:e,overflowX:t,overflowY:o,display:n}=Ke(r);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&!["inline","contents"].includes(n)}function Zl(r){return["table","td","th"].includes(At(r))}function bi(r){let e=vi(),t=Ke(r);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(t.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(t.contain||"").includes(o))}function ql(r){let e=gr(r);for(;et(e)&&!Ro(e);){if(bi(e))return e;e=gr(e)}return null}function vi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ro(r){return["html","body","#document"].includes(At(r))}function Ke(r){return Be(r).getComputedStyle(r)}function _o(r){return ft(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function gr(r){if(At(r)==="html")return r;let e=r.assignedSlot||r.parentNode||Kl(r)&&r.host||Rt(r);return Kl(e)?e.host:e}function Yl(r){let e=gr(r);return Ro(e)?r.ownerDocument?r.ownerDocument.body:r.body:et(e)&&Mr(e)?e:Yl(e)}function yi(r,e,t){var o;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=Yl(r),a=n===((o=r.ownerDocument)==null?void 0:o.body),s=Be(n);return a?e.concat(s,s.visualViewport||[],Mr(n)?n:[],s.frameElement&&t?yi(s.frameElement):[]):e.concat(n,yi(n,[],t))}function Ql(r){let e=Ke(r),t=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=et(r),a=n?r.offsetWidth:t,s=n?r.offsetHeight:o,l=Co(t)!==a||Co(o)!==s;return l&&(t=a,o=s),{width:t,height:o,$:l}}function ec(r){return ft(r)?r:r.contextElement}function Ur(r){let e=ec(r);if(!et(e))return Ct(1);let t=e.getBoundingClientRect(),{width:o,height:n,$:a}=Ql(e),s=(a?Co(t.width):t.width)/o,l=(a?Co(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var $u=Ct(0);function tc(r){let e=Be(r);return!vi()||!e.visualViewport?$u:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ku(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==Be(r)?!1:e}function To(r,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);let n=r.getBoundingClientRect(),a=ec(r),s=Ct(1);e&&(o?ft(o)&&(s=Ur(o)):s=Ur(r));let l=ku(a,t,o)?tc(a):Ct(0),c=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,h=n.width/s.x,f=n.height/s.y;if(a){let m=Be(a),b=o&&ft(o)?Be(o):o,v=m.frameElement;for(;v&&o&&b!==m;){let w=Ur(v),I=v.getBoundingClientRect(),A=Ke(v),N=I.left+(v.clientLeft+parseFloat(A.paddingLeft))*w.x,S=I.top+(v.clientTop+parseFloat(A.paddingTop))*w.y;c*=w.x,p*=w.y,h*=w.x,f*=w.y,c+=N,p+=S,v=Be(v).frameElement}}return mr({width:h,height:f,x:c,y:p})}function Lu(r){let{rect:e,offsetParent:t,strategy:o}=r,n=et(t),a=Rt(t);if(t===a)return e;let s={scrollLeft:0,scrollTop:0},l=Ct(1),c=Ct(0);if((n||!n&&o!=="fixed")&&((At(t)!=="body"||Mr(a))&&(s=_o(t)),et(t))){let p=To(t);l=Ur(t),c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+c.x,y:e.y*l.y-s.scrollTop*l.y+c.y}}function Du(r){return Array.from(r.getClientRects())}function rc(r){return To(Rt(r)).left+_o(r).scrollLeft}function Mu(r){let e=Rt(r),t=_o(r),o=r.ownerDocument.body,n=Ft(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=Ft(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-t.scrollLeft+rc(r),l=-t.scrollTop;return Ke(o).direction==="rtl"&&(s+=Ft(e.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Uu(r,e){let t=Be(r),o=Rt(r),n=t.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,c=0;if(n){a=n.width,s=n.height;let p=vi();(!p||p&&e==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:a,height:s,x:l,y:c}}function Fu(r,e){let t=To(r,!0,e==="fixed"),o=t.top+r.clientTop,n=t.left+r.clientLeft,a=et(r)?Ur(r):Ct(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,c=n*a.x,p=o*a.y;return{width:s,height:l,x:c,y:p}}function Xl(r,e,t){let o;if(e==="viewport")o=Uu(r,t);else if(e==="document")o=Mu(Rt(r));else if(ft(e))o=Fu(e,t);else{let n=tc(r);o={...e,x:e.x-n.x,y:e.y-n.y}}return mr(o)}function oc(r,e){let t=gr(r);return t===e||!ft(t)||Ro(t)?!1:Ke(t).position==="fixed"||oc(t,e)}function Bu(r,e){let t=e.get(r);if(t)return t;let o=yi(r,[],!1).filter(l=>ft(l)&&At(l)!=="body"),n=null,a=Ke(r).position==="fixed",s=a?gr(r):r;for(;ft(s)&&!Ro(s);){let l=Ke(s),c=bi(s);!c&&l.position==="fixed"&&(n=null),(a?!c&&!n:!c&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Mr(s)&&!c&&oc(r,s))?o=o.filter(h=>h!==s):n=l,s=gr(s)}return e.set(r,o),o}function zu(r){let{element:e,boundary:t,rootBoundary:o,strategy:n}=r,s=[...t==="clippingAncestors"?Bu(e,this._c):[].concat(t),o],l=s[0],c=s.reduce((p,h)=>{let f=Xl(e,h,n);return p.top=Ft(f.top,p.top),p.right=Eo(f.right,p.right),p.bottom=Eo(f.bottom,p.bottom),p.left=Ft(f.left,p.left),p},Xl(e,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Hu(r){return Ql(r)}function Wu(r,e,t){let o=et(e),n=Rt(e),a=t==="fixed",s=To(r,!0,a,e),l={scrollLeft:0,scrollTop:0},c=Ct(0);if(o||!o&&!a)if((At(e)!=="body"||Mr(n))&&(l=_o(e)),o){let p=To(e,!0,a,e);c.x=p.x+e.clientLeft,c.y=p.y+e.clientTop}else n&&(c.x=rc(n));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Jl(r,e){return!et(r)||Ke(r).position==="fixed"?null:e?e(r):r.offsetParent}function ic(r,e){let t=Be(r);if(!et(r))return t;let o=Jl(r,e);for(;o&&Zl(o)&&Ke(o).position==="static";)o=Jl(o,e);return o&&(At(o)==="html"||At(o)==="body"&&Ke(o).position==="static"&&!bi(o))?t:o||ql(r)||t}var Vu=async function(r){let{reference:e,floating:t,strategy:o}=r,n=this.getOffsetParent||ic,a=this.getDimensions;return{reference:Wu(e,await n(t),o),floating:{x:0,y:0,...await a(t)}}};function ju(r){return Ke(r).direction==="rtl"}var Fr={convertOffsetParentRelativeRectToViewportRelativeRect:Lu,getDocumentElement:Rt,getClippingRect:zu,getOffsetParent:ic,getElementRects:Vu,getClientRects:Du,getDimensions:Hu,getScale:Ur,isElement:ft,isRTL:ju};var Na=(r,e,t)=>{let o=new Map,n={platform:Fr,...t},a={...n.platform,_c:o};return jl(r,e,{...n,platform:a})};function Pa(r){return Ku(r)}function Ia(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Ku(r){for(let e=r;e;e=Ia(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ia(r);e;e=Ia(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||t.filter!=="none"||e.tagName==="BODY"))return e}return null}async function No(r,e,t){return Na(r,e,{platform:{...Fr,getOffsetParent:o=>Fr.getOffsetParent(o,Pa)},middleware:[Ta({crossAxis:!0}),Aa({allowedPlacements:[t]})]})}async function Gu(r,e,t,o,n){return Na(r,e,{placement:t,strategy:n,platform:{...Fr,getOffsetParent:a=>Fr.getOffsetParent(a,Pa)},middleware:[_a(4),Ra({fallbackPlacements:o})]})}var Ma={};re(Ma,{FtdsBase:()=>Da,toFtdsBase:()=>Oi});var La={};re(La,{FtLitElement:()=>W});var ka={};re(ka,{ScopedRegistryLitElement:()=>Io});var xi=window,Zu=xi.ShadowRoot&&(xi.ShadyCSS===void 0||xi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Nb=Symbol();var nc=(r,e)=>{Zu?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let o=document.createElement("style"),n=xi.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)})};var Io=class extends St{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let t={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(t);return nc(o,e.elementStyles),o}};var Si=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},cc,ac=Symbol("constructorPrototype"),sc=Symbol("constructorName"),dc=Symbol("exportpartsDebouncer"),lc=Symbol("dynamicDependenciesLoaded"),W=class extends Io{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[cc]=new ae(5),this[sc]=this.constructor.name,this[ac]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[sc]&&Object.setPrototypeOf(this,this[ac])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}let e=this.constructor;e[lc]||(e[lc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var t,o,n;if(((o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((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 e,t,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&o!==void 0&&o)&&this[dc].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(e){var t,o,n,a,s,l;let c=m=>m!=null&&m.trim().length>0,p=e.filter(c).map(m=>m.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let m of(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let b=(a=(n=m.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],v=(l=(s=m.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=>h.add(w))}if(h.size===0){this.removeAttribute("exportparts");return}let f=[...h.values()].flatMap(m=>p.map(b=>`${m}:${b}--${m}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};cc=dc;Si([y()],W.prototype,"exportpartsPrefix",void 0);Si([dt([])],W.prototype,"exportpartsPrefixes",void 0);Si([y()],W.prototype,"customStylesheet",void 0);Si([H()],W.prototype,"useAdoptedStyleSheets",void 0);var pc=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};function Oi(r){class e extends r{constructor(){super(...arguments),this.size=Et.medium,this.family=hr.neutral}getDesignSystemBaseClasses(){return{[fa(this.family)]:!0,[ha(this.size)]:!0}}}return pc([y()],e.prototype,"size",void 0),pc([y()],e.prototype,"family",void 0),e}var Da=class extends Oi(W){};var uc={};var Ba={};re(Ba,{highlightHtml:()=>Fa,highlightHtmlColorCssVariable:()=>fc,highlightHtmlStyles:()=>Yu});var yr=class r{constructor(e,t=!0,o=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=o,this.iframesTimeout=n}static matches(e,t){let o=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let n=t.filter(a=>a.contains(o)).length>0;t.indexOf(o)===-1&&!n&&t.push(o)}),t}getIframeContents(e,t,o=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&t(n)}isIframeBlank(e){let t="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&o!==t&&o}observeIframeLoad(e,t,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,o):this.getIframeContents(e,t,o):this.observeIframeLoad(e,t,o)}catch{o()}}waitForIframes(e,t){let o=0;this.forEachIframe(e,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||t()})},n=>{n||t()})}forEachIframe(e,t,o,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let c=()=>{--s<=0&&n(l)};s||c(),a.forEach(p=>{r.matches(p,this.exclude)?c():this.onIframeReady(p,h=>{t(p)&&(l++,o(h)),c()},c)})}createIterator(e,t,o){return document.createNodeIterator(e,t,o,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,o){let n=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(t!==null){let s=t.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),o;return t===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:t,node:o}}checkIframeFilter(e,t,o,n){let a=!1,s=!1;return n.forEach((l,c)=>{l.val===o&&(a=c,s=l.handled)}),this.compareNodeIframe(e,t,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(e,t,o,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,o,n)})})}iterateThroughNodes(e,t,o,n,a){let s=this.createIterator(t,e,n),l=[],c=[],p,h,f=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;f();)this.iframes&&this.forEachIframe(t,m=>this.checkIframeFilter(p,h,m,l),m=>{this.createInstanceOnIframe(m).forEachNode(e,b=>c.push(b),n)}),c.push(p);c.forEach(m=>{o(m)}),this.iframes&&this.handleOpenIframes(l,e,o,n),a()}forEachNode(e,t,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let c=()=>{this.iterateThroughNodes(e,l,t,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,c):c()})}};var Po=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new yr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[t]=="function"&&o[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[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!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(c)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(c)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&t.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\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`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):o.trim()&&t.indexOf(o)===-1&&t.push(o)}),{keywords:t.sort((o,n)=>n.length-o.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],o=0;return e.sort((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,t.push(n),o=s)}),t}callNoMatchOnInvalidRanges(e,t){let o,n,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),n=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:n,valid:a}}checkWhitespaceRanges(e,t,o){let n,a=!0,s=o.length,l=t-s,c=parseInt(e.start,10)-l;return c=c>s?s:c,n=c+parseInt(e.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(e)}`),this.opt.noMatch(e)):o.substring(c,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:c,end:n,valid:a}}getTextNodes(e){let t="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:o})})}matchesExclude(e){return yr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,o){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(o-t),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(e,t,o,n,a){e.nodes.every((s,l)=>{let c=e.nodes[l+1];if(typeof c>"u"||c.start>t){if(!n(s.node))return!1;let p=t-s.start,h=(o>s.end?s.end:o)-s.start,f=e.value.substr(0,s.start),m=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,h),e.value=f+m,e.nodes.forEach((b,v)=>{v>=l&&(e.nodes[v].start>0&&v!==l&&(e.nodes[v].start-=h),e.nodes[v].end-=h)}),o-=h,a(s.node.previousSibling,s.start),o>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,o,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{l.nodes.forEach(c=>{c=c.node;let p;for(;(p=e.exec(c.textContent))!==null&&p[s]!=="";){if(!o(p[s],c))continue;let h=p.index;if(s!==0)for(let f=1;f<s;f++)h+=p[f].length;c=this.wrapRangeInTextNode(c,h,h+p[s].length),n(c.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,o,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{let c;for(;(c=e.exec(l.value))!==null&&c[s]!=="";){let p=c.index;if(s!==0)for(let f=1;f<s;f++)p+=c[f].length;let h=p+c[s].length;this.wrapRangeInMappedTextNode(l,p,h,f=>o(c[s],f),(f,m)=>{e.lastIndex=m,n(f)})}a()})}wrapRangeFromIndex(e,t,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,c)=>{let{start:p,end:h,valid:f}=this.checkWhitespaceRanges(l,s,a.value);f&&this.wrapRangeInMappedTextNode(a,p,h,m=>t(m,l,a.value.substring(p,h),c),m=>{o(m,l)})}),n()})}unwrapMatches(e){let t=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));t.replaceChild(o,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,t){this.opt=t;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",c=p=>{let h=new RegExp(this.createRegExp(p),`gm${l}`),f=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(m,b)=>this.opt.filter(b,p,o,f),m=>{f++,o++,this.opt.each(m)},()=>{f===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(o):c(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):c(a[0])}markRanges(e,t){this.opt=t;let o=0,n=this.checkRanges(e);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(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=yr.matches(o,t),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ua(r){let e=new Po(r);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this}var qu=Ua,fc=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Yu=P`
6
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Sl=/'/g,Ol=/"/g,Al=/^(?:script|style|textarea|title)$/i,Rl=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),L=Rl(1),Dp=Rl(2),ke=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),Cl=new WeakMap,cr=dr.createTreeWalker(dr,129);function _l(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return bl!==void 0?bl.createHTML(t):t}var Nl=(r,t)=>{let e=r.length-1,i=[],n,a=t===2?"<svg>":"",s=fo;for(let l=0;l<e;l++){let c=r[l],p,h,f=-1,m=0;for(;m<c.length&&(s.lastIndex=m,h=s.exec(c),h!==null);)m=s.lastIndex,s===fo?h[1]==="!--"?s=vl:h[1]!==void 0?s=xl:h[2]!==void 0?(Al.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=lr):h[3]!==void 0&&(s=lr):s===lr?h[0]===">"?(s=n??fo,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?lr:h[3]==='"'?Ol:Sl):s===Ol||s===Sl?s=lr:s===vl||s===xl?s=fo:(s=lr,n=void 0);let v=s===lr&&r[l+1].startsWith("/>")?" ":"";a+=s===fo?c+kp:f>=0?(i.push(p),c.slice(0,f)+Sn+c.slice(f)+xe+v):c+xe+(f===-2?l:v)}return[_l(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),i]},yo=class r{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,c=this.parts,[p,h]=Nl(t,e);if(this.el=r.createElement(p,i),cr.currentNode=this.el.content,e===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=cr.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(Sn)){let m=h[s++],v=n.getAttribute(f).split(xe),S=/([.?@])?(.*)/.exec(m);c.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?ci:S[1]==="?"?di:S[1]==="@"?pi:ur}),n.removeAttribute(f)}else f.startsWith(xe)&&(c.push({type:6,index:a}),n.removeAttribute(f));if(Al.test(n.tagName)){let f=n.textContent.split(xe),m=f.length-1;if(m>0){n.textContent=si?si.emptyScript:"";for(let v=0;v<m;v++)n.append(f[v],ho()),cr.nextNode(),c.push({type:2,index:++a});n.append(f[m],ho())}}}else if(n.nodeType===8)if(n.data===On)c.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(xe,f+1))!==-1;)c.push({type:7,index:a}),f+=xe.length-1}a++}}static createElement(t,e){let i=dr.createElement("template");return i.innerHTML=t,i}};function pr(r,t,e=r,i){if(t===ke)return t;let n=i!==void 0?e._$Co?.[i]:e._$Cl,a=mo(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,i)),i!==void 0?(e._$Co??=[])[i]=n:e._$Cl=n),n!==void 0&&(t=pr(r,n._$AS(r,t.values),n,i)),t}var li=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:i}=this._$AD,n=(t?.creationScope??dr).importNode(e,!0);cr.currentNode=n;let a=cr.nextNode(),s=0,l=0,c=i[0];for(;c!==void 0;){if(s===c.index){let p;c.type===2?p=new $r(a,a.nextSibling,this,t):c.type===1?p=new c.ctor(a,c.name,c.strings,this,t):c.type===6&&(p=new ui(a,this,t)),this._$AV.push(p),c=i[++l]}s!==c?.index&&(a=cr.nextNode(),s++)}return cr.currentNode=dr,n}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},$r=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,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=pr(this,t,e),mo(t)?t===H||t==null||t===""?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==ke&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):wl(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!==H&&mo(this._$AH)?this._$AA.nextSibling.data=t:this.$(dr.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=yo.createElement(_l(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new li(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=Cl.get(t.strings);return e===void 0&&Cl.set(t.strings,e=new yo(t)),e}T(t){El(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,n=0;for(let a of t)n===e.length?e.push(i=new r(this.k(ho()),this.k(ho()),this,this.options)):i=e[n],i._$AI(a),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},ur=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,a){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=H}_$AI(t,e=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=pr(this,t,e,0),s=!mo(t)||t!==this._$AH&&t!==ke,s&&(this._$AH=t);else{let l=t,c,p;for(t=a[0],c=0;c<a.length-1;c++)p=pr(this,l[i+c],e,c),p===ke&&(p=this._$AH[c]),s||=!mo(p)||p!==this._$AH[c],p===H?t=H:t!==H&&(t+=(p??"")+a[c+1]),this._$AH[c]=p}s&&!n&&this.O(t)}O(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ci=class extends ur{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===H?void 0:t}},di=class extends ur{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==H)}},pi=class extends ur{constructor(t,e,i,n,a){super(t,e,i,n,a),this.type=5}_$AI(t,e=this){if((t=pr(this,t,e,0)??H)===ke)return;let i=this._$AH,n=t===H&&i!==H||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==H&&(i===H||n);n&&this.element.removeEventListener(this.name,this,i),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)}},ui=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){pr(this,t)}},Mp={j:Sn,P:xe,A:On,C:1,M:Nl,L:li,R:wl,V:pr,D:$r,I:ur,H:di,N:pi,U:ci,B:ui},Fp=xn.litHtmlPolyfillSupport;Fp?.(yo,$r),(xn.litHtmlVersions??=[]).push("3.1.0");var Cn=(r,t,e)=>{let i=e?.renderBefore??t,n=i._$litPart$;if(n===void 0){let a=e?.renderBefore??null;i._$litPart$=n=new $r(t.insertBefore(ho(),a),a,void 0,e??{})}return n._$AI(r),n};var Se=class extends se{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=Cn(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ke}};Se._$litElement$=!0,Se.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Se});var Up=globalThis.litElementPolyfillSupport;Up?.({LitElement:Se});var Bp={_$AK:(r,t,e)=>{r._$AK(t,e)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Eh=!1;var An={};rt(An,{customElement:()=>Wp,eventOptions:()=>Oe,property:()=>g,query:()=>X,queryAll:()=>Vp,queryAssignedElements:()=>wn,queryAssignedNodes:()=>go,queryAsync:()=>jp,standardProperty:()=>Tl,state:()=>z});var Wp=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};var Hp={attribute:!0,type:String,converter:io,reflect:!1,hasChanged:qo},Tl=(r=Hp,t,e)=>{let{kind:i,metadata:n}=e,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(e.name,r),i==="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(i==="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: "+i)};function g(r){return(t,e)=>typeof e=="object"?Tl(r,t,e):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,s?{...i,wrapped:!0}:i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,t,e)}function z(r){return g({...r,state:!0,attribute:!1})}function Oe(r){return(t,e)=>{let i=typeof t=="function"?t:t[e];Object.assign(i,r)}}var Jt=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);function X(r,t){return(e,i,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(t){let{get:s,set:l}=typeof i=="object"?e:n??(()=>{let c=Symbol();return{get(){return this[c]},set(p){this[c]=p}}})();return Jt(e,i,{get(){let c=s.call(this);return c===void 0&&(c=a(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return Jt(e,i,{get(){return a(this)}})}}var zp;function Vp(r){return(t,e)=>Jt(t,e,{get(){return(this.renderRoot??(zp??=document.createDocumentFragment())).querySelectorAll(r)}})}function jp(r){return(t,e)=>Jt(t,e,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function wn(r){return(t,e)=>{let{slot:i,selector:n}=r??{},a="slot"+(i?`[name=${i}]`:":not([name])");return Jt(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 go(r){return(t,e)=>{let{slot:i}=r??{},n="slot"+(i?`[name=${i}]`:":not([name])");return Jt(t,e,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var _n={};rt(_n,{repeat:()=>Rn});var De={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Me=r=>(...t)=>({_$litDirective$:r,values:t}),le=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{D:Gp}=hl;var Il=()=>document.createComment(""),Pr=(r,t,e)=>{let i=r._$AA.parentNode,n=t===void 0?r._$AB:t._$AA;if(e===void 0){let a=i.insertBefore(Il(),n),s=i.insertBefore(Il(),n);e=new Gp(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 p=c.nextSibling;i.insertBefore(c,n),c=p}}}return e},Fe=(r,t,e=r)=>(r._$AI(t,e),r),Kp={},$l=(r,t=Kp)=>r._$AH=t,Pl=r=>r._$AH,fi=r=>{r._$AP?.(!1,!0);let t=r._$AA,e=r._$AB.nextSibling;for(;t!==e;){let i=t.nextSibling;t.remove(),t=i}};var Ll=(r,t,e)=>{let i=new Map;for(let n=t;n<=e;n++)i.set(r[n],n);return i},Rn=Me(class extends le{constructor(r){if(super(r),r.type!==De.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,t,e){let i;e===void 0?e=t:t!==void 0&&(i=t);let n=[],a=[],s=0;for(let l of r)n[s]=i?i(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,i]){let n=Pl(r),{values:a,keys:s}=this.ht(t,e,i);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],c=[],p,h,f=0,m=n.length-1,v=0,S=a.length-1;for(;f<=m&&v<=S;)if(n[f]===null)f++;else if(n[m]===null)m--;else if(l[f]===s[v])c[v]=Fe(n[f],a[v]),f++,v++;else if(l[m]===s[S])c[S]=Fe(n[m],a[S]),m--,S--;else if(l[f]===s[S])c[S]=Fe(n[f],a[S]),Pr(r,c[S+1],n[f]),f++,S--;else if(l[m]===s[v])c[v]=Fe(n[m],a[v]),Pr(r,n[f],n[m]),m--,v++;else if(p===void 0&&(p=Ll(s,v,S),h=Ll(l,f,m)),p.has(l[f]))if(p.has(l[m])){let w=h.get(s[v]),$=w!==void 0?n[w]:null;if($===null){let _=Pr(r,n[f]);Fe(_,a[v]),c[v]=_}else c[v]=Fe($,a[v]),Pr(r,n[f],$),n[w]=null;v++}else fi(n[m]),m--;else fi(n[f]),f++;for(;v<=S;){let w=Pr(r,c[S+1]);Fe(w,a[v]),c[v++]=w}for(;f<=m;){let w=n[f++];w!==null&&fi(w)}return this.dt=s,$l(r,c),jt}});var Nn={};rt(Nn,{classMap:()=>Lt});var Lt=Me(class extends le{constructor(r){if(super(r),r.type!==De.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(i=>i!=="")));for(let i in t)t[i]&&!this.st?.has(i)&&this.it.add(i);return this.render(t)}let e=r.element.classList;for(let i of this.it)i in t||(e.remove(i),this.it.delete(i));for(let i in t){let n=!!t[i];n===this.it.has(i)||this.st?.has(i)||(n?(e.add(i),this.it.add(i)):(e.remove(i),this.it.delete(i)))}return jt}});var Tn={};rt(Tn,{styleMap:()=>qp});var kl="important",Zp=" !"+kl,qp=Me(class extends le{constructor(r){if(super(r),r.type!==De.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 i=r[e];return i==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}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 i of this.ut)t[i]==null&&(this.ut.delete(i),i.includes("-")?e.removeProperty(i):e[i]=null);for(let i in t){let n=t[i];if(n!=null){this.ut.add(i);let a=typeof n=="string"&&n.endsWith(Zp);i.includes("-")||a?e.setProperty(i,a?n.slice(0,-11):n,a?kl:""):e[i]=n}}return jt}});var $n={};rt($n,{UnsafeHTMLDirective:()=>Lr,unsafeHTML:()=>In});var Lr=class extends le{constructor(t){if(super(t),this.et=ht,t.type!==De.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ht||t==null)return this.vt=void 0,this.et=t;if(t===jt)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:[]}}};Lr.directiveName="unsafeHTML",Lr.resultType=1;var In=Me(Lr);var kn={};rt(kn,{CacheRegistry:()=>ce});var Ln={};rt(Ln,{CancelablePromise:()=>kr,CanceledPromiseError:()=>fr,cancelable:()=>Pn});var fr=class extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}},kr=class extends Promise{constructor(t){super((e,i)=>t(n=>{this.isCanceled?i(new fr("Promise has been canceled",n)):e(n)},n=>{this.isCanceled?i(new fr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Pn=r=>new kr((t,e)=>r.then(t).catch(e));var ce=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 kr&&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,i){if(this.content[t]===void 0){if(e=e??this.loaders[t],e==null)throw new Error("Unknown cache key "+t);let n=Pn(e());return this.content[t]=n,n.then(a=>(this.content[t]=a,i!=null&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout(()=>this.clear(t),i)),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 Dn={};rt(Dn,{ClusteringHelper:()=>bo});var bo=class r{constructor(t,e,i,n){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=i,this.metadataDescriptors=n}static extractResultMetadata(t,e){var i,n;let a=((n=(i=t?.map)!==null&&i!==void 0?i: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(i=>r.flattenMetadata(i)).filter(i=>i!=null);let e=t?.hierarchicalValues!=null&&t.hierarchicalValues.length>0;if(!(t==null||t.values.length==0&&!e))if(e){let i=[],n=[];return t.hierarchicalValues.forEach(a=>{i.push(a.join(" > ")),a.length>2?n.push(`... > ${a[a.length-1]}`):n.push(a.join(" > "))}),{key:t.key,label:t.label,value:i.join(", "),displayValue:n.join(", ")}}else{let i=t.values.join(", ");return{key:t.key,label:t.label,value:i,displayValue:i}}}computeClustersItemsForMetadata(t,e,i="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(p=>r.extractResultMetadata(p,t)).map(p=>p??{key:t,label:l,value:void 0,displayValue:i}).filter(p=>p.value!=s?.value).filter((p,h,f)=>f.findIndex(m=>m.value===p.value)===h).map(p=>({result:this.findBestResultForMetadataValue(t,p.value),metadata:p})).sort((p,h)=>this.compareMetadata(p.metadata.value,h.metadata.value,t,e))}compareMetadata(t,e,i,n){if(t==null)return-1;if(e==null)return 1;let a=this.getMetadataDescriptor(i),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 i=this.allResults.filter(c=>{var p;return((p=r.extractResultMetadata(c,t))===null||p===void 0?void 0:p.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 i){let p=this.countMatchingMetadata(c,a);if(p>l&&(l=p,s=c,p===a.length))break}return s}countMatchingMetadata(t,e){return r.extractResultMetadata(t).filter(i=>e.some(n=>n.key===i.key&&n.value===i.value)).length}};var Mn={};rt(Mn,{Debouncer:()=>at});var at=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,i)=>{this.resolvePromise=e,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,e;let i=[...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 i)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 Wn={};rt(Wn,{customElement:()=>G,isNumber:()=>Ml,jsonProperty:()=>de,optionalNumberProperty:()=>tu});var Bn={};rt(Bn,{dateReviver:()=>Yp,deepEqual:()=>Qt,delay:()=>hi,eventPathContainsMatchingElement:()=>Jp,flatDeep:()=>Dl,hasChanged:()=>xo,last:()=>Qp,minmax:()=>Un,parseDate:()=>mi,waitFor:()=>vo,waitUntil:()=>Fn});var hi=r=>new Promise(t=>setTimeout(t,r));async function Fn(r,t=10,e=2e4){await vo(async()=>await r()||void 0,t,e)}async function vo(r,t=10,e=2e4){let i=await r(),n,a;for(n=a=performance.now();i==null&&(!e||a-n<e);)await hi(t),i=await r(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Dl(r,t){return r.flatMap(e=>[e,...Dl(t(e),t)])}function Yp(...r){return function(t,e){return r.includes(t)?mi(e):e}}function mi(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,i,n)=>e+i+":"+n),new Date(r)}function Xp(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,i,n;if(Array.isArray(r)){if(e=r.length,e!=t.length)return!1;for(i=e;i--!==0;)if(!Qt(r[i],t[i]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(i of r.entries())if(!t.has(i[0]))return!1;for(i of r.entries())if(!Qt(i[1],t.get(i[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(i of r.entries())if(!t.has(i[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(i=e;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=e;i--!==0;){var a=n[i];if(!Qt(r[a],t[a]))return!1}return!0}return r!==r&&t!==t}function Qt(r,t){try{return Xp(r,t)}catch{return!1}}function xo(r,t){return!Qt(r,t)}function Jp(r,t,e=window.document.body){if(t.length>0){let i=r.composedPath();for(let n of i){if(n===e)return!1;if(n.matches&&t.some(a=>n.matches(a)))return!0}}return!1}function Un(r,t,e){return Math.min(Math.max(r,t),e)}function Qp(r){return r[r.length-1]}var G=r=>t=>{window.customElements.get(r)||window.customElements.define(r,t)};function de(r,t){let e=()=>JSON.parse(JSON.stringify(r));return g({type:Object,converter:{fromAttribute:i=>{if(i==null)return e();try{return JSON.parse(i)}catch{return e()}},toAttribute:i=>JSON.stringify(i)},hasChanged:xo,...t??{}})}function tu(r){return g({type:Object,converter:{fromAttribute:t=>{if(t!=null)return Ml(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...r??{}})}function Ml(r){return!isNaN(parseFloat(r))}var ya={};rt(ya,{designSystemVariables:()=>N});var ma={};rt(ma,{DesignSystemFamily:()=>hr,DesignSystemSize:()=>Ee,FtCssVariableFactory:()=>o,badge:()=>au,banner:()=>nu,breadcrumb:()=>su,button:()=>b,chart:()=>xu,checkbox:()=>Cu,chip:()=>ou,chipChoice:()=>ru,collapsible:()=>bu,comboboxMultiSelect:()=>yu,comboboxSingleSelect:()=>mu,drawer:()=>du,floatingMenu:()=>hu,foundation:()=>d,link:()=>iu,modal:()=>cu,notice:()=>Ou,notification:()=>Au,pageDesigner:()=>Su,pageHeader:()=>lu,popover:()=>gu,radio:()=>wu,resolveFamilyClass:()=>fa,resolveSizeClass:()=>ha,semantic:()=>u,setVariable:()=>x,switch_:()=>vu,tabs:()=>pu,textArea:()=>fu,textInput:()=>uu,toggle:()=>Eu,tooltip:()=>Ru,typographies:()=>So,typographyBody1Medium:()=>Kn,typographyBody1Regular:()=>Gn,typographyBody1Semibold:()=>Zn,typographyBody2Medium:()=>Yn,typographyBody2MediumUnderline:()=>Fl,typographyBody2Regular:()=>qn,typographyBody2Semibold:()=>Xn,typographyCaption1Bold:()=>aa,typographyCaption1Medium:()=>ia,typographyCaption1Semibold:()=>na,typographyCaption2Bold:()=>ca,typographyCaption2Medium:()=>sa,typographyCaption2Semibold:()=>la,typographyCaption3Bold:()=>ua,typographyCaption3Medium:()=>da,typographyCaption3Semibold:()=>pa,typographyDisplay:()=>Hn,typographyLabel1Bold:()=>ta,typographyLabel1Medium:()=>Jn,typographyLabel1Semibold:()=>Qn,typographyLabel2Bold:()=>oa,typographyLabel2Medium:()=>ea,typographyLabel2Semibold:()=>ra,typographyTitle1:()=>zn,typographyTitle2:()=>Vn,typographyTitle3:()=>jn,typographyVariants:()=>eu});var Ce=r=>typeof r=="string"?ve(r):r,o=class{static create(t,e,i,n){let a=l=>Ce(l??n),s=P`var(${Ce(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${Ce(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,e,i,n){let a=l=>i.get(l??n),s=P`var(${Ce(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${Ce(t)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(t,e){let i=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):Ce(a??t.lastResortDefaultValue()),n=P`var(${Ce(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=a=>P`var(${Ce(t.name)}, ${i(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};function x(r,t){return Ce(`${r.name}: ${t}`)}var d={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Hn={fontFamily:o.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-textCase","","UNKNOWN","none")},zn={fontFamily:o.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Vn={fontFamily:o.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},jn={fontFamily:o.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Gn={fontFamily:o.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},Kn={fontFamily:o.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Zn={fontFamily:o.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},qn={fontFamily:o.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Yn={fontFamily:o.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Fl={fontFamily:o.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Xn={fontFamily:o.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Jn={fontFamily:o.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Qn={fontFamily:o.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},ta={fontFamily:o.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},ea={fontFamily:o.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},ra={fontFamily:o.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},oa={fontFamily:o.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},ia={fontFamily:o.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},na={fontFamily:o.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},aa={fontFamily:o.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},sa={fontFamily:o.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},la={fontFamily:o.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},ca={fontFamily:o.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},da={fontFamily:o.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},pa={fontFamily:o.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},ua={fontFamily:o.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},So={display:Hn,"title-1":zn,"title-2":Vn,"title-3":jn,"body-1-regular":Gn,"body-1-medium":Kn,"body-1-semibold":Zn,"body-2-regular":qn,"body-2-medium":Yn,"body-2-medium-underline":Fl,"body-2-semibold":Xn,"label-1-medium":Jn,"label-1-semibold":Qn,"label-1-bold":ta,"label-2-medium":ea,"label-2-semibold":ra,"label-2-bold":oa,"caption-1-medium":ia,"caption-1-semibold":na,"caption-1-bold":aa,"caption-2-medium":sa,"caption-2-semibold":la,"caption-2-bold":ca,"caption-3-medium":da,"caption-3-semibold":pa,"caption-3-bold":ua},eu=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var u={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",d.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",d.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",d.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",d.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",d.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",d.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",d.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",d.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",d.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",d.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",d.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",d.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",d.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",d.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",d.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",d.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",d.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",d.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
7
+ Also for action icons.`,d.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",d.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",d.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",d.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",d.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",d.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",d.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",d.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",d.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",d.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",d.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",d.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",d.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",d.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",d.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",d.colorGray80),borderNeutralPrimary:o.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",d.colorGray200)};var b={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",d.spacing4),largeGap:o.extend("--ft-button-large-gap","",d.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",d.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",d.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",d.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",d.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",d.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",d.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",d.spacing2),smallGap:o.extend("--ft-button-small-gap","",d.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",d.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",d.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",d.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",d.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ft-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ft-button-primary-brand-hover-state-layer-opacity","",d.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ft-button-primary-brand-focus-state-layer-opacity","",d.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ft-button-primary-brand-active-state-layer-opacity","",d.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ft-button-primary-brand-disabled-component-opacity","",d.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",d.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",d.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",d.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ft-button-tertiary-brand-disabled-component-opacity","",d.opacity40),tertiaryInfoBackgroundColor:o.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ft-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",d.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",d.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ft-button-tertiary-info-active-state-layer-opacity","",d.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ft-button-tertiary-info-disabled-component-opacity","",d.opacity40),tertiarySuccessBackgroundColor:o.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ft-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",d.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",d.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ft-button-tertiary-success-active-state-layer-opacity","",d.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ft-button-tertiary-success-disabled-component-opacity","",d.opacity40),tertiaryWarningBackgroundColor:o.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ft-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",d.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",d.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",d.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ft-button-tertiary-warning-disabled-component-opacity","",d.opacity40),tertiaryErrorBackgroundColor:o.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ft-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",d.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",d.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ft-button-tertiary-error-active-state-layer-opacity","",d.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ft-button-tertiary-error-disabled-component-opacity","",d.opacity40),tertiaryNeutralBackgroundColor:o.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ft-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",d.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",d.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",d.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",d.opacity40),secondaryBrandBackgroundColor:o.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ft-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",d.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",d.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ft-button-secondary-brand-active-state-layer-opacity","",d.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ft-button-secondary-brand-disabled-component-opacity","",d.opacity40),secondaryBrandBorderColor:o.extend("--ft-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",d.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",d.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",d.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ft-button-secondary-neutral-disabled-component-opacity","",d.opacity40),secondaryNeutralBackgroundColor:o.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ft-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ft-button-secondary-info-hover-state-layer-opacity","",d.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ft-button-secondary-info-focus-state-layer-opacity","",d.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ft-button-secondary-info-active-state-layer-opacity","",d.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ft-button-secondary-info-disabled-component-opacity","",d.opacity40),secondaryInfoBackgroundColor:o.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ft-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ft-button-secondary-success-hover-state-layer-opacity","",d.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ft-button-secondary-success-focus-state-layer-opacity","",d.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ft-button-secondary-success-active-state-layer-opacity","",d.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ft-button-secondary-success-disabled-component-opacity","",d.opacity40),secondarySuccessBackgroundColor:o.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ft-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",d.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",d.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ft-button-secondary-warning-active-state-layer-opacity","",d.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ft-button-secondary-warning-disabled-component-opacity","",d.opacity40),secondaryWarningBackgroundColor:o.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ft-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ft-button-secondary-error-hover-state-layer-opacity","",d.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ft-button-secondary-error-focus-state-layer-opacity","",d.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ft-button-secondary-error-active-state-layer-opacity","",d.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ft-button-secondary-error-disabled-component-opacity","",d.opacity40),secondaryErrorBackgroundColor:o.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ft-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var ru={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",d.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",d.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",d.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",d.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",d.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",d.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",d.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",d.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",d.spacing1),largeBorderRadius:o.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-choice-large-icon-size","",d.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",d.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",d.spacing1),mediumBorderRadius:o.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-choice-medium-icon-size","",d.iconSize2)};var ou={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",d.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",d.spacing1),largeGap:o.extend("--ft-chip-large-gap","",d.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",d.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",d.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",d.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",d.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",d.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",d.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",d.spacing05),smallGap:o.extend("--ft-chip-small-gap","",d.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",d.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)};var iu={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",d.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",d.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",d.colorBrand100)};var nu={iconSize:o.extend("--ft-banner-icon-size","",d.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",d.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",d.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",d.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",d.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",d.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",d.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",d.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)};var au={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",d.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",d.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",d.borderRadiusPill),color:o.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",u.contentActionPrimary)};var su={horizontalGap:o.extend("--ft-breadcrumb-horizontal-gap","",d.spacing1),verticalGap:o.extend("--ft-breadcrumb-vertical-gap","",d.spacing2),currentColor:o.extend("--ft-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ft-breadcrumb-icon-color","",u.contentGlobalSubtle)};var lu={horizontalPadding:o.extend("--ft-page-header-horizontal-padding","",d.spacing6),horizontalGap:o.extend("--ft-page-header-horizontal-gap","",d.spacing4),verticalGap:o.extend("--ft-page-header-vertical-gap","",d.spacing2),classicVerticalPadding:o.extend("--ft-page-header-classic-vertical-padding","",d.spacing6),multilineVerticalPadding:o.extend("--ft-page-header-multiline-vertical-padding","",d.spacing4),inlineVerticalPadding:o.extend("--ft-page-header-inline-vertical-padding","",d.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",d.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),titleColor:o.extend("--ft-page-header-title-color","",u.contentGlobalPrimary),subtitleColor:o.extend("--ft-page-header-subtitle-color","",u.contentGlobalSecondary)};var cu={smallContainerTargetWidth:o.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ft-modal-small-container-margin","",d.spacing6),mediumContainerTargetWidth:o.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ft-modal-medium-container-margin","",d.spacing6),largeContainerTargetWidth:o.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ft-modal-large-container-margin","",d.spacing6),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",d.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",d.opacity40),shadow:o.extend("--ft-modal-shadow","",d.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",d.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",d.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",d.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",d.spacing6),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",d.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",d.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",d.spacing6),headerGap:o.extend("--ft-modal-header-gap","",d.spacing2),headerBorderBottomWidth:o.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",d.borderRadiusM)};var du={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",d.opacity40),shadow:o.extend("--ft-drawer-shadow","",d.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",d.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",d.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",d.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",d.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",d.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",d.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",d.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",d.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",d.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",d.colorGray700)};var pu={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",d.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",d.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",d.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",d.opacity40),offColor:o.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",d.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",d.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",d.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",d.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",d.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",d.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",d.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",d.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",d.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",d.opacity24),onColor:o.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",d.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",d.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",d.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",d.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)};var uu={fieldHorizontalPadding:o.extend("--ft-text-input-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:o.extend("--ft-text-input-field-horizontal-gap","",d.spacing3),fieldVerticalGap:o.extend("--ft-text-input-field-vertical-gap","",d.spacing05),fieldIconSize:o.extend("--ft-text-input-field-icon-size","",d.iconSize3),fieldHeight:o.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",d.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",d.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",d.borderRadiusM),backgroundColor:o.extend("--ft-text-input-background-color","",d.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",d.opacity40)};var fu={backgroundColor:o.extend("--ft-text-area-background-color","",d.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",d.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",d.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",d.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",d.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",d.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",d.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",d.borderRadiusM)};var hu={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",d.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",d.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",d.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",d.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",d.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",d.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",d.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",d.shadowElevation02)};var mu={fieldHorizontalPadding:o.extend("--ft-combobox-single-select-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-single-select-field-horizontal-gap","",d.spacing3),fieldVerticalGap:o.extend("--ft-combobox-single-select-field-vertical-gap","",d.spacing05),fieldIconSize:o.extend("--ft-combobox-single-select-field-icon-size","",d.iconSize3),fieldHeight:o.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",d.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",d.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",d.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",d.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",d.borderRadiusM),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",d.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",d.opacity40)};var yu={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",d.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",d.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",d.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",d.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",d.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",d.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",d.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",d.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",d.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",d.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",d.borderRadiusM)};var gu={backgroundColor:o.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",d.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",d.spacing6),titleColor:o.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",u.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",u.contentActionPrimary),gap:o.extend("--ft-popover-gap","",d.spacing3),borderRadius:o.extend("--ft-popover-border-radius","",d.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",d.shadowElevation02),maxWidth:o.create("--ft-popover-max-width","","SIZE","440px")};var bu={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",d.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",d.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",d.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",d.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",d.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",d.spacing3),color:o.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",d.iconSize3)};var vu={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",d.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",d.spacing1),groupGap:o.extend("--ft-switch-group-gap","",d.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",d.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",d.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",d.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",d.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",d.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",d.opacity40),offColor:o.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",d.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",d.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",d.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",d.opacity40),onColor:o.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",d.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",d.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",d.borderRadiusS)};var xu={color1Light:o.extend("--ft-chart-1-light","for area color charts",d.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",d.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",d.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",d.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",d.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",d.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",d.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",d.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",d.colorRed40),color5Base:o.extend("--ft-chart-5-base","",d.colorRed60),color6Light:o.extend("--ft-chart-6-light","",d.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",d.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",d.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",d.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",d.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",d.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",d.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",d.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",d.colorGray50),color10Base:o.extend("--ft-chart-10-base","",d.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",d.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",d.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",d.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",d.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",d.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",d.colorBrand200)};var Su={color1IconColor:o.extend("--ft-page-designer-1-icon-color","for area color charts",d.colorCyan0),color1ToolbarColor:o.extend("--ft-page-designer-1-toolbar-color","for area color charts",d.colorCyan0),color2IconColor:o.extend("--ft-page-designer-2-icon-color","for area color charts",d.colorBrand0),color2ToolbarColor:o.extend("--ft-page-designer-2-toolbar-color","for area color charts",d.colorBrand0),color3IconColor:o.extend("--ft-page-designer-3-icon-color","for area color charts",d.colorYellow200),color3ToolbarColor:o.extend("--ft-page-designer-3-toolbar-color","for area color charts",d.colorYellow200),color4IconColor:o.extend("--ft-page-designer-4-icon-color","for area color charts",d.colorUltramarine50),color4ToolbarColor:o.extend("--ft-page-designer-4-toolbar-color","for area color charts",d.colorUltramarine50),color5IconColor:o.extend("--ft-page-designer-5-icon-color","for area color charts",d.colorGreen0),color5ToolbarColor:o.extend("--ft-page-designer-5-toolbar-color","for area color charts",d.colorGreen0),color6IconColor:o.extend("--ft-page-designer-6-icon-color","for area color charts",d.colorOrange0),color6ToolbarColor:o.extend("--ft-page-designer-6-toolbar-color","for area color charts",d.colorOrange0),color7IconColor:o.extend("--ft-page-designer-7-icon-color","for area color charts",d.colorAvocado200),color7ToolbarColor:o.extend("--ft-page-designer-7-toolbar-color","for area color charts",d.colorAvocado200),color8IconColor:o.extend("--ft-page-designer-8-icon-color","for area color charts",d.colorBrown0),color8ToolbarColor:o.extend("--ft-page-designer-8-toolbar-color","for area color charts",d.colorBrown0)};var Ou={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",d.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",d.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",d.borderRadiusS),gap:o.extend("--ft-notice-gap","",d.spacing2),iconSize:o.extend("--ft-notice-icon-size","",d.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly)};var Cu={color:o.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",d.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",d.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",d.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",d.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",d.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",d.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",d.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",d.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",d.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",d.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-checkbox-gap","",d.spacing3)};var Eu={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",d.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",d.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",d.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",d.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",d.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",d.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",d.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",d.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",d.spacing3)};var wu={color:o.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",d.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",d.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",d.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",d.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",d.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",d.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",d.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",d.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-radio-gap","",d.spacing3)};var Au={iconSize:o.extend("--ft-notification-icon-size","",d.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",d.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",d.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",d.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",d.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",d.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",d.spacing8)};var Ru={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",d.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",d.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",d.borderRadiusS),color:o.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",d.opacity80),shadow:o.extend("--ft-tooltip-shadow","",d.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",d.spacing05)};var hr;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(hr||(hr={}));var Ee;(function(r){r.large="large",r.medium="medium",r.small="small"})(Ee||(Ee={}));function fa(r){return`ftds--family-${r}`}function ha(r){return`ftds--size-${r}`}var N={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:o.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:o.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:o.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:o.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:o.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:o.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:o.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:o.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:o.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:o.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var va={};rt(va,{FtNotificationEvent:()=>kt,PostResizeEvent:()=>ba,PreResizeEvent:()=>ga});var kt=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},ga=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ba=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var Pa={};rt(Pa,{computeFlipOffsetPosition:()=>Zu,computeOffsetPosition:()=>To});var Bl=["top","right","bottom","left"],Ul=["start","end"],xa=Bl.reduce((r,t)=>r.concat(t,t+"-"+Ul[0],t+"-"+Ul[1]),[]),Eo=Math.min,Ue=Math.max,wo=Math.round;var we=r=>({x:r,y:r}),_u={left:"right",right:"left",bottom:"top",top:"bottom"},Nu={start:"end",end:"start"};function Sa(r,t,e){return Ue(r,Eo(t,e))}function Dr(r,t){return typeof r=="function"?r(t):r}function pe(r){return r.split("-")[0]}function ue(r){return r.split("-")[1]}function Oa(r){return r==="x"?"y":"x"}function Ca(r){return r==="y"?"height":"width"}function Ao(r){return["top","bottom"].includes(pe(r))?"y":"x"}function Ea(r){return Oa(Ao(r))}function wa(r,t,e){e===void 0&&(e=!1);let i=ue(r),n=Ea(r),a=Ca(n),s=n==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Co(s)),[s,Co(s)]}function Wl(r){let t=Co(r);return[Oo(r),t,Oo(t)]}function Oo(r){return r.replace(/start|end/g,t=>Nu[t])}function Tu(r,t,e){let i=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(r){case"top":case"bottom":return e?t?n:i:t?i:n;case"left":case"right":return t?a:s;default:return[]}}function Hl(r,t,e,i){let n=ue(r),a=Tu(pe(r),e==="start",i);return n&&(a=a.map(s=>s+"-"+n),t&&(a=a.concat(a.map(Oo)))),a}function Co(r){return r.replace(/left|right|bottom|top/g,t=>_u[t])}function Iu(r){return{top:0,right:0,bottom:0,left:0,...r}}function zl(r){return typeof r!="number"?Iu(r):{top:r,right:r,bottom:r,left:r}}function mr(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function Vl(r,t,e){let{reference:i,floating:n}=r,a=Ao(t),s=Ea(t),l=Ca(s),c=pe(t),p=a==="y",h=i.x+i.width/2-n.width/2,f=i.y+i.height/2-n.height/2,m=i[l]/2-n[l]/2,v;switch(c){case"top":v={x:h,y:i.y-n.height};break;case"bottom":v={x:h,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:f};break;case"left":v={x:i.x-n.width,y:f};break;default:v={x:i.x,y:i.y}}switch(ue(t)){case"start":v[s]-=m*(e&&p?-1:1);break;case"end":v[s]+=m*(e&&p?-1:1);break}return v}var jl=async(r,t,e)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=e,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:r,floating:t,strategy:n}),{x:h,y:f}=Vl(p,i,c),m=i,v={},S=0;for(let w=0;w<l.length;w++){let{name:$,fn:_}=l[w],{x:I,y:C,data:E,reset:A}=await _({x:h,y:f,initialPlacement:i,placement:m,strategy:n,middlewareData:v,rects:p,platform:s,elements:{reference:r,floating:t}});if(h=I??h,f=C??f,v={...v,[$]:{...v[$],...E}},A&&S<=50){S++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(p=A.rects===!0?await s.getElementRects({reference:r,floating:t,strategy:n}):A.rects),{x:h,y:f}=Vl(p,m,c)),w=-1;continue}}return{x:h,y:f,placement:m,strategy:n,middlewareData:v}};async function yi(r,t){var e;t===void 0&&(t={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:c}=r,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:m=!1,padding:v=0}=Dr(t,r),S=zl(v),$=l[m?f==="floating"?"reference":"floating":f],_=mr(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement($)))==null||e?$:$.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:c})),I=f==="floating"?{...s.floating,x:i,y:n}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),E=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},A=mr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:I,offsetParent:C,strategy:c}):I);return{top:(_.top-A.top+S.top)/E.y,bottom:(A.bottom-_.bottom+S.bottom)/E.y,left:(_.left-A.left+S.left)/E.x,right:(A.right-_.right+S.right)/E.x}}function $u(r,t,e){return(r?[...e.filter(n=>ue(n)===r),...e.filter(n=>ue(n)!==r)]:e.filter(n=>pe(n)===n)).filter(n=>r?ue(n)===r||(t?Oo(n)!==n:!1):!0)}var Aa=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(t){var e,i,n;let{rects:a,middlewareData:s,placement:l,platform:c,elements:p}=t,{crossAxis:h=!1,alignment:f,allowedPlacements:m=xa,autoAlignment:v=!0,...S}=Dr(r,t),w=f!==void 0||m===xa?$u(f||null,v,m):m,$=await yi(t,S),_=((e=s.autoPlacement)==null?void 0:e.index)||0,I=w[_];if(I==null)return{};let C=wa(I,a,await(c.isRTL==null?void 0:c.isRTL(p.floating)));if(l!==I)return{reset:{placement:w[0]}};let E=[$[pe(I)],$[C[0]],$[C[1]]],A=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:I,overflows:E}],F=w[_+1];if(F)return{data:{index:_+1,overflows:A},reset:{placement:F}};let Z=A.map(D=>{let y=ue(D.placement);return[D.placement,y&&h?D.overflows.slice(0,2).reduce((O,k)=>O+k,0):D.overflows[0],D.overflows]}).sort((D,y)=>D[1]-y[1]),tt=((n=Z.filter(D=>D[2].slice(0,ue(D[0])?2:3).every(y=>y<=0))[0])==null?void 0:n[0])||Z[0][0];return tt!==l?{data:{index:_+1,overflows:A},reset:{placement:tt}}:{}}}},Ra=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(t){var e,i;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:c,elements:p}=t,{mainAxis:h=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:w=!0,...$}=Dr(r,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let _=pe(n),I=pe(l)===l,C=await(c.isRTL==null?void 0:c.isRTL(p.floating)),E=m||(I||!w?[Co(l)]:Wl(l));!m&&S!=="none"&&E.push(...Hl(l,w,S,C));let A=[l,...E],F=await yi(t,$),Z=[],J=((i=a.flip)==null?void 0:i.overflows)||[];if(h&&Z.push(F[_]),f){let O=wa(n,s,C);Z.push(F[O[0]],F[O[1]])}if(J=[...J,{placement:n,overflows:Z}],!Z.every(O=>O<=0)){var tt,D;let O=(((tt=a.flip)==null?void 0:tt.index)||0)+1,k=A[O];if(k)return{data:{index:O,overflows:J},reset:{placement:k}};let j=(D=J.filter(Y=>Y.overflows[0]<=0).sort((Y,W)=>Y.overflows[1]-W.overflows[1])[0])==null?void 0:D.placement;if(!j)switch(v){case"bestFit":{var y;let Y=(y=J.map(W=>[W.placement,W.overflows.filter(ae=>ae>0).reduce((ae,ro)=>ae+ro,0)]).sort((W,ae)=>W[1]-ae[1])[0])==null?void 0:y[0];Y&&(j=Y);break}case"initialPlacement":j=l;break}if(n!==j)return{reset:{placement:j}}}return{}}}};async function Pu(r,t){let{placement:e,platform:i,elements:n}=r,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=pe(e),l=ue(e),c=Ao(e)==="y",p=["left","top"].includes(s)?-1:1,h=a&&c?-1:1,f=Dr(t,r),{mainAxis:m,crossAxis:v,alignmentAxis:S}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof S=="number"&&(v=l==="end"?S*-1:S),c?{x:v*h,y:m*p}:{x:m*p,y:v*h}}var _a=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(t){var e,i;let{x:n,y:a,placement:s,middlewareData:l}=t,c=await Pu(t,r);return s===((e=l.offset)==null?void 0:e.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+c.x,y:a+c.y,data:{...c,placement:s}}}}},Na=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){let{x:e,y:i,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:$=>{let{x:_,y:I}=$;return{x:_,y:I}}},...c}=Dr(r,t),p={x:e,y:i},h=await yi(t,c),f=Ao(pe(n)),m=Oa(f),v=p[m],S=p[f];if(a){let $=m==="y"?"top":"left",_=m==="y"?"bottom":"right",I=v+h[$],C=v-h[_];v=Sa(I,v,C)}if(s){let $=f==="y"?"top":"left",_=f==="y"?"bottom":"right",I=S+h[$],C=S-h[_];S=Sa(I,S,C)}let w=l.fn({...t,[m]:v,[f]:S});return{...w,data:{x:w.x-e,y:w.y-i}}}}};function Ae(r){return Kl(r)?(r.nodeName||"").toLowerCase():"#document"}function Bt(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function Re(r){var t;return(t=(Kl(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function Kl(r){return r instanceof Node||r instanceof Bt(r).Node}function fe(r){return r instanceof Element||r instanceof Bt(r).Element}function te(r){return r instanceof HTMLElement||r instanceof Bt(r).HTMLElement}function Gl(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Bt(r).ShadowRoot}function Mr(r){let{overflow:t,overflowX:e,overflowY:i,display:n}=Gt(r);return/auto|scroll|overlay|hidden|clip/.test(t+i+e)&&!["inline","contents"].includes(n)}function Zl(r){return["table","td","th"].includes(Ae(r))}function bi(r){let t=vi(),e=Gt(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(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function ql(r){let t=yr(r);for(;te(t)&&!Ro(t);){if(bi(t))return t;t=yr(t)}return null}function vi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ro(r){return["html","body","#document"].includes(Ae(r))}function Gt(r){return Bt(r).getComputedStyle(r)}function _o(r){return fe(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function yr(r){if(Ae(r)==="html")return r;let t=r.assignedSlot||r.parentNode||Gl(r)&&r.host||Re(r);return Gl(t)?t.host:t}function Yl(r){let t=yr(r);return Ro(t)?r.ownerDocument?r.ownerDocument.body:r.body:te(t)&&Mr(t)?t:Yl(t)}function gi(r,t,e){var i;t===void 0&&(t=[]),e===void 0&&(e=!0);let n=Yl(r),a=n===((i=r.ownerDocument)==null?void 0:i.body),s=Bt(n);return a?t.concat(s,s.visualViewport||[],Mr(n)?n:[],s.frameElement&&e?gi(s.frameElement):[]):t.concat(n,gi(n,[],e))}function Ql(r){let t=Gt(r),e=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=te(r),a=n?r.offsetWidth:e,s=n?r.offsetHeight:i,l=wo(e)!==a||wo(i)!==s;return l&&(e=a,i=s),{width:e,height:i,$:l}}function tc(r){return fe(r)?r:r.contextElement}function Fr(r){let t=tc(r);if(!te(t))return we(1);let e=t.getBoundingClientRect(),{width:i,height:n,$:a}=Ql(t),s=(a?wo(e.width):e.width)/i,l=(a?wo(e.height):e.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Lu=we(0);function ec(r){let t=Bt(r);return!vi()||!t.visualViewport?Lu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ku(r,t,e){return t===void 0&&(t=!1),!e||t&&e!==Bt(r)?!1:t}function No(r,t,e,i){t===void 0&&(t=!1),e===void 0&&(e=!1);let n=r.getBoundingClientRect(),a=tc(r),s=we(1);t&&(i?fe(i)&&(s=Fr(i)):s=Fr(r));let l=ku(a,e,i)?ec(a):we(0),c=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,h=n.width/s.x,f=n.height/s.y;if(a){let m=Bt(a),v=i&&fe(i)?Bt(i):i,S=m.frameElement;for(;S&&i&&v!==m;){let w=Fr(S),$=S.getBoundingClientRect(),_=Gt(S),I=$.left+(S.clientLeft+parseFloat(_.paddingLeft))*w.x,C=$.top+(S.clientTop+parseFloat(_.paddingTop))*w.y;c*=w.x,p*=w.y,h*=w.x,f*=w.y,c+=I,p+=C,S=Bt(S).frameElement}}return mr({width:h,height:f,x:c,y:p})}function Du(r){let{rect:t,offsetParent:e,strategy:i}=r,n=te(e),a=Re(e);if(e===a)return t;let s={scrollLeft:0,scrollTop:0},l=we(1),c=we(0);if((n||!n&&i!=="fixed")&&((Ae(e)!=="body"||Mr(a))&&(s=_o(e)),te(e))){let p=No(e);l=Fr(e),c.x=p.x+e.clientLeft,c.y=p.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 Mu(r){return Array.from(r.getClientRects())}function rc(r){return No(Re(r)).left+_o(r).scrollLeft}function Fu(r){let t=Re(r),e=_o(r),i=r.ownerDocument.body,n=Ue(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=Ue(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-e.scrollLeft+rc(r),l=-e.scrollTop;return Gt(i).direction==="rtl"&&(s+=Ue(t.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Uu(r,t){let e=Bt(r),i=Re(r),n=e.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,c=0;if(n){a=n.width,s=n.height;let p=vi();(!p||p&&t==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:a,height:s,x:l,y:c}}function Bu(r,t){let e=No(r,!0,t==="fixed"),i=e.top+r.clientTop,n=e.left+r.clientLeft,a=te(r)?Fr(r):we(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,c=n*a.x,p=i*a.y;return{width:s,height:l,x:c,y:p}}function Xl(r,t,e){let i;if(t==="viewport")i=Uu(r,e);else if(t==="document")i=Fu(Re(r));else if(fe(t))i=Bu(t,e);else{let n=ec(r);i={...t,x:t.x-n.x,y:t.y-n.y}}return mr(i)}function oc(r,t){let e=yr(r);return e===t||!fe(e)||Ro(e)?!1:Gt(e).position==="fixed"||oc(e,t)}function Wu(r,t){let e=t.get(r);if(e)return e;let i=gi(r,[],!1).filter(l=>fe(l)&&Ae(l)!=="body"),n=null,a=Gt(r).position==="fixed",s=a?yr(r):r;for(;fe(s)&&!Ro(s);){let l=Gt(s),c=bi(s);!c&&l.position==="fixed"&&(n=null),(a?!c&&!n:!c&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Mr(s)&&!c&&oc(r,s))?i=i.filter(h=>h!==s):n=l,s=yr(s)}return t.set(r,i),i}function Hu(r){let{element:t,boundary:e,rootBoundary:i,strategy:n}=r,s=[...e==="clippingAncestors"?Wu(t,this._c):[].concat(e),i],l=s[0],c=s.reduce((p,h)=>{let f=Xl(t,h,n);return p.top=Ue(f.top,p.top),p.right=Eo(f.right,p.right),p.bottom=Eo(f.bottom,p.bottom),p.left=Ue(f.left,p.left),p},Xl(t,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function zu(r){return Ql(r)}function Vu(r,t,e){let i=te(t),n=Re(t),a=e==="fixed",s=No(r,!0,a,t),l={scrollLeft:0,scrollTop:0},c=we(0);if(i||!i&&!a)if((Ae(t)!=="body"||Mr(n))&&(l=_o(t)),i){let p=No(t,!0,a,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else n&&(c.x=rc(n));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Jl(r,t){return!te(r)||Gt(r).position==="fixed"?null:t?t(r):r.offsetParent}function ic(r,t){let e=Bt(r);if(!te(r))return e;let i=Jl(r,t);for(;i&&Zl(i)&&Gt(i).position==="static";)i=Jl(i,t);return i&&(Ae(i)==="html"||Ae(i)==="body"&&Gt(i).position==="static"&&!bi(i))?e:i||ql(r)||e}var ju=async function(r){let{reference:t,floating:e,strategy:i}=r,n=this.getOffsetParent||ic,a=this.getDimensions;return{reference:Vu(t,await n(e),i),floating:{x:0,y:0,...await a(e)}}};function Gu(r){return Gt(r).direction==="rtl"}var Ur={convertOffsetParentRelativeRectToViewportRelativeRect:Du,getDocumentElement:Re,getClippingRect:Hu,getOffsetParent:ic,getElementRects:ju,getClientRects:Mu,getDimensions:zu,getScale:Fr,isElement:fe,isRTL:Gu};var Ta=(r,t,e)=>{let i=new Map,n={platform:Ur,...e},a={...n.platform,_c:i};return jl(r,t,{...n,platform:a})};function $a(r){return Ku(r)}function Ia(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Ku(r){for(let t=r;t;t=Ia(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Ia(r);t;t=Ia(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 To(r,t,e){return Ta(r,t,{platform:{...Ur,getOffsetParent:i=>Ur.getOffsetParent(i,$a)},middleware:[Na({crossAxis:!0}),Aa({allowedPlacements:[e]})]})}async function Zu(r,t,e,i,n){return Ta(r,t,{placement:e,strategy:n,platform:{...Ur,getOffsetParent:a=>Ur.getOffsetParent(a,$a)},middleware:[_a(4),Ra({fallbackPlacements:i})]})}var Ma={};rt(Ma,{FtdsBase:()=>Da,toFtdsBase:()=>Oi});var ka={};rt(ka,{FtLitElement:()=>V});var La={};rt(La,{ScopedRegistryLitElement:()=>Io});var xi=window,qu=xi.ShadowRoot&&(xi.ShadyCSS===void 0||xi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,kb=Symbol();var nc=(r,t)=>{qu?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let i=document.createElement("style"),n=xi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)})};var Io=class extends Se{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},i=this.renderOptions.creationScope=this.attachShadow(e);return nc(i,t.elementStyles),i}};var Si=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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},cc,ac=Symbol("constructorPrototype"),sc=Symbol("constructorName"),dc=Symbol("exportpartsDebouncer"),lc=Symbol("dynamicDependenciesLoaded"),V=class extends Io{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[cc]=new at(5),this[sc]=this.constructor.name,this[ac]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[sc]&&Object.setPrototypeOf(this,this[ac])}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[lc]||(t[lc]=!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,i,n;if(((i=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).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,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(e=this.exportpartsPrefixes)===null||e===void 0?void 0:e.length)!==null&&i!==void 0&&i)&&this[dc].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,i,n,a,s,l;let c=m=>m!=null&&m.trim().length>0,p=t.filter(c).map(m=>m.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let m of(i=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let v=(a=(n=m.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(l=(s=m.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(w=>w.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...S).filter(c).map(w=>w.trim()).forEach(w=>h.add(w))}if(h.size===0){this.removeAttribute("exportparts");return}let f=[...h.values()].flatMap(m=>p.map(v=>`${m}:${v}--${m}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};cc=dc;Si([g()],V.prototype,"exportpartsPrefix",void 0);Si([de([])],V.prototype,"exportpartsPrefixes",void 0);Si([g()],V.prototype,"customStylesheet",void 0);Si([z()],V.prototype,"useAdoptedStyleSheets",void 0);var pc=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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 Oi(r){class t extends r{constructor(){super(...arguments),this.size=Ee.medium,this.family=hr.neutral}getDesignSystemBaseClasses(){return{[fa(this.family)]:!0,[ha(this.size)]:!0}}}return pc([g()],t.prototype,"size",void 0),pc([g()],t.prototype,"family",void 0),t}var Da=class extends Oi(V){};var uc={};var Ba={};rt(Ba,{highlightHtml:()=>Ua,highlightHtmlColorCssVariable:()=>fc,highlightHtmlStyles:()=>Xu});var gr=class r{constructor(t,e=!0,i=[],n=5e3){this.ctx=t,this.iframes=e,this.exclude=i,this.iframesTimeout=n}static matches(t,e){let i=typeof e=="string"?[e]:e,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(n){let a=!1;return i.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(i=>{let n=e.filter(a=>a.contains(i)).length>0;e.indexOf(i)===-1&&!n&&e.push(i)}),e}getIframeContents(t,e,i=()=>{}){let n;try{let a=t.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&e(n)}isIframeBlank(t){let e="about:blank",i=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&i!==e&&i}observeIframeLoad(t,e,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,e,i))}catch{i()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,e,i){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,e,i):this.getIframeContents(t,e,i):this.observeIframeLoad(t,e,i)}catch{i()}}waitForIframes(t,e){let i=0;this.forEachIframe(t,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||e()})},n=>{n||e()})}forEachIframe(t,e,i,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(p=>{r.matches(p,this.exclude)?c():this.onIframeReady(p,h=>{e(p)&&(l++,i(h)),c()},c)})}createIterator(t,e,i){return document.createNodeIterator(t,e,i,!1)}createInstanceOnIframe(t){return new r(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,i){let n=t.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(e!==null){let s=e.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let e=t.previousNode(),i;return e===null?i=t.nextNode():i=t.nextNode()&&t.nextNode(),{prevNode:e,node:i}}checkIframeFilter(t,e,i,n){let a=!1,s=!1;return n.forEach((l,c)=>{l.val===i&&(a=c,s=l.handled)}),this.compareNodeIframe(t,e,i)?(a===!1&&!s?n.push({val:i,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(t,e,i,n){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(e,i,n)})})}iterateThroughNodes(t,e,i,n,a){let s=this.createIterator(e,t,n),l=[],c=[],p,h,f=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;f();)this.iframes&&this.forEachIframe(e,m=>this.checkIframeFilter(p,h,m,l),m=>{this.createInstanceOnIframe(m).forEachNode(t,v=>c.push(v),n)}),c.push(p);c.forEach(m=>{i(m)}),this.iframes&&this.handleOpenIframes(l,t,i,n),a()}forEachNode(t,e,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let c=()=>{this.iterateThroughNodes(t,l,e,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,c):c()})}};var $o=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 gr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[e]=="function"&&i[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,i=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${i}`),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,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?e:e+"\0"})}createJoinersRegExp(t){let e=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&e.push(this.escapeStr(i.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",i=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=>{i.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",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,a=typeof i=="string"?[]:i.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(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&e.indexOf(n)===-1&&e.push(n)}):i.trim()&&e.indexOf(i)===-1&&e.push(i)}),{keywords:e.sort((i,n)=>n.length-i.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=[],i=0;return t.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=a,n.length=s-a,e.push(n),i=s)}),e}callNoMatchOnInvalidRanges(t,e){let i,n,a=!1;return t&&typeof t.start<"u"?(i=parseInt(t.start,10),n=i+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&n-e>0&&n-i>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:i,end:n,valid:a}}checkWhitespaceRanges(t,e,i){let n,a=!0,s=i.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)):i.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="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.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:i})})}matchesExclude(t){return gr.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,i){let n=this.opt.element?this.opt.element:"mark",a=t.splitText(e),s=a.splitText(i-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,i,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 p=e-s.start,h=(i>s.end?s.end:i)-s.start,f=t.value.substr(0,s.start),m=t.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,h),t.value=f+m,t.nodes.forEach((v,S)=>{S>=l&&(t.nodes[S].start>0&&S!==l&&(t.nodes[S].start-=h),t.nodes[S].end-=h)}),i-=h,a(s.node.previousSibling,s.start),i>s.end)e=s.end;else return!1}return!0})}wrapMatches(t,e,i,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{l.nodes.forEach(c=>{c=c.node;let p;for(;(p=t.exec(c.textContent))!==null&&p[s]!=="";){if(!i(p[s],c))continue;let h=p.index;if(s!==0)for(let f=1;f<s;f++)h+=p[f].length;c=this.wrapRangeInTextNode(c,h,h+p[s].length),n(c.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,e,i,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{let c;for(;(c=t.exec(l.value))!==null&&c[s]!=="";){let p=c.index;if(s!==0)for(let f=1;f<s;f++)p+=c[f].length;let h=p+c[s].length;this.wrapRangeInMappedTextNode(l,p,h,f=>i(c[s],f),(f,m)=>{t.lastIndex=m,n(f)})}a()})}wrapRangeFromIndex(t,e,i,n){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,c)=>{let{start:p,end:h,valid:f}=this.checkWhitespaceRanges(l,s,a.value);f&&this.wrapRangeInMappedTextNode(a,p,h,m=>e(m,l,a.value.substring(p,h),c),m=>{i(m,l)})}),n()})}unwrapMatches(t){let e=t.parentNode,i=document.createDocumentFragment();for(;t.firstChild;)i.appendChild(t.removeChild(t.firstChild));e.replaceChild(i,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 i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](t,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(t),this.opt.done(i)})}mark(t,e){this.opt=e;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",c=p=>{let h=new RegExp(this.createRegExp(p),`gm${l}`),f=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(m,v)=>this.opt.filter(v,p,i,f),m=>{f++,i++,this.opt.each(m)},()=>{f===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(i):c(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):c(a[0])}markRanges(t,e){this.opt=e;let i=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)=>{i++,this.opt.each(a,s)},()=>{this.opt.done(i)})):this.opt.done(i)}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,i=>{this.unwrapMatches(i)},i=>{let n=gr.matches(i,e),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Fa(r){let t=new $o(r);return this.mark=(e,i)=>(t.mark(e,i),this),this.markRegExp=(e,i)=>(t.markRegExp(e,i),this),this.markRanges=(e,i)=>(t.markRanges(e,i),this),this.unmark=e=>(t.unmark(e),this),this}var Yu=Fa,fc=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Xu=P`
8
8
  .highlight-html-match {
9
9
  background: ${fc};
10
10
  }
11
- `;function Fa(r,e,t){var o,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new qu(r);if(s.unmark(),e&&e.trim()){let l={className:(o=t?.className)!==null&&o!==void 0?o:"highlight-html-match"};t?.attributes!=null&&(l.each=p=>{for(let h in t.attributes)p.setAttribute(h,t.attributes[h])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var Ha={};re(Ha,{noTextInputDefaultClearButton:()=>za,noTextSelect:()=>br,safariEllipsisFix:()=>vr,wordWrap:()=>Xu});var br=P`
11
+ `;function Ua(r,t,e){var i,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(t??"")){let s=new Yu(r);if(s.unmark(),t&&t.trim()){let l={className:(i=e?.className)!==null&&i!==void 0?i:"highlight-html-match"};e?.attributes!=null&&(l.each=p=>{for(let h in e.attributes)p.setAttribute(h,e.attributes[h])}),s.mark(t.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=t.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",t??"")}var Ha={};rt(Ha,{noTextInputDefaultClearButton:()=>Wa,noTextSelect:()=>br,safariEllipsisFix:()=>vr,wordWrap:()=>Ju});var br=P`
12
12
  .ft-no-text-select {
13
13
  -webkit-touch-callout: none;
14
14
  -webkit-user-select: none;
@@ -17,7 +17,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
17
17
  -ms-user-select: none;
18
18
  user-select: none;
19
19
  }
20
- `,Xu=P`
20
+ `,Ju=P`
21
21
  .ft-word-wrap {
22
22
  white-space: normal;
23
23
  word-wrap: break-word;
@@ -40,14 +40,14 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
40
40
  display: inline-block;
41
41
  width: 0;
42
42
  }
43
- `,za=P`
43
+ `,Wa=P`
44
44
  input::-webkit-search-cancel-button,
45
45
  input::-webkit-search-decoration,
46
46
  input::-webkit-search-results-button,
47
47
  input::-webkit-search-results-decoration {
48
48
  display: none;
49
49
  }
50
- `;var hc={};var Wa={};re(Wa,{ParametrizedLabelResolver:()=>$o});var $o=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var o,n;e=this.resolvePluralKey(e,t);let a=(n=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((o,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(o,s))),e}resolvePluralKey(e,t){for(let o of t)if(typeof o=="number"){let n=`${String(e)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let o=n=>t?.includes("date")?e.toLocaleDateString(n):t?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var ms={};re(ms,{FtCommandQueue:()=>Lo,FtLitElementRedux:()=>Ze,FtReduxStore:()=>Tt,clearAllStores:()=>Df,isFtReduxStore:()=>xr,redux:()=>ce,reduxEventListener:()=>ko,reduxReactive:()=>Ju});var Ju=()=>(r,e)=>{var t;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(t=o.reduxReactiveProperties)===null||t===void 0||t.add(e)},ce=r=>{let e=r??{};return(t,o)=>{var n;let a={hasChanged:xo,attribute:!1,...e};y(a)(t,o);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=e.selector)!==null&&n!==void 0?n:l=>l[o],store:e.store})}},ko=r=>(e,t)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(t,r)};var Lo=class{constructor(){this.queue=[]}add(e,t=!1){t&&(this.queue=this.queue.filter(o=>o.type!==e.type)),this.queue.push(e)}consume(e){let t=this.queue.find(o=>o.type===e);return t&&(this.queue=this.queue.filter(o=>o!==t)),t}};function xr(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var mc,gc,yc,wi=Symbol("internalReduxEventsUnsubscribers"),Bt=Symbol("internalStoresUnsubscribers"),Sr=Symbol("internalStores"),Ze=class extends W{constructor(){super(...arguments),this[mc]=new Map,this[gc]=new Map,this[yc]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(t=>e.has(t))&&this.updateFromStores()}getUnnamedStore(){if(this[Sr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Sr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Sr].get(e)}addStore(e,t){var o;t=(o=t??(xr(e)?e.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(t),this.setupStore(t,e)}removeStore(e){let t=typeof e=="string"?e:e.name;this.unsubscribeFromStore(t),this[Sr].delete(t)}setupStore(e,t){this[Sr].set(e,t),this.subscribeToStore(e,t),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Sr].forEach((e,t)=>this.subscribeToStore(t,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,t)=>{let o=this.constructor.getPropertyOptions(t);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:t)){let n=this.getStore(e.store);n&&(e.store?this[Bt].has(e.store):this[Bt].size>0)&&(this[t]=e.selector(n.getState(),this))}})}subscribeToStore(e,t){var o;this[Bt].set(e,t.subscribe(()=>this.updateFromStores())),xr(t)&&t.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||t.name===n.store)){let s=l=>this[a](l);t.eventBus.addEventListener(n.eventName,s),this[wi].push(()=>t.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Bt].forEach((e,t)=>this.unsubscribeFromStore(t)),this[wi].forEach(e=>e()),this[wi]=[]}unsubscribeFromStore(e){this[Bt].has(e)&&this[Bt].get(e)(),this[Bt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};mc=Bt,gc=Sr,yc=wi;Ze.reduxProperties=new Map;Ze.reduxReactiveProperties=new Set;Ze.reduxEventListeners=new Map;function qe(r){for(var e=arguments.length,t=Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function _t(r){return!!r&&!!r[de]}function tt(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var o=Object.getPrototypeOf(t);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===sf}(r)||Array.isArray(r)||!!r[Ec]||!!(!((e=r.constructor)===null||e===void 0)&&e[Ec])||Ja(r)||Qa(r))}function Or(r,e,t){t===void 0&&(t=!1),Hr(r)===0?(t?Object.keys:zr)(r).forEach(function(o){t&&typeof o=="symbol"||e(o,r[o],r)}):r.forEach(function(o,n){return e(n,o,r)})}function Hr(r){var e=r[de];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:Ja(r)?2:Qa(r)?3:0}function Br(r,e){return Hr(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function Qu(r,e){return Hr(r)===2?r.get(e):r[e]}function Cc(r,e,t){var o=Hr(r);o===2?r.set(e,t):o===3?r.add(t):r[e]=t}function Ac(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function Ja(r){return nf&&r instanceof Map}function Qa(r){return af&&r instanceof Set}function zt(r){return r.o||r.t}function es(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=Tc(r);delete e[de];for(var t=zr(e),o=0;o<t.length;o++){var n=t[o],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),e)}function ts(r,e){return e===void 0&&(e=!1),rs(r)||_t(r)||!tt(r)||(Hr(r)>1&&(r.set=r.add=r.clear=r.delete=ef),Object.freeze(r),e&&Or(r,function(t,o){return ts(o,!0)},!0)),r}function ef(){qe(2)}function rs(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function ht(r){var e=Xa[r];return e||qe(18,r),e}function tf(r,e){Xa[r]||(Xa[r]=e)}function Za(){return Mo}function Va(r,e){e&&(ht("Patches"),r.u=[],r.s=[],r.v=e)}function Ei(r){qa(r),r.p.forEach(rf),r.p=null}function qa(r){r===Mo&&(Mo=r.l)}function bc(r){return Mo={p:[],l:Mo,h:r,m:!0,_:0}}function rf(r){var e=r[de];e.i===0||e.i===1?e.j():e.g=!0}function ja(r,e){e._=e.p.length;var t=e.p[0],o=r!==void 0&&r!==t;return e.h.O||ht("ES5").S(e,r,o),o?(t[de].P&&(Ei(e),qe(4)),tt(r)&&(r=Ci(e,r),e.l||Ai(e,r)),e.u&&ht("Patches").M(t[de].t,r,e.u,e.s)):r=Ci(e,t,[]),Ei(e),e.u&&e.v(e.u,e.s),r!==_c?r:void 0}function Ci(r,e,t){if(rs(e))return e;var o=e[de];if(!o)return Or(e,function(l,c){return vc(r,o,e,l,c,t)},!0),e;if(o.A!==r)return e;if(!o.P)return Ai(r,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=es(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),Or(a,function(l,c){return vc(r,o,n,l,c,t,s)}),Ai(r,n,!1),t&&r.u&&ht("Patches").N(o,t,r.u,r.s)}return o.o}function vc(r,e,t,o,n,a,s){if(_t(n)){var l=Ci(r,n,a&&e&&e.i!==3&&!Br(e.R,o)?a.concat(o):void 0);if(Cc(t,o,l),!_t(l))return;r.m=!1}else s&&t.add(n);if(tt(n)&&!rs(n)){if(!r.h.D&&r._<1)return;Ci(r,n),e&&e.A.l||Ai(r,n)}}function Ai(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&ts(e,t)}function Ka(r,e){var t=r[de];return(t?zt(t):r)[e]}function xc(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var o=Object.getOwnPropertyDescriptor(t,e);if(o)return o;t=Object.getPrototypeOf(t)}}function Ht(r){r.P||(r.P=!0,r.l&&Ht(r.l))}function Ga(r){r.o||(r.o=es(r.t))}function Ya(r,e,t){var o=Ja(e)?ht("MapSet").F(e,t):Qa(e)?ht("MapSet").T(e,t):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Za(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},c=l,p=Uo;s&&(c=[l],p=Do);var h=Proxy.revocable(c,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(e,t):ht("ES5").J(e,t);return(t?t.A:Za()).p.push(o),o}function of(r){return _t(r)||qe(22,r),function e(t){if(!tt(t))return t;var o,n=t[de],a=Hr(t);if(n){if(!n.P&&(n.i<4||!ht("ES5").K(n)))return n.t;n.I=!0,o=Sc(t,a),n.I=!1}else o=Sc(t,a);return Or(o,function(s,l){n&&Qu(n.t,s)===l||Cc(o,s,e(l))}),a===3?new Set(o):o}(r)}function Sc(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return es(r)}function Rc(){function r(s,l){var c=a[s];return c?c.enumerable=l:a[s]=c={configurable:!0,enumerable:l,get:function(){var p=this[de];return Uo.get(p,s)},set:function(p){var h=this[de];Uo.set(h,s,p)}},c}function e(s){for(var l=s.length-1;l>=0;l--){var c=s[l][de];if(!c.P)switch(c.i){case 5:o(c)&&Ht(c);break;case 4:t(c)&&Ht(c)}}}function t(s){for(var l=s.t,c=s.k,p=zr(c),h=p.length-1;h>=0;h--){var f=p[h];if(f!==de){var m=l[f];if(m===void 0&&!Br(l,f))return!0;var b=c[f],v=b&&b[de];if(v?v.t!==m:!Ac(b,m))return!0}}var w=!!l[de];return p.length!==zr(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 p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&qe(3,JSON.stringify(zt(s)))}var a={};tf("ES5",{J:function(s,l){var c=Array.isArray(s),p=function(f,m){if(f){for(var b=Array(m.length),v=0;v<m.length;v++)Object.defineProperty(b,""+v,r(v,!0));return b}var w=Tc(m);delete w[de];for(var I=zr(w),A=0;A<I.length;A++){var N=I[A];w[N]=r(N,f||!!w[N].enumerable)}return Object.create(Object.getPrototypeOf(m),w)}(c,s),h={i:c?5:4,A:l?l.A:Za(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,de,{value:h,writable:!0}),p},S:function(s,l,c){c?_t(l)&&l[de].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[de];if(f){var m=f.t,b=f.k,v=f.R,w=f.i;if(w===4)Or(b,function(O){O!==de&&(m[O]!==void 0||Br(m,O)?v[O]||p(b[O]):(v[O]=!0,Ht(f)))}),Or(m,function(O){b[O]!==void 0||Br(b,O)||(v[O]=!1,Ht(f))});else if(w===5){if(o(f)&&(Ht(f),v.length=!0),b.length<m.length)for(var I=b.length;I<m.length;I++)v[I]=!1;else for(var A=m.length;A<b.length;A++)v[A]=!0;for(var N=Math.min(b.length,m.length),S=0;S<N;S++)b.hasOwnProperty(S)||(v[S]=!0),v[S]===void 0&&p(b[S])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):o(s)}})}var Oc,Mo,os=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",nf=typeof Map<"u",af=typeof Set<"u",wc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",_c=os?Symbol.for("immer-nothing"):((Oc={})["immer-nothing"]=!0,Oc),Ec=os?Symbol.for("immer-draftable"):"__$immer_draftable",de=os?Symbol.for("immer-state"):"__$immer_state";var sf=""+Object.prototype.constructor,zr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Tc=Object.getOwnPropertyDescriptors||function(r){var e={};return zr(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},Xa={},Uo={get:function(r,e){if(e===de)return r;var t=zt(r);if(!Br(t,e))return function(n,a,s){var l,c=xc(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,t,e);var o=t[e];return r.I||!tt(o)?o:o===Ka(r.t,e)?(Ga(r),r.o[e]=Ya(r.A.h,o,r)):o},has:function(r,e){return e in zt(r)},ownKeys:function(r){return Reflect.ownKeys(zt(r))},set:function(r,e,t){var o=xc(zt(r),e);if(o?.set)return o.set.call(r.k,t),!0;if(!r.P){var n=Ka(zt(r),e),a=n?.[de];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(Ac(t,n)&&(t!==void 0||Br(r.t,e)))return!0;Ga(r),Ht(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return Ka(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,Ga(r),Ht(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=zt(r),o=Reflect.getOwnPropertyDescriptor(t,e);return o&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:o.enumerable,value:t[e]}},defineProperty:function(){qe(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){qe(12)}},Do={};Or(Uo,function(r,e){Do[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Do.deleteProperty=function(r,e){return Do.set.call(this,r,e,void 0)},Do.set=function(r,e,t){return Uo.set.call(this,r[0],e,t,r[0])};var lf=function(){function r(t){var o=this;this.O=wc,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 I=this;w===void 0&&(w=l);for(var A=arguments.length,N=Array(A>1?A-1:0),S=1;S<A;S++)N[S-1]=arguments[S];return c.produce(w,function(O){var E;return(E=a).call.apply(E,[I,O].concat(N))})}}var p;if(typeof a!="function"&&qe(6),s!==void 0&&typeof s!="function"&&qe(7),tt(n)){var h=bc(o),f=Ya(o,n,void 0),m=!0;try{p=a(f),m=!1}finally{m?Ei(h):qa(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(w){return Va(h,s),ja(w,h)},function(w){throw Ei(h),w}):(Va(h,s),ja(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===_c&&(p=void 0),o.D&&ts(p,!0),s){var b=[],v=[];ht("Patches").M(n,p,b,v),s(b,v)}return p}qe(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return o.produceWithPatches(p,function(b){return n.apply(void 0,[b].concat(f))})};var s,l,c=o.produce(n,a,function(p,h){s=p,l=h});return typeof Promise<"u"&&c instanceof Promise?c.then(function(p){return[p,s,l]}):[c,s,l]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){tt(t)||qe(8),_t(t)&&(t=of(t));var o=bc(this),n=Ya(this,t,void 0);return n[de].C=!0,qa(o),n},e.finishDraft=function(t,o){var n=t&&t[de],a=n.A;return Va(a,o),ja(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!wc&&qe(20),this.O=t},e.applyPatches=function(t,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(o=o.slice(n+1));var s=ht("Patches").$;return _t(t)?s(t,o):this.produce(t,function(l){return s(l,o)})},r}(),Ge=new lf,cf=Ge.produce,iv=Ge.produceWithPatches.bind(Ge),nv=Ge.setAutoFreeze.bind(Ge),av=Ge.setUseProxies.bind(Ge),sv=Ge.applyPatches.bind(Ge),lv=Ge.createDraft.bind(Ge),cv=Ge.finishDraft.bind(Ge),Ri=cf;function Wt(r){"@babel/helpers - typeof";return Wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wt(r)}function is(r,e){if(Wt(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(Wt(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function ns(r){var e=is(r,"string");return Wt(e)==="symbol"?e:String(e)}function as(r,e,t){return e=ns(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Nc(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,o)}return t}function _i(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Nc(Object(t),!0).forEach(function(o){as(r,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Nc(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o))})}return r}function Ne(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 Ic=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ss=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ti={INIT:"@@redux/INIT"+ss(),REPLACE:"@@redux/REPLACE"+ss(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ss()}};function df(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function ls(r,e,t){var o;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(Ne(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(Ne(1));return t(ls)(r,e)}if(typeof r!="function")throw new Error(Ne(2));var n=r,a=e,s=[],l=s,c=!1;function p(){l===s&&(l=s.slice())}function h(){if(c)throw new Error(Ne(3));return a}function f(w){if(typeof w!="function")throw new Error(Ne(4));if(c)throw new Error(Ne(5));var I=!0;return p(),l.push(w),function(){if(I){if(c)throw new Error(Ne(6));I=!1,p();var N=l.indexOf(w);l.splice(N,1),s=null}}}function m(w){if(!df(w))throw new Error(Ne(7));if(typeof w.type>"u")throw new Error(Ne(8));if(c)throw new Error(Ne(9));try{c=!0,a=n(a,w)}finally{c=!1}for(var I=s=l,A=0;A<I.length;A++){var N=I[A];N()}return w}function b(w){if(typeof w!="function")throw new Error(Ne(10));n=w,m({type:Ti.REPLACE})}function v(){var w,I=f;return w={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(Ne(11));function S(){N.next&&N.next(h())}S();var O=I(S);return{unsubscribe:O}}},w[Ic]=function(){return this},w}return m({type:Ti.INIT}),o={dispatch:m,subscribe:f,getState:h,replaceReducer:b},o[Ic]=v,o}function pf(r){Object.keys(r).forEach(function(e){var t=r[e],o=t(void 0,{type:Ti.INIT});if(typeof o>"u")throw new Error(Ne(12));if(typeof t(void 0,{type:Ti.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ne(13))})}function Pc(r){for(var e=Object.keys(r),t={},o=0;o<e.length;o++){var n=e[o];typeof r[n]=="function"&&(t[n]=r[n])}var a=Object.keys(t),s,l;try{pf(t)}catch(c){l=c}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,b={},v=0;v<a.length;v++){var w=a[v],I=t[w],A=p[w],N=I(A,h);if(typeof N>"u"){var S=h&&h.type;throw new Error(Ne(14))}b[w]=N,m=m||N!==A}return m=m||a.length!==Object.keys(p).length,m?b:p}}function Wr(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function $c(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(Ne(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(c){return c(s)});return a=Wr.apply(void 0,l)(n.dispatch),_i(_i({},n),{},{dispatch:a})}}}function kc(r){var e=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 e}var Lc=kc();Lc.withExtraArgument=kc;var cs=Lc;var Bc=function(){var r=function(e,t){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(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}}(),uf=function(r,e){var t={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(p){return function(h){return c([p,h])}}function c(p){if(o)throw new TypeError("Generator is already executing.");for(;t;)try{if(o=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return t.label++,{value:p[1],done:!1};case 5:t.label++,n=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){t.label=p[1];break}if(p[0]===6&&t.label<a[1]){t.label=a[1],a=p;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(p);break}a[2]&&t.ops.pop(),t.trys.pop();continue}p=e.call(r,t)}catch(h){p=[6,h],n=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Vr=function(r,e){for(var t=0,o=e.length,n=r.length;t<o;t++,n++)r[n]=e[t];return r},ff=Object.defineProperty,hf=Object.defineProperties,mf=Object.getOwnPropertyDescriptors,Dc=Object.getOwnPropertySymbols,gf=Object.prototype.hasOwnProperty,yf=Object.prototype.propertyIsEnumerable,Mc=function(r,e,t){return e in r?ff(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Vt=function(r,e){for(var t in e||(e={}))gf.call(e,t)&&Mc(r,t,e[t]);if(Dc)for(var o=0,n=Dc(e);o<n.length;o++){var t=n[o];yf.call(e,t)&&Mc(r,t,e[t])}return r},ds=function(r,e){return hf(r,mf(e))},bf=function(r,e,t){return new Promise(function(o,n){var a=function(c){try{l(t.next(c))}catch(p){n(p)}},s=function(c){try{l(t.throw(c))}catch(p){n(p)}},l=function(c){return c.done?o(c.value):Promise.resolve(c.value).then(a,s)};l((t=t.apply(r,e)).next())})};var vf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Wr:Wr.apply(null,arguments)},Rv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function xf(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}var Sf=function(r){Bc(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,Vr([void 0],t[0].concat(this)))):new(e.bind.apply(e,Vr([void 0],t.concat(this))))},e}(Array),Of=function(r){Bc(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,Vr([void 0],t[0].concat(this)))):new(e.bind.apply(e,Vr([void 0],t.concat(this))))},e}(Array);function fs(r){return tt(r)?Ri(r,function(){}):r}function wf(r){return typeof r=="boolean"}function Ef(){return function(e){return Cf(e)}}function Cf(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,o=r.immutableCheck,n=o===void 0?!0:o,a=r.serializableCheck,s=a===void 0?!0:a,l=new Sf;if(t&&(wf(t)?l.push(cs):l.push(cs.withExtraArgument(t.extraArgument))),0){if(n)var c;if(s)var p}return l}var ps=!0;function zc(r){var e=Ef(),t=r||{},o=t.reducer,n=o===void 0?void 0:o,a=t.middleware,s=a===void 0?e():a,l=t.devTools,c=l===void 0?!0:l,p=t.preloadedState,h=p===void 0?void 0:p,f=t.enhancers,m=f===void 0?void 0:f,b;if(typeof n=="function")b=n;else if(xf(n))b=Pc(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(e),!ps&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ps&&v.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=$c.apply(void 0,v),I=Wr;c&&(I=vf(Vt({trace:!ps},typeof c=="object"&&c)));var A=new Of(w),N=A;Array.isArray(m)?N=Vr([w],m):typeof m=="function"&&(N=m(A));var S=I.apply(void 0,N);return ls(b,h,S)}function jt(r,e){function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return Vt(Vt({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:o[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(o){return o.type===r},t}function Hc(r){var e={},t=[],o,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return t.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return r(n),[e,t,o]}function Af(r){return typeof r=="function"}function Rf(r,e,t,o){t===void 0&&(t=[]);var n=typeof e=="function"?Hc(e):[e,t,o],a=n[0],s=n[1],l=n[2],c;if(Af(r))c=function(){return fs(r())};else{var p=fs(r);c=function(){return p}}function h(f,m){f===void 0&&(f=c());var b=Vr([a[m.type]],s.filter(function(v){var w=v.matcher;return w(m)}).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(_t(v)){var I=v,A=w(I,m);return A===void 0?v:A}else{if(tt(v))return Ri(v,function(N){return w(N,m)});var A=w(v,m);if(A===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return v},f)}return h.getInitialState=c,h}function _f(r,e){return r+"/"+e}function Wc(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:fs(r.initialState),o=r.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(h){var f=o[h],m=_f(e,h),b,v;"reducer"in f?(b=f.reducer,v=f.prepare):b=f,a[h]=b,s[m]=b,l[h]=v?jt(m,v):jt(m)});function c(){var h=typeof r.extraReducers=="function"?Hc(r.extraReducers):[r.extraReducers],f=h[0],m=f===void 0?{}:f,b=h[1],v=b===void 0?[]:b,w=h[2],I=w===void 0?void 0:w,A=Vt(Vt({},m),s);return Rf(t,function(N){for(var S in A)N.addCase(S,A[S]);for(var O=0,E=v;O<E.length;O++){var M=E[O];N.addMatcher(M.matcher,M.reducer)}I&&N.addDefaultCase(I)})}var p;return{name:e,reducer:function(h,f){return p||(p=c()),p(h,f)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=c()),p.getInitialState()}}}var Tf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Nf=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=Tf[Math.random()*64|0];return e},If=["name","message","stack","code"],us=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Uc=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Pf=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,o=If;t<o.length;t++){var n=o[t];typeof r[n]=="string"&&(e[n]=r[n])}return e}return{message:String(r)}},Iv=function(){function r(e,t,o){var n=jt(e+"/fulfilled",function(h,f,m,b){return{payload:h,meta:ds(Vt({},b||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),a=jt(e+"/pending",function(h,f,m){return{payload:void 0,meta:ds(Vt({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=jt(e+"/rejected",function(h,f,m,b,v){return{payload:b,error:(o&&o.serializeError||Pf)(h||"Rejected"),meta:ds(Vt({},v||{}),{arg:m,requestId:f,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,c=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(f,m,b){var v=o?.idGenerator?o.idGenerator(h):Nf(),w=new c,I,A=!1;function N(O){I=O,w.abort()}var S=function(){return bf(this,null,function(){var O,E,M,Z,J,ee,L;return uf(this,function(g){switch(g.label){case 0:return g.trys.push([0,4,,5]),Z=(O=o?.condition)==null?void 0:O.call(o,h,{getState:m,extra:b}),kf(Z)?[4,Z]:[3,2];case 1:Z=g.sent(),g.label=2;case 2:if(Z===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,J=new Promise(function(x,k){return w.signal.addEventListener("abort",function(){return k({name:"AbortError",message:I||"Aborted"})})}),f(a(v,h,(E=o?.getPendingMeta)==null?void 0:E.call(o,{requestId:v,arg:h},{getState:m,extra:b}))),[4,Promise.race([J,Promise.resolve(t(h,{dispatch:f,getState:m,extra:b,requestId:v,signal:w.signal,abort:N,rejectWithValue:function(x,k){return new us(x,k)},fulfillWithValue:function(x,k){return new Uc(x,k)}})).then(function(x){if(x instanceof us)throw x;return x instanceof Uc?n(x.payload,v,h,x.meta):n(x,v,h)})])];case 3:return M=g.sent(),[3,5];case 4:return ee=g.sent(),M=ee instanceof us?s(null,v,h,ee.payload,ee.meta):s(ee,v,h),[3,5];case 5:return L=o&&!o.dispatchConditionRejection&&s.match(M)&&M.meta.condition,L||f(M),[2,M]}})})}();return Object.assign(S,{abort:N,requestId:v,arg:h,unwrap:function(){return S.then($f)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return r.withTypes=function(){return r},r}();function $f(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function kf(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Vc="listener",jc="completed",Kc="cancelled",Pv="task-"+Kc,$v="task-"+jc,kv=Vc+"-"+Kc,Lv=Vc+"-"+jc;var hs="listenerMiddleware";var Dv=jt(hs+"/add"),Mv=jt(hs+"/removeAll"),Uv=jt(hs+"/remove");var Fc,Fv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Fc||(Fc=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},Lf=function(r){return function(e){setTimeout(e,r)}},Bv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Lf(10);Rc();window.ftReduxStores||(window.ftReduxStores={});var Tt=class r{static get(e){var t;let o=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(xr(a))return a;if(n==null)return;let s=Wc({...n,reducers:(t=n.reducers)!==null&&t!==void 0?t:{}}),l=zc({reducer:(c,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...p.overwrites}:s.reducer(c,p)});return window.ftReduxStores[n.name]=new r(s,l)}constructor(e,t){this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Lo,this.actions=new Proxy(this.reduxSlice.actions,{get:(o,n,a)=>{let s=n,l=o[s];return l?(...c)=>{let p=l(...c);return this.reduxStore.dispatch(p),p}:c=>{this.setState({[s]:c})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Df(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))xr(e)&&e.clear()}var bs={};re(bs,{scrollHelper:()=>Mf});var gs,Ni=new Map,ys=class{lock(e,t){if(t){let o=Ni.get(t);if(o==null||o===e)return Ni.set(t,e),t}}release(e,t){t&&Ni.get(t)===e&&Ni.delete(t)}findFirstScrollableParent(e){let t,o=n=>{var a;n.stopPropagation();let s,l;for(let c of n.composedPath()){let p=c,h=this.elementCanScroll(p);if(h&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else h&&l==null&&(l=p)}t=(a=s??l)!==null&&a!==void 0?a:document.body};return e.addEventListener("find-scrollable-parent",o),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",o),t}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){let o=0;for(;t&&t.offsetParent!==e.offsetParent;)o+=t.offsetTop,t=t.offsetParent;return o+t.offsetTop-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let n=this.getAbsoluteScrollOffset(o,e),a=n-o.clientHeight+e.clientHeight,s=n,l=Fn(0,(s-o.scrollTop)/(s-a),1),c=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;o.scrollTo({behavior:t?.behavior,top:c})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(gs=window.FluidTopicsScrollHelper)!==null&&gs!==void 0?gs:new ys;var Mf=window.FluidTopicsScrollHelper;var vs={};re(vs,{shadowQuerySelector:()=>Uf,shadowQuerySelectorAll:()=>Ff});function Uf(r,e,...t){var o;let n=r.querySelector(e);for(let a of t)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function Ff(r,e,...t){let o=[...r.querySelectorAll(e)];for(let n of t)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 xs={};re(xs,{SearchPlaceConverter:()=>$i,SearchPlaceQueryParams:()=>se,isSearchPlaceQueryParams:()=>md,serializeRequest:()=>Vf});var zf=gp(Zc(),1);var qc;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(qc||(qc={}));var Yc;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Yc||(Yc={}));var Xc;(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"})(Xc||(Xc={}));var Jc;(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"})(Jc||(Jc={}));var Qc;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Qc||(Qc={}));var ed;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(ed||(ed={}));var td;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(td||(td={}));var Nt;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Nt||(Nt={}));var rd;(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"})(rd||(rd={}));var od;(function(r){r.ASC="ASC",r.DESC="DESC"})(od||(od={}));var id;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(id||(id={}));var nd;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(nd||(nd={}));var pd=r=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(r);var ad;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(ad||(ad={}));var sd;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(sd||(sd={}));var ld;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(ld||(ld={}));var Fo;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Fo||(Fo={}));var ud=r=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(r);var cd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(cd||(cd={}));var dd;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(dd||(dd={}));var pe;(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"})(pe||(pe={}));var fd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(fd||(fd={}));var Bf={[pe.PERSONAL_BOOK_SHARE_USER]:[pe.PERSONAL_BOOK_USER],[pe.HTML_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.PDF_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.KHUB_ADMIN]:[pe.CONTENT_PUBLISHER],[pe.ADMIN]:[pe.KHUB_ADMIN,pe.USERS_ADMIN,pe.PORTAL_ADMIN],[pe.DEVELOPER]:[pe.BETA_USER,pe.DEBUG_USER]};function hd(r,e){return r===e||(Bf[r]??[]).some(t=>hd(t,e))}function wr(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>hd(o,e))}function Hf(r){return`"${r}"`}function Wf(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Vf(r,e){return new $i(r,{}).serialize(e)}var se;(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort"})(se||(se={}));var jf=new Set(Object.values(se));function md(r){return jf.has(r)}var $i=class{constructor(e,t){this.baseUrl=e,this.predefinedSorts=t,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,t="/search"){let o=this.toURLSearchParams(e).toString();return new URL(`${this.baseUrl.replace(/\/+$/,"")}${t}?${o}`).href}toURLSearchParams(e){var t,o,n,a,s,l,c,p,h,f;let m=new URLSearchParams({[se.LOCALE]:(t=e.contentLocale)!==null&&t!==void 0?t:"all"});((o=e.query)===null||o===void 0?void 0:o.length)>0&&m.append(se.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&m.append(se.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&m.append(se.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((n=e.sort)===null||n===void 0?void 0:n.length)>0&&e.sort[0].key==="ft:lastEdition"&&m.append(se.SORT,"last_update");let b=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(A=>A.valueFilter))!==null&&s!==void 0?s:[];if(b.length>0){let A=b.map(N=>{var S,O;let E=((O=(S=N.valueFilter)===null||S===void 0?void 0:S.values)!==null&&O!==void 0?O:[]).map(M=>this.escapeFilters(M)).map(M=>encodeURIComponent(Hf(M))).join("_");return`${N.key}~${E}`}).join("*");m.append(se.VALUE_FILTERS,A)}let v=(c=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(A=>A.dateFilter))!==null&&c!==void 0?c:[];if(v.length>0){let A=v.map(N=>{var S;return`${N.key}~${(S=N.dateFilter)===null||S===void 0?void 0:S.type.toLowerCase()}`}).join("*");m.append(se.DATE_FILTERS,A)}let w=(h=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(A=>A.rangeFilter))!==null&&h!==void 0?h:[];if(w.length>0){let A=w.map(N=>{var S,O;return`${N.key}~${(S=N.rangeFilter)===null||S===void 0?void 0:S.from}_${(O=N.rangeFilter)===null||O===void 0?void 0:O.to}`}).join("*");m.append(se.RANGE_FILTERS,A)}let I=(f=e.otherQueryParams)!==null&&f!==void 0?f:{};for(let A in I)m.append(A,I[A]);return m}parse(e){var t;let o=e.split("?"),n=this.fromURLSearchParams(new URLSearchParams(o.slice(1).join("?"))),a=o[0].split("/search/")[1];return a==null?n:{...n,scope:(t=this.scopeMapping[a])!==null&&t!==void 0?t:n.scope}}fromURLSearchParams(e){var t,o,n,a,s,l,c,p;let h=((t=e.get(se.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),f=((o=e.get(se.SORT))!==null&&o!==void 0?o:"DEFAULT").toUpperCase(),m=(n=e.get(se.SCOPE))!==null&&n!==void 0?n:"default",b={};for(let v of e.keys())md(v)||(b[v]=e.get(v));return{contentLocale:e.get(se.LOCALE)==="all"?void 0:(a=e.get(se.LOCALE))!==null&&a!==void 0?a:void 0,query:decodeURIComponent((s=e.get(se.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:pd(h)?h:"EVERYWHERE",sort:(p=(c=this.predefinedSorts[f])!==null&&c!==void 0?c:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:20},otherQueryParams:b}}parseCompatFilters(e){var t,o,n,a,s,l;let c=[];return e.has(se.FILTERS)&&(c=this.parseValueFilters((t=e.get(se.FILTERS))!==null&&t!==void 0?t:"")),(o=e.has(se.PERIOD))!==null&&o!==void 0&&o&&(c=[...c,...this.parseLegacyPeriodFilter(((n=e.get(se.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...c,...this.parseValueFilters((a=e.get(se.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(se.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(se.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(t=>t.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],valueFilter:{values:t[1].split("_").map(Wf).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:Fo[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}escapeFilters(e){for(let[t,o,n]of this.filtersEscapeMapping)e=e.replaceAll(t,o);return e}superEscapeFilters(e){for(let[t,o,n]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}unescapeFilterValue(e){for(let[t,o,n]of this.filtersEscapeMapping)e=e.replace(n,t);return e}parseLegacyPeriodFilter(e){if(ud(e))return[{key:"ft:lastEdition",dateFilter:{type:Fo[e]}}];if(e.startsWith("CUSTOM_")){let[t,o,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:n}}]}return[]}};var Ss={};re(Ss,{toFtFormComponent:()=>Er});var ki=Symbol("elementInternals");function Er(r,e){class t extends r{static get formAssociated(){return!0}get form(){return this[ki].form}constructor(...n){super(n),this[ki]=this.attachInternals(),this[ki].role=e}setFormValue(n){this[ki].setFormValue(n)}}return t}var Os={};re(Os,{DateFormatter:()=>Kr});var Kr=class{static format(e,t,o,n){return window.moment?window.moment(e).locale(t).format(this.getDateFormat(o,n)):e}static getDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}};var ws,Es,Cs,As,Bo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Cs=(Es=(ws=window.safari)===null||ws===void 0?void 0:ws.pushNotification)===null||Es===void 0?void 0:Es.toString())!==null&&Cs!==void 0?Cs:"")==="[object SafariRemoteNotification]",Kf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(As=window.ftGlobals)!==null&&As!==void 0?As:{lit:En,litDecorators:An,litRepeat:_n,litClassMap:Tn,litStyleMap:Nn,litUnsafeHTML:Pn,wcUtils:{...Ln,...kn,...Dn,...Os,...Mn,...zn,...ga,...va,...$a,...ma,...Ma,...La,...uc,...Bn,...Ba,...Ha,...hc,...Wa,...ms,...ka,...bs,...vs,...xs,...Ss,isSafari:Bo,isTouchScreen:Kf,setVariable:C}};var Ye;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ye||(Ye={}));var Gf=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},_s=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Rs=Symbol("registerInterval");function Zf(r){var e;class t extends r{constructor(){super(...arguments),this[e]=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[Rs]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Rs]):this.dispatchEvent(new _s)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Rs,Gf([H()],t.prototype,"stateManager",void 0),t}var Gt=class extends Zf(Ze){};var gd=i.extend("--ft-ripple-color","",_.colorContent),V={color:gd,backgroundColor:i.extend("--ft-ripple-background-color","",gd),opacityContentOnSurfacePressed:i.external(_.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(_.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(_.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(_.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},yd=i.extend("--ft-ripple-color","",_.colorPrimary),bd={color:yd,backgroundColor:i.extend("--ft-ripple-background-color","",yd)},vd=i.extend("--ft-ripple-color","",_.colorSecondary),xd={color:vd,backgroundColor:i.extend("--ft-ripple-background-color","",vd)},Sd=P`
50
+ `;var hc={};var za={};rt(za,{ParametrizedLabelResolver:()=>Po});var Po=class r{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let a=(n=(i=this.labels[t])!==null&&i!==void 0?i:this.defaultLabels[t])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...e)}static replaceParameters(t,...e){return e.forEach((i,n)=>t=t.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(i,s))),t}resolvePluralKey(t,e){for(let i of e)if(typeof i=="number"){let n=`${String(t)}[\\=${i}]`;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 i=n=>e?.includes("date")?t.toLocaleDateString(n):e?.includes("time")?t.toLocaleTimeString(n):t.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var ms={};rt(ms,{FtCommandQueue:()=>ko,FtLitElementRedux:()=>Zt,FtReduxStore:()=>Ne,clearAllStores:()=>Mf,isFtReduxStore:()=>xr,redux:()=>ct,reduxEventListener:()=>Lo,reduxReactive:()=>Qu});var Qu=()=>(r,t)=>{var e;let i=r.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(e=i.reduxReactiveProperties)===null||e===void 0||e.add(t)},ct=r=>{let t=r??{};return(e,i)=>{var n;let a={hasChanged:xo,attribute:!1,...t};g(a)(e,i);let s=e.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=t.selector)!==null&&n!==void 0?n:l=>l[i],store:t.store})}},Lo=r=>(t,e)=>{let i=t.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(e,r)};var ko=class{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter(i=>i.type!==t.type)),this.queue.push(t)}consume(t){let e=this.queue.find(i=>i.type===t);return e&&(this.queue=this.queue.filter(i=>i!==e)),e}};function xr(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var mc,yc,gc,Ci=Symbol("internalReduxEventsUnsubscribers"),Be=Symbol("internalStoresUnsubscribers"),Sr=Symbol("internalStores"),Zt=class extends V{constructor(){super(...arguments),this[mc]=new Map,this[yc]=new Map,this[gc]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(e=>t.has(e))&&this.updateFromStores()}getUnnamedStore(){if(this[Sr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Sr].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Sr].get(t)}addStore(t,e){var i;e=(i=e??(xr(t)?t.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){let e=typeof t=="string"?t:t.name;this.unsubscribeFromStore(e),this[Sr].delete(e)}setupStore(t,e){this[Sr].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Sr].forEach((t,e)=>this.subscribeToStore(e,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,e)=>{let i=this.constructor.getPropertyOptions(e);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:e)){let n=this.getStore(t.store);n&&(t.store?this[Be].has(t.store):this[Be].size>0)&&(this[e]=t.selector(n.getState(),this))}})}subscribeToStore(t,e){var i;this[Be].set(t,e.subscribe(()=>this.updateFromStores())),xr(e)&&e.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.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[Ci].push(()=>e.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Be].forEach((t,e)=>this.unsubscribeFromStore(e)),this[Ci].forEach(t=>t()),this[Ci]=[]}unsubscribeFromStore(t){this[Be].has(t)&&this[Be].get(t)(),this[Be].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};mc=Be,yc=Sr,gc=Ci;Zt.reduxProperties=new Map;Zt.reduxReactiveProperties=new Set;Zt.reduxEventListeners=new Map;function qt(r){for(var t=arguments.length,e=Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];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 _e(r){return!!r&&!!r[dt]}function ee(r){var t;return!!r&&(function(e){if(!e||typeof e!="object")return!1;var i=Object.getPrototypeOf(e);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===lf}(r)||Array.isArray(r)||!!r[Ec]||!!(!((t=r.constructor)===null||t===void 0)&&t[Ec])||Ja(r)||Qa(r))}function Or(r,t,e){e===void 0&&(e=!1),Hr(r)===0?(e?Object.keys:Wr)(r).forEach(function(i){e&&typeof i=="symbol"||t(i,r[i],r)}):r.forEach(function(i,n){return t(n,i,r)})}function Hr(r){var t=r[dt];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:Ja(r)?2:Qa(r)?3:0}function Br(r,t){return Hr(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function tf(r,t){return Hr(r)===2?r.get(t):r[t]}function wc(r,t,e){var i=Hr(r);i===2?r.set(t,e):i===3?r.add(e):r[t]=e}function Ac(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function Ja(r){return af&&r instanceof Map}function Qa(r){return sf&&r instanceof Set}function We(r){return r.o||r.t}function ts(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=Nc(r);delete t[dt];for(var e=Wr(t),i=0;i<e.length;i++){var n=e[i],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 es(r,t){return t===void 0&&(t=!1),rs(r)||_e(r)||!ee(r)||(Hr(r)>1&&(r.set=r.add=r.clear=r.delete=ef),Object.freeze(r),t&&Or(r,function(e,i){return es(i,!0)},!0)),r}function ef(){qt(2)}function rs(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function he(r){var t=Xa[r];return t||qt(18,r),t}function rf(r,t){Xa[r]||(Xa[r]=t)}function Za(){return Mo}function Va(r,t){t&&(he("Patches"),r.u=[],r.s=[],r.v=t)}function Ei(r){qa(r),r.p.forEach(of),r.p=null}function qa(r){r===Mo&&(Mo=r.l)}function bc(r){return Mo={p:[],l:Mo,h:r,m:!0,_:0}}function of(r){var t=r[dt];t.i===0||t.i===1?t.j():t.g=!0}function ja(r,t){t._=t.p.length;var e=t.p[0],i=r!==void 0&&r!==e;return t.h.O||he("ES5").S(t,r,i),i?(e[dt].P&&(Ei(t),qt(4)),ee(r)&&(r=wi(t,r),t.l||Ai(t,r)),t.u&&he("Patches").M(e[dt].t,r,t.u,t.s)):r=wi(t,e,[]),Ei(t),t.u&&t.v(t.u,t.s),r!==_c?r:void 0}function wi(r,t,e){if(rs(t))return t;var i=t[dt];if(!i)return Or(t,function(l,c){return vc(r,i,t,l,c,e)},!0),t;if(i.A!==r)return t;if(!i.P)return Ai(r,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=ts(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Or(a,function(l,c){return vc(r,i,n,l,c,e,s)}),Ai(r,n,!1),e&&r.u&&he("Patches").N(i,e,r.u,r.s)}return i.o}function vc(r,t,e,i,n,a,s){if(_e(n)){var l=wi(r,n,a&&t&&t.i!==3&&!Br(t.R,i)?a.concat(i):void 0);if(wc(e,i,l),!_e(l))return;r.m=!1}else s&&e.add(n);if(ee(n)&&!rs(n)){if(!r.h.D&&r._<1)return;wi(r,n),t&&t.A.l||Ai(r,n)}}function Ai(r,t,e){e===void 0&&(e=!1),!r.l&&r.h.D&&r.m&&es(t,e)}function Ga(r,t){var e=r[dt];return(e?We(e):r)[t]}function xc(r,t){if(t in r)for(var e=Object.getPrototypeOf(r);e;){var i=Object.getOwnPropertyDescriptor(e,t);if(i)return i;e=Object.getPrototypeOf(e)}}function He(r){r.P||(r.P=!0,r.l&&He(r.l))}function Ka(r){r.o||(r.o=ts(r.t))}function Ya(r,t,e){var i=Ja(t)?he("MapSet").F(t,e):Qa(t)?he("MapSet").T(t,e):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Za(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},c=l,p=Fo;s&&(c=[l],p=Do);var h=Proxy.revocable(c,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(t,e):he("ES5").J(t,e);return(e?e.A:Za()).p.push(i),i}function nf(r){return _e(r)||qt(22,r),function t(e){if(!ee(e))return e;var i,n=e[dt],a=Hr(e);if(n){if(!n.P&&(n.i<4||!he("ES5").K(n)))return n.t;n.I=!0,i=Sc(e,a),n.I=!1}else i=Sc(e,a);return Or(i,function(s,l){n&&tf(n.t,s)===l||wc(i,s,t(l))}),a===3?new Set(i):i}(r)}function Sc(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return ts(r)}function Rc(){function r(s,l){var c=a[s];return c?c.enumerable=l:a[s]=c={configurable:!0,enumerable:l,get:function(){var p=this[dt];return Fo.get(p,s)},set:function(p){var h=this[dt];Fo.set(h,s,p)}},c}function t(s){for(var l=s.length-1;l>=0;l--){var c=s[l][dt];if(!c.P)switch(c.i){case 5:i(c)&&He(c);break;case 4:e(c)&&He(c)}}}function e(s){for(var l=s.t,c=s.k,p=Wr(c),h=p.length-1;h>=0;h--){var f=p[h];if(f!==dt){var m=l[f];if(m===void 0&&!Br(l,f))return!0;var v=c[f],S=v&&v[dt];if(S?S.t!==m:!Ac(v,m))return!0}}var w=!!l[dt];return p.length!==Wr(l).length+(w?0:1)}function i(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 p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&qt(3,JSON.stringify(We(s)))}var a={};rf("ES5",{J:function(s,l){var c=Array.isArray(s),p=function(f,m){if(f){for(var v=Array(m.length),S=0;S<m.length;S++)Object.defineProperty(v,""+S,r(S,!0));return v}var w=Nc(m);delete w[dt];for(var $=Wr(w),_=0;_<$.length;_++){var I=$[_];w[I]=r(I,f||!!w[I].enumerable)}return Object.create(Object.getPrototypeOf(m),w)}(c,s),h={i:c?5:4,A:l?l.A:Za(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,dt,{value:h,writable:!0}),p},S:function(s,l,c){c?_e(l)&&l[dt].A===s&&t(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[dt];if(f){var m=f.t,v=f.k,S=f.R,w=f.i;if(w===4)Or(v,function(E){E!==dt&&(m[E]!==void 0||Br(m,E)?S[E]||p(v[E]):(S[E]=!0,He(f)))}),Or(m,function(E){v[E]!==void 0||Br(v,E)||(S[E]=!1,He(f))});else if(w===5){if(i(f)&&(He(f),S.length=!0),v.length<m.length)for(var $=v.length;$<m.length;$++)S[$]=!1;else for(var _=m.length;_<v.length;_++)S[_]=!0;for(var I=Math.min(v.length,m.length),C=0;C<I;C++)v.hasOwnProperty(C)||(S[C]=!0),S[C]===void 0&&p(v[C])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?e(s):i(s)}})}var Oc,Mo,os=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",af=typeof Map<"u",sf=typeof Set<"u",Cc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",_c=os?Symbol.for("immer-nothing"):((Oc={})["immer-nothing"]=!0,Oc),Ec=os?Symbol.for("immer-draftable"):"__$immer_draftable",dt=os?Symbol.for("immer-state"):"__$immer_state";var lf=""+Object.prototype.constructor,Wr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Nc=Object.getOwnPropertyDescriptors||function(r){var t={};return Wr(r).forEach(function(e){t[e]=Object.getOwnPropertyDescriptor(r,e)}),t},Xa={},Fo={get:function(r,t){if(t===dt)return r;var e=We(r);if(!Br(e,t))return function(n,a,s){var l,c=xc(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 i=e[t];return r.I||!ee(i)?i:i===Ga(r.t,t)?(Ka(r),r.o[t]=Ya(r.A.h,i,r)):i},has:function(r,t){return t in We(r)},ownKeys:function(r){return Reflect.ownKeys(We(r))},set:function(r,t,e){var i=xc(We(r),t);if(i?.set)return i.set.call(r.k,e),!0;if(!r.P){var n=Ga(We(r),t),a=n?.[dt];if(a&&a.t===e)return r.o[t]=e,r.R[t]=!1,!0;if(Ac(e,n)&&(e!==void 0||Br(r.t,t)))return!0;Ka(r),He(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 Ga(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,Ka(r),He(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var e=We(r),i=Reflect.getOwnPropertyDescriptor(e,t);return i&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:i.enumerable,value:e[t]}},defineProperty:function(){qt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){qt(12)}},Do={};Or(Fo,function(r,t){Do[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Do.deleteProperty=function(r,t){return Do.set.call(this,r,t,void 0)},Do.set=function(r,t,e){return Fo.set.call(this,r[0],t,e,r[0])};var cf=function(){function r(e){var i=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=i;return function(w){var $=this;w===void 0&&(w=l);for(var _=arguments.length,I=Array(_>1?_-1:0),C=1;C<_;C++)I[C-1]=arguments[C];return c.produce(w,function(E){var A;return(A=a).call.apply(A,[$,E].concat(I))})}}var p;if(typeof a!="function"&&qt(6),s!==void 0&&typeof s!="function"&&qt(7),ee(n)){var h=bc(i),f=Ya(i,n,void 0),m=!0;try{p=a(f),m=!1}finally{m?Ei(h):qa(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(w){return Va(h,s),ja(w,h)},function(w){throw Ei(h),w}):(Va(h,s),ja(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===_c&&(p=void 0),i.D&&es(p,!0),s){var v=[],S=[];he("Patches").M(n,p,v,S),s(v,S)}return p}qt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return i.produceWithPatches(p,function(v){return n.apply(void 0,[v].concat(f))})};var s,l,c=i.produce(n,a,function(p,h){s=p,l=h});return typeof Promise<"u"&&c instanceof Promise?c.then(function(p){return[p,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){ee(e)||qt(8),_e(e)&&(e=nf(e));var i=bc(this),n=Ya(this,e,void 0);return n[dt].C=!0,qa(i),n},t.finishDraft=function(e,i){var n=e&&e[dt],a=n.A;return Va(a,i),ja(void 0,a)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!Cc&&qt(20),this.O=e},t.applyPatches=function(e,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(i=i.slice(n+1));var s=he("Patches").$;return _e(e)?s(e,i):this.produce(e,function(l){return s(l,i)})},r}(),Kt=new cf,df=Kt.produce,cv=Kt.produceWithPatches.bind(Kt),dv=Kt.setAutoFreeze.bind(Kt),pv=Kt.setUseProxies.bind(Kt),uv=Kt.applyPatches.bind(Kt),fv=Kt.createDraft.bind(Kt),hv=Kt.finishDraft.bind(Kt),Ri=df;function ze(r){"@babel/helpers - typeof";return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ze(r)}function is(r,t){if(ze(r)!=="object"||r===null)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var i=e.call(r,t||"default");if(ze(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function ns(r){var t=is(r,"string");return ze(t)==="symbol"?t:String(t)}function as(r,t,e){return t=ns(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function Tc(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,i)}return e}function _i(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Tc(Object(e),!0).forEach(function(i){as(r,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Tc(Object(e)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(e,i))})}return r}function It(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 Ic=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ss=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ni={INIT:"@@redux/INIT"+ss(),REPLACE:"@@redux/REPLACE"+ss(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ss()}};function pf(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 ls(r,t,e){var i;if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(It(0));if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(It(1));return e(ls)(r,t)}if(typeof r!="function")throw new Error(It(2));var n=r,a=t,s=[],l=s,c=!1;function p(){l===s&&(l=s.slice())}function h(){if(c)throw new Error(It(3));return a}function f(w){if(typeof w!="function")throw new Error(It(4));if(c)throw new Error(It(5));var $=!0;return p(),l.push(w),function(){if($){if(c)throw new Error(It(6));$=!1,p();var I=l.indexOf(w);l.splice(I,1),s=null}}}function m(w){if(!pf(w))throw new Error(It(7));if(typeof w.type>"u")throw new Error(It(8));if(c)throw new Error(It(9));try{c=!0,a=n(a,w)}finally{c=!1}for(var $=s=l,_=0;_<$.length;_++){var I=$[_];I()}return w}function v(w){if(typeof w!="function")throw new Error(It(10));n=w,m({type:Ni.REPLACE})}function S(){var w,$=f;return w={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(It(11));function C(){I.next&&I.next(h())}C();var E=$(C);return{unsubscribe:E}}},w[Ic]=function(){return this},w}return m({type:Ni.INIT}),i={dispatch:m,subscribe:f,getState:h,replaceReducer:v},i[Ic]=S,i}function uf(r){Object.keys(r).forEach(function(t){var e=r[t],i=e(void 0,{type:Ni.INIT});if(typeof i>"u")throw new Error(It(12));if(typeof e(void 0,{type:Ni.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(It(13))})}function $c(r){for(var t=Object.keys(r),e={},i=0;i<t.length;i++){var n=t[i];typeof r[n]=="function"&&(e[n]=r[n])}var a=Object.keys(e),s,l;try{uf(e)}catch(c){l=c}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,v={},S=0;S<a.length;S++){var w=a[S],$=e[w],_=p[w],I=$(_,h);if(typeof I>"u"){var C=h&&h.type;throw new Error(It(14))}v[w]=I,m=m||I!==_}return m=m||a.length!==Object.keys(p).length,m?v:p}}function zr(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Pc(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(It(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(c){return c(s)});return a=zr.apply(void 0,l)(n.dispatch),_i(_i({},n),{},{dispatch:a})}}}function Lc(r){var t=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return t}var kc=Lc();kc.withExtraArgument=Lc;var cs=kc;var Bc=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[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 i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ff=function(r,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,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(p){return function(h){return c([p,h])}}function c(p){if(i)throw new TypeError("Generator is already executing.");for(;e;)try{if(i=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return e.label++,{value:p[1],done:!1};case 5:e.label++,n=p[1],p=[0];continue;case 7:p=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){e=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){e.label=p[1];break}if(p[0]===6&&e.label<a[1]){e.label=a[1],a=p;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(p);break}a[2]&&e.ops.pop(),e.trys.pop();continue}p=t.call(r,e)}catch(h){p=[6,h],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Vr=function(r,t){for(var e=0,i=t.length,n=r.length;e<i;e++,n++)r[n]=t[e];return r},hf=Object.defineProperty,mf=Object.defineProperties,yf=Object.getOwnPropertyDescriptors,Dc=Object.getOwnPropertySymbols,gf=Object.prototype.hasOwnProperty,bf=Object.prototype.propertyIsEnumerable,Mc=function(r,t,e){return t in r?hf(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e},Ve=function(r,t){for(var e in t||(t={}))gf.call(t,e)&&Mc(r,e,t[e]);if(Dc)for(var i=0,n=Dc(t);i<n.length;i++){var e=n[i];bf.call(t,e)&&Mc(r,e,t[e])}return r},ds=function(r,t){return mf(r,yf(t))},vf=function(r,t,e){return new Promise(function(i,n){var a=function(c){try{l(e.next(c))}catch(p){n(p)}},s=function(c){try{l(e.throw(c))}catch(p){n(p)}},l=function(c){return c.done?i(c.value):Promise.resolve(c.value).then(a,s)};l((e=e.apply(r,t)).next())})};var xf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?zr:zr.apply(null,arguments)},$v=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function Sf(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 Of=function(r){Bc(t,r);function t(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];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=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,Vr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Vr([void 0],e.concat(this))))},t}(Array),Cf=function(r){Bc(t,r);function t(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];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=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,Vr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Vr([void 0],e.concat(this))))},t}(Array);function fs(r){return ee(r)?Ri(r,function(){}):r}function Ef(r){return typeof r=="boolean"}function wf(){return function(t){return Af(t)}}function Af(r){r===void 0&&(r={});var t=r.thunk,e=t===void 0?!0:t,i=r.immutableCheck,n=i===void 0?!0:i,a=r.serializableCheck,s=a===void 0?!0:a,l=new Of;if(e&&(Ef(e)?l.push(cs):l.push(cs.withExtraArgument(e.extraArgument))),0){if(n)var c;if(s)var p}return l}var ps=!0;function Wc(r){var t=wf(),e=r||{},i=e.reducer,n=i===void 0?void 0:i,a=e.middleware,s=a===void 0?t():a,l=e.devTools,c=l===void 0?!0:l,p=e.preloadedState,h=p===void 0?void 0:p,f=e.enhancers,m=f===void 0?void 0:f,v;if(typeof n=="function")v=n;else if(Sf(n))v=$c(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 S=s;if(typeof S=="function"&&(S=S(t),!ps&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ps&&S.some(function(E){return typeof E!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=Pc.apply(void 0,S),$=zr;c&&($=xf(Ve({trace:!ps},typeof c=="object"&&c)));var _=new Cf(w),I=_;Array.isArray(m)?I=Vr([w],m):typeof m=="function"&&(I=m(_));var C=$.apply(void 0,I);return ls(v,h,C)}function je(r,t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(t){var a=t.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return Ve(Ve({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:i[0]}}return e.toString=function(){return""+r},e.type=r,e.match=function(i){return i.type===r},e}function Hc(r){var t={},e=[],i,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 i=a,n}};return r(n),[t,e,i]}function Rf(r){return typeof r=="function"}function _f(r,t,e,i){e===void 0&&(e=[]);var n=typeof t=="function"?Hc(t):[t,e,i],a=n[0],s=n[1],l=n[2],c;if(Rf(r))c=function(){return fs(r())};else{var p=fs(r);c=function(){return p}}function h(f,m){f===void 0&&(f=c());var v=Vr([a[m.type]],s.filter(function(S){var w=S.matcher;return w(m)}).map(function(S){var w=S.reducer;return w}));return v.filter(function(S){return!!S}).length===0&&(v=[l]),v.reduce(function(S,w){if(w)if(_e(S)){var $=S,_=w($,m);return _===void 0?S:_}else{if(ee(S))return Ri(S,function(I){return w(I,m)});var _=w(S,m);if(_===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return S},f)}return h.getInitialState=c,h}function Nf(r,t){return r+"/"+t}function zc(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:fs(r.initialState),i=r.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(h){var f=i[h],m=Nf(t,h),v,S;"reducer"in f?(v=f.reducer,S=f.prepare):v=f,a[h]=v,s[m]=v,l[h]=S?je(m,S):je(m)});function c(){var h=typeof r.extraReducers=="function"?Hc(r.extraReducers):[r.extraReducers],f=h[0],m=f===void 0?{}:f,v=h[1],S=v===void 0?[]:v,w=h[2],$=w===void 0?void 0:w,_=Ve(Ve({},m),s);return _f(e,function(I){for(var C in _)I.addCase(C,_[C]);for(var E=0,A=S;E<A.length;E++){var F=A[E];I.addMatcher(F.matcher,F.reducer)}$&&I.addDefaultCase($)})}var p;return{name:t,reducer:function(h,f){return p||(p=c()),p(h,f)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=c()),p.getInitialState()}}}var Tf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",If=function(r){r===void 0&&(r=21);for(var t="",e=r;e--;)t+=Tf[Math.random()*64|0];return t},$f=["name","message","stack","code"],us=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),Fc=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,i=$f;e<i.length;e++){var n=i[e];typeof r[n]=="string"&&(t[n]=r[n])}return t}return{message:String(r)}},Dv=function(){function r(t,e,i){var n=je(t+"/fulfilled",function(h,f,m,v){return{payload:h,meta:ds(Ve({},v||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),a=je(t+"/pending",function(h,f,m){return{payload:void 0,meta:ds(Ve({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=je(t+"/rejected",function(h,f,m,v,S){return{payload:v,error:(i&&i.serializeError||Pf)(h||"Rejected"),meta:ds(Ve({},S||{}),{arg:m,requestId:f,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,c=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(f,m,v){var S=i?.idGenerator?i.idGenerator(h):If(),w=new c,$,_=!1;function I(E){$=E,w.abort()}var C=function(){return vf(this,null,function(){var E,A,F,Z,J,tt,D;return ff(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),Z=(E=i?.condition)==null?void 0:E.call(i,h,{getState:m,extra:v}),kf(Z)?[4,Z]:[3,2];case 1:Z=y.sent(),y.label=2;case 2:if(Z===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,J=new Promise(function(O,k){return w.signal.addEventListener("abort",function(){return k({name:"AbortError",message:$||"Aborted"})})}),f(a(S,h,(A=i?.getPendingMeta)==null?void 0:A.call(i,{requestId:S,arg:h},{getState:m,extra:v}))),[4,Promise.race([J,Promise.resolve(e(h,{dispatch:f,getState:m,extra:v,requestId:S,signal:w.signal,abort:I,rejectWithValue:function(O,k){return new us(O,k)},fulfillWithValue:function(O,k){return new Fc(O,k)}})).then(function(O){if(O instanceof us)throw O;return O instanceof Fc?n(O.payload,S,h,O.meta):n(O,S,h)})])];case 3:return F=y.sent(),[3,5];case 4:return tt=y.sent(),F=tt instanceof us?s(null,S,h,tt.payload,tt.meta):s(tt,S,h),[3,5];case 5:return D=i&&!i.dispatchConditionRejection&&s.match(F)&&F.meta.condition,D||f(F),[2,F]}})})}();return Object.assign(C,{abort:I,requestId:S,arg:h,unwrap:function(){return C.then(Lf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return r.withTypes=function(){return r},r}();function Lf(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function kf(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Vc="listener",jc="completed",Gc="cancelled",Mv="task-"+Gc,Fv="task-"+jc,Uv=Vc+"-"+Gc,Bv=Vc+"-"+jc;var hs="listenerMiddleware";var Wv=je(hs+"/add"),Hv=je(hs+"/removeAll"),zv=je(hs+"/remove");var Uc,Vv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Uc||(Uc=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},Df=function(r){return function(t){setTimeout(t,r)}},jv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Df(10);Rc();window.ftReduxStores||(window.ftReduxStores={});var Ne=class r{static get(t){var e;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[i];if(xr(a))return a;if(n==null)return;let s=zc({...n,reducers:(e=n.reducers)!==null&&e!==void 0?e:{}}),l=Wc({reducer:(c,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...p.overwrites}:s.reducer(c,p)});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 ko,this.actions=new Proxy(this.reduxSlice.actions,{get:(i,n,a)=>{let s=n,l=i[s];return l?(...c)=>{let p=l(...c);return this.reduxStore.dispatch(p),p}: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:{}))xr(t)&&t.clear()}var bs={};rt(bs,{scrollHelper:()=>Ff});var ys,Ti=new Map,gs=class{lock(t,e){if(e){let i=Ti.get(e);if(i==null||i===t)return Ti.set(e,t),e}}release(t,e){e&&Ti.get(e)===t&&Ti.delete(e)}findFirstScrollableParent(t){let e,i=n=>{var a;n.stopPropagation();let s,l;for(let c of n.composedPath()){let p=c,h=this.elementCanScroll(p);if(h&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else h&&l==null&&(l=p)}e=(a=s??l)!==null&&a!==void 0?a:document.body};return t.addEventListener("find-scrollable-parent",i),t.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),t.removeEventListener("find-scrollable-parent",i),e}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,e){let i=0;for(;e&&e.offsetParent!==t.offsetParent;)i+=e.offsetTop,e=e.offsetParent;return i+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 i=this.findFirstScrollableParent(t);if(t&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,t),a=n-i.clientHeight+t.clientHeight,s=n,l=Un(0,(s-i.scrollTop)/(s-a),1),c=this.computeTopOffsetRatio(e?.position,l)*(a-s)+s;i.scrollTo({behavior:e?.behavior,top:c})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(ys=window.FluidTopicsScrollHelper)!==null&&ys!==void 0?ys:new gs;var Ff=window.FluidTopicsScrollHelper;var vs={};rt(vs,{shadowQuerySelector:()=>Uf,shadowQuerySelectorAll:()=>Bf});function Uf(r,t,...e){var i;let n=r.querySelector(t);for(let a of e)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function Bf(r,t,...e){let i=[...r.querySelectorAll(t)];for(let n of e)i=i.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 i}var xs={};rt(xs,{SearchPlaceConverter:()=>Pi,SearchPlaceQueryParams:()=>st,isSearchPlaceQueryParams:()=>md,serializeRequest:()=>jf});var Hf=yp(Zc(),1);var qc;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(qc||(qc={}));var Yc;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Yc||(Yc={}));var Xc;(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"})(Xc||(Xc={}));var Jc;(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"})(Jc||(Jc={}));var Qc;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Qc||(Qc={}));var td;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(td||(td={}));var ed;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(ed||(ed={}));var Te;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Te||(Te={}));var rd;(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"})(rd||(rd={}));var od;(function(r){r.ASC="ASC",r.DESC="DESC"})(od||(od={}));var id;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(id||(id={}));var nd;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(nd||(nd={}));var pd=r=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(r);var ad;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(ad||(ad={}));var sd;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(sd||(sd={}));var ld;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(ld||(ld={}));var Uo;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Uo||(Uo={}));var ud=r=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(r);var cd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(cd||(cd={}));var dd;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(dd||(dd={}));var pt;(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"})(pt||(pt={}));var fd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(fd||(fd={}));var Wf={[pt.PERSONAL_BOOK_SHARE_USER]:[pt.PERSONAL_BOOK_USER],[pt.HTML_EXPORT_USER]:[pt.PERSONAL_BOOK_USER],[pt.PDF_EXPORT_USER]:[pt.PERSONAL_BOOK_USER],[pt.KHUB_ADMIN]:[pt.CONTENT_PUBLISHER],[pt.ADMIN]:[pt.KHUB_ADMIN,pt.USERS_ADMIN,pt.PORTAL_ADMIN],[pt.DEVELOPER]:[pt.BETA_USER,pt.DEBUG_USER]};function hd(r,t){return r===t||(Wf[r]??[]).some(e=>hd(e,t))}function Cr(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(i=>hd(i,t))}function zf(r){return`"${r}"`}function Vf(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function jf(r,t){return new Pi(r,{}).serialize(t)}var st;(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort"})(st||(st={}));var Gf=new Set(Object.values(st));function md(r){return Gf.has(r)}var Pi=class{constructor(t,e){this.baseUrl=t,this.predefinedSorts=e,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(t,e="/search"){let i=this.toURLSearchParams(t).toString();return new URL(`${this.baseUrl.replace(/\/+$/,"")}${e}?${i}`).href}toURLSearchParams(t){var e,i,n,a,s,l,c,p,h,f;let m=new URLSearchParams({[st.LOCALE]:(e=t.contentLocale)!==null&&e!==void 0?e:"all"});((i=t.query)===null||i===void 0?void 0:i.length)>0&&m.append(st.QUERY,t.query),t.scope&&t.scope!=="DEFAULT"&&m.append(st.SCOPE,t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&m.append(st.VIRTUAL_FIELD,t.virtualField.toLowerCase()),((n=t.sort)===null||n===void 0?void 0:n.length)>0&&t.sort[0].key==="ft:lastEdition"&&m.append(st.SORT,"last_update");let v=(s=(a=t.metadataFilters)===null||a===void 0?void 0:a.filter(_=>_.valueFilter))!==null&&s!==void 0?s:[];if(v.length>0){let _=v.map(I=>{var C,E;let A=((E=(C=I.valueFilter)===null||C===void 0?void 0:C.values)!==null&&E!==void 0?E:[]).map(F=>this.escapeFilters(F)).map(F=>encodeURIComponent(zf(F))).join("_");return`${I.key}~${A}`}).join("*");m.append(st.VALUE_FILTERS,_)}let S=(c=(l=t.metadataFilters)===null||l===void 0?void 0:l.filter(_=>_.dateFilter))!==null&&c!==void 0?c:[];if(S.length>0){let _=S.map(I=>{var C;return`${I.key}~${(C=I.dateFilter)===null||C===void 0?void 0:C.type.toLowerCase()}`}).join("*");m.append(st.DATE_FILTERS,_)}let w=(h=(p=t.metadataFilters)===null||p===void 0?void 0:p.filter(_=>_.rangeFilter))!==null&&h!==void 0?h:[];if(w.length>0){let _=w.map(I=>{var C,E;return`${I.key}~${(C=I.rangeFilter)===null||C===void 0?void 0:C.from}_${(E=I.rangeFilter)===null||E===void 0?void 0:E.to}`}).join("*");m.append(st.RANGE_FILTERS,_)}let $=(f=t.otherQueryParams)!==null&&f!==void 0?f:{};for(let _ in $)m.append(_,$[_]);return m}parse(t){var e;let i=t.split("?"),n=this.fromURLSearchParams(new URLSearchParams(i.slice(1).join("?"))),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(e=this.scopeMapping[a])!==null&&e!==void 0?e:n.scope}}fromURLSearchParams(t){var e,i,n,a,s,l,c,p;let h=((e=t.get(st.VIRTUAL_FIELD))!==null&&e!==void 0?e:"EVERYWHERE").toUpperCase(),f=((i=t.get(st.SORT))!==null&&i!==void 0?i:"DEFAULT").toUpperCase(),m=(n=t.get(st.SCOPE))!==null&&n!==void 0?n:"default",v={};for(let S of t.keys())md(S)||(v[S]=t.get(S));return{contentLocale:t.get(st.LOCALE)==="all"?void 0:(a=t.get(st.LOCALE))!==null&&a!==void 0?a:void 0,query:decodeURIComponent((s=t.get(st.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[m])!==null&&l!==void 0?l:"DEFAULT",virtualField:pd(h)?h:"EVERYWHERE",sort:(p=(c=this.predefinedSorts[f])!==null&&c!==void 0?c:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(t),facets:[],paging:{page:1,perPage:20},otherQueryParams:v}}parseCompatFilters(t){var e,i,n,a,s,l;let c=[];return t.has(st.FILTERS)&&(c=this.parseValueFilters((e=t.get(st.FILTERS))!==null&&e!==void 0?e:"")),(i=t.has(st.PERIOD))!==null&&i!==void 0&&i&&(c=[...c,...this.parseLegacyPeriodFilter(((n=t.get(st.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...c,...this.parseValueFilters((a=t.get(st.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=t.get(st.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(st.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(decodeURIComponent(t)).split("*").map(e=>e.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],valueFilter:{values:e[1].split("_").map(Vf).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],dateFilter:{type:Uo[e[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],rangeFilter:{from:e[1].split("_")[0],to:e[1].split("_")[1]}}))}escapeFilters(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replaceAll(e,i);return t}superEscapeFilters(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replaceAll(i,n);return t}unescapeFilterValue(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replace(n,e);return t}parseLegacyPeriodFilter(t){if(ud(t))return[{key:"ft:lastEdition",dateFilter:{type:Uo[t]}}];if(t.startsWith("CUSTOM_")){let[e,i,n]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}};var Ss={};rt(Ss,{toFtFormComponent:()=>Er});var Li=Symbol("elementInternals");function Er(r,t){class e extends r{static get formAssociated(){return!0}get form(){return this[Li].form}constructor(...n){super(n),this[Li]=this.attachInternals(),this[Li].role=t}setFormValue(n){this[Li].setFormValue(n)}}return e}var Os={};rt(Os,{DateFormatter:()=>Gr});var Gr=class{static format(t,e,i,n){return window.moment?window.moment(t).locale(e).format(this.getDateFormat(i,n)):t}static getDateFormat(t,e){return t?e?"lll":"ll":e?"L LT":"L"}};var Cs,Es,ws,As,Bo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ws=(Es=(Cs=window.safari)===null||Cs===void 0?void 0:Cs.pushNotification)===null||Es===void 0?void 0:Es.toString())!==null&&ws!==void 0?ws:"")==="[object SafariRemoteNotification]",Kf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(As=window.ftGlobals)!==null&&As!==void 0?As:{lit:En,litDecorators:An,litRepeat:_n,litClassMap:Nn,litStyleMap:Tn,litUnsafeHTML:$n,wcUtils:{...kn,...Ln,...Dn,...Os,...Mn,...Wn,...ya,...va,...Pa,...ma,...Ma,...ka,...uc,...Bn,...Ba,...Ha,...hc,...za,...ms,...La,...bs,...vs,...xs,...Ss,isSafari:Bo,isTouchScreen:Kf,setVariable:x}};var Yt;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Yt||(Yt={}));var Zf=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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},_s=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Rs=Symbol("registerInterval");function qf(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[Rs]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Rs]):this.dispatchEvent(new _s)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Rs,Zf([z()],e.prototype,"stateManager",void 0),e}var Ke=class extends qf(Zt){};var yd=o.extend("--ft-ripple-color","",N.colorContent),R={color:yd,backgroundColor:o.extend("--ft-ripple-background-color","",yd),opacityContentOnSurfacePressed:o.external(N.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(N.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(N.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(N.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},gd=o.extend("--ft-ripple-color","",N.colorPrimary),bd={color:gd,backgroundColor:o.extend("--ft-ripple-background-color","",gd)},vd=o.extend("--ft-ripple-color","",N.colorSecondary),xd={color:vd,backgroundColor:o.extend("--ft-ripple-background-color","",vd)},Sd=P`
51
51
  :host {
52
52
  display: contents;
53
53
  }
@@ -60,7 +60,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
60
60
 
61
61
  .ft-ripple:not(.ft-ripple--unbounded) {
62
62
  overflow: hidden;
63
- border-radius: ${V.borderRadius};
63
+ border-radius: ${R.borderRadius};
64
64
  }
65
65
 
66
66
  .ft-ripple .ft-ripple--background,
@@ -94,11 +94,11 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
94
94
  }
95
95
 
96
96
  .ft-ripple .ft-ripple--background {
97
- background-color: ${V.backgroundColor};
97
+ background-color: ${R.backgroundColor};
98
98
  }
99
99
 
100
100
  .ft-ripple .ft-ripple--effect {
101
- background-color: ${V.color};
101
+ background-color: ${R.color};
102
102
  }
103
103
 
104
104
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
@@ -144,56 +144,56 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
144
144
  }
145
145
 
146
146
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
147
- opacity: ${V.opacityContentOnSurfaceHover};
147
+ opacity: ${R.opacityContentOnSurfaceHover};
148
148
  }
149
149
 
150
150
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
151
- opacity: ${V.opacityContentOnSurfaceSelected};
151
+ opacity: ${R.opacityContentOnSurfaceSelected};
152
152
  }
153
153
 
154
154
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
155
- opacity: ${V.opacityContentOnSurfaceFocused};
155
+ opacity: ${R.opacityContentOnSurfaceFocused};
156
156
  }
157
157
 
158
158
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
159
- opacity: ${V.opacityContentOnSurfacePressed};
159
+ opacity: ${R.opacityContentOnSurfacePressed};
160
160
  transform: translate(-50%, -50%) scale(1);
161
161
  }
162
- `;function Od(r){let e=So[r];return P`
163
- .ft-typography--${vt(r)} {
164
- font-family: ${e.fontFamily};
165
- font-size: ${e.fontSize};
166
- font-weight: ${e.fontWeight};
167
- letter-spacing: ${e.letterSpacing};
168
- line-height: ${e.lineHeight};
169
- text-transform: ${e.textCase};
162
+ `;function Od(r){let t=So[r];return P`
163
+ .ft-typography--${ve(r)} {
164
+ font-family: ${t.fontFamily};
165
+ font-size: ${t.fontSize};
166
+ font-weight: ${t.fontWeight};
167
+ letter-spacing: ${t.letterSpacing};
168
+ line-height: ${t.lineHeight};
169
+ text-transform: ${t.textCase};
170
170
  }
171
- `}var wd=i.extend("--ft-typography-font-family","",_.titleFont),It=i.extend("--ft-typography-font-family","",_.contentFont),U={fontFamily:It,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")},Zt={fontFamily:i.extend("--ft-typography-title-font-family","",wd),fontSize:i.extend("--ft-typography-title-font-size","",U.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",U.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",U.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",U.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",U.textTransform,"inherit")},qt={fontFamily:i.extend("--ft-typography-title-dense-font-family","",wd),fontSize:i.extend("--ft-typography-title-dense-font-size","",U.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",U.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",U.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",U.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",U.textTransform,"inherit")},Gr={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",It),fontSize:i.extend("--ft-typography-subtitle1-font-size","",U.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",U.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",U.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",U.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",U.textTransform,"inherit")},Zr={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",It),fontSize:i.extend("--ft-typography-subtitle2-font-size","",U.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",U.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",U.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",U.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",U.textTransform,"inherit")},Xe={fontFamily:i.extend("--ft-typography-body1-font-family","",It),fontSize:i.extend("--ft-typography-body1-font-size","",U.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",U.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",U.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",U.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",U.textTransform,"inherit")},qr={fontFamily:i.extend("--ft-typography-body2-font-family","",It),fontSize:i.extend("--ft-typography-body2-font-size","",U.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",U.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",U.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",U.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",U.textTransform,"inherit")},rt={fontFamily:i.extend("--ft-typography-caption-font-family","",It),fontSize:i.extend("--ft-typography-caption-font-size","",U.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",U.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",U.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",U.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",U.textTransform,"inherit")},Yr={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",It),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",U.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",U.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",U.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",U.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",U.textTransform,"inherit")},Xr={fontFamily:i.extend("--ft-typography-overline-font-family","",It),fontSize:i.extend("--ft-typography-overline-font-size","",U.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",U.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",U.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",U.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",U.textTransform,"uppercase")},Le={fontFamily:i.extend("--ft-typography-button-font-family","",It),fontSize:i.extend("--ft-typography-button-font-size","",U.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",U.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",U.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",U.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",U.textTransform,"uppercase")},Ed=P`
171
+ `}var Cd=o.extend("--ft-typography-font-family","",N.titleFont),Ie=o.extend("--ft-typography-font-family","",N.contentFont),U={fontFamily:Ie,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ze={fontFamily:o.extend("--ft-typography-title-font-family","",Cd),fontSize:o.extend("--ft-typography-title-font-size","",U.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",U.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",U.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",U.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",U.textTransform,"inherit")},qe={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Cd),fontSize:o.extend("--ft-typography-title-dense-font-size","",U.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",U.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",U.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",U.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",U.textTransform,"inherit")},Kr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Ie),fontSize:o.extend("--ft-typography-subtitle1-font-size","",U.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",U.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",U.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",U.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",U.textTransform,"inherit")},Zr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Ie),fontSize:o.extend("--ft-typography-subtitle2-font-size","",U.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",U.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",U.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",U.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",U.textTransform,"inherit")},Xt={fontFamily:o.extend("--ft-typography-body1-font-family","",Ie),fontSize:o.extend("--ft-typography-body1-font-size","",U.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",U.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",U.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",U.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",U.textTransform,"inherit")},qr={fontFamily:o.extend("--ft-typography-body2-font-family","",Ie),fontSize:o.extend("--ft-typography-body2-font-size","",U.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",U.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",U.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",U.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",U.textTransform,"inherit")},re={fontFamily:o.extend("--ft-typography-caption-font-family","",Ie),fontSize:o.extend("--ft-typography-caption-font-size","",U.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",U.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",U.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",U.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",U.textTransform,"inherit")},Yr={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Ie),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",U.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",U.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",U.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",U.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",U.textTransform,"inherit")},Xr={fontFamily:o.extend("--ft-typography-overline-font-family","",Ie),fontSize:o.extend("--ft-typography-overline-font-size","",U.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",U.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",U.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",U.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",U.textTransform,"uppercase")},Dt={fontFamily:o.extend("--ft-typography-button-font-family","",Ie),fontSize:o.extend("--ft-typography-button-font-size","",U.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",U.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",U.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",U.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",U.textTransform,"uppercase")},Ed=P`
172
172
  .ft-typography--title {
173
- font-family: ${Zt.fontFamily};
174
- font-size: ${Zt.fontSize};
175
- font-weight: ${Zt.fontWeight};
176
- letter-spacing: ${Zt.letterSpacing};
177
- line-height: ${Zt.lineHeight};
178
- text-transform: ${Zt.textTransform};
179
- }
180
- `,Cd=P`
173
+ font-family: ${Ze.fontFamily};
174
+ font-size: ${Ze.fontSize};
175
+ font-weight: ${Ze.fontWeight};
176
+ letter-spacing: ${Ze.letterSpacing};
177
+ line-height: ${Ze.lineHeight};
178
+ text-transform: ${Ze.textTransform};
179
+ }
180
+ `,wd=P`
181
181
  .ft-typography--title-dense {
182
- font-family: ${qt.fontFamily};
183
- font-size: ${qt.fontSize};
184
- font-weight: ${qt.fontWeight};
185
- letter-spacing: ${qt.letterSpacing};
186
- line-height: ${qt.lineHeight};
187
- text-transform: ${qt.textTransform};
182
+ font-family: ${qe.fontFamily};
183
+ font-size: ${qe.fontSize};
184
+ font-weight: ${qe.fontWeight};
185
+ letter-spacing: ${qe.letterSpacing};
186
+ line-height: ${qe.lineHeight};
187
+ text-transform: ${qe.textTransform};
188
188
  }
189
189
  `,Ad=P`
190
190
  .ft-typography--subtitle1 {
191
- font-family: ${Gr.fontFamily};
192
- font-size: ${Gr.fontSize};
193
- font-weight: ${Gr.fontWeight};
194
- letter-spacing: ${Gr.letterSpacing};
195
- line-height: ${Gr.lineHeight};
196
- text-transform: ${Gr.textTransform};
191
+ font-family: ${Kr.fontFamily};
192
+ font-size: ${Kr.fontSize};
193
+ font-weight: ${Kr.fontWeight};
194
+ letter-spacing: ${Kr.letterSpacing};
195
+ line-height: ${Kr.lineHeight};
196
+ text-transform: ${Kr.textTransform};
197
197
  }
198
198
  `,Rd=P`
199
199
  .ft-typography--subtitle2 {
@@ -207,12 +207,12 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
207
207
 
208
208
  `,Jr=P`
209
209
  .ft-typography--body1 {
210
- font-family: ${Xe.fontFamily};
211
- font-size: ${Xe.fontSize};
212
- font-weight: ${Xe.fontWeight};
213
- letter-spacing: ${Xe.letterSpacing};
214
- line-height: ${Xe.lineHeight};
215
- text-transform: ${Xe.textTransform};
210
+ font-family: ${Xt.fontFamily};
211
+ font-size: ${Xt.fontSize};
212
+ font-weight: ${Xt.fontWeight};
213
+ letter-spacing: ${Xt.letterSpacing};
214
+ line-height: ${Xt.lineHeight};
215
+ text-transform: ${Xt.textTransform};
216
216
  }
217
217
  `,_d=P`
218
218
  .ft-typography--body2 {
@@ -223,16 +223,16 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
223
223
  line-height: ${qr.lineHeight};
224
224
  text-transform: ${qr.textTransform};
225
225
  }
226
- `,Li=P`
226
+ `,ki=P`
227
227
  .ft-typography--caption {
228
- font-family: ${rt.fontFamily};
229
- font-size: ${rt.fontSize};
230
- font-weight: ${rt.fontWeight};
231
- letter-spacing: ${rt.letterSpacing};
232
- line-height: ${rt.lineHeight};
233
- text-transform: ${rt.textTransform};
228
+ font-family: ${re.fontFamily};
229
+ font-size: ${re.fontSize};
230
+ font-weight: ${re.fontWeight};
231
+ letter-spacing: ${re.letterSpacing};
232
+ line-height: ${re.lineHeight};
233
+ text-transform: ${re.textTransform};
234
234
  }
235
- `,Td=P`
235
+ `,Nd=P`
236
236
  .ft-typography--breadcrumb {
237
237
  font-family: ${Yr.fontFamily};
238
238
  font-size: ${Yr.fontSize};
@@ -241,7 +241,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
241
241
  line-height: ${Yr.lineHeight};
242
242
  text-transform: ${Yr.textTransform};
243
243
  }
244
- `,Nd=P`
244
+ `,Td=P`
245
245
  .ft-typography--overline {
246
246
  font-family: ${Xr.fontFamily};
247
247
  font-size: ${Xr.fontSize};
@@ -252,18 +252,18 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
252
252
  }
253
253
  `,Id=P`
254
254
  .ft-typography--button {
255
- font-family: ${Le.fontFamily};
256
- font-size: ${Le.fontSize};
257
- font-weight: ${Le.fontWeight};
258
- letter-spacing: ${Le.letterSpacing};
259
- line-height: ${Le.lineHeight};
260
- text-transform: ${Le.textTransform};
261
- }
262
- `,Pd=P`
255
+ font-family: ${Dt.fontFamily};
256
+ font-size: ${Dt.fontSize};
257
+ font-weight: ${Dt.fontWeight};
258
+ letter-spacing: ${Dt.letterSpacing};
259
+ line-height: ${Dt.lineHeight};
260
+ text-transform: ${Dt.textTransform};
261
+ }
262
+ `,$d=P`
263
263
  .ft-typography {
264
264
  vertical-align: inherit;
265
265
  }
266
- `,$d=[Object.keys(So).map(r=>Od(r))];var De={color:i.extend("--ft-loader-color","",_.colorPrimary),size:i.create("--ft-loader-size","","SIZE","80px")},kd=P`
266
+ `,Pd=[Object.keys(So).map(r=>Od(r))];var ut={color:o.extend("--ft-loader-color","",N.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},Ld=P`
267
267
  :host {
268
268
  line-height: 0;
269
269
  }
@@ -272,8 +272,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
272
272
  display: inline-block;
273
273
  position: relative;
274
274
 
275
- width: ${De.size};
276
- height: ${De.size};
275
+ width: ${ut.size};
276
+ height: ${ut.size};
277
277
  }
278
278
 
279
279
  .ft-loader div {
@@ -282,7 +282,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
282
282
  width: 25%;
283
283
  height: 25%;
284
284
  border-radius: 50%;
285
- background: ${De.color};
285
+ background: ${ut.color};
286
286
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
287
287
  }
288
288
 
@@ -329,10 +329,10 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
329
329
  transform: translate(0, 0);
330
330
  }
331
331
  100% {
332
- transform: translate(calc(0.35 * ${De.size}), 0);
332
+ transform: translate(calc(0.35 * ${ut.size}), 0);
333
333
  }
334
334
  }
335
- `;var Oe={size:i.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:i.extend("--ft-icon-fluid-topics-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:i.extend("--ft-icon-file-format-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:i.extend("--ft-icon-material-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:i.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ld=P`
335
+ `;var Ct={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},kd=P`
336
336
  :host, i.ft-icon {
337
337
  display: inline-flex;
338
338
  align-items: center;
@@ -341,14 +341,14 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
341
341
  }
342
342
 
343
343
  :host {
344
- width: ${Oe.size};
345
- height: ${Oe.size};
344
+ width: ${Ct.size};
345
+ height: ${Ct.size};
346
346
  }
347
347
 
348
348
  i.ft-icon {
349
349
  width: 100%;
350
350
  height: 100%;
351
- font-size: ${Oe.size};
351
+ font-size: ${Ct.size};
352
352
  line-height: 1;
353
353
  font-weight: normal;
354
354
  text-transform: none;
@@ -359,28 +359,28 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
359
359
  text-rendering: auto;
360
360
  -webkit-font-smoothing: antialiased;
361
361
  -moz-osx-font-smoothing: grayscale;
362
- vertical-align: ${Oe.verticalAlign};
362
+ vertical-align: ${Ct.verticalAlign};
363
363
  }
364
364
 
365
365
  i.ft-icon.ft-icon--fluid-topics {
366
- font-family: ${Oe.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
366
+ font-family: ${Ct.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
367
367
 
368
368
  /* Ugly fix because font is broken */
369
- font-size: calc(0.75 * ${Oe.size});
370
- line-height: ${Oe.size};
369
+ font-size: calc(0.75 * ${Ct.size});
370
+ line-height: ${Ct.size};
371
371
  position: relative;
372
372
  top: -4%;
373
373
  justify-content: center;
374
374
  }
375
375
 
376
376
  .ft-icon--file-format {
377
- font-family: ${Oe.fileFormatFontFamily}, ft-mime, sans-serif;
377
+ font-family: ${Ct.fileFormatFontFamily}, ft-mime, sans-serif;
378
378
  }
379
379
 
380
380
  .ft-icon--material {
381
- font-family: ${Oe.materialFontFamily}, "Material Icons", sans-serif;
381
+ font-family: ${Ct.materialFontFamily}, "Material Icons", sans-serif;
382
382
  }
383
- `;var Dd=i.extend("--ft-button-color","",_.colorPrimary),le={backgroundColor:i.extend("--ft-button-background-color","",_.colorSurface),borderRadius:i.extend("--ft-button-border-radius","",_.borderRadiusL),color:Dd,fontSize:i.extend("--ft-button-font-size","",Le.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",Dd),verticalPadding:i.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:i.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:i.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:i.external(_.colorOpacityDisabled,"Design system")},Md=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",_.colorOnPrimary)),Ts={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",_.colorPrimary)),color:Md,rippleColor:i.extend("--ft-button-primary-ripple-color","",Md)},mt={borderRadius:i.extend("--ft-button-dense-border-radius","",i.extend("--ft-button-border-radius","",_.borderRadiusM)),verticalPadding:i.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:i.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:i.create("--ft-button-dense-icon-padding","","SIZE","4px")},Ud=[P`
383
+ `;var Dd=o.extend("--ft-button-color","",N.colorPrimary),lt={backgroundColor:o.extend("--ft-button-background-color","",N.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",N.borderRadiusL),color:Dd,fontSize:o.extend("--ft-button-font-size","",Dt.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",Dd),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(N.colorOpacityDisabled,"Design system")},Md=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",N.colorOnPrimary)),Ns={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",N.colorPrimary)),color:Md,rippleColor:o.extend("--ft-button-primary-ripple-color","",Md)},me={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",N.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},Fd=[P`
384
384
  :host {
385
385
  display: inline-block;
386
386
  max-width: 100%;
@@ -391,7 +391,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
391
391
  box-shadow: 0px 0px 0px transparent;
392
392
  border: 0px solid transparent;
393
393
  text-shadow: 0px 0px 0px transparent;
394
- font-size: ${le.fontSize};
394
+ font-size: ${lt.fontSize};
395
395
  }
396
396
 
397
397
  button:hover {
@@ -420,31 +420,31 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
420
420
  border: none;
421
421
  pointer-events: auto;
422
422
 
423
- --ft-button-internal-line-height: max(calc(${le.fontSize} + 2px), ${le.iconSize});
424
- --ft-button-internal-color: ${le.color};
425
- ${C(Oe.size,le.iconSize)};
426
- ${C(V.color,le.rippleColor)};
423
+ --ft-button-internal-line-height: max(calc(${lt.fontSize} + 2px), ${lt.iconSize});
424
+ --ft-button-internal-color: ${lt.color};
425
+ ${x(Ct.size,lt.iconSize)};
426
+ ${x(R.color,lt.rippleColor)};
427
427
 
428
- border-radius: ${le.borderRadius};
429
- padding: ${le.verticalPadding} ${le.horizontalPadding};
430
- background-color: ${le.backgroundColor};
428
+ border-radius: ${lt.borderRadius};
429
+ padding: ${lt.verticalPadding} ${lt.horizontalPadding};
430
+ background-color: ${lt.backgroundColor};
431
431
  color: var(--ft-button-internal-color);
432
432
  -webkit-mask-image: radial-gradient(white, black);
433
433
  }
434
434
 
435
435
  .ft-button.ft-button--outlined {
436
436
  border: 1px solid var(--ft-button-internal-color);
437
- padding: calc(${le.verticalPadding} - 1px) calc(${le.horizontalPadding} - 1px);
437
+ padding: calc(${lt.verticalPadding} - 1px) calc(${lt.horizontalPadding} - 1px);
438
438
  }
439
439
 
440
440
  .ft-button.ft-button--dense {
441
- padding: ${mt.verticalPadding} ${mt.horizontalPadding};
442
- border-radius: ${mt.borderRadius};
443
- gap: ${mt.iconPadding};
441
+ padding: ${me.verticalPadding} ${me.horizontalPadding};
442
+ border-radius: ${me.borderRadius};
443
+ gap: ${me.iconPadding};
444
444
  }
445
445
 
446
446
  .ft-button.ft-button--dense.ft-button--outlined {
447
- padding: calc(${mt.verticalPadding} - 1px) calc(${mt.horizontalPadding} - 1px);
447
+ padding: calc(${me.verticalPadding} - 1px) calc(${me.horizontalPadding} - 1px);
448
448
  }
449
449
 
450
450
  .ft-button:not([disabled]):hover {
@@ -452,22 +452,22 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
452
452
  }
453
453
 
454
454
  .ft-button--round {
455
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${le.verticalPadding});
455
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${lt.verticalPadding});
456
456
  }
457
457
 
458
458
  .ft-button--round.ft-button--dense {
459
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${mt.verticalPadding});
459
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${me.verticalPadding});
460
460
  }
461
461
 
462
462
  .ft-button[disabled] {
463
463
  filter: grayscale(1);
464
- opacity: ${le.opacityDisabled};
464
+ opacity: ${lt.opacityDisabled};
465
465
  }
466
466
 
467
467
  .ft-button.ft-button--primary {
468
- background-color: ${Ts.backgroundColor};
469
- --ft-button-internal-color: ${Ts.color};
470
- ${C(V.color,Ts.rippleColor)};
468
+ background-color: ${Ns.backgroundColor};
469
+ --ft-button-internal-color: ${Ns.color};
470
+ ${x(R.color,Ns.rippleColor)};
471
471
  }
472
472
 
473
473
  .ft-button:focus {
@@ -480,13 +480,13 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
480
480
  white-space: nowrap;
481
481
  text-overflow: ellipsis;
482
482
  display: block;
483
- margin: 0 ${le.iconPadding};
484
- ${C(Le.fontSize,"1em")};
485
- ${C(Le.lineHeight,"var(--ft-button-internal-line-height)")};
483
+ margin: 0 ${lt.iconPadding};
484
+ ${x(Dt.fontSize,"1em")};
485
+ ${x(Dt.lineHeight,"var(--ft-button-internal-line-height)")};
486
486
  }
487
487
 
488
488
  .ft-button--dense .ft-button--label {
489
- margin: 0 ${mt.iconPadding};
489
+ margin: 0 ${me.iconPadding};
490
490
  }
491
491
 
492
492
  .ft-button--label[hidden] {
@@ -499,13 +499,13 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
499
499
  }
500
500
 
501
501
  .ft-button--label[hidden] + [part="icon"] {
502
- margin: 0 calc(${le.horizontalPadding} * -1);
503
- padding: 0 ${le.verticalPadding};
502
+ margin: 0 calc(${lt.horizontalPadding} * -1);
503
+ padding: 0 ${lt.verticalPadding};
504
504
  }
505
505
 
506
506
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
507
- margin: 0 calc(${mt.horizontalPadding} * -1);
508
- padding: 0 ${mt.verticalPadding};
507
+ margin: 0 calc(${me.horizontalPadding} * -1);
508
+ padding: 0 ${me.verticalPadding};
509
509
  }
510
510
 
511
511
  .ft-button:not(.ft-button--trailing-icon) [part="label"]{
@@ -513,10 +513,10 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
513
513
  }
514
514
 
515
515
  ft-loader {
516
- ${C(De.size,le.iconSize)};
517
- ${C(De.color,"var(--ft-button-internal-color)")};
516
+ ${x(ut.size,lt.iconSize)};
517
+ ${x(ut.color,"var(--ft-button-internal-color)")};
518
518
  }
519
- `,br];var he={textColor:i.extend("--ft-switch-text-color","",_.colorOnSurfaceHigh),backgroundColor:i.extend("--ft-switch-background-color","",_.colorSurface),selectedTextColor:i.extend("--ft-switch-selected-text-color","",_.colorPrimary),selectedBackgroundColor:i.extend("--ft-switch-selected-background-color","",_.colorPrimary),borderColor:i.extend("--ft-switch-border-color","",_.colorOutline),borderRadius:i.extend("--ft-switch-border-radius","",_.borderRadiusL),fontSize:i.extend("--ft-switch-font-size","",Le.fontSize),iconSize:i.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:i.extend("--ft-switch-text-color","",_.colorOnSurfaceMedium),rippleColor:i.extend("--ft-switch-ripple-color","",_.colorPrimary),outlineColor:i.extend("--ft-switch-outline-color","",_.colorPrimary)};var gt={feedbackInputMinWidth:i.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:i.external(_.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:i.extend("--ft-reader-feedback-send-feedback-color","",_.colorOnPrimary),sendFeedbackBackgroundColor:i.extend("--ft-reader-feedback-send-feedback-background-color","",_.colorPrimary),filledRatingColor:i.extend("--ft-reader-feedback-filled-rating-color","",_.colorPrimary),emptyRatingColor:i.extend("--ft-reader-feedback-empty-rating-color","",_.colorOnSurfaceMedium),mainTitleFontSize:i.external(Zt.fontSize,"Typography"),sectionTitleFontSize:i.external(qt.fontSize,"Typography"),starsBackgroundColor:i.create("--ft-reader-feedback-stars-background-color","","COLOR",_.colorSurface)},Fd=P`
519
+ `,br];var mt={textColor:o.extend("--ft-switch-text-color","",N.colorOnSurfaceHigh),backgroundColor:o.extend("--ft-switch-background-color","",N.colorSurface),selectedTextColor:o.extend("--ft-switch-selected-text-color","",N.colorPrimary),selectedBackgroundColor:o.extend("--ft-switch-selected-background-color","",N.colorPrimary),borderColor:o.extend("--ft-switch-border-color","",N.colorOutline),borderRadius:o.extend("--ft-switch-border-radius","",N.borderRadiusL),fontSize:o.extend("--ft-switch-font-size","",Dt.fontSize),iconSize:o.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:o.extend("--ft-switch-text-color","",N.colorOnSurfaceMedium),rippleColor:o.extend("--ft-switch-ripple-color","",N.colorPrimary),outlineColor:o.extend("--ft-switch-outline-color","",N.colorPrimary)};var ye={feedbackInputMinWidth:o.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:o.external(N.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:o.extend("--ft-reader-feedback-send-feedback-color","",N.colorOnPrimary),sendFeedbackBackgroundColor:o.extend("--ft-reader-feedback-send-feedback-background-color","",N.colorPrimary),filledRatingColor:o.extend("--ft-reader-feedback-filled-rating-color","",N.colorPrimary),emptyRatingColor:o.extend("--ft-reader-feedback-empty-rating-color","",N.colorOnSurfaceMedium),mainTitleFontSize:o.external(Ze.fontSize,"Typography"),sectionTitleFontSize:o.external(qe.fontSize,"Typography"),starsBackgroundColor:o.create("--ft-reader-feedback-stars-background-color","","COLOR",N.colorSurface)},Ud=P`
520
520
  .ft-reader-feedback {
521
521
  box-sizing: border-box;
522
522
  display: flex;
@@ -529,7 +529,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
529
529
  flex-direction: row;
530
530
  align-items: center;
531
531
  margin-left: -6px;
532
- ${C(le.backgroundColor,gt.starsBackgroundColor)}
532
+ ${x(lt.backgroundColor,ye.starsBackgroundColor)}
533
533
  }
534
534
 
535
535
  .ft-reader-feedback--rating, .ft-reader-feedback--feedback {
@@ -542,14 +542,14 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
542
542
  }
543
543
 
544
544
  .ft-reader-feedback--rating {
545
- ${C(le.color,gt.emptyRatingColor)};
546
- ${C(le.rippleColor,gt.filledRatingColor)};
547
- ${C(he.textColor,gt.emptyRatingColor)};
548
- ${C(he.selectedTextColor,gt.filledRatingColor)};
545
+ ${x(lt.color,ye.emptyRatingColor)};
546
+ ${x(lt.rippleColor,ye.filledRatingColor)};
547
+ ${x(mt.textColor,ye.emptyRatingColor)};
548
+ ${x(mt.selectedTextColor,ye.filledRatingColor)};
549
549
  }
550
550
 
551
551
  .ft-reader-feedback--rating .ft-reader-feedback--active {
552
- ${C(le.color,gt.filledRatingColor)};
552
+ ${x(lt.color,ye.filledRatingColor)};
553
553
  }
554
554
 
555
555
  .ft-reader-feedback--feedback {
@@ -557,41 +557,41 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
557
557
  }
558
558
 
559
559
  .ft-reader-feedback--rating-date {
560
- color: ${gt.ratedDateColor};
560
+ color: ${ye.ratedDateColor};
561
561
  }
562
562
 
563
563
  .ft-reader-feedback--feedback ft-text-area {
564
- min-width: ${gt.feedbackInputMinWidth};
564
+ min-width: ${ye.feedbackInputMinWidth};
565
565
  }
566
566
 
567
567
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
568
- ${C(le.color,gt.sendFeedbackColor)};
569
- ${C(le.backgroundColor,gt.sendFeedbackBackgroundColor)};
568
+ ${x(lt.color,ye.sendFeedbackColor)};
569
+ ${x(lt.backgroundColor,ye.sendFeedbackBackgroundColor)};
570
570
  }
571
571
 
572
572
  [part="buttons-container"] {
573
573
  align-self: flex-end;
574
574
  }
575
- `;var zd=Symbol.for(""),qf=r=>{if(r?.r===zd)return r?._$litStatic$},Ns=r=>({_$litStatic$:r,r:zd});var Bd=new Map,Hd=r=>(e,...t)=>{let o=t.length,n,a,s=[],l=[],c,p=0,h=!1;for(;p<o;){for(c=e[p];p<o&&(a=t[p],(n=qf(a))!==void 0);)c+=n+e[++p],h=!0;p!==o&&l.push(a),s.push(c),p++}if(p===o&&s.push(e[o]),h){let f=s.join("$$lit$$");(e=Bd.get(f))===void 0&&(s.raw=s,Bd.set(f,e=s)),t=l}return r(e,...t)},Is=Hd(dl),X0=Hd(pl);var Yt;(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button",r.display="display",r.title1="title-1",r.title2="title-2",r.title3="title-3",r.body1regular="body-1-regular",r.body1medium="body-1-medium",r.body1semibold="body-1-semibold",r.body2regular="body-2-regular",r.body2medium="body-2-medium",r.body2semibold="body-2-semibold",r.label1medium="label-1-medium",r.label1semibold="label-1-semibold",r.label1bold="label-1-bold",r.label2medium="label-2-medium",r.label2semibold="label-2-semibold",r.label2bold="label-2-bold",r.caption1medium="caption-1-medium",r.caption1semibold="caption-1-semibold",r.caption1bold="caption-1-bold",r.caption2medium="caption-2-medium",r.caption2semibold="caption-2-semibold",r.caption2bold="caption-2-bold"})(Yt||(Yt={}));var Wd=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ye=class extends W{constructor(){super(...arguments),this.variant=Yt.body1}render(){return this.element?Is`
576
- <${Ns(this.element)}
575
+ `;var Wd=Symbol.for(""),Yf=r=>{if(r?.r===Wd)return r?._$litStatic$},Ts=r=>({_$litStatic$:r,r:Wd});var Bd=new Map,Hd=r=>(t,...e)=>{let i=e.length,n,a,s=[],l=[],c,p=0,h=!1;for(;p<i;){for(c=t[p];p<i&&(a=e[p],(n=Yf(a))!==void 0);)c+=n+t[++p],h=!0;p!==i&&l.push(a),s.push(c),p++}if(p===i&&s.push(t[i]),h){let f=s.join("$$lit$$");(t=Bd.get(f))===void 0&&(s.raw=s,Bd.set(f,t=s)),e=l}return r(t,...e)},Is=Hd(dl),rS=Hd(pl);var Ye;(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button",r.display="display",r.title1="title-1",r.title2="title-2",r.title3="title-3",r.body1regular="body-1-regular",r.body1medium="body-1-medium",r.body1semibold="body-1-semibold",r.body2regular="body-2-regular",r.body2medium="body-2-medium",r.body2semibold="body-2-semibold",r.label1medium="label-1-medium",r.label1semibold="label-1-semibold",r.label1bold="label-1-bold",r.label2medium="label-2-medium",r.label2semibold="label-2-semibold",r.label2bold="label-2-bold",r.caption1medium="caption-1-medium",r.caption1semibold="caption-1-semibold",r.caption1bold="caption-1-bold",r.caption2medium="caption-2-medium",r.caption2semibold="caption-2-semibold",r.caption2bold="caption-2-bold"})(Ye||(Ye={}));var zd=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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 V{constructor(){super(...arguments),this.variant=Ye.body1}render(){return this.element?Is`
576
+ <${Ts(this.element)}
577
577
  part="text"
578
578
  class="ft-typography ft-typography--${this.variant}">
579
579
  <slot></slot>
580
- </${Ns(this.element)}>
580
+ </${Ts(this.element)}>
581
581
  `:Is`
582
582
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
583
- `}};ye.styles=[Ed,Cd,Ad,Rd,Jr,_d,Li,Td,Nd,Id,Pd,...$d];Wd([y()],ye.prototype,"element",void 0);Wd([y()],ye.prototype,"variant",void 0);K("ft-typography")(ye);var ze=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},te=class extends W{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 ae(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new ae(10),this.moveRipple=e=>{var t,o;let{x:n,y:a}=this.getCoordinates(e),s=(o=(t=this.ripple)===null||t===void 0?void 0:t.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=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"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
+ `}};bt.styles=[Ed,wd,Ad,Rd,Jr,_d,ki,Nd,Td,Id,$d,...Pd];zd([g()],bt.prototype,"element",void 0);zd([g()],bt.prototype,"variant",void 0);G("ft-typography")(bt);var Wt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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 V{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 at(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 at(10),this.moveRipple=t=>{var e,i;let{x:n,y:a}=this.getCoordinates(t),s=(i=(e=this.ripple)===null||e===void 0?void 0:e.getBoundingClientRect())!==null&&i!==void 0?i:{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 L`
584
584
  <style>
585
585
  .ft-ripple .ft-ripple--effect {
586
586
  left: ${this.originX}px;
587
587
  top: ${this.originY}px;
588
588
  }
589
589
  </style>
590
- <div class="${$e(e)}">
590
+ <div class="${Lt(t)}">
591
591
  <div class="ft-ripple--background"></div>
592
592
  <div class="ft-ripple--effect"></div>
593
593
  </div>
594
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var t,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(t=this.target)===null||t===void 0||t.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 e,t;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((t=this.target)!==null&&t!==void 0?t:o)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let t=(...l)=>c=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(c)},o=t("mouseup","contextmenu"),n=t("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&t("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",o,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",o,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let t=e,o=e,n,a;return t.x!=null?{x:n,y:a}=t:o.touches!=null&&(n=o.touches[0].clientX,a=o.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let t of e.composedPath()){if(t===this.target)break;if("hasAttribute"in t&&t.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};te.elementDefinitions={};te.styles=Sd;ze([y({type:Boolean})],te.prototype,"primary",void 0);ze([y({type:Boolean})],te.prototype,"secondary",void 0);ze([y({type:Boolean})],te.prototype,"unbounded",void 0);ze([y({type:Boolean})],te.prototype,"activated",void 0);ze([y({type:Boolean})],te.prototype,"selected",void 0);ze([y({type:Boolean})],te.prototype,"disabled",void 0);ze([H()],te.prototype,"hovered",void 0);ze([H()],te.prototype,"focused",void 0);ze([H()],te.prototype,"pressed",void 0);ze([H()],te.prototype,"rippling",void 0);ze([H()],te.prototype,"originX",void 0);ze([H()],te.prototype,"originY",void 0);ze([X(".ft-ripple")],te.prototype,"ripple",void 0);ze([X(".ft-ripple--effect")],te.prototype,"rippleEffect",void 0);K("ft-ripple")(te);var Qr={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(_.borderRadiusS,"Design system"),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","150px")},Vd=P`
594
+ `}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,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(e=this.target)===null||e===void 0||e.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.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 i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((e=this.target)!==null&&e!==void 0?e:i)}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(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(c)},i=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",i,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",i,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,i=t,n,a;return e.x!=null?{x:n,y:a}=e:i.touches!=null&&(n=i.touches[0].clientX,a=i.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()}};et.elementDefinitions={};et.styles=Sd;Wt([g({type:Boolean})],et.prototype,"primary",void 0);Wt([g({type:Boolean})],et.prototype,"secondary",void 0);Wt([g({type:Boolean})],et.prototype,"unbounded",void 0);Wt([g({type:Boolean})],et.prototype,"activated",void 0);Wt([g({type:Boolean})],et.prototype,"selected",void 0);Wt([g({type:Boolean})],et.prototype,"disabled",void 0);Wt([z()],et.prototype,"hovered",void 0);Wt([z()],et.prototype,"focused",void 0);Wt([z()],et.prototype,"pressed",void 0);Wt([z()],et.prototype,"rippling",void 0);Wt([z()],et.prototype,"originX",void 0);Wt([z()],et.prototype,"originY",void 0);Wt([X(".ft-ripple")],et.prototype,"ripple",void 0);Wt([X(".ft-ripple--effect")],et.prototype,"rippleEffect",void 0);G("ft-ripple")(et);var Qr={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.external(N.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Vd=P`
595
595
  .ft-tooltip--container {
596
596
  display: block;
597
597
  }
@@ -620,7 +620,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
620
620
  position: relative;
621
621
  word-break: break-word;
622
622
  }
623
- `;var He=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ue=class extends W{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new ae,this.revealDebouncer=new ae}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return $`
623
+ `;var Ht=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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},ft=class extends V{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new at,this.revealDebouncer=new at}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return L`
624
624
  <div part="container"
625
625
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
626
626
  @mouseenter=${this.onHover}
@@ -638,12 +638,12 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
638
638
  </div>
639
639
  </div>
640
640
  </div>
641
- `}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(t=>e.has(t))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(t=>t.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",No(this.slottedElement,this.tooltip,this.position).then(({x:e,y:t})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${t}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",e=>{e.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(e,t){return Math.max(e,Math.min(0,-t))}};ue.elementDefinitions={"ft-typography":ye};ue.styles=Vd;He([y()],ue.prototype,"text",void 0);He([y({type:Boolean})],ue.prototype,"manual",void 0);He([y({type:Boolean})],ue.prototype,"inline",void 0);He([y({type:Number})],ue.prototype,"delay",void 0);He([y()],ue.prototype,"position",void 0);He([yo()],ue.prototype,"slotNodes",void 0);He([X(".ft-tooltip--container")],ue.prototype,"container",void 0);He([X(".ft-tooltip")],ue.prototype,"tooltip",void 0);He([X(".ft-tooltip--content")],ue.prototype,"tooltipContent",void 0);He([H()],ue.prototype,"visible",void 0);He([Ot({passive:!0})],ue.prototype,"onTouch",null);He([Ot({passive:!0})],ue.prototype,"onHover",null);He([Ot({passive:!0})],ue.prototype,"onOut",null);He([Ot({passive:!0})],ue.prototype,"onClick",null);K("ft-tooltip")(ue);var Cr;(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.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",r.HOURGLASS_END="&#xe99b;",r.CIRCLE_QUESTION="&#xe99c;",r.EYE="&#xf06e;",r.SHARE="&#xe80f1;"})(Cr||(Cr={}));var T;(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;"})(T||(T={}));var HS=new Map([...["abw"].map(r=>[r,T.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,T.AUDIO]),...["avi"].map(r=>[r,T.AVI]),...["chm","xhs"].map(r=>[r,T.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,T.CODE]),...["csv"].map(r=>[r,T.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,T.DITA]),...["epub"].map(r=>[r,T.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,T.EXCEL]),...["flac"].map(r=>[r,T.FLAC]),...["gif"].map(r=>[r,T.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,T.GZIP]),...["html","htm","xhtml"].map(r=>[r,T.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,T.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,T.JPEG]),...["json"].map(r=>[r,T.JSON]),...["m4a","m4p"].map(r=>[r,T.M4A]),...["mov","qt"].map(r=>[r,T.MOV]),...["mp3"].map(r=>[r,T.MP3]),...["mp4","m4v"].map(r=>[r,T.MP4]),...["ogg","oga"].map(r=>[r,T.OGG]),...["pdf","ps"].map(r=>[r,T.PDF]),...["png"].map(r=>[r,T.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,T.POWERPOINT]),...["rar"].map(r=>[r,T.RAR]),...["stp"].map(r=>[r,T.STP]),...["txt","rtf","md","mdown"].map(r=>[r,T.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,T.VIDEO]),...["wav"].map(r=>[r,T.WAV]),...["wma"].map(r=>[r,T.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,T.WORD]),...["xml","xsl","rdf"].map(r=>[r,T.XML]),...["yaml","yml","x-yaml"].map(r=>[r,T.YAML]),...["zip"].map(r=>[r,T.ZIP])]);var WS={[T.ABW]:"#91ABC6",[T.AUDIO]:"#1795E3",[T.AVI]:"#E63324",[T.CHM]:"#71C3EB",[T.CODE]:"#71C3EB",[T.CSV]:"#1F7345",[T.DITA]:"#71C3EB",[T.EPUB]:"#85B926",[T.EXCEL]:"#1F7345",[T.FLAC]:"#1795E3",[T.GIF]:"#59B031",[T.GZIP]:"#F8AB36",[T.HTML]:"#71C3EB",[T.IMAGE]:"#59B031",[T.JPEG]:"#59B031",[T.JSON]:"#71C3EB",[T.M4A]:"#1795E3",[T.MOV]:"#E63324",[T.MP3]:"#1795E3",[T.MP4]:"#E63324",[T.OGG]:"#1795E3",[T.PDF]:"#E44948",[T.PNG]:"#59B031",[T.POWERPOINT]:"#B54A2B",[T.RAR]:"#F8AB36",[T.STP]:"#3764B1",[T.TEXT]:"#3162AB",[T.UNKNOWN]:"#999999",[T.VIDEO]:"#E63324",[T.WAV]:"#1795E3",[T.WMA]:"#1795E3",[T.WORD]:"#3162AB",[T.XML]:"#71C3EB",[T.YAML]:"#71C3EB",[T.ZIP]:"#F8AB36"};var Ie;(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(Ie||(Ie={}));var Di=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Se=class extends W{constructor(){super(...arguments),this.resolvedIcon=z}render(){let e=this.variant&&Object.values(Ie).includes(this.variant)?this.variant:Ie.fluid_topics,t=e!==Ie.material||!!this.value;return $`
642
- <i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
641
+ `}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="",To(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))}};ft.elementDefinitions={"ft-typography":bt};ft.styles=Vd;Ht([g()],ft.prototype,"text",void 0);Ht([g({type:Boolean})],ft.prototype,"manual",void 0);Ht([g({type:Boolean})],ft.prototype,"inline",void 0);Ht([g({type:Number})],ft.prototype,"delay",void 0);Ht([g()],ft.prototype,"position",void 0);Ht([go()],ft.prototype,"slotNodes",void 0);Ht([X(".ft-tooltip--container")],ft.prototype,"container",void 0);Ht([X(".ft-tooltip")],ft.prototype,"tooltip",void 0);Ht([X(".ft-tooltip--content")],ft.prototype,"tooltipContent",void 0);Ht([z()],ft.prototype,"visible",void 0);Ht([Oe({passive:!0})],ft.prototype,"onTouch",null);Ht([Oe({passive:!0})],ft.prototype,"onHover",null);Ht([Oe({passive:!0})],ft.prototype,"onOut",null);Ht([Oe({passive:!0})],ft.prototype,"onClick",null);G("ft-tooltip")(ft);var wr;(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.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",r.HOURGLASS_END="&#xe99b;",r.CIRCLE_QUESTION="&#xe99c;",r.EYE="&#xf06e;",r.SHARE="&#xe80f1;"})(wr||(wr={}));var T;(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;"})(T||(T={}));var KS=new Map([...["abw"].map(r=>[r,T.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,T.AUDIO]),...["avi"].map(r=>[r,T.AVI]),...["chm","xhs"].map(r=>[r,T.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,T.CODE]),...["csv"].map(r=>[r,T.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,T.DITA]),...["epub"].map(r=>[r,T.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,T.EXCEL]),...["flac"].map(r=>[r,T.FLAC]),...["gif"].map(r=>[r,T.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,T.GZIP]),...["html","htm","xhtml"].map(r=>[r,T.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,T.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,T.JPEG]),...["json"].map(r=>[r,T.JSON]),...["m4a","m4p"].map(r=>[r,T.M4A]),...["mov","qt"].map(r=>[r,T.MOV]),...["mp3"].map(r=>[r,T.MP3]),...["mp4","m4v"].map(r=>[r,T.MP4]),...["ogg","oga"].map(r=>[r,T.OGG]),...["pdf","ps"].map(r=>[r,T.PDF]),...["png"].map(r=>[r,T.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,T.POWERPOINT]),...["rar"].map(r=>[r,T.RAR]),...["stp"].map(r=>[r,T.STP]),...["txt","rtf","md","mdown"].map(r=>[r,T.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,T.VIDEO]),...["wav"].map(r=>[r,T.WAV]),...["wma"].map(r=>[r,T.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,T.WORD]),...["xml","xsl","rdf"].map(r=>[r,T.XML]),...["yaml","yml","x-yaml"].map(r=>[r,T.YAML]),...["zip"].map(r=>[r,T.ZIP])]);var ZS={[T.ABW]:"#91ABC6",[T.AUDIO]:"#1795E3",[T.AVI]:"#E63324",[T.CHM]:"#71C3EB",[T.CODE]:"#71C3EB",[T.CSV]:"#1F7345",[T.DITA]:"#71C3EB",[T.EPUB]:"#85B926",[T.EXCEL]:"#1F7345",[T.FLAC]:"#1795E3",[T.GIF]:"#59B031",[T.GZIP]:"#F8AB36",[T.HTML]:"#71C3EB",[T.IMAGE]:"#59B031",[T.JPEG]:"#59B031",[T.JSON]:"#71C3EB",[T.M4A]:"#1795E3",[T.MOV]:"#E63324",[T.MP3]:"#1795E3",[T.MP4]:"#E63324",[T.OGG]:"#1795E3",[T.PDF]:"#E44948",[T.PNG]:"#59B031",[T.POWERPOINT]:"#B54A2B",[T.RAR]:"#F8AB36",[T.STP]:"#3764B1",[T.TEXT]:"#3162AB",[T.UNKNOWN]:"#999999",[T.VIDEO]:"#E63324",[T.WAV]:"#1795E3",[T.WMA]:"#1795E3",[T.WORD]:"#3162AB",[T.XML]:"#71C3EB",[T.YAML]:"#71C3EB",[T.ZIP]:"#F8AB36"};var $t;(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})($t||($t={}));var Di=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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 V{constructor(){super(...arguments),this.resolvedIcon=H}render(){let t=this.variant&&Object.values($t).includes(this.variant)?this.variant:$t.fluid_topics,e=t!==$t.material||!!this.value;return L`
642
+ <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
643
643
  ${In(this.resolvedIcon)}
644
- <slot ?hidden=${t}></slot>
644
+ <slot ?hidden=${e}></slot>
645
645
  </i>
646
- `}get textContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&t!==void 0?t:""}update(e){super.update(e),["value","variant"].some(t=>e.has(t))&&this.resolveIcon()}resolveIcon(){var e,t;let o=this.value||this.textContent;switch(this.variant){case Ie.file_format:this.resolvedIcon=(e=T[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break;case Ie.material:this.resolvedIcon=this.value||z;break;default:this.resolvedIcon=(t=Cr[o.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:o;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Se.elementDefinitions={};Se.styles=Ld;Di([y()],Se.prototype,"variant",void 0);Di([y()],Se.prototype,"value",void 0);Di([H()],Se.prototype,"resolvedIcon",void 0);Di([X("slot")],Se.prototype,"slottedContent",void 0);K("ft-icon")(Se);var we={borderRadiusLeft:i.extend("--ft-switch-option-border-radius-left","",_.borderRadiusL),borderRadiusRight:i.extend("--ft-switch-option-border-radius-right","",_.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")},jd=P`
646
+ `}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.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 i=this.value||this.textContent;switch(this.variant){case $t.file_format:this.resolvedIcon=(t=T[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case $t.material:this.resolvedIcon=this.value||H;break;default:this.resolvedIcon=(e=wr[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};Ot.elementDefinitions={};Ot.styles=kd;Di([g()],Ot.prototype,"variant",void 0);Di([g()],Ot.prototype,"value",void 0);Di([z()],Ot.prototype,"resolvedIcon",void 0);Di([X("slot")],Ot.prototype,"slottedContent",void 0);G("ft-icon")(Ot);var Et={borderRadiusLeft:o.extend("--ft-switch-option-border-radius-left","",N.borderRadiusL),borderRadiusRight:o.extend("--ft-switch-option-border-radius-right","",N.borderRadiusL),borderWidthLeft:o.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:o.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:o.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},jd=P`
647
647
  .ft-switch-option {
648
648
  position: relative;
649
649
  display: inline-block;
@@ -657,20 +657,20 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
657
657
  }
658
658
 
659
659
  .ft-switch-option--content {
660
- --ft-switch-option-internal-line-height: calc(${he.fontSize} + 2px);
661
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${he.iconSize});
660
+ --ft-switch-option-internal-line-height: calc(${mt.fontSize} + 2px);
661
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${mt.iconSize});
662
662
 
663
663
  border-style: solid;
664
- border-color: ${he.borderColor};
665
- border-width: ${we.borderWidthVertical} ${we.borderWidthRight} ${we.borderWidthVertical} ${we.borderWidthLeft};
666
- border-radius: ${we.borderRadiusLeft} ${we.borderRadiusRight} ${we.borderRadiusRight} ${we.borderRadiusLeft};
664
+ border-color: ${mt.borderColor};
665
+ border-width: ${Et.borderWidthVertical} ${Et.borderWidthRight} ${Et.borderWidthVertical} ${Et.borderWidthLeft};
666
+ border-radius: ${Et.borderRadiusLeft} ${Et.borderRadiusRight} ${Et.borderRadiusRight} ${Et.borderRadiusLeft};
667
667
  display: flex;
668
668
  align-items: center;
669
669
  justify-content: center;
670
670
  overflow: hidden;
671
- ${C(Oe.size,he.iconSize)};
671
+ ${x(Ct.size,mt.iconSize)};
672
672
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
673
- background-color: ${he.backgroundColor};
673
+ background-color: ${mt.backgroundColor};
674
674
  -webkit-mask-image: radial-gradient(white, black);
675
675
  }
676
676
 
@@ -679,32 +679,32 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
679
679
  }
680
680
 
681
681
  .ft-switch-option--selected .ft-switch-option--content:before {
682
- background-color: ${he.selectedBackgroundColor};
683
- border-radius: ${we.borderRadiusLeft} ${we.borderRadiusRight} ${we.borderRadiusRight} ${we.borderRadiusLeft};
682
+ background-color: ${mt.selectedBackgroundColor};
683
+ border-radius: ${Et.borderRadiusLeft} ${Et.borderRadiusRight} ${Et.borderRadiusRight} ${Et.borderRadiusLeft};
684
684
  position: absolute;
685
685
  inset: 0;
686
686
  content: "";
687
687
  z-index: 1;
688
- opacity: ${_.opacityPrimaryOnSurfaceSelected};
688
+ opacity: ${N.opacityPrimaryOnSurfaceSelected};
689
689
  }
690
690
 
691
691
  .ft-switch-option--label {
692
- color: ${he.textColor};
692
+ color: ${mt.textColor};
693
693
  overflow: hidden;
694
694
  white-space: nowrap;
695
695
  text-overflow: ellipsis;
696
696
  display: block;
697
697
  margin: 0 8px;
698
- ${C(Le.fontSize,he.fontSize)};
699
- ${C(Le.lineHeight,"var(--ft-switch-option-internal-content-height)")}
698
+ ${x(Dt.fontSize,mt.fontSize)};
699
+ ${x(Dt.lineHeight,"var(--ft-switch-option-internal-content-height)")}
700
700
  }
701
701
 
702
702
  .ft-switch-option--selected .ft-switch-option--label {
703
- color: ${he.selectedTextColor};
703
+ color: ${mt.selectedTextColor};
704
704
  }
705
705
 
706
706
  .ft-switch-option--focused {
707
- outline: 1px solid ${he.outlineColor};
707
+ outline: 1px solid ${mt.outlineColor};
708
708
  }
709
709
 
710
710
  .ft-switch-option--label[hidden] {
@@ -712,7 +712,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
712
712
  }
713
713
 
714
714
  .ft-switch-option--ripple {
715
- ${C(V.color,he.rippleColor)};
715
+ ${x(R.color,mt.rippleColor)};
716
716
  }
717
717
 
718
718
  ft-icon, ft-ripple, ft-typography {
@@ -725,14 +725,14 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
725
725
 
726
726
  ft-icon {
727
727
  flex-shrink: 0;
728
- color: ${he.iconColor};
728
+ color: ${mt.iconColor};
729
729
  }
730
730
 
731
731
  .ft-switch-option--selected ft-icon {
732
- color: ${he.selectedTextColor};
732
+ color: ${mt.selectedTextColor};
733
733
  }
734
- `;var ot=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ps=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},$s=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},be=class extends W{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(e){super.update(e),e.has("selected")&&this.dispatchEvent(new $s(this.selected))}render(){let e={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip($`
735
- <label part="label" for="input" class=${$e(e)}
734
+ `;var oe=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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},$s=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},Ps=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},vt=class extends V{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Ps(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(L`
735
+ <label part="label" for="input" class=${Lt(t)}
736
736
  @click=${this.onChange}>
737
737
  <div class="ft-switch-option--content">
738
738
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
@@ -747,29 +747,29 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
747
747
  </label>
748
748
  <input id="input" type="radio" class="ft-switch-option--input"
749
749
  .checked=${this.selected}>
750
- `)}addTooltip(e){return this.hasTextContent()||this.getLabel().trim().length===0?e:$`
750
+ `)}addTooltip(t){return this.hasTextContent()||this.getLabel().trim().length===0?t:L`
751
751
  <ft-tooltip part="tooltip"
752
752
  text="${this.getLabel()}"
753
753
  position="${this.tooltipPosition}">
754
- ${e}
754
+ ${t}
755
755
  </ft-tooltip>
756
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(e){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new Ps(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?$`
756
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(t){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new $s(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?L`
757
757
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
758
- `:z}get textContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&t!==void 0?t:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};be.elementDefinitions={"ft-ripple":te,"ft-typography":ye,"ft-tooltip":ue,"ft-icon":Se};be.styles=[vr,jd];ot([y()],be.prototype,"value",void 0);ot([y()],be.prototype,"icon",void 0);ot([y()],be.prototype,"iconVariant",void 0);ot([y()],be.prototype,"label",void 0);ot([y()],be.prototype,"tooltipPosition",void 0);ot([y({type:Boolean,reflect:!0})],be.prototype,"selected",void 0);ot([y({type:Boolean})],be.prototype,"trailingIcon",void 0);ot([y({type:Boolean})],be.prototype,"unselectable",void 0);ot([X(".ft-switch-option--content slot")],be.prototype,"slottedContent",void 0);ot([X(".ft-switch-option--input")],be.prototype,"input",void 0);ot([H()],be.prototype,"isFocused",void 0);var Ar=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ks=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Me=class extends W{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(t=>t.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return $`
759
- <div @keydown=${this.onKeyDown} tabindex="-1" class="${$e(e)}" role="radiogroup" aria-label=${this.label}>
758
+ `:H}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&e!==void 0?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};vt.elementDefinitions={"ft-ripple":et,"ft-typography":bt,"ft-tooltip":ft,"ft-icon":Ot};vt.styles=[vr,jd];oe([g()],vt.prototype,"value",void 0);oe([g()],vt.prototype,"icon",void 0);oe([g()],vt.prototype,"iconVariant",void 0);oe([g()],vt.prototype,"label",void 0);oe([g()],vt.prototype,"tooltipPosition",void 0);oe([g({type:Boolean,reflect:!0})],vt.prototype,"selected",void 0);oe([g({type:Boolean})],vt.prototype,"trailingIcon",void 0);oe([g({type:Boolean})],vt.prototype,"unselectable",void 0);oe([X(".ft-switch-option--content slot")],vt.prototype,"slottedContent",void 0);oe([X(".ft-switch-option--input")],vt.prototype,"input",void 0);oe([z()],vt.prototype,"isFocused",void 0);var Ar=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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},Ls=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Mt=class extends V{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!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 L`
759
+ <div @keydown=${this.onKeyDown} tabindex="-1" class="${Lt(t)}" role="radiogroup" aria-label=${this.label}>
760
760
  <slot @slotchange=${this.onSlotchange}
761
761
  @option-change=${this.onOptionChangeByScript}
762
762
  @option-change-by-user=${this.onOptionChangeByUser}
763
763
  ></slot>
764
764
  </div>
765
- `}onKeyDown(e){let t;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(t=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(t=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.code=="Space"&&(t=this.options.indexOf(e.target)),t!=null&&(e.preventDefault(),this.options[this.fixIndex(t)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(t)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(t=>{t instanceof be&&this.registerOption(t)}),this.selectedOption=this.options.find(t=>t.selected)}registerOption(e){var t;(t=e.shadowRoot)===null||t===void 0||t.querySelectorAll("input").forEach(o=>{o.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let t=e.target;this.onOptionChange(t)}onOptionChangeByUser(e){var t;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new ks((t=this.selectedOption)===null||t===void 0?void 0:t.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(t=>t.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(t=>t.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};Me.elementDefinitions={};Me.styles=P`
765
+ `}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),t.code=="Space"&&(e=this.options.indexOf(t.target)),e!=null&&(t.preventDefault(),this.options[this.fixIndex(e)].focus(),this.displayFocusWhenUsingKeyboard=!0,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 vt&&this.registerOption(e)}),this.selectedOption=this.options.find(e=>e.selected)}registerOption(t){var e;(e=t.shadowRoot)===null||e===void 0||e.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),t.setAttribute("tabindex","0"),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.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(t.target),this.dispatchEvent(new Ls((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,this.displayFocusWhenUsingKeyboard&&(t.isFocused=t===this.selectedOption)})}};Mt.elementDefinitions={};Mt.styles=P`
766
766
  :host {
767
767
  display: inline-block;
768
768
  }
769
769
 
770
770
  .ft-switch {
771
- border-radius: ${he.borderRadius};
772
- outline-color: ${he.outlineColor};
771
+ border-radius: ${mt.borderRadius};
772
+ outline-color: ${mt.outlineColor};
773
773
  }
774
774
 
775
775
  .ft-switch slot {
@@ -778,25 +778,25 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
778
778
  }
779
779
 
780
780
  .ft-switch slot::slotted(ft-switch-option) {
781
- ${C(we.borderRadiusLeft,"0")};
782
- ${C(we.borderRadiusRight,"0")};
783
- ${C(we.borderWidthLeft,"0")};
781
+ ${x(Et.borderRadiusLeft,"0")};
782
+ ${x(Et.borderRadiusRight,"0")};
783
+ ${x(Et.borderWidthLeft,"0")};
784
784
  }
785
785
 
786
786
  .ft-switch slot::slotted(ft-switch-option:first-child) {
787
- ${C(we.borderRadiusLeft,he.borderRadius)};
788
- ${C(we.borderWidthLeft,"1px")};
787
+ ${x(Et.borderRadiusLeft,mt.borderRadius)};
788
+ ${x(Et.borderWidthLeft,"1px")};
789
789
  }
790
790
 
791
791
  .ft-switch slot::slotted(ft-switch-option:last-child) {
792
- ${C(we.borderRadiusRight,he.borderRadius)};
792
+ ${x(Et.borderRadiusRight,mt.borderRadius)};
793
793
  }
794
794
 
795
795
  .ft-switch--dense slot::slotted(ft-switch-option) {
796
796
  --ft-switch-internal-vertical-padding: 2px;
797
797
  --ft-switch-internal-horizontal-padding: 4px;
798
798
  }
799
- `;Ar([y({type:Boolean})],Me.prototype,"dense",void 0);Ar([y({type:Boolean})],Me.prototype,"unselectable",void 0);Ar([y()],Me.prototype,"label",void 0);Ar([X(".ft-switch slot")],Me.prototype,"slottedContent",void 0);Ar([H()],Me.prototype,"selectedOption",void 0);Ar([H()],Me.prototype,"displayFocusWhenUsingKeyboard",void 0);Ar([X(".ft-switch")],Me.prototype,"ftSwitchDiv",void 0);K("ft-switch")(Me);K("ft-switch-option")(be);var Kd={colorOutline:i.external(_.colorOutline,"Design system"),colorOnSurfaceMedium:i.external(_.colorOnSurfaceMedium,"Design system")},Gd=P`
799
+ `;Ar([g({type:Boolean})],Mt.prototype,"dense",void 0);Ar([g({type:Boolean})],Mt.prototype,"unselectable",void 0);Ar([g()],Mt.prototype,"label",void 0);Ar([X(".ft-switch slot")],Mt.prototype,"slottedContent",void 0);Ar([z()],Mt.prototype,"selectedOption",void 0);Ar([z()],Mt.prototype,"displayFocusWhenUsingKeyboard",void 0);Ar([X(".ft-switch")],Mt.prototype,"ftSwitchDiv",void 0);G("ft-switch")(Mt);G("ft-switch-option")(vt);var Gd={colorOutline:o.external(N.colorOutline,"Design system"),colorOnSurfaceMedium:o.external(N.colorOnSurfaceMedium,"Design system")},Kd=P`
800
800
  :host {
801
801
  display: block;
802
802
  }
@@ -807,17 +807,17 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
807
807
 
808
808
  ft-icon {
809
809
  transform: rotate(-45deg);
810
- color: ${Kd.colorOutline};
810
+ color: ${Gd.colorOutline};
811
811
  }
812
812
 
813
813
  .ft-resizer--dragging ft-icon,
814
814
  .ft-resizer:hover ft-icon {
815
- color: ${Kd.colorOnSurfaceMedium};
815
+ color: ${Gd.colorOnSurfaceMedium};
816
816
  }
817
- `;var Xt=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ls=class extends CustomEvent{constructor(e,t){super("resize",{detail:{width:e,height:t}})}},Pe=class extends W{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Ie.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=e=>this.doDrag(e.clientX,e.clientY),this.doDragFromTouch=e=>this.doDrag(e.touches[0].clientX,e.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return $`
817
+ `;var Xe=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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},ks=class extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}},Pt=class extends V{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=$t.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return L`
818
818
  <style>
819
819
  .ft-resizer {
820
- cursor: ${vt(this.cursor)}
820
+ cursor: ${ve(this.cursor)}
821
821
  }
822
822
  </style>
823
823
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
@@ -825,25 +825,25 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
825
825
  @touchstart=${this.initDragFromTouch}>
826
826
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
827
827
  </div>
828
- `}initDragFromMouse(e){this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initDrag(e,t){this.dragging=!0,this.startX=e,this.startY=t,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(e,t){let o=this.fixedWidth+e-this.startX,n=this.fixedHeight+t-this.startY;this.dispatchEvent(new Ls(o,n))}};Pe.elementDefinitions={"ft-icon":Se};Pe.styles=[br,Gd];Xt([y({type:Number})],Pe.prototype,"initialWidth",void 0);Xt([y({type:Number})],Pe.prototype,"initialHeight",void 0);Xt([y()],Pe.prototype,"icon",void 0);Xt([y()],Pe.prototype,"iconVariant",void 0);Xt([y()],Pe.prototype,"cursor",void 0);Xt([H()],Pe.prototype,"dragging",void 0);Xt([Ot({passive:!0})],Pe.prototype,"initDragFromMouse",null);Xt([Ot({passive:!0})],Pe.prototype,"initDragFromTouch",null);K("ft-resizer")(Pe);var F={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","",_.colorOutline),textColor:i.extend("--ft-input-label-text-color","",_.colorOnSurfaceMedium),disabledTextColor:i.extend("--ft-input-label-disabled-text-color","",_.colorOnSurfaceDisabled),colorSurface:i.external(_.colorSurface,"Design system"),borderRadiusS:i.external(_.borderRadiusS,"Design system"),colorError:i.external(_.colorError,"Design system")},Zd=P`
828
+ `}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 i=this.fixedWidth+t-this.startX,n=this.fixedHeight+e-this.startY;this.dispatchEvent(new ks(i,n))}};Pt.elementDefinitions={"ft-icon":Ot};Pt.styles=[br,Kd];Xe([g({type:Number})],Pt.prototype,"initialWidth",void 0);Xe([g({type:Number})],Pt.prototype,"initialHeight",void 0);Xe([g()],Pt.prototype,"icon",void 0);Xe([g()],Pt.prototype,"iconVariant",void 0);Xe([g()],Pt.prototype,"cursor",void 0);Xe([z()],Pt.prototype,"dragging",void 0);Xe([Oe({passive:!0})],Pt.prototype,"initDragFromMouse",null);Xe([Oe({passive:!0})],Pt.prototype,"initDragFromTouch",null);G("ft-resizer")(Pt);var B={fontSize:o.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.extend("--ft-input-label-border-color","",N.colorOutline),textColor:o.extend("--ft-input-label-text-color","",N.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",N.colorOnSurfaceDisabled),colorSurface:o.external(N.colorSurface,"Design system"),borderRadiusS:o.external(N.borderRadiusS,"Design system"),colorError:o.external(N.colorError,"Design system")},Zd=P`
829
829
  .ft-input-label {
830
830
  position: absolute;
831
831
  inset: 0;
832
832
  display: flex;
833
- background-color: ${F.colorSurface};
834
- border-radius: ${F.borderRadiusS} ${F.borderRadiusS} 0 0;
833
+ background-color: ${B.colorSurface};
834
+ border-radius: ${B.borderRadiusS} ${B.borderRadiusS} 0 0;
835
835
  }
836
836
 
837
837
  .ft-input-label--outlined {
838
- border-radius: ${F.borderRadiusS};
838
+ border-radius: ${B.borderRadiusS};
839
839
  }
840
840
 
841
841
  .ft-input-label {
842
- border-color: ${F.borderColor};
842
+ border-color: ${B.borderColor};
843
843
  }
844
844
 
845
845
  .ft-input-label.ft-input-label--in-error {
846
- border-color: ${F.colorError}
846
+ border-color: ${B.colorError}
847
847
  }
848
848
 
849
849
  .ft-input-label:before,
@@ -856,7 +856,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
856
856
  }
857
857
 
858
858
  .ft-input-label:before {
859
- width: calc(${F.horizontalSpacing} - 4px);
859
+ width: calc(${B.horizontalSpacing} - 4px);
860
860
  flex-shrink: 0;
861
861
  }
862
862
 
@@ -872,20 +872,20 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
872
872
  border-bottom-width: 1px;
873
873
  border-bottom-style: solid;
874
874
  border-color: inherit;
875
- color: ${F.textColor};
875
+ color: ${B.textColor};
876
876
  transition: font-size 250ms, line-height 250ms, color 250ms;
877
- max-width: calc(${F.labelMaxWidth} - 2 * (${F.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
877
+ max-width: calc(${B.labelMaxWidth} - 2 * (${B.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
878
878
  text-overflow: ellipsis;
879
- ${C(rt.fontSize,F.fontSize)};
880
- ${C(rt.lineHeight,F.fontSize)};
879
+ ${x(re.fontSize,B.fontSize)};
880
+ ${x(re.lineHeight,B.fontSize)};
881
881
  }
882
882
 
883
883
  .ft-input-label--in-error .ft-input-label--text {
884
- color: ${F.colorError}
884
+ color: ${B.colorError}
885
885
  }
886
886
 
887
887
  .ft-input-label--disabled .ft-input-label--text {
888
- color: ${F.disabledTextColor};
888
+ color: ${B.disabledTextColor};
889
889
  }
890
890
 
891
891
  .ft-input-label--hidden-text {
@@ -902,19 +902,19 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
902
902
  overflow: hidden;
903
903
  white-space: nowrap;
904
904
  text-overflow: ellipsis;
905
- padding: ${F.verticalSpacing} 4px;
906
- margin: calc(${F.verticalSpacing} * -1) 0;
905
+ padding: ${B.verticalSpacing} 4px;
906
+ margin: calc(${B.verticalSpacing} * -1) 0;
907
907
  max-width: 100%;
908
908
  box-sizing: border-box;
909
909
  }
910
910
 
911
911
  .ft-input-label--raised .ft-input-label--text {
912
- ${C(rt.fontSize,F.raisedFontSize)};
913
- ${C(rt.lineHeight,F.raisedFontSize)};
912
+ ${x(re.fontSize,B.raisedFontSize)};
913
+ ${x(re.lineHeight,B.raisedFontSize)};
914
914
  }
915
915
 
916
916
  .ft-input-label--raised .ft-input-label--floating-text {
917
- top: ${F.verticalSpacing};
917
+ top: ${B.verticalSpacing};
918
918
  }
919
919
 
920
920
  .ft-input-label--outlined .ft-input-label--text,
@@ -927,36 +927,36 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
927
927
  .ft-input-label--outlined:before {
928
928
  border-left-width: 1px;
929
929
  border-left-style: solid;
930
- border-radius: ${F.borderRadiusS} 0 0 ${F.borderRadiusS};
930
+ border-radius: ${B.borderRadiusS} 0 0 ${B.borderRadiusS};
931
931
  }
932
932
 
933
933
  .ft-input-label--outlined:after {
934
934
  border-right-width: 1px;
935
935
  border-right-style: solid;
936
- border-radius: 0 ${F.borderRadiusS} ${F.borderRadiusS} 0;
936
+ border-radius: 0 ${B.borderRadiusS} ${B.borderRadiusS} 0;
937
937
  }
938
938
 
939
939
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
940
940
  padding: 2px 4px;
941
- z-index: ${F.raisedZIndex};
942
- background-color: ${F.colorSurface};
943
- border-radius: ${F.borderRadiusS};
941
+ z-index: ${B.raisedZIndex};
942
+ background-color: ${B.colorSurface};
943
+ border-radius: ${B.borderRadiusS};
944
944
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
945
945
  }
946
946
 
947
947
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
948
948
  border-top: none;
949
949
  }
950
- `;var zo=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ue=class extends W{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let e={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return $`
951
- <div class="${$e(e)}">
952
- ${this.text?$`
950
+ `;var Wo=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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},Ft=class extends V{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return L`
951
+ <div class="${Lt(t)}">
952
+ ${this.text?L`
953
953
  <div class="ft-input-label--text ft-typography--caption">
954
954
  <span class="ft-input-label--floating-text">${this.text}</span>
955
955
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
956
956
  </div>
957
957
  `:null}
958
958
  </div>
959
- `}};Ue.elementDefinitions={};Ue.styles=[Li,Zd];zo([y({type:String})],Ue.prototype,"text",void 0);zo([y({type:Boolean})],Ue.prototype,"raised",void 0);zo([y({type:Boolean})],Ue.prototype,"outlined",void 0);zo([y({type:Boolean})],Ue.prototype,"disabled",void 0);zo([y({type:Boolean})],Ue.prototype,"error",void 0);K("ft-input-label")(Ue);var oe={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","",_.colorOnSurfaceMedium),colorPrimary:i.external(_.colorPrimary,"Design system"),colorOnSurface:i.external(_.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(_.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(_.borderRadiusS,"Design system"),colorError:i.external(_.colorError,"Design system")},qd=P`
959
+ `}};Ft.elementDefinitions={};Ft.styles=[ki,Zd];Wo([g({type:String})],Ft.prototype,"text",void 0);Wo([g({type:Boolean})],Ft.prototype,"raised",void 0);Wo([g({type:Boolean})],Ft.prototype,"outlined",void 0);Wo([g({type:Boolean})],Ft.prototype,"disabled",void 0);Wo([g({type:Boolean})],Ft.prototype,"error",void 0);G("ft-input-label")(Ft);var ot={fontSize:o.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-area-helper-color","",N.colorOnSurfaceMedium),colorPrimary:o.external(N.colorPrimary,"Design system"),colorOnSurface:o.external(N.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(N.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(N.borderRadiusS,"Design system"),colorError:o.external(N.colorError,"Design system")},qd=P`
960
960
  *:focus {
961
961
  outline: none;
962
962
  }
@@ -968,10 +968,10 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
968
968
  }
969
969
 
970
970
  ft-input-label {
971
- ${C(F.fontSize,oe.fontSize)};
972
- ${C(F.raisedFontSize,oe.labelSize)};
973
- ${C(F.verticalSpacing,oe.verticalSpacing)};
974
- ${C(F.horizontalSpacing,oe.horizontalSpacing)};
971
+ ${x(B.fontSize,ot.fontSize)};
972
+ ${x(B.raisedFontSize,ot.labelSize)};
973
+ ${x(B.verticalSpacing,ot.verticalSpacing)};
974
+ ${x(B.horizontalSpacing,ot.horizontalSpacing)};
975
975
  }
976
976
 
977
977
  .ft-text-area--main-panel {
@@ -989,8 +989,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
989
989
  }
990
990
 
991
991
  .ft-text-area--input-panel ft-ripple {
992
- ${C(V.opacityContentOnSurfaceHover,"0.08")};
993
- ${C(V.opacityContentOnSurfacePressed,"0.04")};
992
+ ${x(R.opacityContentOnSurfaceHover,"0.08")};
993
+ ${x(R.opacityContentOnSurfacePressed,"0.04")};
994
994
  }
995
995
 
996
996
  .ft-text-area--input {
@@ -1002,12 +1002,12 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1002
1002
  align-self: stretch;
1003
1003
  resize: none;
1004
1004
 
1005
- ${C(Xe.fontSize,oe.fontSize)};
1006
- ${C(Xe.lineHeight,oe.fontSize)};
1007
- color: ${oe.colorOnSurface};
1005
+ ${x(Xt.fontSize,ot.fontSize)};
1006
+ ${x(Xt.lineHeight,ot.fontSize)};
1007
+ color: ${ot.colorOnSurface};
1008
1008
 
1009
- padding: 0 ${oe.horizontalSpacing};
1010
- margin: calc(${oe.verticalSpacing} + ${oe.labelSize} / 2) 0 ${oe.verticalSpacing} 0;
1009
+ padding: 0 ${ot.horizontalSpacing};
1010
+ margin: calc(${ot.verticalSpacing} + ${ot.labelSize} / 2) 0 ${ot.verticalSpacing} 0;
1011
1011
 
1012
1012
  border: none;
1013
1013
  background: none;
@@ -1016,7 +1016,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1016
1016
  }
1017
1017
 
1018
1018
  .ft-text-area--disabled .ft-text-area--input {
1019
- color: ${oe.colorOnSurfaceDisabled};
1019
+ color: ${ot.colorOnSurfaceDisabled};
1020
1020
  }
1021
1021
 
1022
1022
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -1024,49 +1024,49 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1024
1024
  }
1025
1025
 
1026
1026
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1027
- ${C(F.borderColor,oe.colorPrimary)};
1028
- ${C(F.textColor,oe.colorPrimary)};
1027
+ ${x(B.borderColor,ot.colorPrimary)};
1028
+ ${x(B.textColor,ot.colorPrimary)};
1029
1029
  }
1030
1030
 
1031
1031
  .ft-text-area--filled .ft-text-area--input-panel {
1032
- border-radius: ${oe.borderRadiusS} ${oe.borderRadiusS} 0 0;
1032
+ border-radius: ${ot.borderRadiusS} ${ot.borderRadiusS} 0 0;
1033
1033
  }
1034
1034
 
1035
1035
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
1036
1036
  align-self: stretch;
1037
- margin-bottom: ${oe.verticalSpacing};
1038
- margin-top: calc(${oe.labelSize} + 2 * ${oe.verticalSpacing});
1037
+ margin-bottom: ${ot.verticalSpacing};
1038
+ margin-top: calc(${ot.labelSize} + 2 * ${ot.verticalSpacing});
1039
1039
  }
1040
1040
 
1041
1041
  .ft-text-area--outlined .ft-text-area--input-panel {
1042
- border-radius: ${oe.borderRadiusS};
1042
+ border-radius: ${ot.borderRadiusS};
1043
1043
  }
1044
1044
 
1045
1045
  .ft-text-area--helper-text {
1046
- padding: 0 12px 0 ${oe.horizontalSpacing};
1047
- color: ${oe.helperColor};
1046
+ padding: 0 12px 0 ${ot.horizontalSpacing};
1047
+ color: ${ot.helperColor};
1048
1048
  }
1049
1049
 
1050
1050
  .ft-text-area--in-error .ft-text-area--input,
1051
1051
  .ft-text-area--in-error .ft-text-area--helper-text {
1052
- color: ${oe.colorError};
1052
+ color: ${ot.colorError};
1053
1053
  }
1054
1054
 
1055
1055
  ft-resizer {
1056
1056
  position: absolute;
1057
1057
  bottom: 0;
1058
1058
  }
1059
- `;var Pt=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Re=class extends Er(W,"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 e={"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 $`
1059
+ `;var $e=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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},_t=class extends Er(V,"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 L`
1060
1060
  <style>
1061
1061
  .ft-text-area--main-panel {
1062
- height: calc(4 * ${oe.verticalSpacing} + ${oe.labelSize} + ${oe.fontSize} + ${this.height}px);
1062
+ height: calc(4 * ${ot.verticalSpacing} + ${ot.labelSize} + ${ot.fontSize} + ${this.height}px);
1063
1063
  }
1064
1064
 
1065
1065
  ft-resizer {
1066
1066
  right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1067
1067
  }
1068
1068
  </style>
1069
- <div class="${$e(e)}">
1069
+ <div class="${Lt(t)}">
1070
1070
  <div class="ft-text-area--main-panel">
1071
1071
  <ft-input-label text="${this.label}"
1072
1072
  ?disabled=${this.disabled}
@@ -1076,7 +1076,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1076
1076
  ></ft-input-label>
1077
1077
  <div class="ft-text-area--input-panel"
1078
1078
  aria-label="${this.label}">
1079
- ${this.outlined?null:$`
1079
+ ${this.outlined?null:L`
1080
1080
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1081
1081
  `}
1082
1082
  <textarea class="ft-typography--body1 ft-text-area--input"
@@ -1093,22 +1093,22 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1093
1093
  initialHeight="${this.height}"
1094
1094
  cursor="ns-resize"></ft-resizer>
1095
1095
  </div>
1096
- ${this.helper?$`
1096
+ ${this.helper?L`
1097
1097
  <ft-typography class="ft-text-area--helper-text" variant="caption">
1098
1098
  ${this.helper}
1099
1099
  </ft-typography>`:void 0}
1100
1100
  </div>
1101
- `}setValue(e,t=!1){this.value=e,this.setFormValue(e),t&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(this.height=e.detail.height)}};Re.elementDefinitions={"ft-input-label":Ue,"ft-resizer":Pe,"ft-ripple":te,"ft-typography":ye};Re.styles=[Jr,qd];Pt([y({type:String})],Re.prototype,"label",void 0);Pt([y({reflect:!0})],Re.prototype,"value",void 0);Pt([y({type:String})],Re.prototype,"helper",void 0);Pt([y({type:Boolean})],Re.prototype,"outlined",void 0);Pt([y({type:Boolean})],Re.prototype,"disabled",void 0);Pt([y({type:Boolean})],Re.prototype,"error",void 0);Pt([y({type:Number,reflect:!0})],Re.prototype,"height",void 0);Pt([X("textarea")],Re.prototype,"textarea",void 0);Pt([H()],Re.prototype,"focused",void 0);K("ft-text-area")(Re);var Rr=class extends W{render(){return $`
1101
+ `}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)}};_t.elementDefinitions={"ft-input-label":Ft,"ft-resizer":Pt,"ft-ripple":et,"ft-typography":bt};_t.styles=[Jr,qd];$e([g({type:String})],_t.prototype,"label",void 0);$e([g({reflect:!0})],_t.prototype,"value",void 0);$e([g({type:String})],_t.prototype,"helper",void 0);$e([g({type:Boolean})],_t.prototype,"outlined",void 0);$e([g({type:Boolean})],_t.prototype,"disabled",void 0);$e([g({type:Boolean})],_t.prototype,"error",void 0);$e([g({type:Number,reflect:!0})],_t.prototype,"height",void 0);$e([X("textarea")],_t.prototype,"textarea",void 0);$e([z()],_t.prototype,"focused",void 0);G("ft-text-area")(_t);var Rr=class extends V{render(){return L`
1102
1102
  <div class="ft-loader">
1103
1103
  <div></div>
1104
1104
  <div></div>
1105
1105
  <div></div>
1106
1106
  <div></div>
1107
1107
  </div>
1108
- `}};Rr.styles=kd;K("ft-loader")(Rr);var We=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ve=class extends Er(W,"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",e=>{var t;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((t=this.form)===null||t===void 0||t.requestSubmit())})}render(){var e;return this.addTooltipIfNeeded($`
1108
+ `}};Rr.styles=Ld;G("ft-loader")(Rr);var zt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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},xt=class extends Er(V,"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(L`
1109
1109
  <button part="button"
1110
- class="${$e(this.buttonClasses)}"
1111
- aria-label="${(e=this.ariaLabel)!==null&&e!==void 0?e:this.getLabel()}"
1110
+ class="${Lt(this.buttonClasses)}"
1111
+ aria-label="${(t=this.ariaLabel)!==null&&t!==void 0?t:this.getLabel()}"
1112
1112
  ?disabled=${this.isDisabled()}>
1113
1113
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1114
1114
  <ft-typography part="label"
@@ -1120,18 +1120,18 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1120
1120
  </ft-typography>
1121
1121
  ${this.resolveIcon()}
1122
1122
  </button>
1123
- `)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?$`
1123
+ `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?L`
1124
1124
  <ft-tooltip part="tooltip"
1125
1125
  text="${this.getLabel()}"
1126
1126
  position="${this.tooltipPosition}">
1127
- ${e}
1127
+ ${t}
1128
1128
  </ft-tooltip>
1129
- `:e}resolveIcon(){return this.loading?$`
1130
- <ft-loader part="loader icon"></ft-loader> `:this.icon?$`
1129
+ `:t}resolveIcon(){return this.loading?L`
1130
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?L`
1131
1131
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
1132
- `:$`
1132
+ `:L`
1133
1133
  <slot part="icon" name="icon"></slot>
1134
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(t=>this.unslotText(t)).join(""):e?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ve.elementDefinitions={"ft-ripple":te,"ft-tooltip":ue,"ft-typography":ye,"ft-icon":Se,"ft-loader":Rr};We([y({type:String,reflect:!0})],ve.prototype,"role",void 0);We([y()],ve.prototype,"type",void 0);We([y({type:Boolean})],ve.prototype,"disabled",void 0);We([y()],ve.prototype,"label",void 0);We([y()],ve.prototype,"icon",void 0);We([y()],ve.prototype,"iconVariant",void 0);We([y({type:Boolean})],ve.prototype,"trailingIcon",void 0);We([y({type:Boolean})],ve.prototype,"loading",void 0);We([y({attribute:"aria-label"})],ve.prototype,"ariaLabel",void 0);We([y()],ve.prototype,"tooltipPosition",void 0);We([y({type:Boolean})],ve.prototype,"hideTooltip",void 0);We([y({type:Boolean})],ve.prototype,"forceTooltip",void 0);We([X(".ft-button")],ve.prototype,"button",void 0);We([X(".ft-button--label slot")],ve.prototype,"slottedContent",void 0);var Mi=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},it=class extends ve{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"}};it.styles=[vr,Ud];Mi([y({type:Boolean})],it.prototype,"primary",void 0);Mi([y({type:Boolean})],it.prototype,"outlined",void 0);Mi([y({type:Boolean})],it.prototype,"dense",void 0);Mi([y({type:Boolean})],it.prototype,"round",void 0);var Yd=[P`
1134
+ `}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}};xt.elementDefinitions={"ft-ripple":et,"ft-tooltip":ft,"ft-typography":bt,"ft-icon":Ot,"ft-loader":Rr};zt([g({type:String,reflect:!0})],xt.prototype,"role",void 0);zt([g()],xt.prototype,"type",void 0);zt([g({type:Boolean})],xt.prototype,"disabled",void 0);zt([g()],xt.prototype,"label",void 0);zt([g()],xt.prototype,"icon",void 0);zt([g()],xt.prototype,"iconVariant",void 0);zt([g({type:Boolean})],xt.prototype,"trailingIcon",void 0);zt([g({type:Boolean})],xt.prototype,"loading",void 0);zt([g({attribute:"aria-label"})],xt.prototype,"ariaLabel",void 0);zt([g()],xt.prototype,"tooltipPosition",void 0);zt([g({type:Boolean})],xt.prototype,"hideTooltip",void 0);zt([g({type:Boolean})],xt.prototype,"forceTooltip",void 0);zt([X(".ft-button")],xt.prototype,"button",void 0);zt([X(".ft-button--label slot")],xt.prototype,"slottedContent",void 0);var Mi=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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},ie=class extends xt{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"}};ie.styles=[vr,Fd];Mi([g({type:Boolean})],ie.prototype,"primary",void 0);Mi([g({type:Boolean})],ie.prototype,"outlined",void 0);Mi([g({type:Boolean})],ie.prototype,"dense",void 0);Mi([g({type:Boolean})],ie.prototype,"round",void 0);var Yd=[P`
1135
1135
  :host {
1136
1136
  display: inline-block;
1137
1137
  max-width: 100%;
@@ -1181,7 +1181,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1181
1181
  }
1182
1182
 
1183
1183
  .ft-button:focus-visible {
1184
- outline-color: ${R.focusFocusRingColor};
1184
+ outline-color: ${b.focusFocusRingColor};
1185
1185
  outline-style: solid;
1186
1186
  }
1187
1187
 
@@ -1212,178 +1212,399 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1212
1212
  border-radius: 50%;
1213
1213
  }
1214
1214
 
1215
- /** Primary styles **/
1215
+ /** Brand Primary styles **/
1216
+
1217
+ .ftds--family-brand.ft-button--primary {
1218
+ ${x(ut.color,b.primaryBrandIconColor)};
1219
+
1220
+ ${x(R.color,b.primaryBrandStateLayerColor)};
1221
+ ${x(R.opacityContentOnSurfaceHover,b.primaryBrandHoverStateLayerOpacity)};
1222
+ ${x(R.opacityContentOnSurfaceFocused,b.primaryBrandFocusStateLayerOpacity)};
1223
+ ${x(R.opacityContentOnSurfaceSelected,b.primaryBrandActiveStateLayerOpacity)};
1224
+ ${x(R.opacityContentOnSurfacePressed,b.primaryBrandActiveStateLayerOpacity)};
1225
+
1226
+ background-color: ${b.primaryBrandBackgroundColor};
1227
+ color: ${b.primaryBrandColor};
1228
+ border-style: none;
1229
+ }
1230
+
1231
+ .ftds--family-brand.ft-button--primary[disabled] {
1232
+ opacity: ${b.primaryBrandDisabledComponentOpacity};
1233
+ }
1234
+
1235
+ .ftds--family-brand.ft-button--primary ft-icon {
1236
+ color: ${b.primaryBrandIconColor};
1237
+ }
1238
+
1239
+ /** Brand Secondary styles **/
1240
+
1241
+ .ftds--family-brand.ft-button--secondary {
1242
+ ${x(ut.color,b.secondaryBrandIconColor)};
1243
+
1244
+ ${x(R.color,b.secondaryBrandStateLayerColor)};
1245
+ ${x(R.opacityContentOnSurfaceHover,b.secondaryBrandHoverStateLayerOpacity)};
1246
+ ${x(R.opacityContentOnSurfaceFocused,b.secondaryBrandFocusStateLayerOpacity)};
1247
+ ${x(R.opacityContentOnSurfaceSelected,b.secondaryBrandActiveStateLayerOpacity)};
1248
+ ${x(R.opacityContentOnSurfacePressed,b.secondaryBrandActiveStateLayerOpacity)};
1249
+
1250
+ background-color: ${b.secondaryBrandBackgroundColor};
1251
+ color: ${b.secondaryBrandColor};
1252
+ border-color: ${b.secondaryBrandBorderColor};
1253
+ border-style: solid;
1254
+ }
1255
+
1256
+ .ftds--family-brand.ft-button--secondary[disabled] {
1257
+ opacity: ${b.secondaryBrandDisabledComponentOpacity};
1258
+ }
1259
+
1260
+ .ftds--family-brand.ft-button--secondary ft-icon {
1261
+ color: ${b.secondaryBrandIconColor};
1262
+ }
1263
+
1264
+ /** Brand Tertiary styles **/
1265
+
1266
+ .ftds--family-brand.ft-button--tertiary {
1267
+ ${x(ut.color,b.tertiaryBrandIconColor)};
1268
+
1269
+ ${x(R.color,b.tertiaryBrandStateLayerColor)};
1270
+ ${x(R.opacityContentOnSurfaceHover,b.tertiaryBrandHoverStateLayerOpacity)};
1271
+ ${x(R.opacityContentOnSurfaceFocused,b.tertiaryBrandFocusStateLayerOpacity)};
1272
+ ${x(R.opacityContentOnSurfaceSelected,b.tertiaryBrandActiveStateLayerOpacity)};
1273
+ ${x(R.opacityContentOnSurfacePressed,b.tertiaryBrandActiveStateLayerOpacity)};
1274
+
1275
+ background-color: ${b.tertiaryBrandBackgroundColor};
1276
+ color: ${b.tertiaryBrandColor};
1277
+ border-style: none;
1278
+ }
1279
+
1280
+ .ftds--family-brand.ft-button--tertiary[disabled] {
1281
+ opacity: ${b.tertiaryBrandDisabledComponentOpacity};
1282
+ }
1283
+
1284
+ .ftds--family-brand.ft-button--tertiary ft-icon {
1285
+ color: ${b.tertiaryBrandIconColor};
1286
+ }
1287
+
1288
+ /** Neutral Secondary styles **/
1289
+
1290
+ .ftds--family-neutral.ft-button--secondary {
1291
+ ${x(ut.color,b.secondaryNeutralIconColor)};
1292
+
1293
+ ${x(R.backgroundColor,b.secondaryNeutralStateLayerColor)};
1294
+ ${x(R.opacityContentOnSurfaceHover,b.secondaryNeutralHoverStateLayerOpacity)};
1295
+ ${x(R.opacityContentOnSurfaceFocused,b.secondaryNeutralFocusStateLayerOpacity)};
1296
+ ${x(R.opacityContentOnSurfaceSelected,b.secondaryNeutralActiveStateLayerOpacity)};
1297
+ ${x(R.opacityContentOnSurfacePressed,b.secondaryNeutralActiveStateLayerOpacity)};
1298
+
1299
+ background-color: ${b.secondaryNeutralBackgroundColor};
1300
+ color: ${b.secondaryNeutralColor};
1301
+ border-color: ${b.secondaryNeutralBorderColor};
1302
+ border-style: solid;
1303
+ }
1304
+
1305
+ .ftds--family-neutral.ft-button--secondary[disabled] {
1306
+ opacity: ${b.secondaryNeutralDisabledComponentOpacity};
1307
+ }
1308
+
1309
+ .ftds--family-neutral.ft-button--secondary ft-icon {
1310
+ color: ${b.secondaryNeutralIconColor};
1311
+ }
1312
+
1313
+ /** Neutral Tertiary styles **/
1314
+
1315
+ .ftds--family-neutral.ft-button--tertiary {
1316
+ ${x(ut.color,b.tertiaryNeutralIconColor)};
1317
+
1318
+ ${x(R.backgroundColor,b.tertiaryNeutralStateLayerColor)};
1319
+ ${x(R.opacityContentOnSurfaceHover,b.tertiaryNeutralHoverStateLayerOpacity)};
1320
+ ${x(R.opacityContentOnSurfaceFocused,b.tertiaryNeutralFocusStateLayerOpacity)};
1321
+ ${x(R.opacityContentOnSurfaceSelected,b.tertiaryNeutralActiveStateLayerOpacity)};
1322
+ ${x(R.opacityContentOnSurfacePressed,b.tertiaryNeutralActiveStateLayerOpacity)};
1323
+
1324
+ background-color: ${b.tertiaryNeutralBackgroundColor};
1325
+ color: ${b.tertiaryNeutralColor};
1326
+ border-style: none;
1327
+ }
1328
+
1329
+ .ftds--family-neutral.ft-button--tertiary[disabled] {
1330
+ opacity: ${b.tertiaryNeutralDisabledComponentOpacity};
1331
+ }
1332
+
1333
+ .ftds--family-neutral.ft-button--tertiary ft-icon {
1334
+ color: ${b.tertiaryNeutralIconColor};
1335
+ }
1336
+
1337
+ /** Info Secondary styles **/
1338
+
1339
+ .ftds--family-info.ft-button--secondary {
1340
+ ${x(ut.color,b.secondaryInfoIconColor)};
1341
+
1342
+ ${x(R.backgroundColor,b.secondaryInfoStateLayerColor)};
1343
+ ${x(R.opacityContentOnSurfaceHover,b.secondaryInfoHoverStateLayerOpacity)};
1344
+ ${x(R.opacityContentOnSurfaceFocused,b.secondaryInfoFocusStateLayerOpacity)};
1345
+ ${x(R.opacityContentOnSurfaceSelected,b.secondaryInfoActiveStateLayerOpacity)};
1346
+ ${x(R.opacityContentOnSurfacePressed,b.secondaryInfoActiveStateLayerOpacity)};
1347
+
1348
+ background-color: ${b.secondaryInfoBackgroundColor};
1349
+ color: ${b.secondaryInfoColor};
1350
+ border-color: ${b.secondaryInfoBorderColor};
1351
+ border-style: solid;
1352
+ }
1353
+
1354
+ .ftds--family-info.ft-button--secondary[disabled] {
1355
+ opacity: ${b.secondaryInfoDisabledComponentOpacity};
1356
+ }
1357
+
1358
+ .ftds--family-info.ft-button--secondary ft-icon {
1359
+ color: ${b.secondaryInfoIconColor};
1360
+ }
1361
+
1362
+ /** Info Tertiary styles **/
1363
+
1364
+ .ftds--family-info.ft-button--tertiary {
1365
+ ${x(ut.color,b.tertiaryInfoIconColor)};
1366
+
1367
+ ${x(R.backgroundColor,b.tertiaryInfoStateLayerColor)};
1368
+ ${x(R.opacityContentOnSurfaceHover,b.tertiaryInfoHoverStateLayerOpacity)};
1369
+ ${x(R.opacityContentOnSurfaceFocused,b.tertiaryInfoFocusStateLayerOpacity)};
1370
+ ${x(R.opacityContentOnSurfaceSelected,b.tertiaryInfoActiveStateLayerOpacity)};
1371
+ ${x(R.opacityContentOnSurfacePressed,b.tertiaryInfoActiveStateLayerOpacity)};
1372
+
1373
+ background-color: ${b.tertiaryInfoBackgroundColor};
1374
+ color: ${b.tertiaryInfoColor};
1375
+ border-style: none;
1376
+ }
1377
+
1378
+ .ftds--family-info.ft-button--tertiary[disabled] {
1379
+ opacity: ${b.tertiaryInfoDisabledComponentOpacity};
1380
+ }
1381
+
1382
+ .ftds--family-info.ft-button--tertiary ft-icon {
1383
+ color: ${b.tertiaryInfoIconColor};
1384
+ }
1385
+
1386
+ /** Success Secondary styles **/
1387
+
1388
+ .ftds--family-success.ft-button--secondary {
1389
+ ${x(ut.color,b.secondarySuccessIconColor)};
1390
+
1391
+ ${x(R.backgroundColor,b.secondarySuccessStateLayerColor)};
1392
+ ${x(R.opacityContentOnSurfaceHover,b.secondarySuccessHoverStateLayerOpacity)};
1393
+ ${x(R.opacityContentOnSurfaceFocused,b.secondarySuccessFocusStateLayerOpacity)};
1394
+ ${x(R.opacityContentOnSurfaceSelected,b.secondarySuccessActiveStateLayerOpacity)};
1395
+ ${x(R.opacityContentOnSurfacePressed,b.secondarySuccessActiveStateLayerOpacity)};
1216
1396
 
1217
- .ft-button--primary {
1218
- ${C(De.color,R.primaryIconColor)};
1397
+ background-color: ${b.secondarySuccessBackgroundColor};
1398
+ color: ${b.secondarySuccessColor};
1399
+ border-color: ${b.secondarySuccessBorderColor};
1400
+ border-style: solid;
1401
+ }
1402
+
1403
+ .ftds--family-success.ft-button--secondary[disabled] {
1404
+ opacity: ${b.secondarySuccessDisabledComponentOpacity};
1405
+ }
1406
+
1407
+ .ftds--family-success.ft-button--secondary ft-icon {
1408
+ color: ${b.secondarySuccessIconColor};
1409
+ }
1410
+
1411
+ /** Success Tertiary styles **/
1219
1412
 
1220
- ${C(V.color,R.primaryStateLayerColor)};
1221
- ${C(V.opacityContentOnSurfaceHover,R.primaryHoverStateLayerOpacity)};
1222
- ${C(V.opacityContentOnSurfaceFocused,R.primaryFocusStateLayerOpacity)};
1223
- ${C(V.opacityContentOnSurfaceSelected,R.primaryActiveStateLayerOpacity)};
1224
- ${C(V.opacityContentOnSurfacePressed,R.primaryActiveStateLayerOpacity)};
1413
+ .ftds--family-success.ft-button--tertiary {
1414
+ ${x(ut.color,b.tertiarySuccessIconColor)};
1225
1415
 
1226
- background-color: ${R.primaryBackgroundColor};
1227
- color: ${R.primaryColor};
1416
+ ${x(R.backgroundColor,b.tertiarySuccessStateLayerColor)};
1417
+ ${x(R.opacityContentOnSurfaceHover,b.tertiarySuccessHoverStateLayerOpacity)};
1418
+ ${x(R.opacityContentOnSurfaceFocused,b.tertiarySuccessFocusStateLayerOpacity)};
1419
+ ${x(R.opacityContentOnSurfaceSelected,b.tertiarySuccessActiveStateLayerOpacity)};
1420
+ ${x(R.opacityContentOnSurfacePressed,b.tertiarySuccessActiveStateLayerOpacity)};
1421
+
1422
+ background-color: ${b.tertiarySuccessBackgroundColor};
1423
+ color: ${b.tertiarySuccessColor};
1228
1424
  border-style: none;
1229
1425
  }
1230
1426
 
1231
- .ft-button--primary[disabled] {
1232
- opacity: ${R.primaryDisabledComponentOpacity};
1427
+ .ftds--family-success.ft-button--tertiary[disabled] {
1428
+ opacity: ${b.tertiarySuccessDisabledComponentOpacity};
1233
1429
  }
1234
1430
 
1235
- .ft-button--primary ft-icon {
1236
- color: ${R.primaryIconColor};
1431
+ .ftds--family-success.ft-button--tertiary ft-icon {
1432
+ color: ${b.tertiarySuccessIconColor};
1237
1433
  }
1238
1434
 
1239
- /** Secondary styles **/
1435
+ /** Warning Secondary styles **/
1240
1436
 
1241
- .ft-button--secondary {
1242
- ${C(De.color,R.secondaryIconColor)};
1437
+ .ftds--family-warning.ft-button--secondary {
1438
+ ${x(ut.color,b.secondaryWarningIconColor)};
1243
1439
 
1244
- ${C(V.color,R.secondaryStateLayerColor)};
1245
- ${C(V.opacityContentOnSurfaceHover,R.secondaryHoverStateLayerOpacity)};
1246
- ${C(V.opacityContentOnSurfaceFocused,R.secondaryFocusStateLayerOpacity)};
1247
- ${C(V.opacityContentOnSurfaceSelected,R.secondaryActiveStateLayerOpacity)};
1248
- ${C(V.opacityContentOnSurfacePressed,R.secondaryActiveStateLayerOpacity)};
1440
+ ${x(R.backgroundColor,b.secondaryWarningStateLayerColor)};
1441
+ ${x(R.opacityContentOnSurfaceHover,b.secondaryWarningHoverStateLayerOpacity)};
1442
+ ${x(R.opacityContentOnSurfaceFocused,b.secondaryWarningFocusStateLayerOpacity)};
1443
+ ${x(R.opacityContentOnSurfaceSelected,b.secondaryWarningActiveStateLayerOpacity)};
1444
+ ${x(R.opacityContentOnSurfacePressed,b.secondaryWarningActiveStateLayerOpacity)};
1249
1445
 
1250
- background-color: ${R.secondaryBackgroundColor};
1251
- color: ${R.secondaryColor};
1252
- border-color: ${R.secondaryBorderColor};
1446
+ background-color: ${b.secondaryWarningBackgroundColor};
1447
+ color: ${b.secondaryWarningColor};
1448
+ border-color: ${b.secondaryWarningBorderColor};
1253
1449
  border-style: solid;
1254
1450
  }
1255
1451
 
1256
- .ft-button--secondary[disabled] {
1257
- opacity: ${R.secondaryDisabledComponentOpacity};
1452
+ .ftds--family-warning.ft-button--secondary[disabled] {
1453
+ opacity: ${b.secondaryWarningDisabledComponentOpacity};
1258
1454
  }
1259
1455
 
1260
- .ft-button--secondary ft-icon {
1261
- color: ${R.secondaryIconColor};
1456
+ .ftds--family-warning.ft-button--secondary ft-icon {
1457
+ color: ${b.secondaryWarningIconColor};
1262
1458
  }
1263
1459
 
1264
- /** Tertiary styles **/
1460
+ /** Warning Tertiary styles **/
1265
1461
 
1266
- .ft-button--tertiary {
1267
- ${C(De.color,R.tertiaryIconColor)};
1462
+ .ftds--family-warning.ft-button--tertiary {
1463
+ ${x(ut.color,b.tertiaryWarningIconColor)};
1268
1464
 
1269
- ${C(V.color,R.tertiaryStateLayerColor)};
1270
- ${C(V.opacityContentOnSurfaceHover,R.tertiaryHoverStateLayerOpacity)};
1271
- ${C(V.opacityContentOnSurfaceFocused,R.tertiaryFocusStateLayerOpacity)};
1272
- ${C(V.opacityContentOnSurfaceSelected,R.tertiaryActiveStateLayerOpacity)};
1273
- ${C(V.opacityContentOnSurfacePressed,R.tertiaryActiveStateLayerOpacity)};
1465
+ ${x(R.backgroundColor,b.tertiaryWarningStateLayerColor)};
1466
+ ${x(R.opacityContentOnSurfaceHover,b.tertiaryWarningHoverStateLayerOpacity)};
1467
+ ${x(R.opacityContentOnSurfaceFocused,b.tertiaryWarningFocusStateLayerOpacity)};
1468
+ ${x(R.opacityContentOnSurfaceSelected,b.tertiaryWarningActiveStateLayerOpacity)};
1469
+ ${x(R.opacityContentOnSurfacePressed,b.tertiaryWarningActiveStateLayerOpacity)};
1274
1470
 
1275
- background-color: ${R.tertiaryBackgroundColor};
1276
- color: ${R.tertiaryColor};
1471
+ background-color: ${b.tertiaryWarningBackgroundColor};
1472
+ color: ${b.tertiaryWarningColor};
1277
1473
  border-style: none;
1278
1474
  }
1279
1475
 
1280
- .ft-button--tertiary[disabled] {
1281
- opacity: ${R.tertiaryDisabledComponentOpacity};
1476
+ .ftds--family-warning.ft-button--tertiary[disabled] {
1477
+ opacity: ${b.tertiaryWarningDisabledComponentOpacity};
1478
+ }
1479
+
1480
+ .ftds--family-warning.ft-button--tertiary ft-icon {
1481
+ color: ${b.tertiaryWarningIconColor};
1482
+ }
1483
+
1484
+ /** Error Secondary styles **/
1485
+
1486
+ .ftds--family-error.ft-button--secondary {
1487
+ ${x(ut.color,b.secondaryErrorIconColor)};
1488
+
1489
+ ${x(R.backgroundColor,b.secondaryErrorStateLayerColor)};
1490
+ ${x(R.opacityContentOnSurfaceHover,b.secondaryErrorHoverStateLayerOpacity)};
1491
+ ${x(R.opacityContentOnSurfaceFocused,b.secondaryErrorFocusStateLayerOpacity)};
1492
+ ${x(R.opacityContentOnSurfaceSelected,b.secondaryErrorActiveStateLayerOpacity)};
1493
+ ${x(R.opacityContentOnSurfacePressed,b.secondaryErrorActiveStateLayerOpacity)};
1494
+
1495
+ background-color: ${b.secondaryErrorBackgroundColor};
1496
+ color: ${b.secondaryErrorColor};
1497
+ border-color: ${b.secondaryErrorBorderColor};
1498
+ border-style: solid;
1499
+ }
1500
+
1501
+ .ftds--family-error.ft-button--secondary[disabled] {
1502
+ opacity: ${b.secondaryErrorDisabledComponentOpacity};
1282
1503
  }
1283
1504
 
1284
- .ft-button--tertiary ft-icon {
1285
- color: ${R.tertiaryIconColor};
1505
+ .ftds--family-error.ft-button--secondary ft-icon {
1506
+ color: ${b.secondaryErrorIconColor};
1286
1507
  }
1287
1508
 
1288
- /** Neutral styles **/
1509
+ /** Error Tertiary styles **/
1289
1510
 
1290
- .ftds--family-neutral {
1291
- ${C(De.color,R.neutralIconColor)};
1511
+ .ftds--family-error.ft-button--tertiary {
1512
+ ${x(ut.color,b.tertiaryErrorIconColor)};
1292
1513
 
1293
- ${C(V.backgroundColor,R.neutralStateLayerColor)};
1294
- ${C(V.opacityContentOnSurfaceHover,R.neutralHoverStateLayerOpacity)};
1295
- ${C(V.opacityContentOnSurfaceFocused,R.neutralFocusStateLayerOpacity)};
1296
- ${C(V.opacityContentOnSurfaceSelected,R.neutralActiveStateLayerOpacity)};
1297
- ${C(V.opacityContentOnSurfacePressed,R.neutralActiveStateLayerOpacity)};
1514
+ ${x(R.backgroundColor,b.tertiaryErrorStateLayerColor)};
1515
+ ${x(R.opacityContentOnSurfaceHover,b.tertiaryErrorHoverStateLayerOpacity)};
1516
+ ${x(R.opacityContentOnSurfaceFocused,b.tertiaryErrorFocusStateLayerOpacity)};
1517
+ ${x(R.opacityContentOnSurfaceSelected,b.tertiaryErrorActiveStateLayerOpacity)};
1518
+ ${x(R.opacityContentOnSurfacePressed,b.tertiaryErrorActiveStateLayerOpacity)};
1298
1519
 
1299
- background-color: ${R.neutralBackgroundColor};
1300
- color: ${R.neutralColor};
1520
+ background-color: ${b.tertiaryErrorBackgroundColor};
1521
+ color: ${b.tertiaryErrorColor};
1301
1522
  border-style: none;
1302
1523
  }
1303
1524
 
1304
- .ftds--family-neutral[disabled] {
1305
- opacity: ${R.neutralDisabledComponentOpacity};
1525
+ .ftds--family-error.ft-button--tertiary[disabled] {
1526
+ opacity: ${b.tertiaryErrorDisabledComponentOpacity};
1306
1527
  }
1307
1528
 
1308
- .ftds--family-neutral ft-icon {
1309
- color: ${R.neutralIconColor};
1529
+ .ftds--family-error.ft-button--tertiary ft-icon {
1530
+ color: ${b.tertiaryErrorIconColor};
1310
1531
  }
1311
1532
 
1312
1533
  /** Large styles **/
1313
1534
 
1314
1535
  .ftds--size-large {
1315
- ${C(Oe.size,R.largeIconSize)};
1316
- ${C(De.size,R.largeIconSize)};
1536
+ ${x(Ct.size,b.largeIconSize)};
1537
+ ${x(ut.size,b.largeIconSize)};
1317
1538
 
1318
- height: ${R.largeHeight};
1319
- padding: 0 ${R.largeHorizontalPadding};
1320
- gap: ${R.largeGap};
1321
- border-radius: ${R.largeBorderRadius};
1322
- border-width: ${R.largeBorderWidth};
1539
+ height: ${b.largeHeight};
1540
+ padding: 0 ${b.largeHorizontalPadding};
1541
+ gap: ${b.largeGap};
1542
+ border-radius: ${b.largeBorderRadius};
1543
+ border-width: ${b.largeBorderWidth};
1323
1544
  }
1324
1545
 
1325
1546
  .ftds--size-large:focus-visible {
1326
- outline-width: ${R.largeFocusOutlineWidth};
1327
- outline-offset: ${R.largeFocusOutlineOffset};
1547
+ outline-width: ${b.largeFocusOutlineWidth};
1548
+ outline-offset: ${b.largeFocusOutlineOffset};
1328
1549
  }
1329
1550
 
1330
1551
  .ftds--size-large.ft-button--icon-only {
1331
- width: ${R.largeIconOnlyWidth};
1552
+ width: ${b.largeIconOnlyWidth};
1332
1553
  }
1333
1554
 
1334
1555
  /** Small styles **/
1335
1556
 
1336
1557
  .ftds--size-medium {
1337
- ${C(Oe.size,R.mediumIconSize)};
1338
- ${C(De.size,R.mediumIconSize)};
1558
+ ${x(Ct.size,b.mediumIconSize)};
1559
+ ${x(ut.size,b.mediumIconSize)};
1339
1560
 
1340
- height: ${R.mediumHeight};
1341
- padding: 0 ${R.mediumHorizontalPadding};
1342
- gap: ${R.mediumGap};
1343
- border-radius: ${R.mediumBorderRadius};
1344
- border-width: ${R.mediumBorderWidth};
1561
+ height: ${b.mediumHeight};
1562
+ padding: 0 ${b.mediumHorizontalPadding};
1563
+ gap: ${b.mediumGap};
1564
+ border-radius: ${b.mediumBorderRadius};
1565
+ border-width: ${b.mediumBorderWidth};
1345
1566
  }
1346
1567
 
1347
1568
  .ftds--size-medium:focus-visible {
1348
- outline-width: ${R.mediumFocusOutlineWidth};
1349
- outline-offset: ${R.mediumFocusOutlineOffset};
1569
+ outline-width: ${b.mediumFocusOutlineWidth};
1570
+ outline-offset: ${b.mediumFocusOutlineOffset};
1350
1571
  }
1351
1572
 
1352
1573
  .ftds--size-medium.ft-button--icon-only {
1353
- width: ${R.mediumIconOnlyWidth};
1574
+ width: ${b.mediumIconOnlyWidth};
1354
1575
  }
1355
1576
 
1356
1577
 
1357
1578
  /** Small styles **/
1358
1579
 
1359
1580
  .ftds--size-small {
1360
- ${C(Oe.size,R.smallIconSize)};
1361
- ${C(De.size,R.smallIconSize)};
1581
+ ${x(Ct.size,b.smallIconSize)};
1582
+ ${x(ut.size,b.smallIconSize)};
1362
1583
 
1363
- height: ${R.smallHeight};
1364
- padding: 0 ${R.smallHorizontalPadding};
1365
- gap: ${R.smallGap};
1366
- border-radius: ${R.smallBorderRadius};
1367
- border-width: ${R.smallBorderWidth};
1584
+ height: ${b.smallHeight};
1585
+ padding: 0 ${b.smallHorizontalPadding};
1586
+ gap: ${b.smallGap};
1587
+ border-radius: ${b.smallBorderRadius};
1588
+ border-width: ${b.smallBorderWidth};
1368
1589
  }
1369
1590
 
1370
1591
  .ftds--size-small:focus-visible {
1371
- outline-width: ${R.smallFocusOutlineWidth};
1372
- outline-offset: ${R.smallFocusOutlineOffset};
1592
+ outline-width: ${b.smallFocusOutlineWidth};
1593
+ outline-offset: ${b.smallFocusOutlineOffset};
1373
1594
  }
1374
1595
 
1375
1596
  .ftds--size-small.ft-button--icon-only {
1376
- width: ${R.smallIconOnlyWidth};
1597
+ width: ${b.smallIconOnlyWidth};
1377
1598
  }
1378
- `,br];var Ui=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},$t=class extends Oi(ve){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=hr.brand,this.iconVariant=Ie.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 Et.large:return Yt.body2medium;case Et.medium:return Yt.caption1medium;case Et.small:return Yt.caption2medium}}};$t.styles=[vr,Yd];Ui([y({type:Boolean})],$t.prototype,"primary",void 0);Ui([y({type:Boolean})],$t.prototype,"secondary",void 0);Ui([y({type:Boolean})],$t.prototype,"tertiary",void 0);Ui([y({type:Boolean})],$t.prototype,"round",void 0);K("ft-button")(it);K("ftds-button")($t);var Xd=P`
1599
+ `,br];var Fi=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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},Pe=class extends Oi(xt){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=hr.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 Ee.large:return Ye.body2medium;case Ee.medium:return Ye.caption1medium;case Ee.small:return Ye.caption2medium}}};Pe.styles=[vr,Yd];Fi([g({type:Boolean})],Pe.prototype,"primary",void 0);Fi([g({type:Boolean})],Pe.prototype,"secondary",void 0);Fi([g({type:Boolean})],Pe.prototype,"tertiary",void 0);Fi([g({type:Boolean})],Pe.prototype,"round",void 0);G("ft-button")(ie);G("ftds-button")(Pe);var Xd=P`
1379
1600
  `;var Jd=P`
1380
- `;var Yf="ft-app-info",Ds=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},Xf={session:(r,e)=>{Qe(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>D.eventBus.dispatchEvent(new Ds(e.payload)),0))}},D=Tt.get({name:Yf,reducers:Xf,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 _r=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:o}=D.getState(),n=e??o;if(t&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,n,!0)}static await(e){return new Promise(t=>{let o=r.get(e);if(o)t(o);else{let n=D.subscribe(()=>{o=r.get(e),o&&(n(),t(o))})}})}};var yt=class{constructor(e=!0,t){var o;this.overrideApi=t;let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new ct,this.cache=e?n.commonCache:new ct}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:_r.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):_r.await()}clearCache(){this.cache.clearAll()}};var Qd,Jf=Symbol("clearAfterUnitTest"),Fi=class extends yt{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Qd]=()=>{this.defaultMessages={},this.cache=new ct,this.listeners={}},this.currentUiLocale=D.getState().uiLocale,D.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=D.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var o;if(e=e.toLowerCase(),Object.keys(t).length>0){let n={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...t};Qe(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var t,o;return this.fetchContext(e),(o=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,t){let o=e.toLowerCase();return this.resolveContext(o)[t]}resolveMessage(e,t,...o){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new $o((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(t,...o)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(t){console.error(t)}}subscribe(e,t){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(t),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(t)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(t=>hi(0).then(()=>t()).catch(()=>null)))}};Qd=Jf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Fi{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Fi{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});var Tr=window.FluidTopicsI18nService,ep=window.FluidTopicsCustomI18nService;var Fe=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},xe=class extends W{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=()=>_r.get(),this.messageContexts=[],this.cache=new ct,this.cleanSessionDebouncer=new ae}render(){return $`
1601
+ `;var Xf="ft-app-info",Ds=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},Jf={session:(r,t)=>{Qt(r.session,t.payload)||(r.session=t.payload,setTimeout(()=>M.eventBus.dispatchEvent(new Ds(t.payload)),0))}},M=Ne.get({name:Xf,reducers:Jf,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 _r=class r{static get(t){let{baseUrl:e,apiIntegrationIdentifier:i}=M.getState(),n=t??i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static await(t){return new Promise(e=>{let i=r.get(t);if(i)e(i);else{let n=M.subscribe(()=>{i=r.get(t),i&&(n(),e(i))})}})}};var ge=class{constructor(t=!0,e){var i;this.overrideApi=e;let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new ce,this.cache=t?n.commonCache:new ce}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:_r.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):_r.await()}clearCache(){this.cache.clearAll()}};var Qd,Qf=Symbol("clearAfterUnitTest"),Ui=class extends ge{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Qd]=()=>{this.defaultMessages={},this.cache=new ce,this.listeners={}},this.currentUiLocale=M.getState().uiLocale,M.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=M.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...e};Qt(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveContext(t){var e,i;return this.fetchContext(t),(i=(e=this.cache.getNow(t))===null||e===void 0?void 0:e.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,e){let i=t.toLowerCase();return this.resolveContext(i)[e]}resolveMessage(t,e,...i){var n;let a=t.toLowerCase(),s=this.resolveContext(a);return new Po((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(e,...i)}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 i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i: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=>hi(0).then(()=>e()).catch(()=>null)))}};Qd=Qf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ui{constructor(){super(async(r,t)=>(await this.awaitApi).getFluidTopicsMessageContext(r,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ui{constructor(){super(async(r,t)=>(await this.awaitApi).getCustomMessageContext(r,t))}});var Nr=window.FluidTopicsI18nService,tp=window.FluidTopicsCustomI18nService;var Ut=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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},St=class extends V{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=()=>_r.get(),this.messageContexts=[],this.cache=new ce,this.cleanSessionDebouncer=new at}render(){return L`
1381
1602
  <slot></slot>
1382
- `}update(e){super.update(e),e.has("baseUrl")&&(D.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&D.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&D.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&D.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&D.actions.noCustom(this.noCustom),e.has("editorMode")&&D.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&D.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&D.actions.session(this.session),e.has("availableUiLocales")&&D.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(t=>Tr.addContext(t)),e.has("openExternalDocumentInNewTab")&&D.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&D.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&D.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};xe.elementDefinitions={};xe.styles=Jd;Fe([y()],xe.prototype,"baseUrl",void 0);Fe([y()],xe.prototype,"apiIntegrationIdentifier",void 0);Fe([y()],xe.prototype,"uiLocale",void 0);Fe([dt(null)],xe.prototype,"availableUiLocales",void 0);Fe([dt(null)],xe.prototype,"metadataConfiguration",void 0);Fe([y({type:Boolean})],xe.prototype,"editorMode",void 0);Fe([y({type:Boolean})],xe.prototype,"noCustom",void 0);Fe([y({type:Boolean})],xe.prototype,"openExternalDocumentInNewTab",void 0);Fe([y({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],xe.prototype,"noCustomComponent",void 0);Fe([y({type:Boolean})],xe.prototype,"withManualResources",void 0);Fe([y({type:Boolean})],xe.prototype,"navigatorOnline",void 0);Fe([y({type:Boolean})],xe.prototype,"forcedOffline",void 0);Fe([y({type:Object})],xe.prototype,"apiProvider",void 0);Fe([dt([])],xe.prototype,"messageContexts",void 0);Fe([dt(void 0)],xe.prototype,"session",void 0);var Bi=class extends yt{async listMySearches(){let e=D.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var zi=class extends yt{async listMyBookmarks(){let e=D.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Qf="ft-user-assets",Hi=Tt.get({name:Qf,initialState:{savedSearches:void 0,bookmarks:void 0}}),Ms=class{constructor(){this.currentSession=D.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new zi,this.savedSearchesService=new Bi,D.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=D.getState();Qe((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Hi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Hi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Hi.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Hi.actions.bookmarks(t)}}},tp=new Ms;var Us=class{addCommand(e,t=!1){D.commands.add(e,t)}consumeCommand(e){return D.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Us;var Fs=class{highlightHtml(e,t,o){Fa(e,t,o)}};window.FluidTopicsHighlightHtmlService=new Fs;var Bs=class{isDate(e){var t,o,n,a;return(a=(n=((o=(t=D.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,t){var o,n,a;return Kr.format(e,(o=t?.locale)!==null&&o!==void 0?o:D.getState().uiLocale,(n=t?.longFormat)!==null&&n!==void 0?n:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Bs;K("ft-app-context")(xe);var eh=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},zs=Symbol("i18nAttributes"),Nr=Symbol("i18nProperties"),Ho=Symbol("i18nUnsubs");function Jt(r){var e;class t extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?ep:Tr}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[zs])===null||a===void 0||a.forEach((l,c)=>{var p;let h=this.getI18nAttributeValue(c);((p=h?.context)===null||p===void 0?void 0:p.toLowerCase())===n.toLowerCase()&&this.updateI18nAttributeMessage(c,h,l)}),(s=this[Nr])===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[zs])===null||a===void 0||a.forEach((l,c)=>{let p=this.getI18nAttributeValue(c);p?.context&&p.key&&(n.has(c)||l.argsProvider!=null)&&(n.has(c)&&this.addI18nContext(p.context),this.updateI18nAttributeMessage(c,p,l))}),(s=this[Nr])===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[Nr])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[zs])===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[Ho].has(n)||this[Ho].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[Ho].forEach(n=>n()),this[Ho].clear()}}return e=Ho,eh([y({type:Boolean})],t.prototype,"useCustomMessageContexts",void 0),t}var rp=class extends Jt(W){},Wi=class extends Jt(Ze){};var Wo=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},nt=class extends Wi{constructor(){super(),this.editorMode=!1,this.addStore(D)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":z:$`
1603
+ `}update(t){super.update(t),t.has("baseUrl")&&(M.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&M.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&M.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&M.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&M.actions.noCustom(this.noCustom),t.has("editorMode")&&M.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&M.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&M.actions.session(this.session),t.has("availableUiLocales")&&M.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(e=>Nr.addContext(e)),t.has("openExternalDocumentInNewTab")&&M.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&M.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&M.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())}};St.elementDefinitions={};St.styles=Jd;Ut([g()],St.prototype,"baseUrl",void 0);Ut([g()],St.prototype,"apiIntegrationIdentifier",void 0);Ut([g()],St.prototype,"uiLocale",void 0);Ut([de(null)],St.prototype,"availableUiLocales",void 0);Ut([de(null)],St.prototype,"metadataConfiguration",void 0);Ut([g({type:Boolean})],St.prototype,"editorMode",void 0);Ut([g({type:Boolean})],St.prototype,"noCustom",void 0);Ut([g({type:Boolean})],St.prototype,"openExternalDocumentInNewTab",void 0);Ut([g({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],St.prototype,"noCustomComponent",void 0);Ut([g({type:Boolean})],St.prototype,"withManualResources",void 0);Ut([g({type:Boolean})],St.prototype,"navigatorOnline",void 0);Ut([g({type:Boolean})],St.prototype,"forcedOffline",void 0);Ut([g({type:Object})],St.prototype,"apiProvider",void 0);Ut([de([])],St.prototype,"messageContexts",void 0);Ut([de(void 0)],St.prototype,"session",void 0);var Bi=class extends ge{async listMySearches(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Wi=class extends ge{async listMyBookmarks(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var th="ft-user-assets",Hi=Ne.get({name:th,initialState:{savedSearches:void 0,bookmarks:void 0}}),Ms=class{constructor(){this.currentSession=M.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Wi,this.savedSearchesService=new Bi,M.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:e}=M.getState();Qt((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(),Hi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Hi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Hi.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;Hi.actions.bookmarks(e)}}},ep=new Ms;var Fs=class{addCommand(t,e=!1){M.commands.add(t,e)}consumeCommand(t){return M.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Fs;var Us=class{highlightHtml(t,e,i){Ua(t,e,i)}};window.FluidTopicsHighlightHtmlService=new Us;var Bs=class{isDate(t){var e,i,n,a;return(a=(n=((i=(e=M.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===t))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(t,e){var i,n,a;return Gr.format(t,(i=e?.locale)!==null&&i!==void 0?i:M.getState().uiLocale,(n=e?.longFormat)!==null&&n!==void 0?n:!1,(a=e?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Bs;G("ft-app-context")(St);var eh=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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},Ws=Symbol("i18nAttributes"),Tr=Symbol("i18nProperties"),Ho=Symbol("i18nUnsubs");function Je(r){var t;class e extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map}get i18nService(){return this.useCustomMessageContexts?tp:Nr}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[Ws])===null||a===void 0||a.forEach((l,c)=>{var p;let h=this.getI18nAttributeValue(c);((p=h?.context)===null||p===void 0?void 0:p.toLowerCase())===n.toLowerCase()&&this.updateI18nAttributeMessage(c,h,l)}),(s=this[Tr])===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[Ws])===null||a===void 0||a.forEach((l,c)=>{let p=this.getI18nAttributeValue(c);p?.context&&p.key&&(n.has(c)||l.argsProvider!=null)&&(n.has(c)&&this.addI18nContext(p.context),this.updateI18nAttributeMessage(c,p,l))}),(s=this[Tr])===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[Tr])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[Ws])===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[Ho].has(n)||this[Ho].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[Ho].forEach(n=>n()),this[Ho].clear()}}return t=Ho,eh([g({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}var rp=class extends Je(V){},zi=class extends Je(Zt){};var zo=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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},ne=class extends zi{constructor(){super(),this.editorMode=!1,this.addStore(M)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":H:L`
1383
1604
  <span class="ft-i18n">
1384
1605
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1385
1606
  </span>
1386
- `}update(e){var t;super.update(e),["context","key","defaultMessage"].some(o=>e.has(o))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(t=this.defaultMessage)!==null&&t!==void 0?t:""})}};nt.elementDefinitions={};nt.styles=Xd;Wo([ce()],nt.prototype,"editorMode",void 0);Wo([y()],nt.prototype,"context",void 0);Wo([y()],nt.prototype,"key",void 0);Wo([dt([])],nt.prototype,"args",void 0);Wo([y()],nt.prototype,"defaultMessage",void 0);var Qt=class r{static build(e){return new r(e)}static fromGwt(e){return new r(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(t,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:(t,o)=>(...n)=>Tr.resolveMessage(this.name,o,...n)}),this.rawMessages=new Proxy({},{get:(t,o)=>Tr.resolveRawMessage(this.name,o)})}};var Vi=(r,e)=>(t,o)=>{var n,a;t.constructor.createProperty(o,e??{attribute:!1,type:String});let s={...r,key:(n=r.key)!==null&&n!==void 0?n:o};t[Nr]=(a=t[Nr])!==null&&a!==void 0?a:new Map,t[Nr].set(o,s)};K("ft-i18n")(nt);var Q=Qt.build("integratedFeedbackComponent"),op={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 Hs=r=>r??fe;var G={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","",_.colorOnSurfaceMedium),colorPrimary:i.external(_.colorPrimary,"Design system"),colorOnSurface:i.external(_.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(_.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(_.borderRadiusS,"Design system"),colorError:i.external(_.colorError,"Design system"),prefixColor:i.extend("--ft-text-field-prefix-color","",_.colorOnSurfaceMedium),iconColor:i.extend("--ft-text-field-icon-color","",_.colorOnSurfaceMedium),floatingZIndex:i.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:i.external(_.colorSurface,"Design system"),colorOutline:i.external(_.colorOutline,"Design system"),elevation02:i.external(_.elevation02,"Design system"),suggestSize:i.create("--ft-text-field-suggest-size","","SIZE","300px")},ip=P`
1607
+ `}update(t){var e;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(e=this.defaultMessage)!==null&&e!==void 0?e:""})}};ne.elementDefinitions={};ne.styles=Xd;zo([ct()],ne.prototype,"editorMode",void 0);zo([g()],ne.prototype,"context",void 0);zo([g()],ne.prototype,"key",void 0);zo([de([])],ne.prototype,"args",void 0);zo([g()],ne.prototype,"defaultMessage",void 0);var Qe=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,i)=>{let n=i;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,i)=>(...n)=>Nr.resolveMessage(this.name,i,...n)}),this.rawMessages=new Proxy({},{get:(e,i)=>Nr.resolveRawMessage(this.name,i)})}};var Vi=(r,t)=>(e,i)=>{var n,a;e.constructor.createProperty(i,t??{attribute:!1,type:String});let s={...r,key:(n=r.key)!==null&&n!==void 0?n:i};e[Tr]=(a=e[Tr])!==null&&a!==void 0?a:new Map,e[Tr].set(i,s)};G("ft-i18n")(ne);var Q=Qe.build("integratedFeedbackComponent"),op={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 Hs=r=>r??ht;var K={fontSize:o.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-field-helper-color","",N.colorOnSurfaceMedium),colorPrimary:o.external(N.colorPrimary,"Design system"),colorOnSurface:o.external(N.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(N.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(N.borderRadiusS,"Design system"),colorError:o.external(N.colorError,"Design system"),prefixColor:o.extend("--ft-text-field-prefix-color","",N.colorOnSurfaceMedium),iconColor:o.extend("--ft-text-field-icon-color","",N.colorOnSurfaceMedium),floatingZIndex:o.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:o.external(N.colorSurface,"Design system"),colorOutline:o.external(N.colorOutline,"Design system"),elevation02:o.external(N.elevation02,"Design system"),suggestSize:o.create("--ft-text-field-suggest-size","","SIZE","300px")},ip=P`
1387
1608
  *:focus {
1388
1609
  outline: none;
1389
1610
  }
@@ -1396,16 +1617,16 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1396
1617
  }
1397
1618
 
1398
1619
  ft-input-label {
1399
- ${C(F.fontSize,G.fontSize)};
1400
- ${C(F.raisedFontSize,G.labelSize)};
1401
- ${C(F.verticalSpacing,G.verticalSpacing)};
1402
- ${C(F.horizontalSpacing,G.horizontalSpacing)};
1620
+ ${x(B.fontSize,K.fontSize)};
1621
+ ${x(B.raisedFontSize,K.labelSize)};
1622
+ ${x(B.verticalSpacing,K.verticalSpacing)};
1623
+ ${x(B.horizontalSpacing,K.horizontalSpacing)};
1403
1624
  }
1404
1625
 
1405
1626
  .ft-text-field--main-panel {
1406
1627
  position: relative;
1407
1628
  display: flex;
1408
- height: calc(4 * ${G.verticalSpacing} + ${G.labelSize} + ${G.fontSize});
1629
+ height: calc(4 * ${K.verticalSpacing} + ${K.labelSize} + ${K.fontSize});
1409
1630
  }
1410
1631
 
1411
1632
  .ft-text-field--input-panel {
@@ -1414,24 +1635,24 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1414
1635
  display: flex;
1415
1636
  align-items: center;
1416
1637
  overflow: hidden;
1417
- padding: 0 ${G.horizontalSpacing};
1638
+ padding: 0 ${K.horizontalSpacing};
1418
1639
 
1419
- ${C(Xe.fontSize,G.fontSize)};
1420
- ${C(Xe.lineHeight,G.fontSize)};
1640
+ ${x(Xt.fontSize,K.fontSize)};
1641
+ ${x(Xt.lineHeight,K.fontSize)};
1421
1642
  }
1422
1643
 
1423
1644
  .ft-text-field--input-panel ft-ripple {
1424
- ${C(V.opacityContentOnSurfaceHover,"0.08")};
1425
- ${C(V.opacityContentOnSurfacePressed,"0.04")};
1645
+ ${x(R.opacityContentOnSurfaceHover,"0.08")};
1646
+ ${x(R.opacityContentOnSurfacePressed,"0.04")};
1426
1647
  }
1427
1648
 
1428
1649
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
1429
1650
  align-items: flex-end;
1430
- padding: 0 ${G.horizontalSpacing} ${G.verticalSpacing} ${G.horizontalSpacing};
1651
+ padding: 0 ${K.horizontalSpacing} ${K.verticalSpacing} ${K.horizontalSpacing};
1431
1652
  }
1432
1653
 
1433
1654
  .ft-text-field--prefix {
1434
- color: ${G.prefixColor};
1655
+ color: ${K.prefixColor};
1435
1656
  margin-right: 2px;
1436
1657
  flex-shrink: 1;
1437
1658
  overflow: hidden;
@@ -1450,15 +1671,15 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1450
1671
  flex-shrink: 1;
1451
1672
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
1452
1673
 
1453
- color: ${G.colorOnSurface};
1454
- padding: calc(2 * ${G.verticalSpacing}) 0;
1674
+ color: ${K.colorOnSurface};
1675
+ padding: calc(2 * ${K.verticalSpacing}) 0;
1455
1676
  border: none;
1456
1677
  background: none;
1457
1678
  }
1458
1679
 
1459
1680
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
1460
1681
  padding-bottom: 0;
1461
- padding-top: calc(${G.labelSize} + 2 * ${G.verticalSpacing});
1682
+ padding-top: calc(${K.labelSize} + 2 * ${K.verticalSpacing});
1462
1683
  }
1463
1684
 
1464
1685
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -1467,37 +1688,37 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1467
1688
  }
1468
1689
 
1469
1690
  .ft-text-field--disabled .ft-text-field--input {
1470
- color: ${G.colorOnSurfaceDisabled};
1691
+ color: ${K.colorOnSurfaceDisabled};
1471
1692
  }
1472
1693
 
1473
1694
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1474
- ${C(F.borderColor,G.colorPrimary)};
1475
- ${C(F.textColor,G.colorPrimary)};
1695
+ ${x(B.borderColor,K.colorPrimary)};
1696
+ ${x(B.textColor,K.colorPrimary)};
1476
1697
  }
1477
1698
 
1478
1699
  .ft-text-field--filled .ft-text-field--input-panel {
1479
- border-radius: ${G.borderRadiusS} ${G.borderRadiusS} 0 0;
1700
+ border-radius: ${K.borderRadiusS} ${K.borderRadiusS} 0 0;
1480
1701
  }
1481
1702
 
1482
1703
  .ft-text-field--outlined .ft-text-field--input-panel {
1483
- border-radius: ${G.borderRadiusS};
1704
+ border-radius: ${K.borderRadiusS};
1484
1705
  }
1485
1706
 
1486
1707
  .ft-text-field--helper-text {
1487
- padding: 0 12px 0 ${G.horizontalSpacing};
1488
- color: ${G.helperColor};
1708
+ padding: 0 12px 0 ${K.horizontalSpacing};
1709
+ color: ${K.helperColor};
1489
1710
  }
1490
1711
 
1491
1712
  .ft-text-field--in-error .ft-text-field--input,
1492
1713
  .ft-text-field--in-error .ft-text-field--helper-text,
1493
1714
  .ft-text-field--in-error .ft-text-field--prefix {
1494
- color: ${G.colorError};
1715
+ color: ${K.colorError};
1495
1716
  }
1496
1717
 
1497
1718
  .ft-text-field--icon {
1498
1719
  align-self: center;
1499
1720
  margin-left: 8px;
1500
- color: ${G.iconColor};
1721
+ color: ${K.iconColor};
1501
1722
  }
1502
1723
 
1503
1724
  .ft-text-field--container {
@@ -1508,13 +1729,13 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1508
1729
  display: none;
1509
1730
  flex-direction: column;
1510
1731
  position: absolute;
1511
- z-index: ${G.floatingZIndex};
1512
- background: ${G.colorSurface};
1513
- border: 1px solid ${G.colorOutline};
1514
- border-radius: 0 0 ${G.borderRadiusS} ${G.borderRadiusS};
1515
- box-shadow: ${G.elevation02};
1732
+ z-index: ${K.floatingZIndex};
1733
+ background: ${K.colorSurface};
1734
+ border: 1px solid ${K.colorOutline};
1735
+ border-radius: 0 0 ${K.borderRadiusS} ${K.borderRadiusS};
1736
+ box-shadow: ${K.elevation02};
1516
1737
  outline: none;
1517
- max-height: ${G.suggestSize};
1738
+ max-height: ${K.suggestSize};
1518
1739
  overflow-y: auto;
1519
1740
  }
1520
1741
 
@@ -1527,14 +1748,14 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1527
1748
  }
1528
1749
 
1529
1750
  .ft-text-field--with-icon {
1530
- ${C(F.labelMaxWidth,`calc(100% - ${Oe.size} - ${F.horizontalSpacing})`)};
1751
+ ${x(B.labelMaxWidth,`calc(100% - ${Ct.size} - ${B.horizontalSpacing})`)};
1531
1752
  }
1532
1753
 
1533
1754
  .ft-text-field--with-password ft-icon:hover {
1534
1755
  cursor: pointer;
1535
1756
  }
1536
- `;var ne=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},q=class extends Er(W,"textbox"){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Cr.EYE_SLASH,this.passwordRevealedIcon=Cr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let t=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",t)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}render(){var e;let t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":this.visibleSuggestions.length===0||this.hideSuggestions,"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return $`
1537
- <div class="${$e(t)}">
1757
+ `;var nt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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},q=class extends Er(V,"textbox"){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=wr.EYE_SLASH,this.passwordRevealedIcon=wr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}render(){var t;let e={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":this.visibleSuggestions.length===0||this.hideSuggestions,"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return L`
1758
+ <div class="${Lt(e)}">
1538
1759
  <div class="ft-text-field--main-panel"
1539
1760
  @keydown=${this.handleKeyboardNavigation}
1540
1761
  @focusout=${this.onMainPanelBlur}>
@@ -1544,15 +1765,15 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1544
1765
  ?raised=${this.focused||this.value!=""}
1545
1766
  ?error=${this.error}></ft-input-label>
1546
1767
  <div class="ft-text-field--input-panel">
1547
- ${this.outlined?z:$`
1768
+ ${this.outlined?H:L`
1548
1769
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1549
1770
  `}
1550
- ${this.prefix?$`
1771
+ ${this.prefix?L`
1551
1772
  <ft-typography class="ft-text-field--prefix" variant="body1">
1552
1773
  ${this.prefix}
1553
1774
  </ft-typography>
1554
- `:z}
1555
- <input type=${(e=this.type)!==null&&e!==void 0?e:this.password&&this.hidePassword?"password":"text"}
1775
+ `:H}
1776
+ <input type=${(t=this.type)!==null&&t!==void 0?t:this.password&&this.hidePassword?"password":"text"}
1556
1777
  name=${Hs(this.name)}
1557
1778
  maxlength=${Hs(this.maxLength||void 0)}
1558
1779
  aria-label="${this.label}"
@@ -1570,23 +1791,23 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1570
1791
  <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1571
1792
  </div>
1572
1793
  </div>
1573
- ${this.helper?$`
1794
+ ${this.helper?L`
1574
1795
  <ft-typography class="ft-text-field--helper-text" variant="caption">
1575
1796
  ${this.helper}
1576
1797
  </ft-typography>
1577
- `:z}
1798
+ `:H}
1578
1799
  </div>
1579
- `}renderPasswordIcon(){return $`
1800
+ `}renderPasswordIcon(){return L`
1580
1801
  <ft-icon class="ft-text-field--icon"
1581
1802
  .variant=${this.iconVariant}
1582
1803
  .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
1583
1804
  @click=${()=>this.togglePasswordVisibility()}></ft-icon>
1584
- `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?$`
1805
+ `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?L`
1585
1806
  <ft-icon class="ft-text-field--icon"
1586
1807
  .variant=${this.iconVariant}
1587
1808
  .value=${this.icon}
1588
- @click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
1589
- `:z}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.suggestions}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",No(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:t,y:o})=>{this.suggestionsContainer.style.left=`${t}px`,this.suggestionsContainer.style.top=`${o}px`}))}setValue(e,t=!1){this.value!==e&&(this.setInternalValue(e),this.dispatchEvent(new CustomEvent("live-change",{detail:e}))),t&&this.dispatchedValue!==e&&(this.dispatchedValue=e,this.dispatchEvent(new CustomEvent("change",{detail:e})))}handleInput(e){var t;let o=((t=this.input)===null||t===void 0?void 0:t.value)||"";this.setValue(o,e.key=="Escape"||e.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var t;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let o=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=o<this.visibleSuggestions.length-1?o+1:0:n=o>0?o-1:this.visibleSuggestions.length-1,(t=this.visibleSuggestions[n])===null||t===void 0||t.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var t;this.setValue(e.detail,!0),(t=this.input)===null||t===void 0||t.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,t;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((t=this.input)===null||t===void 0?void 0:t.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}};q.elementDefinitions={"ft-input-label":Ue,"ft-ripple":te,"ft-typography":ye,"ft-icon":Se};q.styles=[Jr,za,ip];ne([y()],q.prototype,"label",void 0);ne([y({noAccessor:!0})],q.prototype,"value",null);ne([H()],q.prototype,"dispatchedValue",void 0);ne([y()],q.prototype,"helper",void 0);ne([y({type:Boolean})],q.prototype,"outlined",void 0);ne([y({type:Boolean})],q.prototype,"disabled",void 0);ne([y({type:Boolean})],q.prototype,"error",void 0);ne([y({type:Boolean})],q.prototype,"fixedMenuPosition",void 0);ne([y()],q.prototype,"prefix",void 0);ne([y()],q.prototype,"icon",void 0);ne([y()],q.prototype,"name",void 0);ne([y()],q.prototype,"type",void 0);ne([y()],q.prototype,"passwordHiddenIcon",void 0);ne([y()],q.prototype,"passwordRevealedIcon",void 0);ne([y()],q.prototype,"iconVariant",void 0);ne([y({type:Boolean})],q.prototype,"filterSuggestions",void 0);ne([y({type:Number})],q.prototype,"maxLength",void 0);ne([y({type:Boolean})],q.prototype,"password",void 0);ne([H()],q.prototype,"focused",void 0);ne([H()],q.prototype,"hidePassword",void 0);ne([H()],q.prototype,"hideSuggestions",void 0);ne([H()],q.prototype,"visibleSuggestions",void 0);ne([X(".ft-text-field--main-panel")],q.prototype,"mainPanel",void 0);ne([X(".ft-text-field--input")],q.prototype,"input",void 0);ne([X(".ft-text-field--suggestions")],q.prototype,"suggestionsContainer",void 0);ne([Cn({selector:"ft-text-field-suggestion"})],q.prototype,"suggestions",void 0);var np=P`
1809
+ @click=${()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.focus()}}></ft-icon>
1810
+ `:H}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",To(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:e,y:i})=>{this.suggestionsContainer.style.left=`${e}px`,this.suggestionsContainer.style.top=`${i}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 i=((e=this.input)===null||e===void 0?void 0:e.value)||"";this.setValue(i,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 i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;t.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-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}};q.elementDefinitions={"ft-input-label":Ft,"ft-ripple":et,"ft-typography":bt,"ft-icon":Ot};q.styles=[Jr,Wa,ip];nt([g()],q.prototype,"label",void 0);nt([g({noAccessor:!0})],q.prototype,"value",null);nt([z()],q.prototype,"dispatchedValue",void 0);nt([g()],q.prototype,"helper",void 0);nt([g({type:Boolean})],q.prototype,"outlined",void 0);nt([g({type:Boolean})],q.prototype,"disabled",void 0);nt([g({type:Boolean})],q.prototype,"error",void 0);nt([g({type:Boolean})],q.prototype,"fixedMenuPosition",void 0);nt([g()],q.prototype,"prefix",void 0);nt([g()],q.prototype,"icon",void 0);nt([g()],q.prototype,"name",void 0);nt([g()],q.prototype,"type",void 0);nt([g()],q.prototype,"passwordHiddenIcon",void 0);nt([g()],q.prototype,"passwordRevealedIcon",void 0);nt([g()],q.prototype,"iconVariant",void 0);nt([g({type:Boolean})],q.prototype,"filterSuggestions",void 0);nt([g({type:Number})],q.prototype,"maxLength",void 0);nt([g({type:Boolean})],q.prototype,"password",void 0);nt([z()],q.prototype,"focused",void 0);nt([z()],q.prototype,"hidePassword",void 0);nt([z()],q.prototype,"hideSuggestions",void 0);nt([z()],q.prototype,"visibleSuggestions",void 0);nt([X(".ft-text-field--main-panel")],q.prototype,"mainPanel",void 0);nt([X(".ft-text-field--input")],q.prototype,"input",void 0);nt([X(".ft-text-field--suggestions")],q.prototype,"suggestionsContainer",void 0);nt([wn({selector:"ft-text-field-suggestion"})],q.prototype,"suggestions",void 0);var np=P`
1590
1811
  .ft-text-field-suggestion {
1591
1812
  position: relative;
1592
1813
  padding: 8px 16px;
@@ -1611,7 +1832,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1611
1832
  slot {
1612
1833
  pointer-events: none;
1613
1834
  }
1614
- `;var Vs=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ws=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},kt=class extends W{render(){return $`
1835
+ `;var Vs=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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},zs=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},Le=class extends V{render(){return L`
1615
1836
  <div class="ft-text-field-suggestion"
1616
1837
  tabindex="-1"
1617
1838
  @keydown=${this.onKeyDown}
@@ -1623,17 +1844,17 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1623
1844
  <slot></slot>
1624
1845
  </ft-typography>
1625
1846
  </div>
1626
- `}focus(e){var t;(t=this.container)===null||t===void 0||t.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new Ws(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};kt.elementDefinitions={"ft-ripple":te,"ft-typography":ye,"ft-icon":Se};kt.styles=np;Vs([y()],kt.prototype,"value",void 0);Vs([X(".ft-text-field-suggestion")],kt.prototype,"container",void 0);Vs([yo()],kt.prototype,"assignedNodes",void 0);K("ft-text-field")(q);K("ft-text-field-suggestion")(kt);var ap=r=>Tt.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 js=class{constructor(e,t){this.mapId=e,this.paginatedToc=t,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(e,t,o){return e.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,o)),n.tocId==null?this.extractPagesToc(n.children,t,o):[{tocId:n.tocId,title:n.title,depth:t,children:this.extractPagesToc(n.children,t+1,n.tocId)}]))}convertNodes(e,t,o){return e.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],t,n.tocId),...this.convertNodes(n.children,t,n.tocId)];let c=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:c,depth:t,parentTocId:o,children:[]};this.register(p);let h=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],t+1,n.tocId),f=this.convertNodes(n.children,t+1,p.tocId);return p.children=[...h,...f],[p]})}convertSectionNodes(e,t,o){return e.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:t,parentTocId:o,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,t+1,n.tocId),[l]})}buildPage(e,t){var o,n,a,s,l,c;let p={number:this.pages.length+1,title:(o=e.title)!==null&&o!==void 0?o:"",rootTocId:(n=e.tocId)!==null&&n!==void 0?n:"root",toc:((a=e.pageToc)!==null&&a!==void 0?a:[]).map(m=>this.nodeByTocId[m.tocId]),topics:[],hiddenTopics:[],breadcrumb:t?this.buildBreadcrumb(this.nodeByTocId[t]):[]},h=(m,b)=>(b?p.topics:p.hiddenTopics).push(m),f=(l=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return p.breadcrumb.forEach((m,b)=>{h(m,f[b])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),p.topics.push(...this.tocIds((c=e.pageToc)!==null&&c!==void 0?c:[])),p}registerPage(e){for(let t of[...e.topics,...e.hiddenTopics])this.pageByTocId[t]||(this.pageByTocId[t]=e);this.pages.push(e)}tocIds(e){return e.flatMap(t=>[t.tocId,...this.tocIds(t.children)])}buildBreadcrumb(e){let t=[e.tocId];for(;e?.parentTocId;)t.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return t}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},ji=class{convertPaginatedToc(e,t){return new js(e,t).build()}};var Ki=class extends yt{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,t,o){super(!1,t),this.converter=e,this._mapId=o,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(t=>this.converter.convertPaginatedToc(e,t)))),this.cache.register("ratingSummary",()=>{var e,t;return wr((t=(e=D.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&t!==void 0?t:[],"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(e){return(await this.getEnrichedToc()).nodeByTocId[e]}getTocNodeNow(e){var t;return(t=this.enrichedToc)===null||t===void 0?void 0:t.nodeByTocId[e]}getTocNodeNowByUrl(e){var t,o;let n=this.getMapNow();return n?.prettyUrl==e||`${n?.id}/root`===e?(t=this.enrichedToc)===null||t===void 0?void 0:t.toc[0]:(o=this.enrichedToc)===null||o===void 0?void 0:o.nodeByUrl[e]}async getPage(e){let t=await this.getEnrichedToc();return t.pages[e-1]||t.pages[0]}async getPageByTocId(e){let t=await this.getEnrichedToc();return t.pageByTocId[e]||t.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(e,t){return this.cache.get("document-relatives-"+e+"-"+t.join("-"),()=>this.fetchRelativesForDocument(e,t))}getRelativesForTopicInMap(e,t,o){return this.cache.get("topic-relatives-"+[e,t,...o].join("-"),()=>this.fetchRelativesForTopicInMap(e,t,o))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true`)}getLink(e,t,o){let n=this.getNavigationData(e,t,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(e,t,o){var n,a;e=e||"root";let s=this.enrichedToc,l=s?.pageByTocId[e],c=s?.nodeByTocId[e],p=c?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(n=c?.title)!==null&&n!==void 0?n:"",page:t&&l&&l.number!==t?t:void 0,prettyUrl:p?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(p??""))!==null&&a!==void 0?a:!1,section:o}}async getAccurateNavigationData(e,t,o){return await this.getEnrichedToc(),this.getNavigationData(e,t,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(t=>{var o;return t?{type:t.topics.type,rating:(o=t.topics)===null||o===void 0?void 0:o.ratings.find(n=>n.tocId===e)}:void 0})}rateMap(e,t){return this.makeRateMapRequest(e,t).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,t){return this.makeMapFeedbackRequest(e,t)}rateTopic(e,t,o){return this.makeRateTopicRequest(e,t,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=D.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,t,o){return this.makeTopicFeedbackRequest(e,t,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e){let t=this.getTocNodeNow(e),o=[{tocId:t.tocId,title:t.title}],n=this.getTocNodeNow(t.parentTocId);for(;n;)o.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return o}isFeatureAccessible(e,{session:t,ratingType:o}){var n;if(!this.isFeatureAvailable(e))return!1;switch(e){case Ye.FEEDBACK:return wr(t??[],pe.FEEDBACK_USER);case Ye.RATING:return wr(t??[],pe.RATING_USER)&&o!=null&&o!==Nt.NO_RATING;case Ye.PRINT:return wr(t??[],pe.PRINT_USER);case Ye.BOOKMARK:return!!t?.sessionAuthenticated;case Ye.COLLECTIONS:return wr(t??[],pe.COLLECTION_USER);case Ye.PERSONAL_BOOKS:return wr(t??[],pe.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Gi=class r extends Ki{static async build(e){return new r(new ji,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e){let t=await this.api.getMap(e);return this.fingerprint=t.fingerprint,t}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e){return await this.getMap(),this.api.getPages(e,this.fingerprint)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,t){let o={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:t}}],sort:[],facets:[]};return this.api.search(o)}fetchRelativesForTopicInMap(e,t,o){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:o}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(e,t){return this.api.sendMapFeedback(this.mapId,e,t)}makeRateMapRequest(e,t){return this.api.rateMap(this.mapId,e,t)}makeRateTopicRequest(e,t,o){return this.api.rateTopic(this.mapId,e,t,o)}makeTopicFeedbackRequest(e,t,o){return this.api.sendTopicFeedback(this.mapId,e,t,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var Zi=class r{static build(e,t){return new r(ap(e.trim()||"context"),t??Gi.build)}loaded(){return Un(()=>this._loaded)}constructor(e,t,o){this.store=e,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new ae(10),this.initService(t)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return vo(()=>this.service)}async navigateToTopic(e,t,o){await this.loaded();let n=await this.awaitService(),a=await(o!=null?n.getPage(o):n.getPageByTocId(e??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(e,a),section:t})}resolveValidNonRootTocId(e,t){var o,n,a;let s=(o=e==="root"?void 0:e)!==null&&o!==void 0?o:t.rootTocId;return t.topics.includes(s)?s:(a=(n=t.topics[0])!==null&&n!==void 0?n:t.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(e){await this.loaded();let o=await(await this.awaitService()).getPage(e);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var e,t,o,n,a;try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(s=>this.store.actions.configuration(s)),(t=this.service)===null||t===void 0?void 0:t.getMap().then(s=>this.store.actions.map(s)),(o=this.service)===null||o===void 0?void 0:o.getToc().then(s=>this.store.actions.toc(s)),(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 fr)&&this.errorHandler(s)}}fetchRelatives(){var e,t,o;let n=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(t=this.service)===null||t===void 0||t.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 e,t;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=(t=(e=D.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&t!==void 0?t:[];return new bo(o,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var t,o,n;await this.loaded();let a=await vo(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,c=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((n=(o=(t=c?.results)===null||t===void 0?void 0:t[0])===null||o===void 0?void 0:o.entries)===null||n===void 0)&&n[0]){let p=c.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}};var sp=P`
1627
- `;var qi=class extends CustomEvent{constructor(e,t){super("ft-reader-map-loaded",{detail:{map:e,toc:t}})}},Yi=class extends CustomEvent{constructor(e,t){super("ft-reader-visible-topics-change",{detail:{visibleTopics:t}})}},Xi=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},Ji=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Qi=class extends Event{constructor(){super("ft-reader-map-not-found")}},en=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},tn=class extends Event{constructor(){super("ft-reader-map-forbidden")}},rn=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Ve=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},th=r=>e=>+(e??"NaN")>0?+e:r,Ee=class extends Ze{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new ae(5),this.navigationDebouncer=new ae(10),this.mapLoadedEventDebouncer=new ae(50),this.addStore(D)}render(){return $`
1847
+ `}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 zs(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())}};Le.elementDefinitions={"ft-ripple":et,"ft-typography":bt,"ft-icon":Ot};Le.styles=np;Vs([g()],Le.prototype,"value",void 0);Vs([X(".ft-text-field-suggestion")],Le.prototype,"container",void 0);Vs([go()],Le.prototype,"assignedNodes",void 0);G("ft-text-field")(q);G("ft-text-field-suggestion")(Le);var ap=r=>Ne.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 js=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,i){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,e,i):[{tocId:n.tocId,title:n.title,depth:e,children:this.extractPagesToc(n.children,e+1,n.tocId)}]))}convertNodes(t,e,i){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(/^\//,""),p={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:c,depth:e,parentTocId:i,children:[]};this.register(p);let h=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],e+1,n.tocId),f=this.convertNodes(n.children,e+1,p.tocId);return p.children=[...h,...f],[p]})}convertSectionNodes(t,e,i){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:i,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,e+1,n.tocId),[l]})}buildPage(t,e){var i,n,a,s,l,c;let p={number:this.pages.length+1,title:(i=t.title)!==null&&i!==void 0?i:"",rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(m=>this.nodeByTocId[m.tocId]),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},h=(m,v)=>(v?p.topics:p.hiddenTopics).push(m),f=(l=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return p.breadcrumb.forEach((m,v)=>{h(m,f[v])}),t.tocId&&h(t.tocId,t.pageConfiguration.isVisible),p.topics.push(...this.tocIds((c=t.pageToc)!==null&&c!==void 0?c:[])),p}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}},ji=class{convertPaginatedToc(t,e){return new js(t,e).build()}};var Gi=class extends ge{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i){super(!1,e),this.converter=t,this._mapId=i,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 Cr((e=(t=M.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,i;let n=this.getMapNow();return n?.prettyUrl==t||`${n?.id}/root`===t?(e=this.enrichedToc)===null||e===void 0?void 0:e.toc[0]:(i=this.enrichedToc)===null||i===void 0?void 0:i.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,i){return this.cache.get("topic-relatives-"+[t,e,...i].join("-"),()=>this.fetchRelativesForTopicInMap(t,e,i))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,i){let n=this.getNavigationData(t,e,i),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,i){var n,a;t=t||"root";let s=this.enrichedToc,l=s?.pageByTocId[t],c=s?.nodeByTocId[t],p=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:p?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(p??""))!==null&&a!==void 0?a:!1,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(e=>{var i;return e?{type:e.topics.type,rating:(i=e.topics)===null||i===void 0?void 0:i.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,i){return this.makeRateTopicRequest(t,e,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=M.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}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),i=[{tocId:e.tocId,title:e.title}],n=this.getTocNodeNow(e.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case Yt.FEEDBACK:return Cr(e??[],pt.FEEDBACK_USER);case Yt.RATING:return Cr(e??[],pt.RATING_USER)&&i!=null&&i!==Te.NO_RATING;case Yt.PRINT:return Cr(e??[],pt.PRINT_USER);case Yt.BOOKMARK:return!!e?.sessionAuthenticated;case Yt.COLLECTIONS:return Cr(e??[],pt.COLLECTION_USER);case Yt.PERSONAL_BOOKS:return Cr(e??[],pt.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 Gi{static async build(t){return new r(new ji,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){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:e}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(t,e,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[t]}}],sort:[],facets:[]};return this.api.search(n)}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,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var Zi=class r{static build(t,e){return new r(ap(t.trim()||"context"),e??Ki.build)}loaded(){return Fn(()=>this._loaded)}constructor(t,e,i){this.store=t,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new at(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 vo(()=>this.service)}async navigateToTopic(t,e,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i):n.getPageByTocId(t??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,a),section:e})}resolveValidNonRootTocId(t,e){var i,n,a;let s=(i=t==="root"?void 0:t)!==null&&i!==void 0?i: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 i=await(await this.awaitService()).getPage(t);this.store.actions.currentPage(i)}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,i,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)),(i=this.service)===null||i===void 0?void 0:i.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 fr)&&this.errorHandler(s)}}fetchRelatives(){var t,e,i;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((i=this.store.getState().configuration)===null||i===void 0?void 0:i.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 i=this.store.getState().relatives;if(i){let n=i.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(e=(t=M.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&e!==void 0?e:[];return new bo(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var e,i,n;await this.loaded();let a=await vo(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,c=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(i=(e=c?.results)===null||e===void 0?void 0:e[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let p=c.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}};var sp=P`
1848
+ `;var qi=class extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}},Yi=class extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}},Xi=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},Ji=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},Qi=class extends Event{constructor(){super("ft-reader-map-not-found")}},tn=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},en=class extends Event{constructor(){super("ft-reader-map-forbidden")}},rn=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Vt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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},rh=r=>t=>+(t??"NaN")>0?+t:r,wt=class extends Zt{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new at(5),this.navigationDebouncer=new at(10),this.mapLoadedEventDebouncer=new at(50),this.addStore(M)}render(){return L`
1628
1849
  ${this.importStyleIfNeeded()}
1629
1850
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1630
- `}importStyleIfNeeded(){var e,t;let o=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!o||window.location.href.startsWith((t=this.baseUrl)!==null&&t!==void 0?t:"")?z:$`
1851
+ `}importStyleIfNeeded(){var t,e;let i=(t=this.stateManager.service)===null||t===void 0?void 0:t.themeStylesheet();return!i||window.location.href.startsWith((e=this.baseUrl)!==null&&e!==void 0?e:"")?H:L`
1631
1852
  <style>
1632
- @import "${o}"
1853
+ @import "${i}"
1633
1854
  </style>
1634
- `}get stateManager(){return this._stateManager==null&&(this._stateManager=Zi.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let t=e.fontsStylesheet();if(t&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${t}"]`)){let o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",t),document.head.append(o)}})}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(t=>e.has(t))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var t;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((t=this.scrollTarget)===null||t===void 0?void 0:t.tocId)==null){let o=e.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 Xi(a)))})}e.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 Yi(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 rn),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let t=e;t.status===401?this.dispatchEvent(new en):t.status===403?this.dispatchEvent(new tn):t.status===404?this.dispatchEvent(new Qi):this.dispatchEvent(new Ji(e))}reloadBookmarks(){tp.reloadBookmarks()}async reloadRating(){var e,t;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(t=this.stateManager.store)===null||t===void 0||t.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new qi(this.map,this.toc))})}};Ee.styles=sp;Ve([ce({store:D.name})],Ee.prototype,"baseUrl",void 0);Ve([ce({store:D.name})],Ee.prototype,"session",void 0);Ve([y()],Ee.prototype,"mapId",void 0);Ve([y()],Ee.prototype,"tocId",void 0);Ve([y()],Ee.prototype,"section",void 0);Ve([y()],Ee.prototype,"topicPivot",void 0);Ve([y()],Ee.prototype,"searchInDocumentQuery",void 0);Ve([y({type:Number,converter:{fromAttribute:th()}})],Ee.prototype,"page",void 0);Ve([ce({store:"reader"})],Ee.prototype,"map",void 0);Ve([ce({store:"reader"})],Ee.prototype,"toc",void 0);Ve([ce({store:"reader"})],Ee.prototype,"visibleTopics",void 0);Ve([ce({store:"reader"})],Ee.prototype,"currentPage",void 0);Ve([ce({store:"reader"})],Ee.prototype,"scrollTarget",void 0);Ve([y({attribute:!1})],Ee.prototype,"readerServiceProvider",void 0);K("ft-reader-context")(Ee);var on=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},nn=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},an=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},sn=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},ln=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var Ce=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ie=class extends Jt(Gt){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,op)}get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(Ye.FEEDBACK,{session:this.session})}get canAccessRating(){var e,t;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(Ye.RATING,{session:this.session,ratingType:(t=this.ratingSummary)===null||t===void 0?void 0:t.type})}get configuredRatingType(){var e,t;return(t=this.ratingAllowed?(e=this.ratingSummary)===null||e===void 0?void 0:e.type:"NO_RATING")!==null&&t!==void 0?t:"NO_RATING"}get ratingType(){var e,t,o;return(o=(t=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||t===void 0?void 0:t.type)!==null&&o!==void 0?o:"NO_RATING"}get ratingValue(){var e,t,o;return(o=(t=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||t===void 0?void 0:t.value)!==null&&o!==void 0?o:-1}get ratingDate(){var e,t;let o=(t=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||t===void 0?void 0:t.date;return typeof o=="string"?mi(o):o}render(){return!this.canAccessFeedback&&!this.canAccessRating?z:$`
1855
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=Zi.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 i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",e),document.head.append(i)}})}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 i=t.get("scrollTarget");i?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var n;return this.stateManager.service.getAccurateNavigationData(i.tocId,(n=this.currentPage)===null||n===void 0?void 0:n.number,i.section).then(a=>this.dispatchEvent(new Xi(a)))})}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map(i=>{var n;return this.stateManager.service.getAccurateNavigationData(i,(n=this.currentPage)===null||n===void 0?void 0:n.number)})).then(i=>{let n=i.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 Yi(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 rn),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 tn):e.status===403?this.dispatchEvent(new en):e.status===404?this.dispatchEvent(new Qi):this.dispatchEvent(new Ji(t))}reloadBookmarks(){ep.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 qi(this.map,this.toc))})}};wt.styles=sp;Vt([ct({store:M.name})],wt.prototype,"baseUrl",void 0);Vt([ct({store:M.name})],wt.prototype,"session",void 0);Vt([g()],wt.prototype,"mapId",void 0);Vt([g()],wt.prototype,"tocId",void 0);Vt([g()],wt.prototype,"section",void 0);Vt([g()],wt.prototype,"topicPivot",void 0);Vt([g()],wt.prototype,"searchInDocumentQuery",void 0);Vt([g({type:Number,converter:{fromAttribute:rh()}})],wt.prototype,"page",void 0);Vt([ct({store:"reader"})],wt.prototype,"map",void 0);Vt([ct({store:"reader"})],wt.prototype,"toc",void 0);Vt([ct({store:"reader"})],wt.prototype,"visibleTopics",void 0);Vt([ct({store:"reader"})],wt.prototype,"currentPage",void 0);Vt([ct({store:"reader"})],wt.prototype,"scrollTarget",void 0);Vt([g({attribute:!1})],wt.prototype,"readerServiceProvider",void 0);G("ft-reader-context")(wt);var on=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},nn=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},an=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},sn=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},ln=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var At=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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},it=class extends Je(Ke){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,op)}get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Yt.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Yt.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,i;return(i=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.type)!==null&&i!==void 0?i:"NO_RATING"}get ratingValue(){var t,e,i;return(i=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.value)!==null&&i!==void 0?i:-1}get ratingDate(){var t,e;let i=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.date;return typeof i=="string"?mi(i):i}render(){return!this.canAccessFeedback&&!this.canAccessRating?H:L`
1635
1856
  <div class="ft-reader-feedback">
1636
- ${this.hideTitle?z:$`
1857
+ ${this.hideTitle?H:L`
1637
1858
  <ft-typography variant="title" part="main-title">
1638
1859
  ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1639
1860
  </ft-typography>
@@ -1641,7 +1862,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1641
1862
  ${this.renderRatingSection()}
1642
1863
  ${this.renderFeedbackSection()}
1643
1864
  </div>
1644
- `}renderRatingSection(){return this.canAccessRating?$`
1865
+ `}renderRatingSection(){return this.canAccessRating?L`
1645
1866
  <div class="ft-reader-feedback--rating" part="rating-container">
1646
1867
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1647
1868
  ${this.i18n(this.ratingSummary.type==="DICHOTOMOUS"?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
@@ -1651,9 +1872,9 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1651
1872
  ${this.renderRatingDate()}
1652
1873
  </ft-typography>
1653
1874
  </div>
1654
- `:z}renderRatingDate(){let e=this.ratingDate;if(e==null)return Q.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return Q.messages.ratedNow();let t=new Date().toLocaleDateString(),o=e.toLocaleDateString();return t===o?Q.messages.ratedToday():Q.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case"STARS":return $`
1875
+ `:H}renderRatingDate(){let t=this.ratingDate;if(t==null)return Q.messages.notRated();if(t.getTime()>new Date().getTime()-6e4)return Q.messages.ratedNow();let e=new Date().toLocaleDateString(),i=t.toLocaleDateString();return e===i?Q.messages.ratedToday():Q.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return L`
1655
1876
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1656
- ${Rn(new Array(5),(a,s)=>s,(a,s)=>{let l=this.ratingType==="STARS"&&this.ratingValue>s,c=s+1;return $`
1877
+ ${Rn(new Array(5),(a,s)=>s,(a,s)=>{let l=this.ratingType==="STARS"&&this.ratingValue>s,c=s+1;return L`
1657
1878
  <ft-button round part="rating-stars-${c}"
1658
1879
  label="${Q.messages.starsRating(c)}"
1659
1880
  tooltipPosition="top"
@@ -1664,27 +1885,27 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1664
1885
  ></ft-button>
1665
1886
  `})}
1666
1887
  </div>
1667
- `;case"LIKE":let e=this.ratingType==="LIKE"&&this.ratingValue===0,t=this.ratingType==="LIKE"&&this.ratingValue===1;return $`
1888
+ `;case"LIKE":let t=this.ratingType==="LIKE"&&this.ratingValue===0,e=this.ratingType==="LIKE"&&this.ratingValue===1;return L`
1668
1889
  <ft-switch unselectable
1669
1890
  @change=${a=>this.rate(a.detail)}
1670
1891
  part="rating rating-like"
1671
1892
  label=${this.i18n(this.i18nProperties.ratingSectionTitle)}>
1672
1893
  <ft-switch-option .value=${1}
1673
- ?selected=${t}
1894
+ ?selected=${e}
1674
1895
  .iconVariant=${this.iconVariant}
1675
- icon="${t?this.filledLikeIcon:this.emptyLikeIcon}"
1896
+ icon="${e?this.filledLikeIcon:this.emptyLikeIcon}"
1676
1897
  role="radio">
1677
1898
  ${Q.messages.like()}
1678
1899
  </ft-switch-option>
1679
1900
  <ft-switch-option .value=${0}
1680
- ?selected=${e}
1901
+ ?selected=${t}
1681
1902
  .iconVariant=${this.iconVariant}
1682
- icon="${e?this.filledDislikeIcon:this.emptyDislikeIcon}"
1903
+ icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}"
1683
1904
  role="radio">
1684
1905
  ${Q.messages.dislike()}
1685
1906
  </ft-switch-option>
1686
1907
  </ft-switch>
1687
- `;case"DICHOTOMOUS":let o=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===0,n=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===1;return $`
1908
+ `;case"DICHOTOMOUS":let i=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===0,n=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===1;return L`
1688
1909
  <ft-switch unselectable
1689
1910
  @change=${a=>this.rate(a.detail)}
1690
1911
  part="rating rating-dichotomous">
@@ -1693,11 +1914,11 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1693
1914
  ${Q.messages.dichotomousYes()}
1694
1915
  </ft-switch-option>
1695
1916
  <ft-switch-option .value=${0}
1696
- ?selected=${o}>
1917
+ ?selected=${i}>
1697
1918
  ${Q.messages.dichotomousNo()}
1698
1919
  </ft-switch-option>
1699
1920
  </ft-switch>
1700
- `}return z}rate(e){(e??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:e}))}renderFeedbackSection(){var e,t,o,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=$`
1921
+ `}return H}rate(t){(t??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,i,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=L`
1701
1922
  <ft-button primary
1702
1923
  type="submit" name="submit"
1703
1924
  class="ft-reader-feedback--send-feedback"
@@ -1705,11 +1926,11 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1705
1926
  part="send-feedback">
1706
1927
  ${Q.messages.okButton()}
1707
1928
  </ft-button>
1708
- `;s&&(l=$`
1929
+ `;s&&(l=L`
1709
1930
  <a class="ft-reader-feedback--feedback-link" href="${s}">
1710
1931
  ${l}
1711
1932
  </a>
1712
- `);let c=this.withMoreOptionsButton&&(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics||!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopicsForUnauthenticatedUsers)?$`
1933
+ `);let c=this.withMoreOptionsButton&&(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics||!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopicsForUnauthenticatedUsers)?L`
1713
1934
  <ft-button outlined
1714
1935
  type="button" name="more-options"
1715
1936
  class="ft-reader-feedback--more-options"
@@ -1717,13 +1938,13 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1717
1938
  part="more-options">
1718
1939
  ${Q.messages.moreOptionsButton()}
1719
1940
  </ft-button>
1720
- `:z;return $`
1941
+ `:H;return L`
1721
1942
  <form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
1722
1943
  @submit="${p=>this.onFormSubmitEvent(p,!!s)}">
1723
1944
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1724
1945
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1725
1946
  </ft-typography>
1726
- ${((n=(o=this.session)===null||o===void 0?void 0:o.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?$`
1947
+ ${((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?L`
1727
1948
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1728
1949
  class="ft-reader-feedback--from-input"
1729
1950
  label=${Q.messages.feedbackfromEmail()}
@@ -1731,7 +1952,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1731
1952
  ?error=${this.from&&!this.validFromEmail()}
1732
1953
  helper=${this.from&&!this.validFromEmail()?Q.messages.feedbackfromEmailInvalid():""}
1733
1954
  />
1734
- `:z}
1955
+ `:H}
1735
1956
  <ft-text-area outlined
1736
1957
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1737
1958
  label="${Q.messages.feedbackInputLabel()}"
@@ -1742,15 +1963,15 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1742
1963
  ${l}
1743
1964
  </div>
1744
1965
  </form>
1745
- `}return z}onFormSubmitEvent(e,t){e.preventDefault(),t?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,t,o;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((t=(e=this.session)===null||e===void 0?void 0:e.profile)===null||t===void 0?void 0:t.userId)==null&&(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new on({message:this.feedbackInput.value,...((e=this.configuration)===null||e===void 0?void 0:e.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)}};ie.elementDefinitions={"ft-button":it,"ft-typography":ye,"ft-switch":Me,"ft-switch-option":be,"ft-text-area":Re,"ft-text-field":q};ie.styles=Fd;Ce([y({type:Boolean})],ie.prototype,"editorMode",void 0);Ce([y({type:Boolean})],ie.prototype,"hideTitle",void 0);Ce([y({type:Boolean})],ie.prototype,"withMoreOptionsButton",void 0);Ce([y({type:Boolean})],ie.prototype,"ratingAllowed",void 0);Ce([y({attribute:!1})],ie.prototype,"i18nProperties",void 0);Ce([y({attribute:!1})],ie.prototype,"ratingSummary",void 0);Ce([y({attribute:!1})],ie.prototype,"session",void 0);Ce([X(".ft-reader-feedback--feedback-input")],ie.prototype,"feedbackInput",void 0);Ce([H()],ie.prototype,"from",void 0);Ce([H()],ie.prototype,"feedbackMessage",void 0);Ce([y()],ie.prototype,"iconVariant",void 0);Ce([y()],ie.prototype,"emptyStarIcon",void 0);Ce([y()],ie.prototype,"filledStarIcon",void 0);Ce([y()],ie.prototype,"emptyLikeIcon",void 0);Ce([y()],ie.prototype,"filledLikeIcon",void 0);Ce([y()],ie.prototype,"emptyDislikeIcon",void 0);Ce([y()],ie.prototype,"filledDislikeIcon",void 0);Ce([ce({store:"reader",selector:r=>{var e;return(e=r.configuration)===null||e===void 0?void 0:e.feedback}})],ie.prototype,"configuration",void 0);Ce([y()],ie.prototype,"feedbackMailLinkBuilder",void 0);var eo=Qt.fromGwt("server");var to=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,t,o,n,a){var s;this.subject=e,this.url=t,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(e,t){return t.map(o=>e.find(n=>n.key===o)).filter(o=>o!=null&&o.values.length>0)}shouldUseMailer(){var e,t;let o=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||n}build(e){var t;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let o=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1966
+ `}return H}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;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&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new on({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)}};it.elementDefinitions={"ft-button":ie,"ft-typography":bt,"ft-switch":Mt,"ft-switch-option":vt,"ft-text-area":_t,"ft-text-field":q};it.styles=Ud;At([g({type:Boolean})],it.prototype,"editorMode",void 0);At([g({type:Boolean})],it.prototype,"hideTitle",void 0);At([g({type:Boolean})],it.prototype,"withMoreOptionsButton",void 0);At([g({type:Boolean})],it.prototype,"ratingAllowed",void 0);At([g({attribute:!1})],it.prototype,"i18nProperties",void 0);At([g({attribute:!1})],it.prototype,"ratingSummary",void 0);At([g({attribute:!1})],it.prototype,"session",void 0);At([X(".ft-reader-feedback--feedback-input")],it.prototype,"feedbackInput",void 0);At([z()],it.prototype,"from",void 0);At([z()],it.prototype,"feedbackMessage",void 0);At([g()],it.prototype,"iconVariant",void 0);At([g()],it.prototype,"emptyStarIcon",void 0);At([g()],it.prototype,"filledStarIcon",void 0);At([g()],it.prototype,"emptyLikeIcon",void 0);At([g()],it.prototype,"filledLikeIcon",void 0);At([g()],it.prototype,"emptyDislikeIcon",void 0);At([g()],it.prototype,"filledDislikeIcon",void 0);At([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],it.prototype,"configuration",void 0);At([g()],it.prototype,"feedbackMailLinkBuilder",void 0);var to=Qe.fromGwt("server");var eo=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,n,a){var s;this.subject=t,this.url=e,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(t,e){return e.map(i=>t.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var t,e;let i=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(t){var e;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1746
1967
  ${this.bodyMetadata}
1747
1968
  ${this.url}
1748
1969
  _________________________________________________________________
1749
1970
 
1750
- ${e??""}
1971
+ ${t??""}
1751
1972
 
1752
1973
  _________________________________________________________________
1753
- ${eo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(t=this.configuration)===null||t===void 0?void 0:t.recipients.join(",")}?subject=${o}&body=${n}`}};var er=Qt.build("inDesignerFeedbackComponent"),cn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var _e=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},me=class extends Jt(Gt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ie.fluid_topics,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.feedbackLinkBuilder=new to,this.i18nProperties={feedbackMainTitle:Q.properties.mapFeedbackMainTitle(),ratingSectionTitle:Q.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Q.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Q.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new ae(100),this.sendRatingDebouncer=new ae(500),this.addStore(D)}render(){return $`
1974
+ ${to.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(e=this.configuration)===null||e===void 0?void 0:e.recipients.join(",")}?subject=${i}&body=${n}`}};var tr=Qe.build("inDesignerFeedbackComponent"),cn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Nt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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 Je(Ke){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=$t.fluid_topics,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.feedbackLinkBuilder=new eo,this.i18nProperties={feedbackMainTitle:Q.properties.mapFeedbackMainTitle(),ratingSectionTitle:Q.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Q.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Q.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new at(100),this.sendRatingDebouncer=new at(500),this.addStore(M)}render(){return L`
1754
1975
  <ft-reader-feedback
1755
1976
  ratingAllowed
1756
1977
  .i18nProperties=${this.i18nProperties}
@@ -1766,16 +1987,16 @@ ${eo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(t=this.configura
1766
1987
  .filledLikeIcon=${this.filledLikeIcon}
1767
1988
  .emptyDislikeIcon=${this.emptyDislikeIcon}
1768
1989
  .filledDislikeIcon=${this.filledDislikeIcon}
1769
- .feedbackMailLinkBuilder=${e=>this.feedbackLinkBuilder.build(e)}
1990
+ .feedbackMailLinkBuilder=${t=>this.feedbackLinkBuilder.build(t)}
1770
1991
  @rate=${this.rate}
1771
1992
  @send-feedback=${this.sendFeedback}
1772
1993
  @mailer-feedback=${this.onMailerFeedbackSent}
1773
1994
  @open-more-options=${this.openMoreOptions}
1774
1995
  ></ft-reader-feedback>
1775
- `}update(e){var t,o,n,a;super.update(e),e.has("map")&&this.map&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(er,cn),["map","configuration","user","mailSubject"].some(s=>e.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(o=(t=this.service)===null||t===void 0?void 0:t.getLink())!==null&&o!==void 0?o:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(e){super.onStoreAvailable(e),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var e,t;this.map&&(!((t=(e=this.session)===null||e===void 0?void 0:e.profile)===null||t===void 0)&&t.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var e;this.ratingSummary=await((e=this.service)===null||e===void 0?void 0:e.getMapRating())}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var t,o,n;if(!this.editorMode&&this.ratingSummary){try{e==null?await((t=this.service)===null||t===void 0?void 0:t.unrateMap()):await((o=this.service)===null||o===void 0?void 0:o.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new ke({type:"error",message:Q.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new ke({type:"info",message:er.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var t;try{this.editorMode?this.dispatchEvent(new ke({type:"info",message:er.messages.feedbackAndRatingDisabledInEditor()})):(await((t=this.service)===null||t===void 0?void 0:t.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new ke({type:"info",message:Q.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new ke({type:"error",message:Q.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new ln)}openMoreOptions(){var e,t,o;this.dispatchEvent(new an({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((e=this.map)===null||e===void 0?void 0:e.metadata)||[],ratingType:((t=this.ratingSummary)===null||t===void 0?void 0:t.type)||Nt.NO_RATING,ratingValue:(o=this.ratingSummary)===null||o===void 0?void 0:o.rating}))}};me.elementDefinitions={"ft-reader-feedback":ie};_e([ce({store:D.name})],me.prototype,"session",void 0);_e([ce({store:"reader"})],me.prototype,"map",void 0);_e([ce({store:D.name})],me.prototype,"editorMode",void 0);_e([ce({store:"reader",selector:r=>{var e;return(e=r.configuration)===null||e===void 0?void 0:e.feedback}})],me.prototype,"configuration",void 0);_e([H()],me.prototype,"ratingSummary",void 0);_e([y({type:Boolean})],me.prototype,"hideTitle",void 0);_e([y({type:Boolean})],me.prototype,"withMoreOptionsButton",void 0);_e([y()],me.prototype,"iconVariant",void 0);_e([y()],me.prototype,"emptyStarIcon",void 0);_e([y()],me.prototype,"filledStarIcon",void 0);_e([y()],me.prototype,"emptyLikeIcon",void 0);_e([y()],me.prototype,"filledLikeIcon",void 0);_e([y()],me.prototype,"emptyDislikeIcon",void 0);_e([y()],me.prototype,"filledDislikeIcon",void 0);_e([X("ft-reader-feedback")],me.prototype,"readerFeedback",void 0);_e([Vi(eo.properties["mail.map_feedback.subject"](r=>{var e;return[(e=r.map)===null||e===void 0?void 0:e.title]}))],me.prototype,"mailSubject",void 0);_e([ko({eventName:"rating-changed"})],me.prototype,"fetchRatingSummary",null);var lp=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Gs=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Ks=Symbol("registerInterval");function rh(r){var e;class t extends r{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Ks]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Ks]):this.dispatchEvent(new Gs)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Ks,lp([H()],t.prototype,"tocNode",void 0),lp([H()],t.prototype,"disableContextInteractions",void 0),t}var dn=class extends rh(Gt){};var Te=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ge=class extends Jt(dn){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ie.fluid_topics,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.feedbackLinkBuilder=new to,this.i18nProperties={feedbackMainTitle:Q.properties.topicFeedbackMainTitle(),ratingSectionTitle:Q.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Q.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Q.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new ae(100),this.sendRatingDebouncer=new ae(500),this.addStore(D)}render(){var e;return $`
1996
+ `}update(t){var e,i,n,a;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tr,cn),["map","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(e=this.service)===null||e===void 0?void 0:e.getLink())!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,e;this.map&&(!((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0)&&e.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var e,i,n;if(!this.editorMode&&this.ratingSummary){try{t==null?await((e=this.service)===null||e===void 0?void 0:e.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new kt({type:"error",message:Q.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new kt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new kt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()})):(await((e=this.service)===null||e===void 0?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new kt({type:"info",message:Q.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new kt({type:"error",message:Q.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new ln)}openMoreOptions(){var t,e,i;this.dispatchEvent(new an({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((e=this.ratingSummary)===null||e===void 0?void 0:e.type)||Te.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};yt.elementDefinitions={"ft-reader-feedback":it};Nt([ct({store:M.name})],yt.prototype,"session",void 0);Nt([ct({store:"reader"})],yt.prototype,"map",void 0);Nt([ct({store:M.name})],yt.prototype,"editorMode",void 0);Nt([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],yt.prototype,"configuration",void 0);Nt([z()],yt.prototype,"ratingSummary",void 0);Nt([g({type:Boolean})],yt.prototype,"hideTitle",void 0);Nt([g({type:Boolean})],yt.prototype,"withMoreOptionsButton",void 0);Nt([g()],yt.prototype,"iconVariant",void 0);Nt([g()],yt.prototype,"emptyStarIcon",void 0);Nt([g()],yt.prototype,"filledStarIcon",void 0);Nt([g()],yt.prototype,"emptyLikeIcon",void 0);Nt([g()],yt.prototype,"filledLikeIcon",void 0);Nt([g()],yt.prototype,"emptyDislikeIcon",void 0);Nt([g()],yt.prototype,"filledDislikeIcon",void 0);Nt([X("ft-reader-feedback")],yt.prototype,"readerFeedback",void 0);Nt([Vi(to.properties["mail.map_feedback.subject"](r=>{var t;return[(t=r.map)===null||t===void 0?void 0:t.title]}))],yt.prototype,"mailSubject",void 0);Nt([Lo({eventName:"rating-changed"})],yt.prototype,"fetchRatingSummary",null);var lp=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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},Ks=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Gs=Symbol("registerInterval");function oh(r){var t;class e extends r{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[Gs]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Gs]):this.dispatchEvent(new Ks)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=Gs,lp([z()],e.prototype,"tocNode",void 0),lp([z()],e.prototype,"disableContextInteractions",void 0),e}var dn=class extends oh(Ke){};var Tt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);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 Je(dn){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=$t.fluid_topics,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.feedbackLinkBuilder=new eo,this.i18nProperties={feedbackMainTitle:Q.properties.topicFeedbackMainTitle(),ratingSectionTitle:Q.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Q.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Q.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new at(100),this.sendRatingDebouncer=new at(500),this.addStore(M)}render(){var t;return L`
1776
1997
  <ft-reader-feedback
1777
1998
  .i18nProperties=${this.i18nProperties}
1778
- ?ratingAllowed=${(e=this.tocNode)===null||e===void 0?void 0:e.hasRating}
1999
+ ?ratingAllowed=${(t=this.tocNode)===null||t===void 0?void 0:t.hasRating}
1779
2000
  .editorMode=${this.editorMode}
1780
2001
  ?hideTitle=${this.hideTitle}
1781
2002
  ?withMoreOptionsButton=${this.withMoreOptionsButton}
@@ -1788,13 +2009,13 @@ ${eo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(t=this.configura
1788
2009
  .filledLikeIcon=${this.filledLikeIcon}
1789
2010
  .emptyDislikeIcon=${this.emptyDislikeIcon}
1790
2011
  .filledDislikeIcon=${this.filledDislikeIcon}
1791
- .feedbackMailLinkBuilder=${t=>this.feedbackLinkBuilder.build(t)}
2012
+ .feedbackMailLinkBuilder=${e=>this.feedbackLinkBuilder.build(e)}
1792
2013
  @rate=${this.rate}
1793
2014
  @send-feedback=${this.sendFeedback}
1794
2015
  @mailer-feedback=${this.onMailerFeedbackSent}
1795
2016
  @open-more-options=${this.openMoreOptions}
1796
2017
  ></ft-reader-feedback>
1797
- `}update(e){var t,o,n,a;super.update(e),["tocNode","user"].some(s=>e.has(s))&&this.tocNode&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(er,cn),["map","tocNode","configuration","user","mailSubject"].some(s=>e.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(o=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&o!==void 0?o:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var e,t;this.tocNode&&(!((t=(e=this.session)===null||e===void 0?void 0:e.profile)===null||t===void 0)&&t.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var e;this.ratingSummary=await((e=this.service)===null||e===void 0?void 0:e.getTopicRating(this.tocNode.tocId))}rate(e){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:e.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var t,o,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{e==null?await((t=this.service)===null||t===void 0?void 0:t.unrateTopic(this.tocNode.tocId)):await((o=this.service)===null||o===void 0?void 0:o.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new ke({type:"error",message:Q.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new ke({type:"info",message:er.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var t;try{!this.editorMode&&this.tocNode?(await((t=this.service)===null||t===void 0?void 0:t.sendTopicFeedback(this.tocNode.tocId,e.detail.message,e.detail.from)),this.dispatchEvent(new ke({type:"info",message:Q.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new ke({type:"info",message:er.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new ke({type:"error",message:Q.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new sn(e))}openMoreOptions(){var e,t,o,n,a,s,l,c;this.dispatchEvent(new nn({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(t=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&t!==void 0?t:"",mapMetadata:((o=this.map)===null||o===void 0?void 0:o.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(l=this.ratingSummary)===null||l===void 0?void 0:l.type:Nt.NO_RATING)||Nt.NO_RATING,ratingValue:(c=this.ratingSummary)===null||c===void 0?void 0:c.rating}))}};ge.elementDefinitions={"ft-reader-feedback":ie};Te([ce({store:D.name})],ge.prototype,"session",void 0);Te([ce({store:"reader"})],ge.prototype,"map",void 0);Te([ce({store:D.name})],ge.prototype,"editorMode",void 0);Te([ce({store:"reader",selector:r=>{var e;return(e=r.configuration)===null||e===void 0?void 0:e.feedback}})],ge.prototype,"configuration",void 0);Te([H()],ge.prototype,"ratingSummary",void 0);Te([y({type:Boolean})],ge.prototype,"hideTitle",void 0);Te([y({type:Boolean})],ge.prototype,"withMoreOptionsButton",void 0);Te([y()],ge.prototype,"iconVariant",void 0);Te([y()],ge.prototype,"emptyStarIcon",void 0);Te([y()],ge.prototype,"filledStarIcon",void 0);Te([y()],ge.prototype,"emptyLikeIcon",void 0);Te([y()],ge.prototype,"filledLikeIcon",void 0);Te([y()],ge.prototype,"emptyDislikeIcon",void 0);Te([y()],ge.prototype,"filledDislikeIcon",void 0);Te([X("ft-reader-feedback")],ge.prototype,"readerFeedback",void 0);Te([Vi(eo.properties["mail.feedback.subject"](r=>{var e,t;return[(e=r.tocNode)===null||e===void 0?void 0:e.title,(t=r.map)===null||t===void 0?void 0:t.title]}))],ge.prototype,"mailSubject",void 0);Te([ko({eventName:"rating-changed"})],ge.prototype,"fetchRatingSummary",null);K("ft-reader-map-feedback")(me);K("ft-reader-topic-feedback")(ge);})();
2018
+ `}update(t){var e,i,n,a;super.update(t),["tocNode","user"].some(s=>t.has(s))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tr,cn),["map","tocNode","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,e;this.tocNode&&(!((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0)&&e.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var e,i,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{t==null?await((e=this.service)===null||e===void 0?void 0:e.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new kt({type:"error",message:Q.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new kt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await((e=this.service)===null||e===void 0?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new kt({type:"info",message:Q.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new kt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new kt({type:"error",message:Q.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let t=this.tocNode;this.dispatchEvent(new sn(t))}openMoreOptions(){var t,e,i,n,a,s,l,c;this.dispatchEvent(new nn({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(e=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&e!==void 0?e:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(l=this.ratingSummary)===null||l===void 0?void 0:l.type:Te.NO_RATING)||Te.NO_RATING,ratingValue:(c=this.ratingSummary)===null||c===void 0?void 0:c.rating}))}};gt.elementDefinitions={"ft-reader-feedback":it};Tt([ct({store:M.name})],gt.prototype,"session",void 0);Tt([ct({store:"reader"})],gt.prototype,"map",void 0);Tt([ct({store:M.name})],gt.prototype,"editorMode",void 0);Tt([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],gt.prototype,"configuration",void 0);Tt([z()],gt.prototype,"ratingSummary",void 0);Tt([g({type:Boolean})],gt.prototype,"hideTitle",void 0);Tt([g({type:Boolean})],gt.prototype,"withMoreOptionsButton",void 0);Tt([g()],gt.prototype,"iconVariant",void 0);Tt([g()],gt.prototype,"emptyStarIcon",void 0);Tt([g()],gt.prototype,"filledStarIcon",void 0);Tt([g()],gt.prototype,"emptyLikeIcon",void 0);Tt([g()],gt.prototype,"filledLikeIcon",void 0);Tt([g()],gt.prototype,"emptyDislikeIcon",void 0);Tt([g()],gt.prototype,"filledDislikeIcon",void 0);Tt([X("ft-reader-feedback")],gt.prototype,"readerFeedback",void 0);Tt([Vi(to.properties["mail.feedback.subject"](r=>{var t,e;return[(t=r.tocNode)===null||t===void 0?void 0:t.title,(e=r.map)===null||e===void 0?void 0:e.title]}))],gt.prototype,"mailSubject",void 0);Tt([Lo({eventName:"rating-changed"})],gt.prototype,"fetchRatingSummary",null);G("ft-reader-map-feedback")(yt);G("ft-reader-topic-feedback")(gt);})();
1798
2019
  /*! Bundled license information:
1799
2020
 
1800
2021
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: