@fluid-topics/ft-reader-feedback 1.1.84 → 1.1.85

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,13 +1,13 @@
1
- "use strict";(()=>{var Id=Object.create;var Zi=Object.defineProperty;var Pd=Object.getOwnPropertyDescriptor;var $d=Object.getOwnPropertyNames;var kd=Object.getPrototypeOf,Ld=Object.prototype.hasOwnProperty;var Md=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),it=(e,t)=>{for(var r in t)Zi(e,r,{get:t[r],enumerable:!0})},Dd=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of $d(t))!Ld.call(e,n)&&n!==r&&Zi(e,n,{get:()=>t[n],enumerable:!(o=Pd(t,n))||o.enumerable});return e};var Ud=(e,t,r)=>(r=e!=null?Id(kd(e)):{},Dd(t||!e||!e.__esModule?Zi(r,"default",{value:e,enumerable:!0}):r,e));var dd=Md(cd=>{(function(e){var t=function(r){var o={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};function n(m){return m&&DataView.prototype.isPrototypeOf(m)}if(o.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(m){return m&&a.indexOf(Object.prototype.toString.call(m))>-1};function l(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(m))throw new TypeError("Invalid character in header field name");return m.toLowerCase()}function c(m){return typeof m!="string"&&(m=String(m)),m}function p(m){var x={next:function(){var _=m.shift();return{done:_===void 0,value:_}}};return o.iterable&&(x[Symbol.iterator]=function(){return x}),x}function u(m){this.map={},m instanceof u?m.forEach(function(x,_){this.append(_,x)},this):Array.isArray(m)?m.forEach(function(x){this.append(x[0],x[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(x){this.append(x,m[x])},this)}u.prototype.append=function(m,x){m=l(m),x=c(x);var _=this.map[m];this.map[m]=_?_+", "+x:x},u.prototype.delete=function(m){delete this.map[l(m)]},u.prototype.get=function(m){return m=l(m),this.has(m)?this.map[m]:null},u.prototype.has=function(m){return this.map.hasOwnProperty(l(m))},u.prototype.set=function(m,x){this.map[l(m)]=c(x)},u.prototype.forEach=function(m,x){for(var _ in this.map)this.map.hasOwnProperty(_)&&m.call(x,this.map[_],_,this)},u.prototype.keys=function(){var m=[];return this.forEach(function(x,_){m.push(_)}),p(m)},u.prototype.values=function(){var m=[];return this.forEach(function(x){m.push(x)}),p(m)},u.prototype.entries=function(){var m=[];return this.forEach(function(x,_){m.push([_,x])}),p(m)},o.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function h(m){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}function y(m){return new Promise(function(x,_){m.onload=function(){x(m.result)},m.onerror=function(){_(m.error)}})}function b(m){var x=new FileReader,_=y(x);return x.readAsArrayBuffer(m),_}function v(m){var x=new FileReader,_=y(x);return x.readAsText(m),_}function w(m){for(var x=new Uint8Array(m),_=new Array(x.length),G=0;G<x.length;G++)_[G]=String.fromCharCode(x[G]);return _.join("")}function N(m){if(m.slice)return m.slice(0);var x=new Uint8Array(m.byteLength);return x.set(new Uint8Array(m)),x.buffer}function T(){return this.bodyUsed=!1,this._initBody=function(m){this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:o.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:o.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():o.arrayBuffer&&o.blob&&n(m)?(this._bodyArrayBuffer=N(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||s(m))?this._bodyArrayBuffer=N(m):this._bodyText=m=Object.prototype.toString.call(m):this._bodyText="",this.headers.get("content-type")||(typeof m=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var m=h(this);if(m)return m;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(b)}),this.text=function(){var m=h(this);if(m)return m;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(m){var x=m.toUpperCase();return k.indexOf(x)>-1?x:m}function S(m,x){x=x||{};var _=x.body;if(m instanceof S){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,x.headers||(this.headers=new u(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!_&&m._bodyInit!=null&&(_=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new u(x.headers)),this.method=O(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&_)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(_)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})};function E(m){var x=new FormData;return m.trim().split("&").forEach(function(_){if(_){var G=_.split("="),ut=G.shift().replace(/\+/g," "),X=G.join("=").replace(/\+/g," ");x.append(decodeURIComponent(ut),decodeURIComponent(X))}}),x}function D(m){var x=new u,_=m.replace(/\r?\n[\t ]+/g," ");return _.split(/\r?\n/).forEach(function(G){var ut=G.split(":"),X=ut.shift().trim();if(X){var To=ut.join(":").trim();x.append(X,To)}}),x}T.call(S.prototype);function W(m,x){x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in x?x.statusText:"OK",this.headers=new u(x.headers),this.url=x.url||"",this._initBody(m)}T.call(W.prototype),W.prototype.clone=function(){return new W(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},W.error=function(){var m=new W(null,{status:0,statusText:""});return m.type="error",m};var At=[301,302,303,307,308];W.redirect=function(m,x){if(At.indexOf(x)===-1)throw new RangeError("Invalid status code");return new W(null,{status:x,headers:{location:m}})},r.DOMException=e.DOMException;try{new r.DOMException}catch{r.DOMException=function(x,_){this.message=x,this.name=_;var G=Error(x);this.stack=G.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Y(m,x){return new Promise(function(_,G){var ut=new S(m,x);if(ut.signal&&ut.signal.aborted)return G(new r.DOMException("Aborted","AbortError"));var X=new XMLHttpRequest;function To(){X.abort()}X.onload=function(){var Vr={status:X.status,statusText:X.statusText,headers:D(X.getAllResponseHeaders()||"")};Vr.url="responseURL"in X?X.responseURL:Vr.headers.get("X-Request-URL");var Gi="response"in X?X.response:X.responseText;_(new W(Gi,Vr))},X.onerror=function(){G(new TypeError("Network request failed"))},X.ontimeout=function(){G(new TypeError("Network request failed"))},X.onabort=function(){G(new r.DOMException("Aborted","AbortError"))},X.open(ut.method,ut.url,!0),ut.credentials==="include"?X.withCredentials=!0:ut.credentials==="omit"&&(X.withCredentials=!1),"responseType"in X&&o.blob&&(X.responseType="blob"),ut.headers.forEach(function(Vr,Gi){X.setRequestHeader(Gi,Vr)}),ut.signal&&(ut.signal.addEventListener("abort",To),X.onreadystatechange=function(){X.readyState===4&&ut.signal.removeEventListener("abort",To)}),X.send(typeof ut._bodyInit>"u"?null:ut._bodyInit)})}return Y.polyfill=!0,e.fetch||(e.fetch=Y,e.Headers=u,e.Request=S,e.Response=W),r.Headers=u,r.Request=S,r.Response=W,r.fetch=Y,Object.defineProperty(r,"__esModule",{value:!0}),r}({})})(typeof self<"u"?self:cd)});if(!ShadowRoot.prototype.createElement){let e=window.HTMLElement,t=window.customElements.define,r=window.customElements.get,o=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(O,S){if(O=O.toLowerCase(),this._getDefinition(O)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${O}" has already been used with this registry`);if(this._definitionsByClass.get(S)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let E=S.prototype.attributeChangedCallback,D=new Set(S.observedAttributes||[]);y(S,D,E);let W={elementClass:S,connectedCallback:S.prototype.connectedCallback,disconnectedCallback:S.prototype.disconnectedCallback,adoptedCallback:S.prototype.adoptedCallback,attributeChangedCallback:E,formAssociated:S.formAssociated,formAssociatedCallback:S.prototype.formAssociatedCallback,formDisabledCallback:S.prototype.formDisabledCallback,formResetCallback:S.prototype.formResetCallback,formStateRestoreCallback:S.prototype.formStateRestoreCallback,observedAttributes:D};this._definitionsByTag.set(O,W),this._definitionsByClass.set(S,W);let At=r.call(o,O);At||(At=h(O),t.call(o,O,At)),this===window.customElements&&(s.set(S,W),W.standInClass=At);let Y=this._awaitingUpgrade.get(O);if(Y){this._awaitingUpgrade.delete(O);for(let x of Y)a.delete(x),v(x,W,!0)}let m=this._whenDefinedPromises.get(O);return m!==void 0&&(m.resolve(S),this._whenDefinedPromises.delete(O)),S}upgrade(){N.push(this),o.upgrade.apply(o,arguments),N.pop()}get(O){return this._definitionsByTag.get(O)?.elementClass}_getDefinition(O){return this._definitionsByTag.get(O)}whenDefined(O){let S=this._getDefinition(O);if(S!==void 0)return Promise.resolve(S.elementClass);let E=this._whenDefinedPromises.get(O);return E===void 0&&(E={},E.promise=new Promise(D=>E.resolve=D),this._whenDefinedPromises.set(O,E)),E.promise}_upgradeWhenDefined(O,S,E){let D=this._awaitingUpgrade.get(S);D||this._awaitingUpgrade.set(S,D=new Set),E?D.add(O):D.delete(O)}};let c;window.HTMLElement=function(){let S=c;if(S)return c=void 0,S;let E=s.get(this.constructor);if(!E)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return S=Reflect.construct(e,[],E.standInClass),Object.setPrototypeOf(S,this.constructor.prototype),n.set(S,E),S},window.HTMLElement.prototype=e.prototype;let p=O=>O===document||O instanceof ShadowRoot,u=O=>{let S=O.getRootNode();if(!p(S)){let E=N[N.length-1];if(E instanceof CustomElementRegistry)return E;S=E.getRootNode(),p(S)||(S=l.get(S)?.getRootNode()||document)}return S.customElements},h=O=>class{static get formAssociated(){return!0}constructor(){let E=Reflect.construct(e,[],this.constructor);Object.setPrototypeOf(E,HTMLElement.prototype);let D=u(E)||window.customElements,W=D._getDefinition(O);return W?v(E,W):a.set(E,D),E}connectedCallback(){let E=n.get(this);E?E.connectedCallback&&E.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,O,!0)}disconnectedCallback(){let E=n.get(this);E?E.disconnectedCallback&&E.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,O,!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)}},y=(O,S,E)=>{if(S.size===0||E===void 0)return;let D=O.prototype.setAttribute;D&&(O.prototype.setAttribute=function(Y,m){let x=Y.toLowerCase();if(S.has(x)){let _=this.getAttribute(x);D.call(this,x,m),E.call(this,x,_,m)}else D.call(this,x,m)});let W=O.prototype.removeAttribute;W&&(O.prototype.removeAttribute=function(Y){let m=Y.toLowerCase();if(S.has(m)){let x=this.getAttribute(m);W.call(this,m),E.call(this,m,x,null)}else W.call(this,m)});let At=O.prototype.toggleAttribute;At&&(O.prototype.toggleAttribute=function(Y,m){let x=Y.toLowerCase();if(S.has(x)){let _=this.getAttribute(x);At.call(this,x,m);let G=this.getAttribute(x);E.call(this,x,_,G)}else At.call(this,x,m)})},b=O=>{let S=Object.getPrototypeOf(O);if(S!==window.HTMLElement)return S===e?Object.setPrototypeOf(O,window.HTMLElement):b(S)},v=(O,S,E=!1)=>{Object.setPrototypeOf(O,S.elementClass.prototype),n.set(O,S),c=O;try{new S.elementClass}catch{b(S.elementClass),new S.elementClass}S.attributeChangedCallback&&S.observedAttributes.forEach(D=>{O.hasAttribute(D)&&S.attributeChangedCallback.call(O,D,null,O.getAttribute(D))}),E&&S.connectedCallback&&O.isConnected&&S.connectedCallback.call(O)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(O){let S=w.apply(this,arguments);return O.customElements&&(S.customElements=O.customElements),S};let N=[document],T=(O,S,E=void 0)=>{let D=(E?Object.getPrototypeOf(E):O.prototype)[S];O.prototype[S]=function(){N.push(this);let W=D.apply(E||this,arguments);return W!==void 0&&l.set(W,this),N.pop(),W}};T(ShadowRoot,"createElement",document),T(ShadowRoot,"importNode",document),T(Element,"insertAdjacentHTML");let k=(O,S)=>{let E=Object.getOwnPropertyDescriptor(O.prototype,S);Object.defineProperty(O.prototype,S,{...E,set(D){N.push(this),E.set.call(this,D),N.pop()}})};if(k(Element,"innerHTML"),k(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let O=new WeakMap,S=HTMLElement.prototype.attachInternals,E=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...Y){let m=S.call(this,...Y);return O.set(m,this),m},E.forEach(Y=>{let m=window.ElementInternals.prototype,x=m[Y];m[Y]=function(..._){let G=O.get(this);if(n.get(G).formAssociated===!0)return x?.call(this,..._);throw new DOMException(`Failed to execute ${x} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class D extends Array{constructor(m){super(...m),this._elements=m}get value(){return this._elements.find(m=>m.checked===!0)?.value||""}}class W{constructor(m){let x=new Map;m.forEach((_,G)=>{let ut=_.getAttribute("name"),X=x.get(ut)||[];this[+G]=_,X.push(_),x.set(ut,X)}),this.length=m.length,x.forEach((_,G)=>{_&&(_.length===1?this[G]=_[0]:this[G]=new D(_))})}namedItem(m){return this[m]}}let At=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let Y=At.get.call(this,[]),m=[];for(let x of Y){let _=n.get(x);(!_||_.formAssociated===!0)&&m.push(x)}return new W(m)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(r,o,n)=>{if(o!==null)try{t.bind(window.customElements)(r,o,n)}catch(a){console.info(r,o,n,a)}}}var ln={};it(ln,{CSSResult:()=>Sr,LitElement:()=>ge,ReactiveElement:()=>re,_$LE:()=>lp,_$LH:()=>np,adoptStyles:()=>jo,css:()=>P,defaultConverter:()=>Ko,getCompatibleStyle:()=>Jr,html:()=>$,isServer:()=>Bf,noChange:()=>_e,notEqual:()=>en,nothing:()=>B,render:()=>sn,supportsAdoptingStyleSheets:()=>Xr,svg:()=>ip,unsafeCSS:()=>he});var Io=globalThis,$o=Io.ShadowRoot&&(Io.ShadyCSS===void 0||Io.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ss=Symbol(),xs=new WeakMap,Po=class{constructor(t,r,o){if(this._$cssResult$=!0,o!==Ss)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if($o&&t===void 0){let o=r!==void 0&&r.length===1;o&&(t=xs.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&xs.set(r,t))}return t}toString(){return this.cssText}},Os=e=>new Po(typeof e=="string"?e:e+"",void 0,Ss);var qi=(e,t)=>{if($o)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let o=document.createElement("style"),n=Io.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,e.appendChild(o)}},ko=$o?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let o of t.cssRules)r+=o.cssText;return Os(r)})(e):e;var{is:Bd,defineProperty:Fd,getOwnPropertyDescriptor:zd,getOwnPropertyNames:Wd,getOwnPropertySymbols:Hd,getPrototypeOf:Vd}=Object,Lo=globalThis,ws=Lo.trustedTypes,jd=ws?ws.emptyScript:"",Kd=Lo.reactiveElementPolyfillSupport,jr=(e,t)=>e,Kr={toAttribute(e,t){switch(t){case Boolean:e=e?jd:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Mo=(e,t)=>!Bd(e,t),Es={attribute:!0,type:String,converter:Kr,reflect:!1,hasChanged:Mo};Symbol.metadata??=Symbol("metadata"),Lo.litPropertyMetadata??=new WeakMap;var Ge=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Es){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(t,o,r);n!==void 0&&Fd(this.prototype,t,n)}}static getPropertyDescriptor(t,r,o){let{get:n,set:a}=zd(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Es}static _$Ei(){if(this.hasOwnProperty(jr("elementProperties")))return;let t=Vd(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(jr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(jr("properties"))){let r=this.properties,o=[...Wd(r),...Hd(r)];for(let n of o)this.createProperty(n,r[n])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let n of o)r.unshift(ko(n))}else t!==void 0&&r.push(ko(t));return r}static _$Eu(t,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,r=this.constructor.elementProperties;for(let o of r.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return qi(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,o){this._$AK(t,o)}_$EO(t,r){let o=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Kr).toAttribute(r,o.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,r){let o=this.constructor,n=o._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Kr;this._$Em=n,this[n]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(t,r,o,n=!1,a){if(t!==void 0){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Mo)(n?a:this[t],r))return;this.C(t,r,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,r,o){this._$AL.has(t)||this._$AL.set(t,r),o.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$E_?.forEach(r=>r.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(r=>this._$EO(r,this[r])),this._$ET()}updated(t){}firstUpdated(t){}};Ge.elementStyles=[],Ge.shadowRootOptions={mode:"open"},Ge[jr("elementProperties")]=new Map,Ge[jr("finalized")]=new Map,Kd?.({ReactiveElement:Ge}),(Lo.reactiveElementVersions??=[]).push("2.0.2");var Xi=globalThis,Do=Xi.trustedTypes,Cs=Do?Do.createPolicy("lit-html",{createHTML:e=>e}):void 0,Ji="$lit$",fe=`lit$${(Math.random()+"").slice(9)}$`,Qi="?"+fe,Gd=`<${Qi}>`,Ye=document,Uo=()=>Ye.createComment(""),Zr=e=>e===null||typeof e!="object"&&typeof e!="function",Is=Array.isArray,Ps=e=>Is(e)||typeof e?.[Symbol.iterator]=="function",Yi=`[
2
- \f\r]`,Gr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,As=/-->/g,Rs=/>/g,Ze=RegExp(`>|${Yi}(?:([^\\s"'>=/]+)(${Yi}*=${Yi}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),_s=/'/g,Ns=/"/g,$s=/^(?:script|style|textarea|title)$/i,ks=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Ls=ks(1),Ms=ks(2),Ft=Symbol.for("lit-noChange"),ct=Symbol.for("lit-nothing"),Ts=new WeakMap,qe=Ye.createTreeWalker(Ye,129);function Ds(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Cs!==void 0?Cs.createHTML(t):t}var Us=(e,t)=>{let r=e.length-1,o=[],n,a=t===2?"<svg>":"",s=Gr;for(let l=0;l<r;l++){let c=e[l],p,u,h=-1,y=0;for(;y<c.length&&(s.lastIndex=y,u=s.exec(c),u!==null);)y=s.lastIndex,s===Gr?u[1]==="!--"?s=As:u[1]!==void 0?s=Rs:u[2]!==void 0?($s.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=Ze):u[3]!==void 0&&(s=Ze):s===Ze?u[0]===">"?(s=n??Gr,h=-1):u[1]===void 0?h=-2:(h=s.lastIndex-u[2].length,p=u[1],s=u[3]===void 0?Ze:u[3]==='"'?Ns:_s):s===Ns||s===_s?s=Ze:s===As||s===Rs?s=Gr:(s=Ze,n=void 0);let b=s===Ze&&e[l+1].startsWith("/>")?" ":"";a+=s===Gr?c+Gd:h>=0?(o.push(p),c.slice(0,h)+Ji+c.slice(h)+fe+b):c+fe+(h===-2?l:b)}return[Ds(e,a+(e[r]||"<?>")+(t===2?"</svg>":"")),o]},qr=class e{constructor({strings:t,_$litType$:r},o){let n;this.parts=[];let a=0,s=0,l=t.length-1,c=this.parts,[p,u]=Us(t,r);if(this.el=e.createElement(p,o),qe.currentNode=this.el.content,r===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=qe.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Ji)){let y=u[s++],b=n.getAttribute(h).split(fe),v=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?Fo:v[1]==="?"?zo:v[1]==="@"?Wo:Je}),n.removeAttribute(h)}else h.startsWith(fe)&&(c.push({type:6,index:a}),n.removeAttribute(h));if($s.test(n.tagName)){let h=n.textContent.split(fe),y=h.length-1;if(y>0){n.textContent=Do?Do.emptyScript:"";for(let b=0;b<y;b++)n.append(h[b],Uo()),qe.nextNode(),c.push({type:2,index:++a});n.append(h[y],Uo())}}}else if(n.nodeType===8)if(n.data===Qi)c.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(fe,h+1))!==-1;)c.push({type:7,index:a}),h+=fe.length-1}a++}}static createElement(t,r){let o=Ye.createElement("template");return o.innerHTML=t,o}};function Xe(e,t,r=e,o){if(t===Ft)return t;let n=o!==void 0?r._$Co?.[o]:r._$Cl,a=Zr(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(e),n._$AT(e,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(t=Xe(e,n._$AS(e,t.values),n,o)),t}var Bo=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:o}=this._$AD,n=(t?.creationScope??Ye).importNode(r,!0);qe.currentNode=n;let a=qe.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let p;c.type===2?p=new Yr(a,a.nextSibling,this,t):c.type===1?p=new c.ctor(a,c.name,c.strings,this,t):c.type===6&&(p=new Ho(a,this,t)),this._$AV.push(p),c=o[++l]}s!==c?.index&&(a=qe.nextNode(),s++)}return qe.currentNode=Ye,n}p(t){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,r),r+=o.strings.length-2):o._$AI(t[r])),r++}},Yr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,o,n){this.type=2,this._$AH=ct,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Xe(this,t,r),Zr(t)?t===ct||t==null||t===""?(this._$AH!==ct&&this._$AR(),this._$AH=ct):t!==this._$AH&&t!==Ft&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Ps(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ct&&Zr(this._$AH)?this._$AA.nextSibling.data=t:this.$(Ye.createTextNode(t)),this._$AH=t}g(t){let{values:r,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=qr.createElement(Ds(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Bo(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(t){let r=Ts.get(t.strings);return r===void 0&&Ts.set(t.strings,r=new qr(t)),r}T(t){Is(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let a of t)n===r.length?r.push(o=new e(this.k(Uo()),this.k(Uo()),this,this.options)):o=r[n],o._$AI(a),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Je=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,o,n,a){this.type=1,this._$AH=ct,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ct}_$AI(t,r=this,o,n){let a=this.strings,s=!1;if(a===void 0)t=Xe(this,t,r,0),s=!Zr(t)||t!==this._$AH&&t!==Ft,s&&(this._$AH=t);else{let l=t,c,p;for(t=a[0],c=0;c<a.length-1;c++)p=Xe(this,l[o+c],r,c),p===Ft&&(p=this._$AH[c]),s||=!Zr(p)||p!==this._$AH[c],p===ct?t=ct:t!==ct&&(t+=(p??"")+a[c+1]),this._$AH[c]=p}s&&!n&&this.O(t)}O(t){t===ct?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Fo=class extends Je{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ct?void 0:t}},zo=class extends Je{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ct)}},Wo=class extends Je{constructor(t,r,o,n,a){super(t,r,o,n,a),this.type=5}_$AI(t,r=this){if((t=Xe(this,t,r,0)??ct)===Ft)return;let o=this._$AH,n=t===ct&&o!==ct||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==ct&&(o===ct||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Ho=class{constructor(t,r,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Xe(this,t)}},Bs={j:Ji,P:fe,A:Qi,C:1,M:Us,L:Bo,R:Ps,V:Xe,D:Yr,I:Je,H:zo,N:Wo,U:Fo,B:Ho},Zd=Xi.litHtmlPolyfillSupport;Zd?.(qr,Yr),(Xi.litHtmlVersions??=[]).push("3.1.0");var Vo=globalThis,Xr=Vo.ShadowRoot&&(Vo.ShadyCSS===void 0||Vo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,tn=Symbol(),Fs=new WeakMap,Sr=class{constructor(t,r,o){if(this._$cssResult$=!0,o!==tn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Xr&&t===void 0){let o=r!==void 0&&r.length===1;o&&(t=Fs.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Fs.set(r,t))}return t}toString(){return this.cssText}},he=e=>new Sr(typeof e=="string"?e:e+"",void 0,tn),P=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((o,n,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[a+1],e[0]);return new Sr(r,e,tn)},jo=(e,t)=>{if(Xr)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let o=document.createElement("style"),n=Vo.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,e.appendChild(o)}},Jr=Xr?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let o of t.cssRules)r+=o.cssText;return he(r)})(e):e;var{is:qd,defineProperty:Yd,getOwnPropertyDescriptor:Xd,getOwnPropertyNames:Jd,getOwnPropertySymbols:Qd,getPrototypeOf:tp}=Object,Go=globalThis,zs=Go.trustedTypes,ep=zs?zs.emptyScript:"",rp=Go.reactiveElementPolyfillSupport,Qr=(e,t)=>e,Ko={toAttribute(e,t){switch(t){case Boolean:e=e?ep:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},en=(e,t)=>!qd(e,t),Ws={attribute:!0,type:String,converter:Ko,reflect:!1,hasChanged:en};Symbol.metadata??=Symbol("metadata"),Go.litPropertyMetadata??=new WeakMap;var re=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Ws){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(t,o,r);n!==void 0&&Yd(this.prototype,t,n)}}static getPropertyDescriptor(t,r,o){let{get:n,set:a}=Xd(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ws}static _$Ei(){if(this.hasOwnProperty(Qr("elementProperties")))return;let t=tp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Qr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Qr("properties"))){let r=this.properties,o=[...Jd(r),...Qd(r)];for(let n of o)this.createProperty(n,r[n])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let n of o)r.unshift(Jr(n))}else t!==void 0&&r.push(Jr(t));return r}static _$Eu(t,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,r=this.constructor.elementProperties;for(let o of r.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return jo(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,r,o){this._$AK(t,o)}_$EO(t,r){let o=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Ko).toAttribute(r,o.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,r){let o=this.constructor,n=o._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Ko;this._$Em=n,this[n]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(t,r,o,n=!1,a){if(t!==void 0){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??en)(n?a:this[t],r))return;this.C(t,r,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,r,o){this._$AL.has(t)||this._$AL.set(t,r),o.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$E_?.forEach(r=>r.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(r=>this._$EO(r,this[r])),this._$ET()}updated(t){}firstUpdated(t){}};re.elementStyles=[],re.shadowRootOptions={mode:"open"},re[Qr("elementProperties")]=new Map,re[Qr("finalized")]=new Map,rp?.({ReactiveElement:re}),(Go.reactiveElementVersions??=[]).push("2.0.2");var on=globalThis,Zo=on.trustedTypes,Hs=Zo?Zo.createPolicy("lit-html",{createHTML:e=>e}):void 0,nn="$lit$",me=`lit$${(Math.random()+"").slice(9)}$`,an="?"+me,op=`<${an}>`,er=document,eo=()=>er.createComment(""),ro=e=>e===null||typeof e!="object"&&typeof e!="function",qs=Array.isArray,Ys=e=>qs(e)||typeof e?.[Symbol.iterator]=="function",rn=`[
4
- \f\r]`,to=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vs=/-->/g,js=/>/g,Qe=RegExp(`>|${rn}(?:([^\\s"'>=/]+)(${rn}*=${rn}*(?:[^
5
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ks=/'/g,Gs=/"/g,Xs=/^(?:script|style|textarea|title)$/i,Js=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),$=Js(1),ip=Js(2),_e=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),Zs=new WeakMap,tr=er.createTreeWalker(er,129);function Qs(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Hs!==void 0?Hs.createHTML(t):t}var tl=(e,t)=>{let r=e.length-1,o=[],n,a=t===2?"<svg>":"",s=to;for(let l=0;l<r;l++){let c=e[l],p,u,h=-1,y=0;for(;y<c.length&&(s.lastIndex=y,u=s.exec(c),u!==null);)y=s.lastIndex,s===to?u[1]==="!--"?s=Vs:u[1]!==void 0?s=js:u[2]!==void 0?(Xs.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=Qe):u[3]!==void 0&&(s=Qe):s===Qe?u[0]===">"?(s=n??to,h=-1):u[1]===void 0?h=-2:(h=s.lastIndex-u[2].length,p=u[1],s=u[3]===void 0?Qe:u[3]==='"'?Gs:Ks):s===Gs||s===Ks?s=Qe:s===Vs||s===js?s=to:(s=Qe,n=void 0);let b=s===Qe&&e[l+1].startsWith("/>")?" ":"";a+=s===to?c+op:h>=0?(o.push(p),c.slice(0,h)+nn+c.slice(h)+me+b):c+me+(h===-2?l:b)}return[Qs(e,a+(e[r]||"<?>")+(t===2?"</svg>":"")),o]},oo=class e{constructor({strings:t,_$litType$:r},o){let n;this.parts=[];let a=0,s=0,l=t.length-1,c=this.parts,[p,u]=tl(t,r);if(this.el=e.createElement(p,o),tr.currentNode=this.el.content,r===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=tr.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(nn)){let y=u[s++],b=n.getAttribute(h).split(me),v=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?Yo:v[1]==="?"?Xo:v[1]==="@"?Jo:or}),n.removeAttribute(h)}else h.startsWith(me)&&(c.push({type:6,index:a}),n.removeAttribute(h));if(Xs.test(n.tagName)){let h=n.textContent.split(me),y=h.length-1;if(y>0){n.textContent=Zo?Zo.emptyScript:"";for(let b=0;b<y;b++)n.append(h[b],eo()),tr.nextNode(),c.push({type:2,index:++a});n.append(h[y],eo())}}}else if(n.nodeType===8)if(n.data===an)c.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(me,h+1))!==-1;)c.push({type:7,index:a}),h+=me.length-1}a++}}static createElement(t,r){let o=er.createElement("template");return o.innerHTML=t,o}};function rr(e,t,r=e,o){if(t===_e)return t;let n=o!==void 0?r._$Co?.[o]:r._$Cl,a=ro(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(e),n._$AT(e,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(t=rr(e,n._$AS(e,t.values),n,o)),t}var qo=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:o}=this._$AD,n=(t?.creationScope??er).importNode(r,!0);tr.currentNode=n;let a=tr.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let p;c.type===2?p=new Or(a,a.nextSibling,this,t):c.type===1?p=new c.ctor(a,c.name,c.strings,this,t):c.type===6&&(p=new Qo(a,this,t)),this._$AV.push(p),c=o[++l]}s!==c?.index&&(a=tr.nextNode(),s++)}return tr.currentNode=er,n}p(t){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,r),r+=o.strings.length-2):o._$AI(t[r])),r++}},Or=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,o,n){this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=rr(this,t,r),ro(t)?t===B||t==null||t===""?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==_e&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Ys(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==B&&ro(this._$AH)?this._$AA.nextSibling.data=t:this.$(er.createTextNode(t)),this._$AH=t}g(t){let{values:r,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=oo.createElement(Qs(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new qo(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(t){let r=Zs.get(t.strings);return r===void 0&&Zs.set(t.strings,r=new oo(t)),r}T(t){qs(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let a of t)n===r.length?r.push(o=new e(this.k(eo()),this.k(eo()),this,this.options)):o=r[n],o._$AI(a),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},or=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,o,n,a){this.type=1,this._$AH=B,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=B}_$AI(t,r=this,o,n){let a=this.strings,s=!1;if(a===void 0)t=rr(this,t,r,0),s=!ro(t)||t!==this._$AH&&t!==_e,s&&(this._$AH=t);else{let l=t,c,p;for(t=a[0],c=0;c<a.length-1;c++)p=rr(this,l[o+c],r,c),p===_e&&(p=this._$AH[c]),s||=!ro(p)||p!==this._$AH[c],p===B?t=B:t!==B&&(t+=(p??"")+a[c+1]),this._$AH[c]=p}s&&!n&&this.O(t)}O(t){t===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Yo=class extends or{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===B?void 0:t}},Xo=class extends or{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==B)}},Jo=class extends or{constructor(t,r,o,n,a){super(t,r,o,n,a),this.type=5}_$AI(t,r=this){if((t=rr(this,t,r,0)??B)===_e)return;let o=this._$AH,n=t===B&&o!==B||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==B&&(o===B||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Qo=class{constructor(t,r,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){rr(this,t)}},np={j:nn,P:me,A:an,C:1,M:tl,L:qo,R:Ys,V:rr,D:Or,I:or,H:Xo,N:Jo,U:Yo,B:Qo},ap=on.litHtmlPolyfillSupport;ap?.(oo,Or),(on.litHtmlVersions??=[]).push("3.1.0");var sn=(e,t,r)=>{let o=r?.renderBefore??t,n=o._$litPart$;if(n===void 0){let a=r?.renderBefore??null;o._$litPart$=n=new Or(t.insertBefore(eo(),a),a,void 0,r??{})}return n._$AI(e),n};var ge=class extends re{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=sn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return _e}};ge._$litElement$=!0,ge.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ge});var sp=globalThis.litElementPolyfillSupport;sp?.({LitElement:ge});var lp={_$AK:(e,t,r)=>{e._$AK(t,r)},_$AL:e=>e._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Bf=!1;var dn={};it(dn,{customElement:()=>cp,eventOptions:()=>ye,property:()=>g,query:()=>Z,queryAll:()=>up,queryAssignedElements:()=>cn,queryAssignedNodes:()=>io,queryAsync:()=>fp,standardProperty:()=>el,state:()=>H});var cp=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var dp={attribute:!0,type:String,converter:Kr,reflect:!1,hasChanged:Mo},el=(e=dp,t,r)=>{let{kind:o,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(r.name,e),o==="accessor"){let{name:s}=r;return{set(l){let c=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,c,e)},init(l){return l!==void 0&&this.C(s,void 0,e),l}}}if(o==="setter"){let{name:s}=r;return function(l){let c=this[s];t.call(this,l),this.requestUpdate(s,c,e)}}throw Error("Unsupported decorator location: "+o)};function g(e){return(t,r)=>typeof r=="object"?el(e,t,r):((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})(e,t,r)}function H(e){return g({...e,state:!0,attribute:!1})}function ye(e){return(t,r)=>{let o=typeof t=="function"?t:t[r];Object.assign(o,e)}}var qt=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r);function Z(e,t){return(r,o,n)=>{let a=s=>s.renderRoot?.querySelector(e)??null;if(t){let{get:s,set:l}=typeof o=="object"?r:n??(()=>{let c=Symbol();return{get(){return this[c]},set(p){this[c]=p}}})();return qt(r,o,{get(){let c=s.call(this);return c===void 0&&(c=a(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return qt(r,o,{get(){return a(this)}})}}var pp;function up(e){return(t,r)=>qt(t,r,{get(){return(this.renderRoot??(pp??=document.createDocumentFragment())).querySelectorAll(e)}})}function fp(e){return(t,r)=>qt(t,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}function cn(e){return(t,r)=>{let{slot:o,selector:n}=e??{},a="slot"+(o?`[name=${o}]`:":not([name])");return qt(t,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(e)??[];return n===void 0?l:l.filter(c=>c.matches(n))}})}}function io(e){return(t,r)=>{let{slot:o}=e??{},n="slot"+(o?`[name=${o}]`:":not([name])");return qt(t,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(e)??[]}})}}var un={};it(un,{repeat:()=>pn});var Ne={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Te=e=>(...t)=>({_$litDirective$:e,values:t}),oe=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,o){this._$Ct=t,this._$AM=r,this._$Ci=o}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var{D:hp}=Bs;var rl=()=>document.createComment(""),wr=(e,t,r)=>{let o=e._$AA.parentNode,n=t===void 0?e._$AB:t._$AA;if(r===void 0){let a=o.insertBefore(rl(),n),s=o.insertBefore(rl(),n);r=new hp(a,s,e,e.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==e;if(l){let c;r._$AQ?.(e),r._$AM=e,r._$AP!==void 0&&(c=e._$AU)!==s._$AU&&r._$AP(c)}if(a!==n||l){let c=r._$AA;for(;c!==a;){let p=c.nextSibling;o.insertBefore(c,n),c=p}}}return r},Ie=(e,t,r=e)=>(e._$AI(t,r),e),mp={},ol=(e,t=mp)=>e._$AH=t,il=e=>e._$AH,ti=e=>{e._$AP?.(!1,!0);let t=e._$AA,r=e._$AB.nextSibling;for(;t!==r;){let o=t.nextSibling;t.remove(),t=o}};var nl=(e,t,r)=>{let o=new Map;for(let n=t;n<=r;n++)o.set(e[n],n);return o},pn=Te(class extends oe{constructor(e){if(super(e),e.type!==Ne.CHILD)throw Error("repeat() can only be used in text expressions")}ht(e,t,r){let o;r===void 0?r=t:t!==void 0&&(o=t);let n=[],a=[],s=0;for(let l of e)n[s]=o?o(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(e,t,r){return this.ht(e,t,r).values}update(e,[t,r,o]){let n=il(e),{values:a,keys:s}=this.ht(t,r,o);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],c=[],p,u,h=0,y=n.length-1,b=0,v=a.length-1;for(;h<=y&&b<=v;)if(n[h]===null)h++;else if(n[y]===null)y--;else if(l[h]===s[b])c[b]=Ie(n[h],a[b]),h++,b++;else if(l[y]===s[v])c[v]=Ie(n[y],a[v]),y--,v--;else if(l[h]===s[v])c[v]=Ie(n[h],a[v]),wr(e,c[v+1],n[h]),h++,v--;else if(l[y]===s[b])c[b]=Ie(n[y],a[b]),wr(e,n[h],n[y]),y--,b++;else if(p===void 0&&(p=nl(s,b,v),u=nl(l,h,y)),p.has(l[h]))if(p.has(l[y])){let w=u.get(s[b]),N=w!==void 0?n[w]:null;if(N===null){let T=wr(e,n[h]);Ie(T,a[b]),c[b]=T}else c[b]=Ie(N,a[b]),wr(e,n[h],N),n[w]=null;b++}else ti(n[y]),y--;else ti(n[h]),h++;for(;b<=v;){let w=wr(e,c[v+1]);Ie(w,a[b]),c[b++]=w}for(;h<=y;){let w=n[h++];w!==null&&ti(w)}return this.dt=s,ol(e,c),Ft}});var fn={};it(fn,{classMap:()=>Nt});var Nt=Te(class extends oe{constructor(e){if(super(e),e.type!==Ne.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.it===void 0){this.it=new Set,e.strings!==void 0&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.st?.has(o)&&this.it.add(o);return this.render(t)}let r=e.element.classList;for(let o of this.it)o in t||(r.remove(o),this.it.delete(o));for(let o in t){let n=!!t[o];n===this.it.has(o)||this.st?.has(o)||(n?(r.add(o),this.it.add(o)):(r.remove(o),this.it.delete(o)))}return Ft}});var hn={};it(hn,{styleMap:()=>yp});var al="important",gp=" !"+al,yp=Te(class extends oe{constructor(e){if(super(e),e.type!==Ne.ATTRIBUTE||e.name!=="style"||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,r)=>{let o=e[r];return o==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(e,[t]){let{style:r}=e.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(t)),this.render(t);for(let o of this.ut)t[o]==null&&(this.ut.delete(o),o.includes("-")?r.removeProperty(o):r[o]=null);for(let o in t){let n=t[o];if(n!=null){this.ut.add(o);let a=typeof n=="string"&&n.endsWith(gp);o.includes("-")||a?r.setProperty(o,a?n.slice(0,-11):n,a?al:""):r[o]=n}}return Ft}});var gn={};it(gn,{UnsafeHTMLDirective:()=>Er,unsafeHTML:()=>mn});var Er=class extends oe{constructor(t){if(super(t),this.et=ct,t.type!==Ne.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ct||t==null)return this.vt=void 0,this.et=t;if(t===Ft)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;let r=[t];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Er.directiveName="unsafeHTML",Er.resultType=1;var mn=Te(Er);var vn={};it(vn,{CacheRegistry:()=>ie});var bn={};it(bn,{CancelablePromise:()=>Cr,CanceledPromiseError:()=>ir,cancelable:()=>yn});var ir=class extends Error{constructor(t,r,o){super(t),this.canceledPromiseResult=r,this.canceledPromiseError=o}},Cr=class extends Promise{constructor(t){super((r,o)=>t(n=>{this.isCanceled?o(new ir("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?o(new ir("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},yn=e=>new Cr((t,r)=>e.then(t).catch(r));var ie=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,r){this.loaders[t]=r,this.finalContent.delete(t)}registerFinal(t,r){this.loaders[t]=r,this.finalContent.add(t)}clearAll(){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 Cr&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){this.clearTimeouts[t]!=null&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,r){this.forceClear(t),this.register(t,async()=>r),this.content[t]=r}setFinal(t,r){this.forceClear(t),this.registerFinal(t,async()=>r),this.content[t]=r}async get(t,r,o){if(this.content[t]===void 0){if(r=r??this.loaders[t],r==null)throw new Error("Unknown cache key "+t);let n=yn(r());return this.content[t]=n,n.then(a=>(this.content[t]=a,o!=null&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout(()=>this.clear(t),o)),a))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return t!=null&&!(t instanceof Promise)&&!(t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return this.content[t]!=null}resolvedKeys(){return Object.keys(this.content).filter(t=>this.isResolvedValue(this.content[t]))}resolvedValues(){return Object.values(this.content).filter(t=>this.isResolvedValue(t))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var xn={};it(xn,{ClusteringHelper:()=>no});var no=class e{constructor(t,r,o,n){this.allResults=t,this.selectedResult=r,this.clusteringMetadata=o,this.metadataDescriptors=n}static extractResultMetadata(t,r){var o,n;let a=((n=(o=t?.map)!==null&&o!==void 0?o:t?.document)!==null&&n!==void 0?n:t?.topic).metadata;return r==null?e.flattenMetadata(a):e.flattenMetadata(a.find(s=>s.key===r))}static flattenMetadata(t){if(Array.isArray(t))return t.map(o=>e.flattenMetadata(o)).filter(o=>o!=null);let r=t?.hierarchicalValues!=null&&t.hierarchicalValues.length>0;if(!(t==null||t.values.length==0&&!r))if(r){let o=[],n=[];return t.hierarchicalValues.forEach(a=>{o.push(a.join(" > ")),a.length>2?n.push(`... > ${a[a.length-1]}`):n.push(a.join(" > "))}),{key:t.key,label:t.label,value:o.join(", "),displayValue:n.join(", ")}}else{let o=t.values.join(", ");return{key:t.key,label:t.label,value:o,displayValue:o}}}computeClustersItemsForMetadata(t,r,o="No value"){var n,a;let s=e.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=>e.extractResultMetadata(p,t)).map(p=>p??{key:t,label:l,value:void 0,displayValue:o}).filter(p=>p.value!=s?.value).filter((p,u,h)=>h.findIndex(y=>y.value===p.value)===u).map(p=>({result:this.findBestResultForMetadataValue(t,p.value),metadata:p})).sort((p,u)=>this.compareMetadata(p.metadata.value,u.metadata.value,t,r))}compareMetadata(t,r,o,n){if(t==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let c=t.localeCompare(r,n,{numeric:!0});return l?c*-1:c}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(r=>t==r.key)}findBestResultForMetadataValue(t,r){let o=this.allResults.filter(c=>{var p;return((p=e.extractResultMetadata(c,t))===null||p===void 0?void 0:p.value)==r}),a=[...e.extractResultMetadata(this.selectedResult).filter(c=>this.clusteringMetadata.has(c.key)).filter(c=>c.key!==t)],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(t,r){return e.extractResultMetadata(t).filter(o=>r.some(n=>n.key===o.key&&n.value===o.value)).length}};var Sn={};it(Sn,{Debouncer:()=>rt});var rt=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,o)=>{this.resolvePromise=r,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let o=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of 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 wn={};it(wn,{customElement:()=>V,isNumber:()=>ll,jsonProperty:()=>ne,optionalNumberProperty:()=>Ep});var On={};it(On,{dateReviver:()=>vp,deepEqual:()=>Yt,delay:()=>ei,eventPathContainsMatchingElement:()=>Sp,flatDeep:()=>sl,hasChanged:()=>so,last:()=>wp,minmax:()=>Op,parseDate:()=>ri,waitFor:()=>ao,waitUntil:()=>bp});var ei=e=>new Promise(t=>setTimeout(t,e));async function bp(e,t=10,r=2e4){await ao(async()=>await e()||void 0,t,r)}async function ao(e,t=10,r=2e4){let o=await e(),n,a;for(n=a=performance.now();o==null&&(!r||a-n<r);)await ei(t),o=await e(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function sl(e,t){return e.flatMap(r=>[r,...sl(t(r),t)])}function vp(...e){return function(t,r){return e.includes(t)?ri(r):r}}function ri(e){return e.match(/^\d{4}-\d{2}-\d{2}$/)&&(e=e.replace(/-/g,"/")),e=e.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,r,o,n)=>r+o+":"+n),new Date(e)}function xp(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,o,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(o=r;o--!==0;)if(!Yt(e[o],t[o]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o of e.entries())if(!t.has(o[0]))return!1;for(o of e.entries())if(!Yt(o[1],t.get(o[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o of e.entries())if(!t.has(o[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(n=Object.keys(e),r=n.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(o=r;o--!==0;){var a=n[o];if(!Yt(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Yt(e,t){try{return xp(e,t)}catch{return!1}}function so(e,t){return!Yt(e,t)}function Sp(e,t,r=window.document.body){if(t.length>0){let o=e.composedPath();for(let n of o){if(n===r)return!1;if(n.matches&&t.some(a=>n.matches(a)))return!0}}return!1}function Op(e,t,r){return Math.min(Math.max(e,t),r)}function wp(e){return e[e.length-1]}var V=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function ne(e,t){let r=()=>JSON.parse(JSON.stringify(e));return g({type:Object,converter:{fromAttribute:o=>{if(o==null)return r();try{return JSON.parse(o)}catch{return r()}},toAttribute:o=>JSON.stringify(o)},hasChanged:so,...t??{}})}function Ep(e){return g({type:Object,converter:{fromAttribute:t=>{if(t!=null)return ll(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...e??{}})}function ll(e){return!isNaN(parseFloat(e))}var Jn={};it(Jn,{designSystemVariables:()=>A});var Xn={};it(Xn,{DesignSystemFamily:()=>qn,DesignSystemSize:()=>Yn,FtCssVariableFactory:()=>i,badge:()=>Np,banner:()=>_p,breadcrumb:()=>Tp,button:()=>I,chart:()=>Hp,checkbox:()=>jp,chip:()=>Ap,collapsible:()=>zp,comboboxMultiSelect:()=>Up,comboboxSingleSelect:()=>Dp,drawer:()=>$p,floatingMenu:()=>Mp,foundation:()=>d,link:()=>Rp,modal:()=>Pp,notice:()=>Vp,notification:()=>Zp,pageHeader:()=>Ip,popover:()=>Bp,radio:()=>Gp,resolveFamilyClass:()=>Yp,resolveSizeClass:()=>Xp,semantic:()=>f,setVariable:()=>C,switch_:()=>Wp,tabs:()=>Fp,textArea:()=>Lp,textInput:()=>kp,toggle:()=>Kp,tooltip:()=>qp,typographies:()=>lo,typographyBody1Medium:()=>Nn,typographyBody1Regular:()=>_n,typographyBody1Semibold:()=>Tn,typographyBody2Medium:()=>Pn,typographyBody2MediumUnderline:()=>cl,typographyBody2Regular:()=>In,typographyBody2Semibold:()=>$n,typographyCaption1Bold:()=>Wn,typographyCaption1Medium:()=>Fn,typographyCaption1Semibold:()=>zn,typographyCaption2Bold:()=>jn,typographyCaption2Medium:()=>Hn,typographyCaption2Semibold:()=>Vn,typographyCaption3Bold:()=>Zn,typographyCaption3Medium:()=>Kn,typographyCaption3Semibold:()=>Gn,typographyDisplay:()=>En,typographyLabel1Bold:()=>Mn,typographyLabel1Medium:()=>kn,typographyLabel1Semibold:()=>Ln,typographyLabel2Bold:()=>Bn,typographyLabel2Medium:()=>Dn,typographyLabel2Semibold:()=>Un,typographyTitle1:()=>Cn,typographyTitle2:()=>An,typographyTitle3:()=>Rn,typographyVariants:()=>Cp});var be=e=>typeof e=="string"?he(e):e,i=class{static create(t,r,o,n){let a=l=>be(l??n),s=P`var(${be(t)}, ${a(n)})`;return s.name=t,s.description=r,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${be(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,r,o,n){let a=l=>o.get(l??n),s=P`var(${be(t)}, ${a(n)})`;return s.name=t,s.description=r,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${be(t)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(t,r){let o=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):be(a??t.lastResortDefaultValue()),n=P`var(${be(t.name)}, ${o(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=r,n.defaultCssValue=o,n.get=a=>P`var(${be(t.name)}, ${o(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};function C(e,t){return be(`${e.name}: ${t}`)}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"),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)")},En={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")},Cn={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")},An={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")},Rn={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")},_n={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")},Nn={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")},Tn={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")},In={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")},Pn={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")},cl={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")},$n={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")},kn={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")},Ln={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")},Mn={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")},Dn={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")},Un={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")},Bn={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")},Fn={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")},zn={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")},Wn={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")},Hn={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")},Vn={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")},jn={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")},Kn={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")},Gn={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")},Zn={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")},lo={display:En,"title-1":Cn,"title-2":An,"title-3":Rn,"body-1-regular":_n,"body-1-medium":Nn,"body-1-semibold":Tn,"body-2-regular":In,"body-2-medium":Pn,"body-2-medium-underline":cl,"body-2-semibold":$n,"label-1-medium":kn,"label-1-semibold":Ln,"label-1-bold":Mn,"label-2-medium":Dn,"label-2-semibold":Un,"label-2-bold":Bn,"caption-1-medium":Fn,"caption-1-semibold":zn,"caption-1-bold":Wn,"caption-2-medium":Hn,"caption-2-semibold":Vn,"caption-2-bold":jn,"caption-3-medium":Kn,"caption-3-semibold":Gn,"caption-3-bold":Zn},Cp=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var f={backgroundActionPrimary:i.extend("--ft-background-action-primary","Used as backgorund of primary action components.",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.
6
- 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 I={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","",f.backgroundActionPrimary),primaryColor:i.extend("--ft-button-primary-color","",f.contentGlobalOnColor),primaryIconColor:i.extend("--ft-button-primary-icon-color","",f.contentGlobalOnColor),primaryStateLayerColor:i.extend("--ft-button-primary-state-layer-color","",f.contentGlobalOnColor),primaryHoverStateLayerOpacity:i.extend("--ft-button-primary-hover-state-layer-opacity","",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","",f.borderActionFocusRing),tertiaryBackgroundColor:i.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:i.extend("--ft-button-tertiary-color","",f.contentActionPrimary),tertiaryIconColor:i.extend("--ft-button-tertiary-icon-color","",f.contentActionPrimary),tertiaryStateLayerColor:i.extend("--ft-button-tertiary-state-layer-color","",f.contentActionPrimary),tertiaryHoverStateLayerOpacity:i.extend("--ft-button-tertiary-hover-state-layer-opacity","",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","",f.contentActionPrimary),secondaryIconColor:i.extend("--ft-button-secondary-icon-color","",f.contentActionPrimary),secondaryStateLayerColor:i.extend("--ft-button-secondary-state-layer-color","",f.contentActionPrimary),secondaryHoverStateLayerOpacity:i.extend("--ft-button-secondary-hover-state-layer-opacity","",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","",f.borderActionPrimary),neutralBackgroundColor:i.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:i.extend("--ft-button-neutral-icon-color","",f.contentGlobalSecondary),neutralColor:i.extend("--ft-button-neutral-color","",f.contentGlobalSecondary),neutralStateLayerColor:i.extend("--ft-button-neutral-state-layer-color","",f.contentGlobalSecondary),neutralHoverStateLayerOpacity:i.extend("--ft-button-neutral-hover-state-layer-opacity","",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 Ap={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.extend("--ft-chip-large-border-radius","",d.borderRadiusPill),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.extend("--ft-chip-medium-border-radius","",d.borderRadiusPill),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.extend("--ft-chip-small-border-radius","",d.borderRadiusPill),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","",f.backgroundGlobalOnSurface),neutralColor:i.extend("--ft-chip-neutral-color","",f.contentGlobalSecondary),neutralIconColor:i.extend("--ft-chip-neutral-icon-color","",f.contentGlobalSecondary),neutralBorderColor:i.extend("--ft-chip-neutral-border-color","",f.borderGlobalSubtle),infoBackgroundColor:i.extend("--ft-chip-info-background-color","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-chip-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-chip-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-chip-info-border-color","",f.borderInfoSubtle),successBackgroundColor:i.extend("--ft-chip-success-background-color","",f.backgroundSuccessSubtle),successColor:i.extend("--ft-chip-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-chip-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:i.extend("--ft-chip-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-chip-warning-background-color","",f.backgroundWarningSubtle),warningColor:i.extend("--ft-chip-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-chip-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:i.extend("--ft-chip-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-chip-error-background-color","",f.backgroundErrorSubtle),errorColor:i.extend("--ft-chip-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-chip-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:i.extend("--ft-chip-error-border-color","",f.borderErrorSubtle)};var Rp={focusOpacity:i.extend("--ft-link-focus-opacity","",d.opacity80),focusFocusRingColor:i.extend("--ft-link-focus-focus-ring-color","",f.borderActionFocusRing),brandColor:i.extend("--ft-link-brand-color","",f.contentActionPrimary),infoColor:i.extend("--ft-link-info-color","",f.contentInfoPrimary)};var _p={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","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-banner-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-banner-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-banner-info-border-color","",f.borderInfoSubtle)};var Np={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","",f.contentGlobalOnColor),backgroundColor:i.extend("--ft-badge-background-color","",f.contentActionPrimary)};var Tp={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","",f.contentGlobalPrimary),previousNonClickableColor:i.extend("--ft-breadcrumb-previous-non-clickable-color","",f.contentGlobalSecondary),iconColor:i.extend("--ft-breadcrumb-icon-color","",f.contentGlobalSubtle)};var Ip={horizontalPadding:i.extend("--ft-page-header-horizontal-padding","",d.spacing12),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","",f.borderGlobalSubtle),titleColor:i.extend("--ft-page-header-title-color","",f.contentGlobalPrimary),subtitleColor:i.extend("--ft-page-header-subtitle-color","",f.contentGlobalSecondary)};var Pp={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","",f.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","",f.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-modal-header-border-color","",f.borderGlobalSubtle),headerColor:i.extend("--ft-modal-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-modal-header-trailing-icon-color","",f.contentGlobalSecondary),headerVerticalPadding:i.extend("--ft-modal-header-vertical-padding","",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 $p={overlayOpacity:i.extend("--ft-drawer-overlay-opacity","",d.opacity40),shadow:i.extend("--ft-drawer-shadow","",d.shadowElevation03),bodyColor:i.extend("--ft-drawer-body-color","",f.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","",f.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-drawer-header-border-color","",f.borderGlobalSubtle),headerColor:i.extend("--ft-drawer-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-drawer-header-trailing-icon-color","",f.contentGlobalSecondary),headerHeight:i.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ft-drawer-header-horizontal-padding","",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","",f.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ft-drawer-buttons-bar-border-color","",f.borderGlobalSubtle),buttonsBarColor:i.extend("--ft-drawer-buttons-bar-color","",f.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ft-drawer-buttons-bar-horizontal-padding","",d.spacing4),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 kp={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","",f.contentGlobalPrimary),trailingIconColor:i.extend("--ft-text-input-trailing-icon-color","",f.contentGlobalSubtle),labelColor:i.extend("--ft-text-input-label-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-input-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-input-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-text-input-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-input-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-input-error-helper-icon-color","",f.contentErrorIconOnly),warningBorderWidth:i.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-text-input-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-input-disabled-component-opacity","",d.opacity40)};var Lp={backgroundColor:i.extend("--ft-text-area-background-color","",d.colorWhite),contentValueColor:i.extend("--ft-text-area-content-value-color","",f.contentGlobalPrimary),labelColor:i.extend("--ft-text-area-label-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-area-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-area-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-text-area-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-area-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-area-error-helper-icon-color","",f.contentErrorIconOnly),focusFocusRingColor:i.extend("--ft-text-area-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:i.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-area-disabled-component-opacity","",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 Mp={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","",f.contentGlobalPrimary),offColor:i.extend("--ft-floating-menu-off-color","",f.contentGlobalPrimary),onColor:i.extend("--ft-floating-menu-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-floating-menu-on-state-layer-color","",f.contentActionPrimary),gap:i.extend("--ft-floating-menu-gap","",d.spacing3),focusFocusRingColor:i.extend("--ft-floating-menu-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:i.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ft-floating-menu-focus-state-layer-opacity","",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","",f.backgroundGlobalOnSurface)};var Dp={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","",f.contentGlobalSubtle),contentValueColor:i.extend("--ft-combobox-single-select-content-value-color","",f.contentGlobalPrimary),trailingIconColor:i.extend("--ft-combobox-single-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-single-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-single-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-combobox-single-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-single-select-error-helper-text-color","",f.contentErrorPrimary),warningBorderWidth:i.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-single-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-single-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-single-select-warning-helper-icon-color","",f.contentWarningIconOnly),focusOutlineWidth:i.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-single-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-single-select-disabled-component-opacity","",d.opacity40)};var Up={backgroundColor:i.extend("--ft-combobox-multi-select-background-color","",d.colorWhite),labelColor:i.extend("--ft-combobox-multi-select-label-color","",f.contentGlobalSubtle),trailingIconColor:i.extend("--ft-combobox-multi-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-multi-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-multi-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:i.extend("--ft-combobox-multi-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-multi-select-error-helper-text-color","",f.contentErrorPrimary),errorHelperIcon:i.extend("--ft-combobox-multi-select-error-helper-icon","",f.contentErrorIconOnly),errorBorderWidth:i.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-multi-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-multi-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-multi-select-warning-helper-icon-color","",f.contentWarningIconOnly),warningBorderWidth:i.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-multi-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:i.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-multi-select-disabled-component-opacity","",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 Bp={backgroundColor:i.extend("--ft-popover-background-color","",f.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","",f.contentGlobalPrimary),bodyColor:i.extend("--ft-popover-body-color","",f.contentGlobalSecondary),linkColor:i.extend("--ft-popover-link-color","",f.contentActionPrimary),gap:i.extend("--ft-popover-gap","",d.spacing3),borderRadius:i.extend("--ft-popover-border-radius","",d.borderRadiusM),shadow:i.extend("--ft-popover-shadow","",d.shadowElevation02)};var Fp={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),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","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-tabs-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-tabs-on-hover-state-layer-opacity","",d.opacity8),onDefaultStateLayerOpacity:i.extend("--ft-tabs-on-default-state-layer-opacity","",d.opacity0),onFocusStateLayerOpacity:i.extend("--ft-tabs-on-focus-state-layer-opacity","",d.opacity8),onActiveStateLayerOpacity:i.extend("--ft-tabs-on-active-state-layer-opacity","",d.opacity16),onColor:i.extend("--ft-tabs-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-tabs-on-state-layer-color","",f.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","",f.borderActionFocusRing)};var zp={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","",f.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","",f.contentGlobalPrimary),stateLayerColor:i.extend("--ft-collapsible-state-layer-color","",f.contentGlobalPrimary),backgroundColor:i.extend("--ft-collapsible-background-color","",f.backgroundGlobalOnSurface),borderColor:i.extend("--ft-collapsible-border-color","",f.borderGlobalSubtle),iconSize:i.extend("--ft-collapsible-icon-size","",d.iconSize3)};var Wp={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","",f.backgroundGlobalSurface),groupBorderColor:i.extend("--ft-switch-group-border-color","",f.borderGlobalSubtle),groupBorderRadius:i.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ft-switch-label-horizontal-padding","",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","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-switch-off-state-layer-color","",f.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","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-switch-on-state-layer-color","",f.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","",f.borderActionFocusRing),optionBorderRadius:i.extend("--ft-switch-option-border-radius","",d.borderRadiusS)};var Hp={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 Vp={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","",f.backgroundInfoSubtle),infoBorderColor:i.extend("--ft-notice-info-border-color","",f.borderInfoSubtle),infoColor:i.extend("--ft-notice-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-notice-info-icon-color","",f.contentInfoIconOnly),warningBackgroundColor:i.extend("--ft-notice-warning-background-color","",f.backgroundWarningSubtle),warningBorderColor:i.extend("--ft-notice-warning-border-color","",f.borderWarningSubtle),warningColor:i.extend("--ft-notice-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-notice-warning-icon-color","",f.contentWarningIconOnly),errorBackgroundColor:i.extend("--ft-notice-error-background-color","",f.backgroundErrorSubtle),errorBorderColor:i.extend("--ft-notice-error-border-color","",f.borderErrorSubtle),errorColor:i.extend("--ft-notice-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-notice-error-icon-color","",f.contentErrorIconOnly),successBackgroundColor:i.extend("--ft-notice-success-background-color","",f.backgroundSuccessSubtle),successBorderColor:i.extend("--ft-notice-success-border-color","",f.borderSuccessSubtle),successColor:i.extend("--ft-notice-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-notice-success-icon-color","",f.contentSuccessIconOnly)};var jp={color:i.extend("--ft-checkbox-color","",f.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ft-checkbox-checked-background-color","",f.contentActionPrimary),checkedStateLayerColor:i.extend("--ft-checkbox-checked-state-layer-color","",f.contentActionPrimary),checkedIconColor:i.extend("--ft-checkbox-checked-icon-color","",f.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ft-checkbox-checked-hover-state-layer-opacity","",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","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:i.extend("--ft-checkbox-gap","",d.spacing3)};var Kp={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","",f.contentGlobalSubtle),offIconColor:i.extend("--ft-toggle-off-icon-color","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-toggle-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-toggle-on-hover-state-layer-opacity","",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","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-toggle-on-state-layer-color","",f.contentActionPrimary),onIconColor:i.extend("--ft-toggle-on-icon-color","",f.contentActionPrimary),color:i.extend("--ft-toggle-color","",f.contentGlobalPrimary),focusFocusRingColor:i.extend("--ft-toggle-focus-focus-ring-color","",f.borderActionFocusRing),gap:i.extend("--ft-toggle-gap","",d.spacing3)};var Gp={color:i.extend("--ft-radio-color","",f.contentGlobalPrimary),selectedRadioColor:i.extend("--ft-radio-selected-radio-color","",f.contentActionPrimary),selectedStateLayerColor:i.extend("--ft-radio-selected-state-layer-color","",f.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ft-radio-selected-hover-state-layer-opacity","",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","",f.borderInputPrimary),unselectedBorderColor:i.extend("--ft-radio-unselected-border-color","",f.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","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:i.extend("--ft-radio-gap","",d.spacing3)};var Zp={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","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-notification-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-notification-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-notification-info-border-color","",f.borderInfoSubtle),successBackgroundColor:i.extend("--ft-notification-success-background-color","",f.backgroundSuccessSubtle),successColor:i.extend("--ft-notification-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-notification-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:i.extend("--ft-notification-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-notification-warning-background-color","",f.backgroundWarningSubtle),warningColor:i.extend("--ft-notification-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-notification-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:i.extend("--ft-notification-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-notification-error-background-color","",f.backgroundErrorSubtle),errorColor:i.extend("--ft-notification-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-notification-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:i.extend("--ft-notification-error-border-color","",f.borderErrorSubtle),borderRadius:i.extend("--ft-notification-border-radius","",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 qp={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","",f.contentGlobalOnColor),backgroundColor:i.extend("--ft-tooltip-background-color","",f.contentGlobalPrimary),backgroundOpacity:i.extend("--ft-tooltip-background-opacity","",d.opacity80),shadow:i.extend("--ft-tooltip-shadow","",d.shadowElevation03),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ft-tooltip-gap","",d.spacing05)};var qn;(function(e){e.brand="brand",e.neutral="neutral",e.info="info",e.success="success",e.warning="warning",e.error="error"})(qn||(qn={}));var Yn;(function(e){e.large="large",e.medium="medium",e.small="small"})(Yn||(Yn={}));function Yp(e){return`design-system--family-${e}`}function Xp(e){return`design-system--size-${e}`}var A={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 ea={};it(ea,{FtNotificationEvent:()=>Tt,PostResizeEvent:()=>ta,PreResizeEvent:()=>Qn});var Tt=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},Qn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ta=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var ua={};it(ua,{computeOffsetPosition:()=>mo});var pl=["top","right","bottom","left"],dl=["start","end"],oa=pl.reduce((e,t)=>e.concat(t,t+"-"+dl[0],t+"-"+dl[1]),[]),co=Math.min,Pe=Math.max,po=Math.round;var ve=e=>({x:e,y:e}),Jp={left:"right",right:"left",bottom:"top",top:"bottom"},Qp={start:"end",end:"start"};function ia(e,t,r){return Pe(e,co(t,r))}function oi(e,t){return typeof e=="function"?e(t):e}function Ar(e){return e.split("-")[0]}function $e(e){return e.split("-")[1]}function na(e){return e==="x"?"y":"x"}function aa(e){return e==="y"?"height":"width"}function ii(e){return["top","bottom"].includes(Ar(e))?"y":"x"}function sa(e){return na(ii(e))}function ul(e,t,r){r===void 0&&(r=!1);let o=$e(e),n=sa(e),a=aa(n),s=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=ra(s)),[s,ra(s)]}function fl(e){return e.replace(/start|end/g,t=>Qp[t])}function ra(e){return e.replace(/left|right|bottom|top/g,t=>Jp[t])}function tu(e){return{top:0,right:0,bottom:0,left:0,...e}}function hl(e){return typeof e!="number"?tu(e):{top:e,right:e,bottom:e,left:e}}function nr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ml(e,t,r){let{reference:o,floating:n}=e,a=ii(t),s=sa(t),l=aa(s),c=Ar(t),p=a==="y",u=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,y=o[l]/2-n[l]/2,b;switch(c){case"top":b={x:u,y:o.y-n.height};break;case"bottom":b={x:u,y:o.y+o.height};break;case"right":b={x:o.x+o.width,y:h};break;case"left":b={x:o.x-n.width,y:h};break;default:b={x:o.x,y:o.y}}switch($e(t)){case"start":b[s]-=y*(r&&p?-1:1);break;case"end":b[s]+=y*(r&&p?-1:1);break}return b}var gl=async(e,t,r)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:h}=ml(p,o,c),y=o,b={},v=0;for(let w=0;w<l.length;w++){let{name:N,fn:T}=l[w],{x:k,y:O,data:S,reset:E}=await T({x:u,y:h,initialPlacement:o,placement:y,strategy:n,middlewareData:b,rects:p,platform:s,elements:{reference:e,floating:t}});if(u=k??u,h=O??h,b={...b,[N]:{...b[N],...S}},E&&v<=50){v++,typeof E=="object"&&(E.placement&&(y=E.placement),E.rects&&(p=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):E.rects),{x:u,y:h}=ml(p,y,c)),w=-1;continue}}return{x:u,y:h,placement:y,strategy:n,middlewareData:b}};async function la(e,t){var r;t===void 0&&(t={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:c}=e,{boundary:p="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:y=!1,padding:b=0}=oi(t,e),v=hl(b),N=l[y?h==="floating"?"reference":"floating":h],T=nr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(N)))==null||r?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:u,strategy:c})),k=h==="floating"?{...s.floating,x:o,y:n}:s.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),S=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},E=nr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:k,offsetParent:O,strategy:c}):k);return{top:(T.top-E.top+v.top)/S.y,bottom:(E.bottom-T.bottom+v.bottom)/S.y,left:(T.left-E.left+v.left)/S.x,right:(E.right-T.right+v.right)/S.x}}function eu(e,t,r){return(e?[...r.filter(n=>$e(n)===e),...r.filter(n=>$e(n)!==e)]:r.filter(n=>Ar(n)===n)).filter(n=>e?$e(n)===e||(t?fl(n)!==n:!1):!0)}var ca=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,n;let{rects:a,middlewareData:s,placement:l,platform:c,elements:p}=t,{crossAxis:u=!1,alignment:h,allowedPlacements:y=oa,autoAlignment:b=!0,...v}=oi(e,t),w=h!==void 0||y===oa?eu(h||null,b,y):y,N=await la(t,v),T=((r=s.autoPlacement)==null?void 0:r.index)||0,k=w[T];if(k==null)return{};let O=ul(k,a,await(c.isRTL==null?void 0:c.isRTL(p.floating)));if(l!==k)return{reset:{placement:w[0]}};let S=[N[Ar(k)],N[O[0]],N[O[1]]],E=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:k,overflows:S}],D=w[T+1];if(D)return{data:{index:T+1,overflows:E},reset:{placement:D}};let W=E.map(m=>{let x=$e(m.placement);return[m.placement,x&&u?m.overflows.slice(0,2).reduce((_,G)=>_+G,0):m.overflows[0],m.overflows]}).sort((m,x)=>m[1]-x[1]),Y=((n=W.filter(m=>m[2].slice(0,$e(m[0])?2:3).every(x=>x<=0))[0])==null?void 0:n[0])||W[0][0];return Y!==l?{data:{index:T+1,overflows:E},reset:{placement:Y}}:{}}}};var da=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:o,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:N=>{let{x:T,y:k}=N;return{x:T,y:k}}},...c}=oi(e,t),p={x:r,y:o},u=await la(t,c),h=ii(Ar(n)),y=na(h),b=p[y],v=p[h];if(a){let N=y==="y"?"top":"left",T=y==="y"?"bottom":"right",k=b+u[N],O=b-u[T];b=ia(k,b,O)}if(s){let N=h==="y"?"top":"left",T=h==="y"?"bottom":"right",k=v+u[N],O=v-u[T];v=ia(k,v,O)}let w=l.fn({...t,[y]:b,[h]:v});return{...w,data:{x:w.x-r,y:w.y-o}}}}};function xe(e){return bl(e)?(e.nodeName||"").toLowerCase():"#document"}function kt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Se(e){var t;return(t=(bl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bl(e){return e instanceof Node||e instanceof kt(e).Node}function ae(e){return e instanceof Element||e instanceof kt(e).Element}function Xt(e){return e instanceof HTMLElement||e instanceof kt(e).HTMLElement}function yl(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof kt(e).ShadowRoot}function Rr(e){let{overflow:t,overflowX:r,overflowY:o,display:n}=zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(n)}function vl(e){return["table","td","th"].includes(xe(e))}function ai(e){let t=si(),r=zt(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function xl(e){let t=ar(e);for(;Xt(t)&&!uo(t);){if(ai(t))return t;t=ar(t)}return null}function si(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function uo(e){return["html","body","#document"].includes(xe(e))}function zt(e){return kt(e).getComputedStyle(e)}function fo(e){return ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ar(e){if(xe(e)==="html")return e;let t=e.assignedSlot||e.parentNode||yl(e)&&e.host||Se(e);return yl(t)?t.host:t}function Sl(e){let t=ar(e);return uo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xt(t)&&Rr(t)?t:Sl(t)}function ni(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=Sl(e),a=n===((o=e.ownerDocument)==null?void 0:o.body),s=kt(n);return a?t.concat(s,s.visualViewport||[],Rr(n)?n:[],s.frameElement&&r?ni(s.frameElement):[]):t.concat(n,ni(n,[],r))}function El(e){let t=zt(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=Xt(e),a=n?e.offsetWidth:r,s=n?e.offsetHeight:o,l=po(r)!==a||po(o)!==s;return l&&(r=a,o=s),{width:r,height:o,$:l}}function Cl(e){return ae(e)?e:e.contextElement}function _r(e){let t=Cl(e);if(!Xt(t))return ve(1);let r=t.getBoundingClientRect(),{width:o,height:n,$:a}=El(t),s=(a?po(r.width):r.width)/o,l=(a?po(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var ru=ve(0);function Al(e){let t=kt(e);return!si()||!t.visualViewport?ru:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ou(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==kt(e)?!1:t}function ho(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),a=Cl(e),s=ve(1);t&&(o?ae(o)&&(s=_r(o)):s=_r(e));let l=ou(a,r,o)?Al(a):ve(0),c=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,u=n.width/s.x,h=n.height/s.y;if(a){let y=kt(a),b=o&&ae(o)?kt(o):o,v=y.frameElement;for(;v&&o&&b!==y;){let w=_r(v),N=v.getBoundingClientRect(),T=zt(v),k=N.left+(v.clientLeft+parseFloat(T.paddingLeft))*w.x,O=N.top+(v.clientTop+parseFloat(T.paddingTop))*w.y;c*=w.x,p*=w.y,u*=w.x,h*=w.y,c+=k,p+=O,v=kt(v).frameElement}}return nr({width:u,height:h,x:c,y:p})}function iu(e){let{rect:t,offsetParent:r,strategy:o}=e,n=Xt(r),a=Se(r);if(r===a)return t;let s={scrollLeft:0,scrollTop:0},l=ve(1),c=ve(0);if((n||!n&&o!=="fixed")&&((xe(r)!=="body"||Rr(a))&&(s=fo(r)),Xt(r))){let p=ho(r);l=_r(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+c.x,y:t.y*l.y-s.scrollTop*l.y+c.y}}function nu(e){return Array.from(e.getClientRects())}function Rl(e){return ho(Se(e)).left+fo(e).scrollLeft}function au(e){let t=Se(e),r=fo(e),o=e.ownerDocument.body,n=Pe(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=Pe(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-r.scrollLeft+Rl(e),l=-r.scrollTop;return zt(o).direction==="rtl"&&(s+=Pe(t.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}function su(e,t){let r=kt(e),o=Se(e),n=r.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,c=0;if(n){a=n.width,s=n.height;let p=si();(!p||p&&t==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:a,height:s,x:l,y:c}}function lu(e,t){let r=ho(e,!0,t==="fixed"),o=r.top+e.clientTop,n=r.left+e.clientLeft,a=Xt(e)?_r(e):ve(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y,c=n*a.x,p=o*a.y;return{width:s,height:l,x:c,y:p}}function Ol(e,t,r){let o;if(t==="viewport")o=su(e,r);else if(t==="document")o=au(Se(e));else if(ae(t))o=lu(t,r);else{let n=Al(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return nr(o)}function _l(e,t){let r=ar(e);return r===t||!ae(r)||uo(r)?!1:zt(r).position==="fixed"||_l(r,t)}function cu(e,t){let r=t.get(e);if(r)return r;let o=ni(e,[],!1).filter(l=>ae(l)&&xe(l)!=="body"),n=null,a=zt(e).position==="fixed",s=a?ar(e):e;for(;ae(s)&&!uo(s);){let l=zt(s),c=ai(s);!c&&l.position==="fixed"&&(n=null),(a?!c&&!n:!c&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Rr(s)&&!c&&_l(e,s))?o=o.filter(u=>u!==s):n=l,s=ar(s)}return t.set(e,o),o}function du(e){let{element:t,boundary:r,rootBoundary:o,strategy:n}=e,s=[...r==="clippingAncestors"?cu(t,this._c):[].concat(r),o],l=s[0],c=s.reduce((p,u)=>{let h=Ol(t,u,n);return p.top=Pe(h.top,p.top),p.right=co(h.right,p.right),p.bottom=co(h.bottom,p.bottom),p.left=Pe(h.left,p.left),p},Ol(t,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function pu(e){return El(e)}function uu(e,t,r){let o=Xt(t),n=Se(t),a=r==="fixed",s=ho(e,!0,a,t),l={scrollLeft:0,scrollTop:0},c=ve(0);if(o||!o&&!a)if((xe(t)!=="body"||Rr(n))&&(l=fo(t)),o){let p=ho(t,!0,a,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else n&&(c.x=Rl(n));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function wl(e,t){return!Xt(e)||zt(e).position==="fixed"?null:t?t(e):e.offsetParent}function Nl(e,t){let r=kt(e);if(!Xt(e))return r;let o=wl(e,t);for(;o&&vl(o)&&zt(o).position==="static";)o=wl(o,t);return o&&(xe(o)==="html"||xe(o)==="body"&&zt(o).position==="static"&&!ai(o))?r:o||xl(e)||r}var fu=async function(e){let{reference:t,floating:r,strategy:o}=e,n=this.getOffsetParent||Nl,a=this.getDimensions;return{reference:uu(t,await n(r),o),floating:{x:0,y:0,...await a(r)}}};function hu(e){return zt(e).direction==="rtl"}var li={convertOffsetParentRelativeRectToViewportRelativeRect:iu,getDocumentElement:Se,getClippingRect:du,getOffsetParent:Nl,getElementRects:fu,getClientRects:nu,getDimensions:pu,getScale:_r,isElement:ae,isRTL:hu};var Tl=(e,t,r)=>{let o=new Map,n={platform:li,...r},a={...n.platform,_c:o};return gl(e,t,{...n,platform:a})};function Il(e){return mu(e)}function pa(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function mu(e){for(let t=e;t;t=pa(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=pa(e);t;t=pa(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||t.tagName==="BODY"))return t}return null}async function mo(e,t,r){return Tl(e,t,{platform:{...li,getOffsetParent:o=>li.getOffsetParent(o,Il)},middleware:[da({crossAxis:!0}),ca({allowedPlacements:[r]})]})}var ha={};it(ha,{FtLitElement:()=>F});var fa={};it(fa,{ScopedRegistryLitElement:()=>go});var ci=window,gu=ci.ShadowRoot&&(ci.ShadyCSS===void 0||ci.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jy=Symbol();var Pl=(e,t)=>{gu?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let o=document.createElement("style"),n=ci.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,e.appendChild(o)})};var go=class extends ge{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 r={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(r);return Pl(o,t.elementStyles),o}};var di=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Ll,$l=Symbol("constructorPrototype"),kl=Symbol("constructorName"),Ml=Symbol("exportpartsDebouncer"),F=class extends go{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ll]=new rt(5),this[kl]=this.constructor.name,this[$l]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[kl]&&Object.setPrototypeOf(this,this[$l])}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)}this.importDynamicDependencies()}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var r,o,n;if(((o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var t,r,o;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(o=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&o!==void 0&&o)&&this[Ml].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 r,o,n,a,s,l;let c=y=>y!=null&&y.trim().length>0,p=t.filter(c).map(y=>y.trim());if(p.length===0){this.removeAttribute("exportparts");return}let u=new Set;for(let y of(o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let b=(a=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],v=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(w=>w.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...b,...v).filter(c).map(w=>w.trim()).forEach(w=>u.add(w))}if(u.size===0){this.removeAttribute("exportparts");return}let h=[...u.values()].flatMap(y=>p.map(b=>`${y}:${b}--${y}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};Ll=Ml;di([g()],F.prototype,"exportpartsPrefix",void 0);di([ne([])],F.prototype,"exportpartsPrefixes",void 0);di([g()],F.prototype,"customStylesheet",void 0);di([H()],F.prototype,"useAdoptedStyleSheets",void 0);var Dl={};var ba={};it(ba,{highlightHtml:()=>ya,highlightHtmlColorCssVariable:()=>Ul,highlightHtmlStyles:()=>bu});var sr=class e{constructor(t,r=!0,o=[],n=5e3){this.ctx=t,this.iframes=r,this.exclude=o,this.iframesTimeout=n}static matches(t,r){let o=typeof r=="string"?[r]:r,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(t,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let t,r=[];return typeof this.ctx>"u"||!this.ctx?t=[]:NodeList.prototype.isPrototypeOf(this.ctx)?t=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?t=this.ctx:typeof this.ctx=="string"?t=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):t=[this.ctx],t.forEach(o=>{let n=r.filter(a=>a.contains(o)).length>0;r.indexOf(o)===-1&&!n&&r.push(o)}),r}getIframeContents(t,r,o=()=>{}){let n;try{let a=t.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&r(n)}isIframeBlank(t){let r="about:blank",o=t.getAttribute("src").trim();return t.contentWindow.location.href===r&&o!==r&&o}observeIframeLoad(t,r,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,r,o))}catch{o()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,r,o){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,r,o):this.getIframeContents(t,r,o):this.observeIframeLoad(t,r,o)}catch{o()}}waitForIframes(t,r){let o=0;this.forEachIframe(t,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||r()})},n=>{n||r()})}forEachIframe(t,r,o,n=()=>{}){let a=t.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let c=()=>{--s<=0&&n(l)};s||c(),a.forEach(p=>{e.matches(p,this.exclude)?c():this.onIframeReady(p,u=>{r(p)&&(l++,o(u)),c()},c)})}createIterator(t,r,o){return document.createNodeIterator(t,r,o,!1)}createInstanceOnIframe(t){return new e(t.querySelector("html"),this.iframes)}compareNodeIframe(t,r,o){let n=t.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let r=t.previousNode(),o;return r===null?o=t.nextNode():o=t.nextNode()&&t.nextNode(),{prevNode:r,node:o}}checkIframeFilter(t,r,o,n){let a=!1,s=!1;return n.forEach((l,c)=>{l.val===o&&(a=c,s=l.handled)}),this.compareNodeIframe(t,r,o)?(a===!1&&!s?n.push({val:o,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:o,handled:!1}),!1)}handleOpenIframes(t,r,o,n){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,o,n)})})}iterateThroughNodes(t,r,o,n,a){let s=this.createIterator(r,t,n),l=[],c=[],p,u,h=()=>({prevNode:u,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(r,y=>this.checkIframeFilter(p,u,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(t,b=>c.push(b),n)}),c.push(p);c.forEach(y=>{o(y)}),this.iframes&&this.handleOpenIframes(l,t,o,n),a()}forEachNode(t,r,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let c=()=>{this.iterateThroughNodes(t,l,r,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,c):c()})}};var yo=class{constructor(t){this.ctx=t,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new sr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,r="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[r]=="function"&&o[r](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return this.opt.wildcards!=="disabled"&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),this.opt.wildcards!=="disabled"&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t),t}createSynonymsRegExp(t){let r=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&c!==""&&(t=t.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(c)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(c)})`+n))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return t=t.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let r=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(r,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(t){let r=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&r.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?t.split(/\u0000+/).join(`[${r.join("")}]*`):t}createDiacriticsRegExp(t){let r=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return t.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;t=t.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,n=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${t})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let r=[];return t.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):o.trim()&&r.indexOf(o)===-1&&r.push(o)}),{keywords:r.sort((o,n)=>n.length-o.length),length:r.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||Object.prototype.toString.call(t[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];let r=[],o=0;return t.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,o);l&&(n.start=a,n.length=s-a,r.push(n),o=s)}),r}callNoMatchOnInvalidRanges(t,r){let o,n,a=!1;return t&&typeof t.start<"u"?(o=parseInt(t.start,10),n=o+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&n-r>0&&n-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:o,end:n,valid:a}}checkWhitespaceRanges(t,r,o){let n,a=!0,s=o.length,l=r-s,c=parseInt(t.start,10)-l;return c=c>s?s:c,n=c+parseInt(t.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),c<0||n-c<0||c>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):o.substring(c,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:c,end:n,valid:a}}getTextNodes(t){let r="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:r,nodes:o})})}matchesExclude(t){return sr.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,r,o){let n=this.opt.element?this.opt.element:"mark",a=t.splitText(r),s=a.splitText(o-r),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,r,o,n,a){t.nodes.every((s,l)=>{let c=t.nodes[l+1];if(typeof c>"u"||c.start>r){if(!n(s.node))return!1;let p=r-s.start,u=(o>s.end?s.end:o)-s.start,h=t.value.substr(0,s.start),y=t.value.substr(u+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,u),t.value=h+y,t.nodes.forEach((b,v)=>{v>=l&&(t.nodes[v].start>0&&v!==l&&(t.nodes[v].start-=u),t.nodes[v].end-=u)}),o-=u,a(s.node.previousSibling,s.start),o>s.end)r=s.end;else return!1}return!0})}wrapMatches(t,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(c=>{c=c.node;let p;for(;(p=t.exec(c.textContent))!==null&&p[s]!=="";){if(!o(p[s],c))continue;let u=p.index;if(s!==0)for(let h=1;h<s;h++)u+=p[h].length;c=this.wrapRangeInTextNode(c,u,u+p[s].length),n(c.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,r,o,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let c;for(;(c=t.exec(l.value))!==null&&c[s]!=="";){let p=c.index;if(s!==0)for(let h=1;h<s;h++)p+=c[h].length;let u=p+c[s].length;this.wrapRangeInMappedTextNode(l,p,u,h=>o(c[s],h),(h,y)=>{t.lastIndex=y,n(h)})}a()})}wrapRangeFromIndex(t,r,o,n){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,c)=>{let{start:p,end:u,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,u,y=>r(y,l,a.value.substring(p,u),c),y=>{o(y,l)})}),n()})}unwrapMatches(t){let r=t.parentNode,o=document.createDocumentFragment();for(;t.firstChild;)o.appendChild(t.removeChild(t.firstChild));r.replaceChild(o,t),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(t){if(t){if(t.nodeType===3)for(;t.nextSibling&&t.nextSibling.nodeType===3;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,r){this.opt=r,this.log(`Searching with expression "${t}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](t,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(t),this.opt.done(o)})}mark(t,r){this.opt=r;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",c=p=>{let u=new RegExp(this.createRegExp(p),`gm${l}`),h=0;this.log(`Searching with expression "${u}"`),this[n](u,1,(y,b)=>this.opt.filter(b,p,o,h),y=>{h++,o++,this.opt.each(y)},()=>{h===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(t,r){this.opt=r;let o=0,n=this.checkRanges(t);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,c)=>this.opt.filter(a,s,l,c),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(t){this.opt=t;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=sr.matches(o,r),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function ma(e){let t=new yo(e);return this.mark=(r,o)=>(t.mark(r,o),this),this.markRegExp=(r,o)=>(t.markRegExp(r,o),this),this.markRanges=(r,o)=>(t.markRanges(r,o),this),this.unmark=r=>(t.unmark(r),this),this}var yu=ma,Ul=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),bu=P`
1
+ "use strict";(()=>{var Ud=Object.create;var Ji=Object.defineProperty;var Md=Object.getOwnPropertyDescriptor;var Bd=Object.getOwnPropertyNames;var Fd=Object.getPrototypeOf,Wd=Object.prototype.hasOwnProperty;var zd=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),st=(e,t)=>{for(var r in t)Ji(e,r,{get:t[r],enumerable:!0})},Hd=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Bd(t))!Wd.call(e,n)&&n!==r&&Ji(e,n,{get:()=>t[n],enumerable:!(o=Md(t,n))||o.enumerable});return e};var Gd=(e,t,r)=>(r=e!=null?Ud(Fd(e)):{},Hd(t||!e||!e.__esModule?Ji(r,"default",{value:e,enumerable:!0}):r,e));var gd=zd(md=>{(function(e){var t=function(r){var o={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};function n(b){return b&&DataView.prototype.isPrototypeOf(b)}if(o.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(b){return b&&s.indexOf(Object.prototype.toString.call(b))>-1};function l(b){if(typeof b!="string"&&(b=String(b)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(b))throw new TypeError("Invalid character in header field name");return b.toLowerCase()}function d(b){return typeof b!="string"&&(b=String(b)),b}function u(b){var C={next:function(){var T=b.shift();return{done:T===void 0,value:T}}};return o.iterable&&(C[Symbol.iterator]=function(){return C}),C}function h(b){this.map={},b instanceof h?b.forEach(function(C,T){this.append(T,C)},this):Array.isArray(b)?b.forEach(function(C){this.append(C[0],C[1])},this):b&&Object.getOwnPropertyNames(b).forEach(function(C){this.append(C,b[C])},this)}h.prototype.append=function(b,C){b=l(b),C=d(C);var T=this.map[b];this.map[b]=T?T+", "+C:C},h.prototype.delete=function(b){delete this.map[l(b)]},h.prototype.get=function(b){return b=l(b),this.has(b)?this.map[b]:null},h.prototype.has=function(b){return this.map.hasOwnProperty(l(b))},h.prototype.set=function(b,C){this.map[l(b)]=d(C)},h.prototype.forEach=function(b,C){for(var T in this.map)this.map.hasOwnProperty(T)&&b.call(C,this.map[T],T,this)},h.prototype.keys=function(){var b=[];return this.forEach(function(C,T){b.push(T)}),u(b)},h.prototype.values=function(){var b=[];return this.forEach(function(C){b.push(C)}),u(b)},h.prototype.entries=function(){var b=[];return this.forEach(function(C,T){b.push([T,C])}),u(b)},o.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function y(b){if(b.bodyUsed)return Promise.reject(new TypeError("Already read"));b.bodyUsed=!0}function v(b){return new Promise(function(C,T){b.onload=function(){C(b.result)},b.onerror=function(){T(b.error)}})}function S(b){var C=new FileReader,T=v(C);return C.readAsArrayBuffer(b),T}function O(b){var C=new FileReader,T=v(C);return C.readAsText(b),T}function N(b){for(var C=new Uint8Array(b),T=new Array(C.length),Y=0;Y<C.length;Y++)T[Y]=String.fromCharCode(C[Y]);return T.join("")}function k(b){if(b.slice)return b.slice(0);var C=new Uint8Array(b.byteLength);return C.set(new Uint8Array(b)),C.buffer}function L(){return this.bodyUsed=!1,this._initBody=function(b){this._bodyInit=b,b?typeof b=="string"?this._bodyText=b:o.blob&&Blob.prototype.isPrototypeOf(b)?this._bodyBlob=b:o.formData&&FormData.prototype.isPrototypeOf(b)?this._bodyFormData=b:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)?this._bodyText=b.toString():o.arrayBuffer&&o.blob&&n(b)?(this._bodyArrayBuffer=k(b.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(b)||c(b))?this._bodyArrayBuffer=k(b):this._bodyText=b=Object.prototype.toString.call(b):this._bodyText="",this.headers.get("content-type")||(typeof b=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(b)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var b=y(this);if(b)return b;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?y(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(S)}),this.text=function(){var b=y(this);if(b)return b;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(N(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(R)}),this.json=function(){return this.text().then(JSON.parse)},this}var U=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function E(b){var C=b.toUpperCase();return U.indexOf(C)>-1?C:b}function w(b,C){C=C||{};var T=C.body;if(b instanceof w){if(b.bodyUsed)throw new TypeError("Already read");this.url=b.url,this.credentials=b.credentials,C.headers||(this.headers=new h(b.headers)),this.method=b.method,this.mode=b.mode,this.signal=b.signal,!T&&b._bodyInit!=null&&(T=b._bodyInit,b.bodyUsed=!0)}else this.url=String(b);if(this.credentials=C.credentials||this.credentials||"same-origin",(C.headers||!this.headers)&&(this.headers=new h(C.headers)),this.method=E(C.method||this.method||"GET"),this.mode=C.mode||this.mode||null,this.signal=C.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&T)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(T)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})};function R(b){var C=new FormData;return b.trim().split("&").forEach(function(T){if(T){var Y=T.split("="),mt=Y.shift().replace(/\+/g," "),tt=Y.join("=").replace(/\+/g," ");C.append(decodeURIComponent(mt),decodeURIComponent(tt))}}),C}function F(b){var C=new h,T=b.replace(/\r?\n[\t ]+/g," ");return T.split(/\r?\n/).forEach(function(Y){var mt=Y.split(":"),tt=mt.shift().trim();if(tt){var Lo=mt.join(":").trim();C.append(tt,Lo)}}),C}L.call(w.prototype);function K(b,C){C||(C={}),this.type="default",this.status=C.status===void 0?200:C.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in C?C.statusText:"OK",this.headers=new h(C.headers),this.url=C.url||"",this._initBody(b)}L.call(K.prototype),K.prototype.clone=function(){return new K(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},K.error=function(){var b=new K(null,{status:0,statusText:""});return b.type="error",b};var It=[301,302,303,307,308];K.redirect=function(b,C){if(It.indexOf(C)===-1)throw new RangeError("Invalid status code");return new K(null,{status:C,headers:{location:b}})},r.DOMException=e.DOMException;try{new r.DOMException}catch{r.DOMException=function(C,T){this.message=C,this.name=T;var Y=Error(C);this.stack=Y.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Q(b,C){return new Promise(function(T,Y){var mt=new w(b,C);if(mt.signal&&mt.signal.aborted)return Y(new r.DOMException("Aborted","AbortError"));var tt=new XMLHttpRequest;function Lo(){tt.abort()}tt.onload=function(){var jr={status:tt.status,statusText:tt.statusText,headers:F(tt.getAllResponseHeaders()||"")};jr.url="responseURL"in tt?tt.responseURL:jr.headers.get("X-Request-URL");var Xi="response"in tt?tt.response:tt.responseText;T(new K(Xi,jr))},tt.onerror=function(){Y(new TypeError("Network request failed"))},tt.ontimeout=function(){Y(new TypeError("Network request failed"))},tt.onabort=function(){Y(new r.DOMException("Aborted","AbortError"))},tt.open(mt.method,mt.url,!0),mt.credentials==="include"?tt.withCredentials=!0:mt.credentials==="omit"&&(tt.withCredentials=!1),"responseType"in tt&&o.blob&&(tt.responseType="blob"),mt.headers.forEach(function(jr,Xi){tt.setRequestHeader(Xi,jr)}),mt.signal&&(mt.signal.addEventListener("abort",Lo),tt.onreadystatechange=function(){tt.readyState===4&&mt.signal.removeEventListener("abort",Lo)}),tt.send(typeof mt._bodyInit>"u"?null:mt._bodyInit)})}return Q.polyfill=!0,e.fetch||(e.fetch=Q,e.Headers=h,e.Request=w,e.Response=K),r.Headers=h,r.Request=w,r.Response=K,r.fetch=Q,Object.defineProperty(r,"__esModule",{value:!0}),r}({})})(typeof self<"u"?self:md)});if(!ShadowRoot.prototype.createElement){let e=window.HTMLElement,t=window.customElements.define,r=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,c=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(E,w){if(E=E.toLowerCase(),this._getDefinition(E)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${E}" has already been used with this registry`);if(this._definitionsByClass.get(w)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let R=w.prototype.attributeChangedCallback,F=new Set(w.observedAttributes||[]);v(w,F,R);let K={elementClass:w,connectedCallback:w.prototype.connectedCallback,disconnectedCallback:w.prototype.disconnectedCallback,adoptedCallback:w.prototype.adoptedCallback,attributeChangedCallback:R,formAssociated:w.formAssociated,formAssociatedCallback:w.prototype.formAssociatedCallback,formDisabledCallback:w.prototype.formDisabledCallback,formResetCallback:w.prototype.formResetCallback,formStateRestoreCallback:w.prototype.formStateRestoreCallback,observedAttributes:F};this._definitionsByTag.set(E,K),this._definitionsByClass.set(w,K);let It=r.call(o,E);It||(It=y(E),t.call(o,E,It)),this===window.customElements&&(c.set(w,K),K.standInClass=It);let Q=this._awaitingUpgrade.get(E);if(Q){this._awaitingUpgrade.delete(E);for(let C of Q)s.delete(C),O(C,K,!0)}let b=this._whenDefinedPromises.get(E);return b!==void 0&&(b.resolve(w),this._whenDefinedPromises.delete(E)),w}upgrade(){k.push(this),o.upgrade.apply(o,arguments),k.pop()}get(E){return this._definitionsByTag.get(E)?.elementClass}_getDefinition(E){return this._definitionsByTag.get(E)}whenDefined(E){let w=this._getDefinition(E);if(w!==void 0)return Promise.resolve(w.elementClass);let R=this._whenDefinedPromises.get(E);return R===void 0&&(R={},R.promise=new Promise(F=>R.resolve=F),this._whenDefinedPromises.set(E,R)),R.promise}_upgradeWhenDefined(E,w,R){let F=this._awaitingUpgrade.get(w);F||this._awaitingUpgrade.set(w,F=new Set),R?F.add(E):F.delete(E)}};let d;window.HTMLElement=function(){let w=d;if(w)return d=void 0,w;let R=c.get(this.constructor);if(!R)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return w=Reflect.construct(e,[],R.standInClass),Object.setPrototypeOf(w,this.constructor.prototype),n.set(w,R),w},window.HTMLElement.prototype=e.prototype;let u=E=>E===document||E instanceof ShadowRoot,h=E=>{let w=E.getRootNode();if(!u(w)){let R=k[k.length-1];if(R instanceof CustomElementRegistry)return R;w=R.getRootNode(),u(w)||(w=l.get(w)?.getRootNode()||document)}return w.customElements},y=E=>class{static get formAssociated(){return!0}constructor(){let R=Reflect.construct(e,[],this.constructor);Object.setPrototypeOf(R,HTMLElement.prototype);let F=h(R)||window.customElements,K=F._getDefinition(E);return K?O(R,K):s.set(R,F),R}connectedCallback(){let R=n.get(this);R?R.connectedCallback&&R.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,E,!0)}disconnectedCallback(){let R=n.get(this);R?R.disconnectedCallback&&R.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,E,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let R=n.get(this);R&&R.formAssociated&&R?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let R=n.get(this);R?.formAssociated&&R?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let R=n.get(this);R?.formAssociated&&R?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let R=n.get(this);R?.formAssociated&&R?.formStateRestoreCallback?.apply(this,arguments)}},v=(E,w,R)=>{if(w.size===0||R===void 0)return;let F=E.prototype.setAttribute;F&&(E.prototype.setAttribute=function(Q,b){let C=Q.toLowerCase();if(w.has(C)){let T=this.getAttribute(C);F.call(this,C,b),R.call(this,C,T,b)}else F.call(this,C,b)});let K=E.prototype.removeAttribute;K&&(E.prototype.removeAttribute=function(Q){let b=Q.toLowerCase();if(w.has(b)){let C=this.getAttribute(b);K.call(this,b),R.call(this,b,C,null)}else K.call(this,b)});let It=E.prototype.toggleAttribute;It&&(E.prototype.toggleAttribute=function(Q,b){let C=Q.toLowerCase();if(w.has(C)){let T=this.getAttribute(C);It.call(this,C,b);let Y=this.getAttribute(C);R.call(this,C,T,Y)}else It.call(this,C,b)})},S=E=>{let w=Object.getPrototypeOf(E);if(w!==window.HTMLElement)return w===e?Object.setPrototypeOf(E,window.HTMLElement):S(w)},O=(E,w,R=!1)=>{Object.setPrototypeOf(E,w.elementClass.prototype),n.set(E,w),d=E;try{new w.elementClass}catch{S(w.elementClass),new w.elementClass}w.attributeChangedCallback&&w.observedAttributes.forEach(F=>{E.hasAttribute(F)&&w.attributeChangedCallback.call(E,F,null,E.getAttribute(F))}),R&&w.connectedCallback&&E.isConnected&&w.connectedCallback.call(E)},N=Element.prototype.attachShadow;Element.prototype.attachShadow=function(E){let w=N.apply(this,arguments);return E.customElements&&(w.customElements=E.customElements),w};let k=[document],L=(E,w,R=void 0)=>{let F=(R?Object.getPrototypeOf(R):E.prototype)[w];E.prototype[w]=function(){k.push(this);let K=F.apply(R||this,arguments);return K!==void 0&&l.set(K,this),k.pop(),K}};L(ShadowRoot,"createElement",document),L(ShadowRoot,"importNode",document),L(Element,"insertAdjacentHTML");let U=(E,w)=>{let R=Object.getOwnPropertyDescriptor(E.prototype,w);Object.defineProperty(E.prototype,w,{...R,set(F){k.push(this),R.set.call(this,F),k.pop()}})};if(U(Element,"innerHTML"),U(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let E=new WeakMap,w=HTMLElement.prototype.attachInternals,R=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...Q){let b=w.call(this,...Q);return E.set(b,this),b},R.forEach(Q=>{let b=window.ElementInternals.prototype,C=b[Q];b[Q]=function(...T){let Y=E.get(this);if(n.get(Y).formAssociated===!0)return C?.call(this,...T);throw new DOMException(`Failed to execute ${C} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class F extends Array{constructor(b){super(...b),this._elements=b}get value(){return this._elements.find(b=>b.checked===!0)?.value||""}}class K{constructor(b){let C=new Map;b.forEach((T,Y)=>{let mt=T.getAttribute("name"),tt=C.get(mt)||[];this[+Y]=T,tt.push(T),C.set(mt,tt)}),this.length=b.length,C.forEach((T,Y)=>{T&&(T.length===1?this[Y]=T[0]:this[Y]=new F(T))})}namedItem(b){return this[b]}}let It=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let Q=It.get.call(this,[]),b=[];for(let C of Q){let T=n.get(C);(!T||T.formAssociated===!0)&&b.push(C)}return new K(b)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(r,o,n)=>{if(o!==null)try{t.bind(window.customElements)(r,o,n)}catch(s){console.info(r,o,n,s)}}}var fn={};st(fn,{CSSResult:()=>Er,LitElement:()=>xe,ReactiveElement:()=>ae,_$LE:()=>hp,_$LH:()=>pp,adoptStyles:()=>qo,css:()=>P,defaultConverter:()=>Yo,getCompatibleStyle:()=>ro,html:()=>D,isServer:()=>Vu,noChange:()=>Te,notEqual:()=>an,nothing:()=>z,render:()=>pn,supportsAdoptingStyleSheets:()=>eo,svg:()=>dp,unsafeCSS:()=>Jt});var $o=globalThis,Uo=$o.ShadowRoot&&($o.ShadyCSS===void 0||$o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Es=Symbol(),ws=new WeakMap,Do=class{constructor(t,r,o){if(this._$cssResult$=!0,o!==Es)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Uo&&t===void 0){let o=r!==void 0&&r.length===1;o&&(t=ws.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&ws.set(r,t))}return t}toString(){return this.cssText}},Ns=e=>new Do(typeof e=="string"?e:e+"",void 0,Es);var Qi=(e,t)=>{if(Uo)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let o=document.createElement("style"),n=$o.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,e.appendChild(o)}},Mo=Uo?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let o of t.cssRules)r+=o.cssText;return Ns(r)})(e):e;var{is:Kd,defineProperty:Vd,getOwnPropertyDescriptor:Zd,getOwnPropertyNames:jd,getOwnPropertySymbols:qd,getPrototypeOf:Yd}=Object,Bo=globalThis,Rs=Bo.trustedTypes,Xd=Rs?Rs.emptyScript:"",Jd=Bo.reactiveElementPolyfillSupport,qr=(e,t)=>e,Yr={toAttribute(e,t){switch(t){case Boolean:e=e?Xd:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Fo=(e,t)=>!Kd(e,t),As={attribute:!0,type:String,converter:Yr,reflect:!1,hasChanged:Fo};Symbol.metadata??=Symbol("metadata"),Bo.litPropertyMetadata??=new WeakMap;var Xe=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=As){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(t,o,r);n!==void 0&&Vd(this.prototype,t,n)}}static getPropertyDescriptor(t,r,o){let{get:n,set:s}=Zd(this.prototype,t)??{get(){return this[r]},set(c){this[r]=c}};return{get(){return n?.call(this)},set(c){let l=n?.call(this);s.call(this,c),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??As}static _$Ei(){if(this.hasOwnProperty(qr("elementProperties")))return;let t=Yd(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(qr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(qr("properties"))){let r=this.properties,o=[...jd(r),...qd(r)];for(let n of o)this.createProperty(n,r[n])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let n of o)r.unshift(Mo(n))}else t!==void 0&&r.push(Mo(t));return r}static _$Eu(t,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,r=this.constructor.elementProperties;for(let o of r.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Qi(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,o){this._$AK(t,o)}_$EO(t,r){let o=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,o);if(n!==void 0&&o.reflect===!0){let s=(o.converter?.toAttribute!==void 0?o.converter:Yr).toAttribute(r,o.type);this._$Em=t,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(t,r){let o=this.constructor,n=o._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let s=o.getPropertyOptions(n),c=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:Yr;this._$Em=n,this[n]=c.fromAttribute(r,s.type),this._$Em=null}}requestUpdate(t,r,o,n=!1,s){if(t!==void 0){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Fo)(n?s:this[t],r))return;this.C(t,r,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,r,o){this._$AL.has(t)||this._$AL.set(t,r),o.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,s]of o)s.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],s)}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$E_?.forEach(r=>r.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(r=>this._$EO(r,this[r])),this._$ET()}updated(t){}firstUpdated(t){}};Xe.elementStyles=[],Xe.shadowRootOptions={mode:"open"},Xe[qr("elementProperties")]=new Map,Xe[qr("finalized")]=new Map,Jd?.({ReactiveElement:Xe}),(Bo.reactiveElementVersions??=[]).push("2.0.2");var en=globalThis,Wo=en.trustedTypes,Is=Wo?Wo.createPolicy("lit-html",{createHTML:e=>e}):void 0,rn="$lit$",ye=`lit$${(Math.random()+"").slice(9)}$`,on="?"+ye,Qd=`<${on}>`,tr=document,zo=()=>tr.createComment(""),Jr=e=>e===null||typeof e!="object"&&typeof e!="function",$s=Array.isArray,Ds=e=>$s(e)||typeof e?.[Symbol.iterator]=="function",tn=`[
2
+ \f\r]`,Xr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_s=/-->/g,Ts=/>/g,Je=RegExp(`>|${tn}(?:([^\\s"'>=/]+)(${tn}*=${tn}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ps=/'/g,ks=/"/g,Us=/^(?:script|style|textarea|title)$/i,Ms=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Bs=Ms(1),Fs=Ms(2),Ht=Symbol.for("lit-noChange"),ft=Symbol.for("lit-nothing"),Ls=new WeakMap,Qe=tr.createTreeWalker(tr,129);function Ws(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Is!==void 0?Is.createHTML(t):t}var zs=(e,t)=>{let r=e.length-1,o=[],n,s=t===2?"<svg>":"",c=Xr;for(let l=0;l<r;l++){let d=e[l],u,h,y=-1,v=0;for(;v<d.length&&(c.lastIndex=v,h=c.exec(d),h!==null);)v=c.lastIndex,c===Xr?h[1]==="!--"?c=_s:h[1]!==void 0?c=Ts:h[2]!==void 0?(Us.test(h[2])&&(n=RegExp("</"+h[2],"g")),c=Je):h[3]!==void 0&&(c=Je):c===Je?h[0]===">"?(c=n??Xr,y=-1):h[1]===void 0?y=-2:(y=c.lastIndex-h[2].length,u=h[1],c=h[3]===void 0?Je:h[3]==='"'?ks:Ps):c===ks||c===Ps?c=Je:c===_s||c===Ts?c=Xr:(c=Je,n=void 0);let S=c===Je&&e[l+1].startsWith("/>")?" ":"";s+=c===Xr?d+Qd:y>=0?(o.push(u),d.slice(0,y)+rn+d.slice(y)+ye+S):d+ye+(y===-2?l:S)}return[Ws(e,s+(e[r]||"<?>")+(t===2?"</svg>":"")),o]},Qr=class e{constructor({strings:t,_$litType$:r},o){let n;this.parts=[];let s=0,c=0,l=t.length-1,d=this.parts,[u,h]=zs(t,r);if(this.el=e.createElement(u,o),Qe.currentNode=this.el.content,r===2){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(n=Qe.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let y of n.getAttributeNames())if(y.endsWith(rn)){let v=h[c++],S=n.getAttribute(y).split(ye),O=/([.?@])?(.*)/.exec(v);d.push({type:1,index:s,name:O[2],strings:S,ctor:O[1]==="."?Go:O[1]==="?"?Ko:O[1]==="@"?Vo:rr}),n.removeAttribute(y)}else y.startsWith(ye)&&(d.push({type:6,index:s}),n.removeAttribute(y));if(Us.test(n.tagName)){let y=n.textContent.split(ye),v=y.length-1;if(v>0){n.textContent=Wo?Wo.emptyScript:"";for(let S=0;S<v;S++)n.append(y[S],zo()),Qe.nextNode(),d.push({type:2,index:++s});n.append(y[v],zo())}}}else if(n.nodeType===8)if(n.data===on)d.push({type:2,index:s});else{let y=-1;for(;(y=n.data.indexOf(ye,y+1))!==-1;)d.push({type:7,index:s}),y+=ye.length-1}s++}}static createElement(t,r){let o=tr.createElement("template");return o.innerHTML=t,o}};function er(e,t,r=e,o){if(t===Ht)return t;let n=o!==void 0?r._$Co?.[o]:r._$Cl,s=Jr(t)?void 0:t._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(e),n._$AT(e,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(t=er(e,n._$AS(e,t.values),n,o)),t}var Ho=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:o}=this._$AD,n=(t?.creationScope??tr).importNode(r,!0);Qe.currentNode=n;let s=Qe.nextNode(),c=0,l=0,d=o[0];for(;d!==void 0;){if(c===d.index){let u;d.type===2?u=new to(s,s.nextSibling,this,t):d.type===1?u=new d.ctor(s,d.name,d.strings,this,t):d.type===6&&(u=new Zo(s,this,t)),this._$AV.push(u),d=o[++l]}c!==d?.index&&(s=Qe.nextNode(),c++)}return Qe.currentNode=tr,n}p(t){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,r),r+=o.strings.length-2):o._$AI(t[r])),r++}},to=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,o,n){this.type=2,this._$AH=ft,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=er(this,t,r),Jr(t)?t===ft||t==null||t===""?(this._$AH!==ft&&this._$AR(),this._$AH=ft):t!==this._$AH&&t!==Ht&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Ds(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!==ft&&Jr(this._$AH)?this._$AA.nextSibling.data=t:this.$(tr.createTextNode(t)),this._$AH=t}g(t){let{values:r,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=Qr.createElement(Ws(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new Ho(n,this),c=s.u(this.options);s.p(r),this.$(c),this._$AH=s}}_$AC(t){let r=Ls.get(t.strings);return r===void 0&&Ls.set(t.strings,r=new Qr(t)),r}T(t){$s(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let s of t)n===r.length?r.push(o=new e(this.k(zo()),this.k(zo()),this,this.options)):o=r[n],o._$AI(s),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},rr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,o,n,s){this.type=1,this._$AH=ft,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ft}_$AI(t,r=this,o,n){let s=this.strings,c=!1;if(s===void 0)t=er(this,t,r,0),c=!Jr(t)||t!==this._$AH&&t!==Ht,c&&(this._$AH=t);else{let l=t,d,u;for(t=s[0],d=0;d<s.length-1;d++)u=er(this,l[o+d],r,d),u===Ht&&(u=this._$AH[d]),c||=!Jr(u)||u!==this._$AH[d],u===ft?t=ft:t!==ft&&(t+=(u??"")+s[d+1]),this._$AH[d]=u}c&&!n&&this.O(t)}O(t){t===ft?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Go=class extends rr{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ft?void 0:t}},Ko=class extends rr{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ft)}},Vo=class extends rr{constructor(t,r,o,n,s){super(t,r,o,n,s),this.type=5}_$AI(t,r=this){if((t=er(this,t,r,0)??ft)===Ht)return;let o=this._$AH,n=t===ft&&o!==ft||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==ft&&(o===ft||n);n&&this.element.removeEventListener(this.name,this,o),s&&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)}},Zo=class{constructor(t,r,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){er(this,t)}},Hs={j:rn,P:ye,A:on,C:1,M:zs,L:Ho,R:Ds,V:er,D:to,I:rr,H:Ko,N:Vo,U:Go,B:Zo},tp=en.litHtmlPolyfillSupport;tp?.(Qr,to),(en.litHtmlVersions??=[]).push("3.1.0");var jo=globalThis,eo=jo.ShadowRoot&&(jo.ShadyCSS===void 0||jo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nn=Symbol(),Gs=new WeakMap,Er=class{constructor(t,r,o){if(this._$cssResult$=!0,o!==nn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(eo&&t===void 0){let o=r!==void 0&&r.length===1;o&&(t=Gs.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Gs.set(r,t))}return t}toString(){return this.cssText}},Jt=e=>new Er(typeof e=="string"?e:e+"",void 0,nn),P=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((o,n,s)=>o+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[s+1],e[0]);return new Er(r,e,nn)},qo=(e,t)=>{if(eo)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let o=document.createElement("style"),n=jo.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,e.appendChild(o)}},ro=eo?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let o of t.cssRules)r+=o.cssText;return Jt(r)})(e):e;var{is:ep,defineProperty:rp,getOwnPropertyDescriptor:op,getOwnPropertyNames:ip,getOwnPropertySymbols:np,getPrototypeOf:ap}=Object,Xo=globalThis,Ks=Xo.trustedTypes,sp=Ks?Ks.emptyScript:"",cp=Xo.reactiveElementPolyfillSupport,oo=(e,t)=>e,Yo={toAttribute(e,t){switch(t){case Boolean:e=e?sp:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},an=(e,t)=>!ep(e,t),Vs={attribute:!0,type:String,converter:Yo,reflect:!1,hasChanged:an};Symbol.metadata??=Symbol("metadata"),Xo.litPropertyMetadata??=new WeakMap;var ae=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Vs){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(t,o,r);n!==void 0&&rp(this.prototype,t,n)}}static getPropertyDescriptor(t,r,o){let{get:n,set:s}=op(this.prototype,t)??{get(){return this[r]},set(c){this[r]=c}};return{get(){return n?.call(this)},set(c){let l=n?.call(this);s.call(this,c),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Vs}static _$Ei(){if(this.hasOwnProperty(oo("elementProperties")))return;let t=ap(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 r=this.properties,o=[...ip(r),...np(r)];for(let n of o)this.createProperty(n,r[n])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let n of o)r.unshift(ro(n))}else t!==void 0&&r.push(ro(t));return r}static _$Eu(t,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,r=this.constructor.elementProperties;for(let o of r.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return qo(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,r,o){this._$AK(t,o)}_$EO(t,r){let o=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,o);if(n!==void 0&&o.reflect===!0){let s=(o.converter?.toAttribute!==void 0?o.converter:Yo).toAttribute(r,o.type);this._$Em=t,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(t,r){let o=this.constructor,n=o._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let s=o.getPropertyOptions(n),c=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:Yo;this._$Em=n,this[n]=c.fromAttribute(r,s.type),this._$Em=null}}requestUpdate(t,r,o,n=!1,s){if(t!==void 0){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??an)(n?s:this[t],r))return;this.C(t,r,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,r,o){this._$AL.has(t)||this._$AL.set(t,r),o.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,s]of o)s.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],s)}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$E_?.forEach(r=>r.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(r=>this._$EO(r,this[r])),this._$ET()}updated(t){}firstUpdated(t){}};ae.elementStyles=[],ae.shadowRootOptions={mode:"open"},ae[oo("elementProperties")]=new Map,ae[oo("finalized")]=new Map,cp?.({ReactiveElement:ae}),(Xo.reactiveElementVersions??=[]).push("2.0.2");var cn=globalThis,Jo=cn.trustedTypes,Zs=Jo?Jo.createPolicy("lit-html",{createHTML:e=>e}):void 0,ln="$lit$",be=`lit$${(Math.random()+"").slice(9)}$`,dn="?"+be,lp=`<${dn}>`,nr=document,no=()=>nr.createComment(""),ao=e=>e===null||typeof e!="object"&&typeof e!="function",Qs=Array.isArray,tc=e=>Qs(e)||typeof e?.[Symbol.iterator]=="function",sn=`[
4
+ \f\r]`,io=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,js=/-->/g,qs=/>/g,or=RegExp(`>|${sn}(?:([^\\s"'>=/]+)(${sn}*=${sn}*(?:[^
5
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ys=/'/g,Xs=/"/g,ec=/^(?:script|style|textarea|title)$/i,rc=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),D=rc(1),dp=rc(2),Te=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),Js=new WeakMap,ir=nr.createTreeWalker(nr,129);function oc(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zs!==void 0?Zs.createHTML(t):t}var ic=(e,t)=>{let r=e.length-1,o=[],n,s=t===2?"<svg>":"",c=io;for(let l=0;l<r;l++){let d=e[l],u,h,y=-1,v=0;for(;v<d.length&&(c.lastIndex=v,h=c.exec(d),h!==null);)v=c.lastIndex,c===io?h[1]==="!--"?c=js:h[1]!==void 0?c=qs:h[2]!==void 0?(ec.test(h[2])&&(n=RegExp("</"+h[2],"g")),c=or):h[3]!==void 0&&(c=or):c===or?h[0]===">"?(c=n??io,y=-1):h[1]===void 0?y=-2:(y=c.lastIndex-h[2].length,u=h[1],c=h[3]===void 0?or:h[3]==='"'?Xs:Ys):c===Xs||c===Ys?c=or:c===js||c===qs?c=io:(c=or,n=void 0);let S=c===or&&e[l+1].startsWith("/>")?" ":"";s+=c===io?d+lp:y>=0?(o.push(u),d.slice(0,y)+ln+d.slice(y)+be+S):d+be+(y===-2?l:S)}return[oc(e,s+(e[r]||"<?>")+(t===2?"</svg>":"")),o]},so=class e{constructor({strings:t,_$litType$:r},o){let n;this.parts=[];let s=0,c=0,l=t.length-1,d=this.parts,[u,h]=ic(t,r);if(this.el=e.createElement(u,o),ir.currentNode=this.el.content,r===2){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(n=ir.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let y of n.getAttributeNames())if(y.endsWith(ln)){let v=h[c++],S=n.getAttribute(y).split(be),O=/([.?@])?(.*)/.exec(v);d.push({type:1,index:s,name:O[2],strings:S,ctor:O[1]==="."?ti:O[1]==="?"?ei:O[1]==="@"?ri:sr}),n.removeAttribute(y)}else y.startsWith(be)&&(d.push({type:6,index:s}),n.removeAttribute(y));if(ec.test(n.tagName)){let y=n.textContent.split(be),v=y.length-1;if(v>0){n.textContent=Jo?Jo.emptyScript:"";for(let S=0;S<v;S++)n.append(y[S],no()),ir.nextNode(),d.push({type:2,index:++s});n.append(y[v],no())}}}else if(n.nodeType===8)if(n.data===dn)d.push({type:2,index:s});else{let y=-1;for(;(y=n.data.indexOf(be,y+1))!==-1;)d.push({type:7,index:s}),y+=be.length-1}s++}}static createElement(t,r){let o=nr.createElement("template");return o.innerHTML=t,o}};function ar(e,t,r=e,o){if(t===Te)return t;let n=o!==void 0?r._$Co?.[o]:r._$Cl,s=ao(t)?void 0:t._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(e),n._$AT(e,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(t=ar(e,n._$AS(e,t.values),n,o)),t}var Qo=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:o}=this._$AD,n=(t?.creationScope??nr).importNode(r,!0);ir.currentNode=n;let s=ir.nextNode(),c=0,l=0,d=o[0];for(;d!==void 0;){if(c===d.index){let u;d.type===2?u=new Nr(s,s.nextSibling,this,t):d.type===1?u=new d.ctor(s,d.name,d.strings,this,t):d.type===6&&(u=new oi(s,this,t)),this._$AV.push(u),d=o[++l]}c!==d?.index&&(s=ir.nextNode(),c++)}return ir.currentNode=nr,n}p(t){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,r),r+=o.strings.length-2):o._$AI(t[r])),r++}},Nr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,o,n){this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=ar(this,t,r),ao(t)?t===z||t==null||t===""?(this._$AH!==z&&this._$AR(),this._$AH=z):t!==this._$AH&&t!==Te&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):tc(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!==z&&ao(this._$AH)?this._$AA.nextSibling.data=t:this.$(nr.createTextNode(t)),this._$AH=t}g(t){let{values:r,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=so.createElement(oc(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new Qo(n,this),c=s.u(this.options);s.p(r),this.$(c),this._$AH=s}}_$AC(t){let r=Js.get(t.strings);return r===void 0&&Js.set(t.strings,r=new so(t)),r}T(t){Qs(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let s of t)n===r.length?r.push(o=new e(this.k(no()),this.k(no()),this,this.options)):o=r[n],o._$AI(s),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}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,r,o,n,s){this.type=1,this._$AH=z,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=z}_$AI(t,r=this,o,n){let s=this.strings,c=!1;if(s===void 0)t=ar(this,t,r,0),c=!ao(t)||t!==this._$AH&&t!==Te,c&&(this._$AH=t);else{let l=t,d,u;for(t=s[0],d=0;d<s.length-1;d++)u=ar(this,l[o+d],r,d),u===Te&&(u=this._$AH[d]),c||=!ao(u)||u!==this._$AH[d],u===z?t=z:t!==z&&(t+=(u??"")+s[d+1]),this._$AH[d]=u}c&&!n&&this.O(t)}O(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ti=class extends sr{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===z?void 0:t}},ei=class extends sr{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==z)}},ri=class extends sr{constructor(t,r,o,n,s){super(t,r,o,n,s),this.type=5}_$AI(t,r=this){if((t=ar(this,t,r,0)??z)===Te)return;let o=this._$AH,n=t===z&&o!==z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==z&&(o===z||n);n&&this.element.removeEventListener(this.name,this,o),s&&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)}},oi=class{constructor(t,r,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ar(this,t)}},pp={j:ln,P:be,A:dn,C:1,M:ic,L:Qo,R:tc,V:ar,D:Nr,I:sr,H:ei,N:ri,U:ti,B:oi},fp=cn.litHtmlPolyfillSupport;fp?.(so,Nr),(cn.litHtmlVersions??=[]).push("3.1.0");var pn=(e,t,r)=>{let o=r?.renderBefore??t,n=o._$litPart$;if(n===void 0){let s=r?.renderBefore??null;o._$litPart$=n=new Nr(t.insertBefore(no(),s),s,void 0,r??{})}return n._$AI(e),n};var xe=class extends ae{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=pn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Te}};xe._$litElement$=!0,xe.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:xe});var up=globalThis.litElementPolyfillSupport;up?.({LitElement:xe});var hp={_$AK:(e,t,r)=>{e._$AK(t,r)},_$AL:e=>e._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Vu=!1;var hn={};st(hn,{customElement:()=>mp,eventOptions:()=>ve,property:()=>x,query:()=>X,queryAll:()=>bp,queryAssignedElements:()=>un,queryAssignedNodes:()=>co,queryAsync:()=>xp,standardProperty:()=>nc,state:()=>V});var mp=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var gp={attribute:!0,type:String,converter:Yr,reflect:!1,hasChanged:Fo},nc=(e=gp,t,r)=>{let{kind:o,metadata:n}=r,s=globalThis.litPropertyMetadata.get(n);if(s===void 0&&globalThis.litPropertyMetadata.set(n,s=new Map),s.set(r.name,e),o==="accessor"){let{name:c}=r;return{set(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(c,d,e)},init(l){return l!==void 0&&this.C(c,void 0,e),l}}}if(o==="setter"){let{name:c}=r;return function(l){let d=this[c];t.call(this,l),this.requestUpdate(c,d,e)}}throw Error("Unsupported decorator location: "+o)};function x(e){return(t,r)=>typeof r=="object"?nc(e,t,r):((o,n,s)=>{let c=n.hasOwnProperty(s);return n.constructor.createProperty(s,c?{...o,wrapped:!0}:o),c?Object.getOwnPropertyDescriptor(n,s):void 0})(e,t,r)}function V(e){return x({...e,state:!0,attribute:!1})}function ve(e){return(t,r)=>{let o=typeof t=="function"?t:t[r];Object.assign(o,e)}}var Qt=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r);function X(e,t){return(r,o,n)=>{let s=c=>c.renderRoot?.querySelector(e)??null;if(t){let{get:c,set:l}=typeof o=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(u){this[d]=u}}})();return Qt(r,o,{get(){let d=c.call(this);return d===void 0&&(d=s(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Qt(r,o,{get(){return s(this)}})}}var yp;function bp(e){return(t,r)=>Qt(t,r,{get(){return(this.renderRoot??(yp??=document.createDocumentFragment())).querySelectorAll(e)}})}function xp(e){return(t,r)=>Qt(t,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}function un(e){return(t,r)=>{let{slot:o,selector:n}=e??{},s="slot"+(o?`[name=${o}]`:":not([name])");return Qt(t,r,{get(){let c=this.renderRoot?.querySelector(s),l=c?.assignedElements(e)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function co(e){return(t,r)=>{let{slot:o}=e??{},n="slot"+(o?`[name=${o}]`:":not([name])");return Qt(t,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(e)??[]}})}}var gn={};st(gn,{repeat:()=>mn});var Pe={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ke=e=>(...t)=>({_$litDirective$:e,values:t}),se=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,o){this._$Ct=t,this._$AM=r,this._$Ci=o}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var{D:vp}=Hs;var ac=()=>document.createComment(""),Rr=(e,t,r)=>{let o=e._$AA.parentNode,n=t===void 0?e._$AB:t._$AA;if(r===void 0){let s=o.insertBefore(ac(),n),c=o.insertBefore(ac(),n);r=new vp(s,c,e,e.options)}else{let s=r._$AB.nextSibling,c=r._$AM,l=c!==e;if(l){let d;r._$AQ?.(e),r._$AM=e,r._$AP!==void 0&&(d=e._$AU)!==c._$AU&&r._$AP(d)}if(s!==n||l){let d=r._$AA;for(;d!==s;){let u=d.nextSibling;o.insertBefore(d,n),d=u}}}return r},Le=(e,t,r=e)=>(e._$AI(t,r),e),Sp={},sc=(e,t=Sp)=>e._$AH=t,cc=e=>e._$AH,ii=e=>{e._$AP?.(!1,!0);let t=e._$AA,r=e._$AB.nextSibling;for(;t!==r;){let o=t.nextSibling;t.remove(),t=o}};var lc=(e,t,r)=>{let o=new Map;for(let n=t;n<=r;n++)o.set(e[n],n);return o},mn=ke(class extends se{constructor(e){if(super(e),e.type!==Pe.CHILD)throw Error("repeat() can only be used in text expressions")}ht(e,t,r){let o;r===void 0?r=t:t!==void 0&&(o=t);let n=[],s=[],c=0;for(let l of e)n[c]=o?o(l,c):c,s[c]=r(l,c),c++;return{values:s,keys:n}}render(e,t,r){return this.ht(e,t,r).values}update(e,[t,r,o]){let n=cc(e),{values:s,keys:c}=this.ht(t,r,o);if(!Array.isArray(n))return this.dt=c,s;let l=this.dt??=[],d=[],u,h,y=0,v=n.length-1,S=0,O=s.length-1;for(;y<=v&&S<=O;)if(n[y]===null)y++;else if(n[v]===null)v--;else if(l[y]===c[S])d[S]=Le(n[y],s[S]),y++,S++;else if(l[v]===c[O])d[O]=Le(n[v],s[O]),v--,O--;else if(l[y]===c[O])d[O]=Le(n[y],s[O]),Rr(e,d[O+1],n[y]),y++,O--;else if(l[v]===c[S])d[S]=Le(n[v],s[S]),Rr(e,n[y],n[v]),v--,S++;else if(u===void 0&&(u=lc(c,S,O),h=lc(l,y,v)),u.has(l[y]))if(u.has(l[v])){let N=h.get(c[S]),k=N!==void 0?n[N]:null;if(k===null){let L=Rr(e,n[y]);Le(L,s[S]),d[S]=L}else d[S]=Le(k,s[S]),Rr(e,n[y],k),n[N]=null;S++}else ii(n[v]),v--;else ii(n[y]),y++;for(;S<=O;){let N=Rr(e,d[O+1]);Le(N,s[S]),d[S++]=N}for(;y<=v;){let N=n[y++];N!==null&&ii(N)}return this.dt=c,sc(e,d),Ht}});var yn={};st(yn,{classMap:()=>Pt});var Pt=ke(class extends se{constructor(e){if(super(e),e.type!==Pe.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.it===void 0){this.it=new Set,e.strings!==void 0&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.st?.has(o)&&this.it.add(o);return this.render(t)}let r=e.element.classList;for(let o of this.it)o in t||(r.remove(o),this.it.delete(o));for(let o in t){let n=!!t[o];n===this.it.has(o)||this.st?.has(o)||(n?(r.add(o),this.it.add(o)):(r.remove(o),this.it.delete(o)))}return Ht}});var bn={};st(bn,{styleMap:()=>Cp});var dc="important",Op=" !"+dc,Cp=ke(class extends se{constructor(e){if(super(e),e.type!==Pe.ATTRIBUTE||e.name!=="style"||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,r)=>{let o=e[r];return o==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(e,[t]){let{style:r}=e.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(t)),this.render(t);for(let o of this.ut)t[o]==null&&(this.ut.delete(o),o.includes("-")?r.removeProperty(o):r[o]=null);for(let o in t){let n=t[o];if(n!=null){this.ut.add(o);let s=typeof n=="string"&&n.endsWith(Op);o.includes("-")||s?r.setProperty(o,s?n.slice(0,-11):n,s?dc:""):r[o]=n}}return Ht}});var vn={};st(vn,{UnsafeHTMLDirective:()=>Ar,unsafeHTML:()=>xn});var Ar=class extends se{constructor(t){if(super(t),this.et=ft,t.type!==Pe.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ft||t==null)return this.vt=void 0,this.et=t;if(t===Ht)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 r=[t];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Ar.directiveName="unsafeHTML",Ar.resultType=1;var xn=ke(Ar);var Cn={};st(Cn,{CacheRegistry:()=>ce});var On={};st(On,{CancelablePromise:()=>Ir,CanceledPromiseError:()=>cr,cancelable:()=>Sn});var cr=class extends Error{constructor(t,r,o){super(t),this.canceledPromiseResult=r,this.canceledPromiseError=o}},Ir=class extends Promise{constructor(t){super((r,o)=>t(n=>{this.isCanceled?o(new cr("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?o(new cr("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Sn=e=>new Ir((t,r)=>e.then(t).catch(r));var ce=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,r){this.loaders[t]=r,this.finalContent.delete(t)}registerFinal(t,r){this.loaders[t]=r,this.finalContent.add(t)}clearAll(){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 Ir&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){this.clearTimeouts[t]!=null&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,r){this.forceClear(t),this.register(t,async()=>r),this.content[t]=r}setFinal(t,r){this.forceClear(t),this.registerFinal(t,async()=>r),this.content[t]=r}async get(t,r,o){if(this.content[t]===void 0){if(r=r??this.loaders[t],r==null)throw new Error("Unknown cache key "+t);let n=Sn(r());return this.content[t]=n,n.then(s=>(this.content[t]=s,o!=null&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout(()=>this.clear(t),o)),s))}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 wn={};st(wn,{ClusteringHelper:()=>lo});var lo=class e{constructor(t,r,o,n){this.allResults=t,this.selectedResult=r,this.clusteringMetadata=o,this.metadataDescriptors=n}static extractResultMetadata(t,r){var o,n;let s=((n=(o=t?.map)!==null&&o!==void 0?o:t?.document)!==null&&n!==void 0?n:t?.topic).metadata;return r==null?e.flattenMetadata(s):e.flattenMetadata(s.find(c=>c.key===r))}static flattenMetadata(t){if(Array.isArray(t))return t.map(o=>e.flattenMetadata(o)).filter(o=>o!=null);let r=t?.hierarchicalValues!=null&&t.hierarchicalValues.length>0;if(!(t==null||t.values.length==0&&!r))if(r){let o=[],n=[];return t.hierarchicalValues.forEach(s=>{o.push(s.join(" > ")),s.length>2?n.push(`... > ${s[s.length-1]}`):n.push(s.join(" > "))}),{key:t.key,label:t.label,value:o.join(", "),displayValue:n.join(", ")}}else{let o=t.values.join(", ");return{key:t.key,label:t.label,value:o,displayValue:o}}}computeClustersItemsForMetadata(t,r,o="No value"){var n,s;let c=e.extractResultMetadata(this.selectedResult,t),l=(n=c?.label)!==null&&n!==void 0?n:(s=this.getMetadataDescriptor(t))===null||s===void 0?void 0:s.label;return this.allResults.map(u=>e.extractResultMetadata(u,t)).map(u=>u??{key:t,label:l,value:void 0,displayValue:o}).filter(u=>u.value!=c?.value).filter((u,h,y)=>y.findIndex(v=>v.value===u.value)===h).map(u=>({result:this.findBestResultForMetadataValue(t,u.value),metadata:u})).sort((u,h)=>this.compareMetadata(u.metadata.value,h.metadata.value,t,r))}compareMetadata(t,r,o,n){if(t==null)return-1;if(r==null)return 1;let s=this.getMetadataDescriptor(o),c=s?.sortRule||"NONE",l=s?.reverseSort||!1;if(c=="ALPHABET"||c=="VERSION"){let d=t.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(r=>t==r.key)}findBestResultForMetadataValue(t,r){let o=this.allResults.filter(d=>{var u;return((u=e.extractResultMetadata(d,t))===null||u===void 0?void 0:u.value)==r}),s=[...e.extractResultMetadata(this.selectedResult).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==t)],c,l=-1;for(let d of o){let u=this.countMatchingMetadata(d,s);if(u>l&&(l=u,c=d,u===s.length))break}return c}countMatchingMetadata(t,r){return e.extractResultMetadata(t).filter(o=>r.some(n=>n.key===o.key&&n.value===o.value)).length}};var En={};st(En,{Debouncer:()=>nt});var nt=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,o)=>{this.resolvePromise=r,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let o=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,s=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let c of o)try{await c()}catch(l){n(l);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Rn={};st(Rn,{customElement:()=>Z,isNumber:()=>fc,jsonProperty:()=>le,optionalNumberProperty:()=>_p});var Nn={};st(Nn,{dateReviver:()=>Ep,deepEqual:()=>te,delay:()=>ni,eventPathContainsMatchingElement:()=>Rp,flatDeep:()=>pc,hasChanged:()=>fo,last:()=>Ip,minmax:()=>Ap,parseDate:()=>ai,waitFor:()=>po,waitUntil:()=>wp});var ni=e=>new Promise(t=>setTimeout(t,e));async function wp(e,t=10,r=2e4){await po(async()=>await e()||void 0,t,r)}async function po(e,t=10,r=2e4){let o=await e(),n,s;for(n=s=performance.now();o==null&&(!r||s-n<r);)await ni(t),o=await e(),s=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function pc(e,t){return e.flatMap(r=>[r,...pc(t(r),t)])}function Ep(...e){return function(t,r){return e.includes(t)?ai(r):r}}function ai(e){return e.match(/^\d{4}-\d{2}-\d{2}$/)&&(e=e.replace(/-/g,"/")),e=e.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,r,o,n)=>r+o+":"+n),new Date(e)}function Np(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,o,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(o=r;o--!==0;)if(!te(e[o],t[o]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o of e.entries())if(!t.has(o[0]))return!1;for(o of e.entries())if(!te(o[1],t.get(o[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o of e.entries())if(!t.has(o[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(n=Object.keys(e),r=n.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(o=r;o--!==0;){var s=n[o];if(!te(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function te(e,t){try{return Np(e,t)}catch{return!1}}function fo(e,t){return!te(e,t)}function Rp(e,t,r=window.document.body){if(t.length>0){let o=e.composedPath();for(let n of o){if(n===r)return!1;if(n.matches&&t.some(s=>n.matches(s)))return!0}}return!1}function Ap(e,t,r){return Math.min(Math.max(e,t),r)}function Ip(e){return e[e.length-1]}var Z=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function le(e,t){let r=()=>JSON.parse(JSON.stringify(e));return x({type:Object,converter:{fromAttribute:o=>{if(o==null)return r();try{return JSON.parse(o)}catch{return r()}},toAttribute:o=>JSON.stringify(o)},hasChanged:fo,...t??{}})}function _p(e){return x({type:Object,converter:{fromAttribute:t=>{if(t!=null)return fc(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...e??{}})}function fc(e){return!isNaN(parseFloat(e))}var ra={};st(ra,{designSystemVariables:()=>I});var ea={};st(ea,{DesignSystemFamily:()=>Qn,DesignSystemSize:()=>ta,FtCssVariableFactory:()=>i,badge:()=>Dp,banner:()=>$p,breadcrumb:()=>Up,button:()=>Pp,chart:()=>Yp,checkbox:()=>Jp,chip:()=>kp,collapsible:()=>jp,comboboxMultiSelect:()=>Vp,comboboxSingleSelect:()=>Kp,drawer:()=>Fp,floatingMenu:()=>Gp,foundation:()=>f,link:()=>Lp,modal:()=>Bp,notice:()=>Xp,notification:()=>ef,pageHeader:()=>Mp,popover:()=>Zp,radio:()=>tf,resolveFamilyClass:()=>of,resolveSizeClass:()=>nf,semantic:()=>m,setVariable:()=>A,switch_:()=>qp,tabs:()=>Wp,textArea:()=>Hp,textInput:()=>zp,toggle:()=>Qp,tooltip:()=>rf,typographies:()=>uo,typographyBody1Medium:()=>kn,typographyBody1Regular:()=>Pn,typographyBody1Semibold:()=>Ln,typographyBody2Medium:()=>Dn,typographyBody2MediumUnderline:()=>uc,typographyBody2Regular:()=>$n,typographyBody2Semibold:()=>Un,typographyCaption1Bold:()=>Vn,typographyCaption1Medium:()=>Gn,typographyCaption1Semibold:()=>Kn,typographyCaption2Bold:()=>qn,typographyCaption2Medium:()=>Zn,typographyCaption2Semibold:()=>jn,typographyCaption3Bold:()=>Jn,typographyCaption3Medium:()=>Yn,typographyCaption3Semibold:()=>Xn,typographyDisplay:()=>An,typographyLabel1Bold:()=>Fn,typographyLabel1Medium:()=>Mn,typographyLabel1Semibold:()=>Bn,typographyLabel2Bold:()=>Hn,typographyLabel2Medium:()=>Wn,typographyLabel2Semibold:()=>zn,typographyTitle1:()=>In,typographyTitle2:()=>_n,typographyTitle3:()=>Tn,typographyVariants:()=>Tp});var Se=e=>typeof e=="string"?Jt(e):e,i=class{static create(t,r,o,n){let s=l=>Se(l??n),c=P`var(${Se(t)}, ${s(n)})`;return c.name=t,c.description=r,c.category=o,c.defaultValue=n,c.defaultCssValue=s,c.get=l=>P`var(${Se(t)}, ${s(l)})`,c.breadcrumb=()=>[],c.lastResortDefaultValue=()=>n,c}static extend(t,r,o,n){let s=l=>o.get(l??n),c=P`var(${Se(t)}, ${s(n)})`;return c.name=t,c.description=r,c.category=o.category,c.fallbackVariable=o,c.defaultValue=n,c.defaultCssValue=s,c.get=l=>P`var(${Se(t)}, ${s(l)})`,c.breadcrumb=()=>[o.name,...o.breadcrumb()],c.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),c}static external(t,r){let o=s=>t.fallbackVariable?t.fallbackVariable.get(s??t.defaultValue):Se(s??t.lastResortDefaultValue()),n=P`var(${Se(t.name)}, ${o(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=r,n.defaultCssValue=o,n.get=s=>P`var(${Se(t.name)}, ${o(s)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};function A(e,t){return Se(`${e.name}: ${t}`)}var f={colorWhite:i.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:i.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:i.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:i.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:i.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:i.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:i.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:i.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:i.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:i.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:i.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:i.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:i.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:i.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:i.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:i.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:i.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:i.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:i.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:i.create("--ft-opacity-0","","NUMBER","0"),opacity8:i.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:i.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:i.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:i.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:i.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:i.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:i.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:i.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:i.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:i.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:i.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:i.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:i.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},An={fontFamily:i.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:i.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-display-textCase","","UNKNOWN","none")},In={fontFamily:i.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:i.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},_n={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")},Tn={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")},Pn={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")},kn={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")},Ln={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")},$n={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")},Dn={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")},uc={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")},Un={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")},Mn={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")},Bn={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")},Fn={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")},Wn={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")},zn={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")},Hn={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")},Gn={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")},Kn={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")},Vn={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")},Zn={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")},jn={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")},qn={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")},Yn={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")},Xn={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")},Jn={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")},uo={display:An,"title-1":In,"title-2":_n,"title-3":Tn,"body-1-regular":Pn,"body-1-medium":kn,"body-1-semibold":Ln,"body-2-regular":$n,"body-2-medium":Dn,"body-2-medium-underline":uc,"body-2-semibold":Un,"label-1-medium":Mn,"label-1-semibold":Bn,"label-1-bold":Fn,"label-2-medium":Wn,"label-2-semibold":zn,"label-2-bold":Hn,"caption-1-medium":Gn,"caption-1-semibold":Kn,"caption-1-bold":Vn,"caption-2-medium":Zn,"caption-2-semibold":jn,"caption-2-bold":qn,"caption-3-medium":Yn,"caption-3-semibold":Xn,"caption-3-bold":Jn},Tp=["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 m={backgroundActionPrimary:i.extend("--ft-background-action-primary","Used as backgorund of primary action components.",f.colorBrand0),backgroundErrorSubtle:i.extend("--ft-background-error-subtle","Used as background of subtle error components.",f.colorRed10),backgroundInfoSubtle:i.extend("--ft-background-info-subtle","Used as background of subtle information components.",f.colorCyan10),backgroundWarningSubtle:i.extend("--ft-background-warning-subtle","Used as background of subtle information components.",f.colorOrange10),backgroundSuccessSubtle:i.extend("--ft-background-success-subtle","Used as background of subtle success components.",f.colorGreen10),backgroundGlobalSurface:i.extend("--ft-background-global-surface","Used as app background.",f.colorWhite),backgroundGlobalOnSurface:i.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",f.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",f.colorGray30),contentActionPrimary:i.extend("--ft-content-action-primary","Used on label of primary action on light surface.",f.colorBrand0),contentWarningPrimary:i.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",f.colorOrange200),contentWarningIconOnly:i.extend("--ft-content-warning-icon-only","Used on warning status icons alone",f.colorOrange0),contentErrorPrimary:i.extend("--ft-content-error-primary","Used on label of error messages on light surface.",f.colorRed0),contentErrorIconOnly:i.extend("--ft-content-error-icon-only","Used on error status icons alone",f.colorRed70),contentInfoPrimary:i.extend("--ft-content-info-primary","Used on label of information messages on light surface.",f.colorCyan200),contentInfoIconOnly:i.extend("--ft-content-info-icon-only","Used on info status icons alone",f.colorCyan0),contentSuccessPrimary:i.extend("--ft-content-success-primary","Used on label of success messages on light surface.",f.colorGreen200),contentSuccessIconOnly:i.extend("--ft-content-success-icon-only","Used on success status icons alone",f.colorGreen0),contentGlobalPrimary:i.extend("--ft-content-global-primary","Used for main content on the page.",f.colorGray500),contentGlobalSecondary:i.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
6
+ Also for action icons.`,f.colorGray200),contentGlobalSubtle:i.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",f.colorGray0),contentGlobalOnColor:i.extend("--ft-content-global-on-color","Used for content on a dominant color.",f.colorWhite),borderActionPrimary:i.extend("--ft-border-action-primary","Used as border for primary action components.",f.colorBrand0),borderActionFocusRing:i.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",f.colorCyan0),borderWarningPrimary:i.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",f.colorOrange200),borderWarningSubtle:i.extend("--ft-border-warning-subtle","Used as border for warning components.",f.colorOrange30),borderSuccessPrimary:i.extend("--ft-border-success-primary","Used as border for success buttons.",f.colorGreen200),borderSuccessSubtle:i.extend("--ft-border-success-subtle","Used as border for success components.",f.colorGreen30),borderErrorPrimary:i.extend("--ft-border-error-primary","Used as border for text fields in error states.",f.colorRed0),borderErrorSubtle:i.extend("--ft-border-error-subtle","Used as border for error components.",f.colorRed30),borderInfoPrimary:i.extend("--ft-border-info-primary","Used as border for buttons in info color.",f.colorCyan200),borderInfoSubtle:i.extend("--ft-border-info-subtle","Used as border for information components.",f.colorCyan30),borderGlobalPrimary:i.extend("--ft-border-global-primary","Used as border for element like input.",f.colorGray50),borderGlobalSubtle:i.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",f.colorGray30),borderInputPrimary:i.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",f.colorGray80)};var Pp={largeHeight:i.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ft-button-large-horizontal-padding","",f.spacing4),largeGap:i.extend("--ft-button-large-gap","",f.spacing2),largeBorderRadius:i.extend("--ft-button-large-border-radius","",f.borderRadiusS),largeIconSize:i.extend("--ft-button-large-icon-size","",f.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","",f.spacing3),mediumGap:i.extend("--ft-button-medium-gap","",f.spacing2),mediumBorderRadius:i.extend("--ft-button-medium-border-radius","",f.borderRadiusS),mediumIconSize:i.extend("--ft-button-medium-icon-size","",f.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","",f.spacing2),smallGap:i.extend("--ft-button-small-gap","",f.spacing1),smallBorderRadius:i.extend("--ft-button-small-border-radius","",f.borderRadiusS),smallIconSize:i.extend("--ft-button-small-icon-size","",f.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","",f.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","",f.borderRadiusPill),primaryBackgroundColor:i.extend("--ft-button-primary-background-color","",m.backgroundActionPrimary),primaryColor:i.extend("--ft-button-primary-color","",m.contentGlobalOnColor),primaryIconColor:i.extend("--ft-button-primary-icon-color","",m.contentGlobalOnColor),primaryStateLayerColor:i.extend("--ft-button-primary-state-layer-color","",m.contentGlobalOnColor),primaryHoverStateLayerOpacity:i.extend("--ft-button-primary-hover-state-layer-opacity","",f.opacity16),primaryFocusStateLayerOpacity:i.extend("--ft-button-primary-focus-state-layer-opacity","",f.opacity16),primaryActiveStateLayerOpacity:i.extend("--ft-button-primary-active-state-layer-opacity","",f.opacity24),primaryDisabledComponentOpacity:i.extend("--ft-button-primary-disabled-component-opacity","",f.opacity40),focusFocusRingColor:i.extend("--ft-button-focus-focus-ring-color","",m.borderActionFocusRing),tertiaryBackgroundColor:i.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:i.extend("--ft-button-tertiary-color","",m.contentActionPrimary),tertiaryIconColor:i.extend("--ft-button-tertiary-icon-color","",m.contentActionPrimary),tertiaryStateLayerColor:i.extend("--ft-button-tertiary-state-layer-color","",m.contentActionPrimary),tertiaryHoverStateLayerOpacity:i.extend("--ft-button-tertiary-hover-state-layer-opacity","",f.opacity8),tertiaryFocusStateLayerOpacity:i.extend("--ft-button-tertiary-focus-state-layer-opacity","",f.opacity8),tertiaryActiveStateLayerOpacity:i.extend("--ft-button-tertiary-active-state-layer-opacity","",f.opacity16),tertiaryDisabledComponentOpacity:i.extend("--ft-button-tertiary-disabled-component-opacity","",f.opacity40),secondaryBackgroundColor:i.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:i.extend("--ft-button-secondary-color","",m.contentActionPrimary),secondaryIconColor:i.extend("--ft-button-secondary-icon-color","",m.contentActionPrimary),secondaryStateLayerColor:i.extend("--ft-button-secondary-state-layer-color","",m.contentActionPrimary),secondaryHoverStateLayerOpacity:i.extend("--ft-button-secondary-hover-state-layer-opacity","",f.opacity8),secondaryFocusStateLayerOpacity:i.extend("--ft-button-secondary-focus-state-layer-opacity","",f.opacity8),secondaryActiveStateLayerOpacity:i.extend("--ft-button-secondary-active-state-layer-opacity","",f.opacity16),secondaryDisabledComponentOpacity:i.extend("--ft-button-secondary-disabled-component-opacity","",f.opacity40),secondaryBorderColor:i.extend("--ft-button-secondary-border-color","",m.borderActionPrimary),neutralBackgroundColor:i.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:i.extend("--ft-button-neutral-icon-color","",m.contentGlobalSecondary),neutralColor:i.extend("--ft-button-neutral-color","",m.contentGlobalSecondary),neutralStateLayerColor:i.extend("--ft-button-neutral-state-layer-color","",m.contentGlobalSecondary),neutralHoverStateLayerOpacity:i.extend("--ft-button-neutral-hover-state-layer-opacity","",f.opacity8),neutralFocusStateLayerOpacity:i.extend("--ft-button-neutral-focus-state-layer-opacity","",f.opacity8),neutralActiveStateLayerOpacity:i.extend("--ft-button-neutral-active-state-layer-opacity","",f.opacity16),neutralDisabledComponentOpacity:i.extend("--ft-button-neutral-disabled-component-opacity","",f.opacity40)};var kp={largeMinHeight:i.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ft-chip-large-horizontal-padding","",f.spacing3),largeButtonRightPadding:i.extend("--ft-chip-large-button-right-padding","",f.spacing1),largeGap:i.extend("--ft-chip-large-gap","",f.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","",f.iconSize3),mediumMinHeight:i.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ft-chip-medium-horizontal-padding","",f.spacing2),mediumButtonRightPadding:i.extend("--ft-chip-medium-button-right-padding","",f.spacing05),mediumGap:i.extend("--ft-chip-medium-gap","",f.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","",f.iconSize2),smallMinHeight:i.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ft-chip-small-horizontal-padding","",f.spacing1),smallButtonRightPadding:i.extend("--ft-chip-small-button-right-padding","",f.spacing05),smallGap:i.extend("--ft-chip-small-gap","",f.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","",f.iconSize1),neutralBackgroundColor:i.extend("--ft-chip-neutral-background-color","",m.backgroundGlobalOnSurface),neutralColor:i.extend("--ft-chip-neutral-color","",m.contentGlobalSecondary),neutralIconColor:i.extend("--ft-chip-neutral-icon-color","",m.contentGlobalSecondary),neutralBorderColor:i.extend("--ft-chip-neutral-border-color","",m.borderGlobalSubtle),infoBackgroundColor:i.extend("--ft-chip-info-background-color","",m.backgroundInfoSubtle),infoColor:i.extend("--ft-chip-info-color","",m.contentInfoPrimary),infoIconColor:i.extend("--ft-chip-info-icon-color","",m.contentInfoIconOnly),infoBorderColor:i.extend("--ft-chip-info-border-color","",m.borderInfoSubtle),successBackgroundColor:i.extend("--ft-chip-success-background-color","",m.backgroundSuccessSubtle),successColor:i.extend("--ft-chip-success-color","",m.contentSuccessPrimary),successIconColor:i.extend("--ft-chip-success-icon-color","",m.contentSuccessIconOnly),successBorderColor:i.extend("--ft-chip-success-border-color","",m.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-chip-warning-background-color","",m.backgroundWarningSubtle),warningColor:i.extend("--ft-chip-warning-color","",m.contentWarningPrimary),warningIconColor:i.extend("--ft-chip-warning-icon-color","",m.contentWarningIconOnly),warningBorderColor:i.extend("--ft-chip-warning-border-color","",m.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-chip-error-background-color","",m.backgroundErrorSubtle),errorColor:i.extend("--ft-chip-error-color","",m.contentErrorPrimary),errorIconColor:i.extend("--ft-chip-error-icon-color","",m.contentErrorIconOnly),errorBorderColor:i.extend("--ft-chip-error-border-color","",m.borderErrorSubtle)};var Lp={focusOpacity:i.extend("--ft-link-focus-opacity","",f.opacity80),focusFocusRingColor:i.extend("--ft-link-focus-focus-ring-color","",m.borderActionFocusRing),brandColor:i.extend("--ft-link-brand-color","",m.contentActionPrimary),infoColor:i.extend("--ft-link-info-color","",m.contentInfoPrimary)};var $p={iconSize:i.extend("--ft-banner-icon-size","",f.iconSize5),borderWidth:i.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ft-banner-left-padding","",f.spacing6),rightPadding:i.extend("--ft-banner-right-padding","",f.spacing6),verticalPadding:i.extend("--ft-banner-vertical-padding","",f.spacing6),horizontalSideGap:i.extend("--ft-banner-horizontal-side-gap","",f.spacing6),horizontalMobileGap:i.extend("--ft-banner-horizontal-mobile-gap","",f.spacing4),verticalMobileGap:i.extend("--ft-banner-vertical-mobile-gap","",f.spacing6),horizontalMiddleGap:i.extend("--ft-banner-horizontal-middle-gap","",f.spacing20),infoBackgroundColor:i.extend("--ft-banner-info-background-color","",m.backgroundInfoSubtle),infoColor:i.extend("--ft-banner-info-color","",m.contentInfoPrimary),infoIconColor:i.extend("--ft-banner-info-icon-color","",m.contentInfoIconOnly),infoBorderColor:i.extend("--ft-banner-info-border-color","",m.borderInfoSubtle)};var Dp={horizontalPadding:i.extend("--ft-badge-horizontal-padding","",f.spacing1),verticalPadding:i.extend("--ft-badge-vertical-padding","",f.spacing1),borderRadius:i.extend("--ft-badge-border-radius","",f.borderRadiusPill),color:i.extend("--ft-badge-color","",m.contentGlobalOnColor),backgroundColor:i.extend("--ft-badge-background-color","",m.contentActionPrimary)};var Up={horizontalGap:i.extend("--ft-breadcrumb-horizontal-gap","",f.spacing1),verticalGap:i.extend("--ft-breadcrumb-vertical-gap","",f.spacing2),currentColor:i.extend("--ft-breadcrumb-current-color","",m.contentGlobalPrimary),previousNonClickableColor:i.extend("--ft-breadcrumb-previous-non-clickable-color","",m.contentGlobalSecondary),iconColor:i.extend("--ft-breadcrumb-icon-color","",m.contentGlobalSubtle)};var Mp={horizontalPadding:i.extend("--ft-page-header-horizontal-padding","",f.spacing6),horizontalGap:i.extend("--ft-page-header-horizontal-gap","",f.spacing4),verticalGap:i.extend("--ft-page-header-vertical-gap","",f.spacing2),classicVerticalPadding:i.extend("--ft-page-header-classic-vertical-padding","",f.spacing6),multilineVerticalPadding:i.extend("--ft-page-header-multiline-vertical-padding","",f.spacing4),inlineVerticalPadding:i.extend("--ft-page-header-inline-vertical-padding","",f.spacing2),backgroundColor:i.extend("--ft-page-header-background-color","",f.colorWhite),bottomBorderColor:i.extend("--ft-page-header-bottom-border-color","",m.borderGlobalSubtle),titleColor:i.extend("--ft-page-header-title-color","",m.contentGlobalPrimary),subtitleColor:i.extend("--ft-page-header-subtitle-color","",m.contentGlobalSecondary)};var Bp={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","",f.colorGray700),overlayOpacity:i.extend("--ft-modal-overlay-opacity","",f.opacity40),shadow:i.extend("--ft-modal-shadow","",f.shadowElevation03),bodyBackgroundColor:i.extend("--ft-modal-body-background-color","",f.colorWhite),bodyColor:i.extend("--ft-modal-body-color","",m.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-modal-body-horizontal-padding","",f.spacing6),bodyVerticalPadding:i.extend("--ft-modal-body-vertical-padding","",f.spacing6),bodyVerticalGap:i.extend("--ft-modal-body-vertical-gap","",f.spacing6),containerMargin:i.extend("--ft-modal-container-margin","",f.spacing3),headerBackgroundColor:i.extend("--ft-modal-header-background-color","",m.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-modal-header-border-color","",m.borderGlobalSubtle),headerColor:i.extend("--ft-modal-header-color","",m.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-modal-header-trailing-icon-color","",m.contentGlobalSecondary),headerVerticalPadding:i.extend("--ft-modal-header-vertical-padding","",f.spacing1),headerRightPadding:i.extend("--ft-modal-header-right-padding","",f.spacing1),headerLeftPadding:i.extend("--ft-modal-header-left-padding","",f.spacing6),headerGap:i.extend("--ft-modal-header-gap","",f.spacing2),headerBorderBottom:i.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:i.extend("--ft-modal-border-radius","",f.borderRadiusM)};var Fp={overlayOpacity:i.extend("--ft-drawer-overlay-opacity","",f.opacity40),shadow:i.extend("--ft-drawer-shadow","",f.shadowElevation03),bodyColor:i.extend("--ft-drawer-body-color","",m.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-drawer-body-horizontal-padding","",f.spacing6),bodyVerticalPadding:i.extend("--ft-drawer-body-vertical-padding","",f.spacing6),bodyGap:i.extend("--ft-drawer-body-gap","",f.spacing6),bodyBackgroundColor:i.extend("--ft-drawer-body-background-color","",f.colorWhite),headerBackgroundColor:i.extend("--ft-drawer-header-background-color","",m.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-drawer-header-border-color","",m.borderGlobalSubtle),headerColor:i.extend("--ft-drawer-header-color","",m.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-drawer-header-trailing-icon-color","",m.contentGlobalSecondary),headerHeight:i.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ft-drawer-header-horizontal-padding","",f.spacing2),headerBorderWidth:i.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ft-drawer-header-gap","",f.spacing3),buttonsBarBackgroundColor:i.extend("--ft-drawer-buttons-bar-background-color","",m.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ft-drawer-buttons-bar-border-color","",m.borderGlobalSubtle),buttonsBarColor:i.extend("--ft-drawer-buttons-bar-color","",m.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ft-drawer-buttons-bar-horizontal-padding","",f.spacing4),buttonsBarVerticalPadding:i.extend("--ft-drawer-buttons-bar-vertical-padding","",f.spacing4),buttonsBarGap:i.extend("--ft-drawer-buttons-bar-gap","",f.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","",f.colorGray700)};var Wp={offBorderBottomWidth:i.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ft-tabs-off-hover-state-layer-opacity","",f.opacity8),offDefaultStateLayerOpacity:i.extend("--ft-tabs-off-default-state-layer-opacity","",f.opacity0),offFocusStateLayerOpacity:i.extend("--ft-tabs-off-focus-state-layer-opacity","",f.opacity8),offDisabledComponentOpacity:i.extend("--ft-tabs-off-disabled-component-opacity","",f.opacity40),offColor:i.extend("--ft-tabs-off-color","",m.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-tabs-off-state-layer-color","",m.contentGlobalSubtle),offBorderBottomColor:i.extend("--ft-tabs-off-border-bottom-color","",m.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:i.extend("--ft-tabs-top-left-border-radius","",f.borderRadiusS),topRightBorderRadius:i.extend("--ft-tabs-top-right-border-radius","",f.borderRadiusS),withLabelHorizontalPadding:i.extend("--ft-tabs-with-label-horizontal-padding","",f.spacing4),withLabelVerticalPadding:i.extend("--ft-tabs-with-label-vertical-padding","",f.spacing3),horizontalGap:i.extend("--ft-tabs-horizontal-gap","",f.spacing1),verticalGap:i.extend("--ft-tabs-vertical-gap","",f.spacing1),onHoverStateLayerOpacity:i.extend("--ft-tabs-on-hover-state-layer-opacity","",f.opacity16),onDefaultStateLayerOpacity:i.extend("--ft-tabs-on-default-state-layer-opacity","",f.opacity8),onFocusStateLayerOpacity:i.extend("--ft-tabs-on-focus-state-layer-opacity","",f.opacity16),onActiveStateLayerOpacity:i.extend("--ft-tabs-on-active-state-layer-opacity","",f.opacity24),onColor:i.extend("--ft-tabs-on-color","",m.contentActionPrimary),onStateLayerColor:i.extend("--ft-tabs-on-state-layer-color","",m.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ft-tabs-on-active-tab-indicator-color","",m.contentActionPrimary),iconOnlyHorizontalPadding:i.extend("--ft-tabs-icon-only-horizontal-padding","",f.spacing4),iconOnlyVerticalPadding:i.extend("--ft-tabs-icon-only-vertical-padding","",f.spacing4),alertTopPadding:i.extend("--ft-tabs-alert-top-padding","",f.spacing1),alertRightPadding:i.extend("--ft-tabs-alert-right-padding","",f.spacing05),focusOutlineWidth:i.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-tabs-focus-focus-ring-color","",m.borderActionFocusRing)};var zp={fieldHorizontalPadding:i.extend("--ft-text-input-field-horizontal-padding","",f.spacing4),fieldHorizontalGap:i.extend("--ft-text-input-field-horizontal-gap","",f.spacing3),fieldVerticalGap:i.extend("--ft-text-input-field-vertical-gap","",f.spacing05),fieldIconSize:i.extend("--ft-text-input-field-icon-size","",f.iconSize3),fieldHeight:i.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-text-input-helper-horizontal-padding","",f.spacing4),helperHorizontalGap:i.extend("--ft-text-input-helper-horizontal-gap","",f.spacing1),helperIconSize:i.extend("--ft-text-input-helper-icon-size","",f.iconSize2),borderRadius:i.extend("--ft-text-input-border-radius","",f.borderRadiusM),backgroundColor:i.extend("--ft-text-input-background-color","",f.colorWhite),contentValueColor:i.extend("--ft-text-input-content-value-color","",m.contentGlobalPrimary),trailingIconColor:i.extend("--ft-text-input-trailing-icon-color","",m.contentGlobalSubtle),labelColor:i.extend("--ft-text-input-label-color","",m.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-input-default-border-color","",m.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-input-default-helper-text-color","",m.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","",m.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-input-error-helper-text-color","",m.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-input-error-helper-icon-color","",m.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","",m.borderActionFocusRing),focusOutlineOffset:i.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-input-disabled-component-opacity","",f.opacity40)};var Hp={backgroundColor:i.extend("--ft-text-area-background-color","",f.colorWhite),contentValueColor:i.extend("--ft-text-area-content-value-color","",m.contentGlobalPrimary),labelColor:i.extend("--ft-text-area-label-color","",m.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-area-default-border-color","",m.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-area-default-helper-text-color","",m.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","",m.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-area-error-helper-text-color","",m.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-area-error-helper-icon-color","",m.contentErrorIconOnly),focusFocusRingColor:i.extend("--ft-text-area-focus-focus-ring-color","",m.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","",f.opacity40),fieldHorizontalLeftPadding:i.extend("--ft-text-area-field-horizontal-left-padding","",f.spacing4),fieldHorizontalGap:i.extend("--ft-text-area-field-horizontal-gap","",f.spacing3),fieldVerticalGap:i.extend("--ft-text-area-field-vertical-gap","",f.spacing05),fieldMinHeight:i.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:i.extend("--ft-text-area-helper-horizontal-padding","",f.spacing4),helperHorizontalGap:i.extend("--ft-text-area-helper-horizontal-gap","",f.spacing1),helperIconSize:i.extend("--ft-text-area-helper-icon-size","",f.iconSize2),borderRadius:i.extend("--ft-text-area-border-radius","",f.borderRadiusM)};var Gp={height:i.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:i.extend("--ft-floating-menu-horizontal-padding","",f.spacing4),offIconColor:i.extend("--ft-floating-menu-off-icon-color","",m.contentGlobalPrimary),offColor:i.extend("--ft-floating-menu-off-color","",m.contentGlobalPrimary),onColor:i.extend("--ft-floating-menu-on-color","",m.contentActionPrimary),onStateLayerColor:i.extend("--ft-floating-menu-on-state-layer-color","",m.contentActionPrimary),gap:i.extend("--ft-floating-menu-gap","",f.spacing3),focusFocusRingColor:i.extend("--ft-floating-menu-focus-focus-ring-color","",m.borderActionFocusRing),focusOutlineWidth:i.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ft-floating-menu-focus-state-layer-opacity","",f.opacity8),hoverStateLayerOpacity:i.extend("--ft-floating-menu-hover-state-layer-opacity","",f.opacity8),activeStateLayerOpacity:i.extend("--ft-floating-menu-active-state-layer-opacity","",f.opacity16),disabledComponentOpacity:i.extend("--ft-floating-menu-disabled-component-opacity","",f.opacity40),iconSize:i.extend("--ft-floating-menu-icon-size","",f.iconSize3),backgroundColor:i.extend("--ft-floating-menu-background-color","",m.backgroundGlobalOnSurface),shadow:i.extend("--ft-floating-menu-shadow","",f.shadowElevation02)};var Kp={fieldHorizontalPadding:i.extend("--ft-combobox-single-select-field-horizontal-padding","",f.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-single-select-field-horizontal-gap","",f.spacing3),fieldVerticalGap:i.extend("--ft-combobox-single-select-field-vertical-gap","",f.spacing05),fieldIconSize:i.extend("--ft-combobox-single-select-field-icon-size","",f.iconSize3),fieldHeight:i.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-combobox-single-select-helper-horizontal-padding","",f.spacing4),helperHorizontalGap:i.extend("--ft-combobox-single-select-helper-horizontal-gap","",f.spacing1),helperVerticalGap:i.extend("--ft-combobox-single-select-helper-vertical-gap","",f.spacing1),helperIconSize:i.extend("--ft-combobox-single-select-helper-icon-size","",f.iconSize2),menuVerticalGap:i.extend("--ft-combobox-single-select-menu-vertical-gap","",f.spacing2),borderRadius:i.extend("--ft-combobox-single-select-border-radius","",f.borderRadiusM),backgroundColor:i.extend("--ft-combobox-single-select-background-color","",f.colorWhite),labelColor:i.extend("--ft-combobox-single-select-label-color","",m.contentGlobalSubtle),contentValueColor:i.extend("--ft-combobox-single-select-content-value-color","",m.contentGlobalPrimary),trailingIconColor:i.extend("--ft-combobox-single-select-trailing-icon-color","",m.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-single-select-default-border-color","",m.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-single-select-default-helper-text-color","",m.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","",m.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-single-select-error-helper-text-color","",m.contentErrorPrimary),warningBorderWidth:i.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-single-select-warning-border-color","",m.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-single-select-warning-helper-text-color","",m.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-single-select-warning-helper-icon-color","",m.contentWarningIconOnly),focusOutlineWidth:i.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-single-select-focus-focus-ring-color","",m.borderActionFocusRing),focusOutlineOffset:i.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-single-select-disabled-component-opacity","",f.opacity40)};var Vp={backgroundColor:i.extend("--ft-combobox-multi-select-background-color","",f.colorWhite),labelColor:i.extend("--ft-combobox-multi-select-label-color","",m.contentGlobalSubtle),trailingIconColor:i.extend("--ft-combobox-multi-select-trailing-icon-color","",m.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-multi-select-default-border-color","",m.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-multi-select-default-helper-text-color","",m.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:i.extend("--ft-combobox-multi-select-error-border-color","",m.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-multi-select-error-helper-text-color","",m.contentErrorPrimary),errorHelperIcon:i.extend("--ft-combobox-multi-select-error-helper-icon","",m.contentErrorIconOnly),errorBorderWidth:i.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-multi-select-warning-border-color","",m.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-multi-select-warning-helper-text-color","",m.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-multi-select-warning-helper-icon-color","",m.contentWarningIconOnly),warningBorderWidth:i.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-multi-select-focus-focus-ring-color","",m.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","",f.opacity40),helperHorizontalPadding:i.extend("--ft-combobox-multi-select-helper-horizontal-padding","",f.spacing4),helperHorizontalGap:i.extend("--ft-combobox-multi-select-helper-horizontal-gap","",f.spacing1),helperVerticalGap:i.extend("--ft-combobox-multi-select-helper-vertical-gap","",f.spacing1),helperIconSize:i.extend("--ft-combobox-multi-select-helper-icon-size","",f.iconSize2),fieldHorizontalPadding:i.extend("--ft-combobox-multi-select-field-horizontal-padding","",f.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-multi-select-field-horizontal-gap","",f.spacing3),fieldVerticalGap:i.extend("--ft-combobox-multi-select-field-vertical-gap","",f.spacing05),fieldIconSize:i.extend("--ft-combobox-multi-select-field-icon-size","",f.iconSize3),fieldMaxHeight:i.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:i.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",f.spacing1),contentValuesVerticalGap:i.extend("--ft-combobox-multi-select-content-values-vertical-gap","",f.spacing1),borderRadius:i.extend("--ft-combobox-multi-select-border-radius","",f.borderRadiusM)};var Zp={backgroundColor:i.extend("--ft-popover-background-color","",m.backgroundGlobalOnSurface),horizontalPadding:i.extend("--ft-popover-horizontal-padding","",f.spacing6),verticalPadding:i.extend("--ft-popover-vertical-padding","",f.spacing6),titleColor:i.extend("--ft-popover-title-color","",m.contentGlobalPrimary),bodyColor:i.extend("--ft-popover-body-color","",m.contentGlobalSecondary),linkColor:i.extend("--ft-popover-link-color","",m.contentActionPrimary),gap:i.extend("--ft-popover-gap","",f.spacing3),borderRadius:i.extend("--ft-popover-border-radius","",f.borderRadiusM),shadow:i.extend("--ft-popover-shadow","",f.shadowElevation02)};var jp={hoverStateLayerOpacity:i.extend("--ft-collapsible-hover-state-layer-opacity","",f.opacity8),focusStateLayerOpacity:i.extend("--ft-collapsible-focus-state-layer-opacity","",f.opacity8),focusOutlineWidth:i.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ft-collapsible-focus-focus-ring-color","",m.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ft-collapsible-active-state-layer-opacity","",f.opacity16),disabledComponentOpacity:i.extend("--ft-collapsible-disabled-component-opacity","",f.opacity40),horizontalPadding:i.extend("--ft-collapsible-horizontal-padding","",f.spacing4),verticalPadding:i.extend("--ft-collapsible-vertical-padding","",f.spacing3),color:i.extend("--ft-collapsible-color","",m.contentGlobalPrimary),stateLayerColor:i.extend("--ft-collapsible-state-layer-color","",m.contentGlobalPrimary),backgroundColor:i.extend("--ft-collapsible-background-color","",m.backgroundGlobalOnSurface),borderColor:i.extend("--ft-collapsible-border-color","",m.borderGlobalSubtle),iconSize:i.extend("--ft-collapsible-icon-size","",f.iconSize3)};var qp={groupHorizontalPadding:i.extend("--ft-switch-group-horizontal-padding","",f.spacing1),groupVerticalPadding:i.extend("--ft-switch-group-vertical-padding","",f.spacing1),groupGap:i.extend("--ft-switch-group-gap","",f.spacing1),groupBackgroundColor:i.extend("--ft-switch-group-background-color","",m.backgroundGlobalSurface),groupBorderColor:i.extend("--ft-switch-group-border-color","",m.borderGlobalSubtle),groupBorderRadius:i.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ft-switch-label-horizontal-padding","",f.spacing2),labelVerticalPadding:i.extend("--ft-switch-label-vertical-padding","",f.spacing1),offHoverStateLayerOpacity:i.extend("--ft-switch-off-hover-state-layer-opacity","",f.opacity8),offFocusStateLayerOpacity:i.extend("--ft-switch-off-focus-state-layer-opacity","",f.opacity8),offActiveStateLayerOpacity:i.extend("--ft-switch-off-active-state-layer-opacity","",f.opacity16),offDisabledComponentOpacity:i.extend("--ft-switch-off-disabled-component-opacity","",f.opacity40),offColor:i.extend("--ft-switch-off-color","",m.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-switch-off-state-layer-color","",m.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-switch-on-hover-state-layer-opacity","",f.opacity8),onFocusStateLayerOpacity:i.extend("--ft-switch-on-focus-state-layer-opacity","",f.opacity8),onActiveStateLayerOpacity:i.extend("--ft-switch-on-active-state-layer-opacity","",f.opacity16),onDisabledComponentOpacity:i.extend("--ft-switch-on-disabled-component-opacity","",f.opacity40),onColor:i.extend("--ft-switch-on-color","",m.contentActionPrimary),onStateLayerColor:i.extend("--ft-switch-on-state-layer-color","",m.contentActionPrimary),iconHorizontalPadding:i.extend("--ft-switch-icon-horizontal-padding","",f.spacing1),iconVerticalPadding:i.extend("--ft-switch-icon-vertical-padding","",f.spacing1),focusOutlineWidth:i.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-switch-focus-focus-ring-color","",m.borderActionFocusRing),optionBorderRadius:i.extend("--ft-switch-option-border-radius","",f.borderRadiusS)};var Yp={color1Light:i.extend("--ft-chart-1-light","for area color charts",f.colorBrand40),color1Base:i.extend("--ft-chart-1-base","for line charts",f.colorBrand0),color2Light:i.extend("--ft-chart-2-light","for area color charts",f.colorYellow60),color2Base:i.extend("--ft-chart-2-base","for line charts",f.colorYellow100),color3Light:i.extend("--ft-chart-3-light","",f.colorUltramarine40),color3Base:i.extend("--ft-chart-3-base","",f.colorUltramarine70),color4Light:i.extend("--ft-chart-4-light","",f.colorCyan50),color4Base:i.extend("--ft-chart-4-base","",f.colorCyan100),color5Light:i.extend("--ft-chart-5-light","",f.colorRed40),color5Base:i.extend("--ft-chart-5-base","",f.colorRed60),color6Light:i.extend("--ft-chart-6-light","",f.colorGreen40),color6Base:i.extend("--ft-chart-6-base","",f.colorGreen70),color7Light:i.extend("--ft-chart-7-light","",f.colorOrange70),color7Base:i.extend("--ft-chart-7-base","",f.colorOrange100),color8Light:i.extend("--ft-chart-8-light","",f.colorAvocado70),color8Base:i.extend("--ft-chart-8-base","",f.colorAvocado200),color9Light:i.extend("--ft-chart-9-light","",f.colorBrown50),color9Base:i.extend("--ft-chart-9-base","",f.colorBrown200),color10Light:i.extend("--ft-chart-10-light","",f.colorGray50),color10Base:i.extend("--ft-chart-10-base","",f.colorGray80),monochrome10:i.extend("--ft-chart-monochrome-10","",f.colorBrand10),monochrome20:i.extend("--ft-chart-monochrome-20","",f.colorBrand20),monochrome30:i.extend("--ft-chart-monochrome-30","",f.colorBrand40),monochrome40:i.extend("--ft-chart-monochrome-40","",f.colorBrand60),monochrome50:i.extend("--ft-chart-monochrome-50","",f.colorBrand0),monochrome60:i.extend("--ft-chart-monochrome-60","",f.colorBrand200)};var Xp={borderWidth:i.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ft-notice-horizontal-padding","",f.spacing3),verticalPadding:i.extend("--ft-notice-vertical-padding","",f.spacing2),borderRadius:i.extend("--ft-notice-border-radius","",f.borderRadiusS),gap:i.extend("--ft-notice-gap","",f.spacing2),iconSize:i.extend("--ft-notice-icon-size","",f.iconSize3),infoBackgroundColor:i.extend("--ft-notice-info-background-color","",m.backgroundInfoSubtle),infoBorderColor:i.extend("--ft-notice-info-border-color","",m.borderInfoSubtle),infoColor:i.extend("--ft-notice-info-color","",m.contentInfoPrimary),infoIconColor:i.extend("--ft-notice-info-icon-color","",m.contentInfoIconOnly),warningBackgroundColor:i.extend("--ft-notice-warning-background-color","",m.backgroundWarningSubtle),warningBorderColor:i.extend("--ft-notice-warning-border-color","",m.borderWarningSubtle),warningColor:i.extend("--ft-notice-warning-color","",m.contentWarningPrimary),warningIconColor:i.extend("--ft-notice-warning-icon-color","",m.contentWarningIconOnly),errorBackgroundColor:i.extend("--ft-notice-error-background-color","",m.backgroundErrorSubtle),errorBorderColor:i.extend("--ft-notice-error-border-color","",m.borderErrorSubtle),errorColor:i.extend("--ft-notice-error-color","",m.contentErrorPrimary),errorIconColor:i.extend("--ft-notice-error-icon-color","",m.contentErrorIconOnly),successBackgroundColor:i.extend("--ft-notice-success-background-color","",m.backgroundSuccessSubtle),successBorderColor:i.extend("--ft-notice-success-border-color","",m.borderSuccessSubtle),successColor:i.extend("--ft-notice-success-color","",m.contentSuccessPrimary),successIconColor:i.extend("--ft-notice-success-icon-color","",m.contentSuccessIconOnly)};var Jp={color:i.extend("--ft-checkbox-color","",m.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ft-checkbox-checked-background-color","",m.contentActionPrimary),checkedStateLayerColor:i.extend("--ft-checkbox-checked-state-layer-color","",m.contentActionPrimary),checkedIconColor:i.extend("--ft-checkbox-checked-icon-color","",m.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ft-checkbox-checked-hover-state-layer-opacity","",f.opacity16),checkedFocusStateLayerOpacity:i.extend("--ft-checkbox-checked-focus-state-layer-opacity","",f.opacity16),checkedActiveStateLayerOpacity:i.extend("--ft-checkbox-checked-active-state-layer-opacity","",f.opacity24),checkedDisabledComponentOpacity:i.extend("--ft-checkbox-checked-disabled-component-opacity","",f.opacity40),uncheckedBorderColor:i.extend("--ft-checkbox-unchecked-border-color","",f.colorGray80),uncheckedStateLayerColor:i.extend("--ft-checkbox-unchecked-state-layer-color","",f.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",f.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",f.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",f.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ft-checkbox-unchecked-disabled-component-opacity","",f.opacity40),focusFocusRingColor:i.extend("--ft-checkbox-focus-focus-ring-color","",m.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","",f.spacing3)};var Qp={offHoverStateLayerOpacity:i.extend("--ft-toggle-off-hover-state-layer-opacity","",f.opacity16),offFocusStateLayerOpacity:i.extend("--ft-toggle-off-focus-state-layer-opacity","",f.opacity16),offActiveStateLayerOpacity:i.extend("--ft-toggle-off-active-state-layer-opacity","",f.opacity24),offDisabledComponentOpacity:i.extend("--ft-toggle-off-disabled-component-opacity","",f.opacity40),offBackgroundColor:i.extend("--ft-toggle-off-background-color","",m.contentGlobalSubtle),offIconColor:i.extend("--ft-toggle-off-icon-color","",m.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-toggle-off-state-layer-color","",m.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-toggle-on-hover-state-layer-opacity","",f.opacity16),onFocusStateLayerOpacity:i.extend("--ft-toggle-on-focus-state-layer-opacity","",f.opacity16),onActiveStateLayerOpacity:i.extend("--ft-toggle-on-active-state-layer-opacity","",f.opacity24),onDisabledComponentOpacity:i.extend("--ft-toggle-on-disabled-component-opacity","",f.opacity40),onBackgroundColor:i.extend("--ft-toggle-on-background-color","",m.contentActionPrimary),onStateLayerColor:i.extend("--ft-toggle-on-state-layer-color","",m.contentActionPrimary),onIconColor:i.extend("--ft-toggle-on-icon-color","",m.contentActionPrimary),color:i.extend("--ft-toggle-color","",m.contentGlobalPrimary),focusFocusRingColor:i.extend("--ft-toggle-focus-focus-ring-color","",m.borderActionFocusRing),gap:i.extend("--ft-toggle-gap","",f.spacing3)};var tf={color:i.extend("--ft-radio-color","",m.contentGlobalPrimary),selectedRadioColor:i.extend("--ft-radio-selected-radio-color","",m.contentActionPrimary),selectedStateLayerColor:i.extend("--ft-radio-selected-state-layer-color","",m.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ft-radio-selected-hover-state-layer-opacity","",f.opacity16),selectedFocusStateLayerOpacity:i.extend("--ft-radio-selected-focus-state-layer-opacity","",f.opacity16),selectedActiveStateLayerOpacity:i.extend("--ft-radio-selected-active-state-layer-opacity","",f.opacity24),selectedDisabledComponentOpacity:i.extend("--ft-radio-selected-disabled-component-opacity","",f.opacity40),unselectedStateLayerColor:i.extend("--ft-radio-unselected-state-layer-color","",m.borderInputPrimary),unselectedBorderColor:i.extend("--ft-radio-unselected-border-color","",m.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ft-radio-unselected-hover-state-layer-opacity","",f.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ft-radio-unselected-focus-state-layer-opacity","",f.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ft-radio-unselected-active-state-layer-opacity","",f.opacity24),unselectedDisabledComponentOpacity:i.extend("--ft-radio-unselected-disabled-component-opacity","",f.opacity40),focusFocusRingColor:i.extend("--ft-radio-focus-focus-ring-color","",m.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","",f.spacing3)};var ef={iconSize:i.extend("--ft-notification-icon-size","",f.iconSize4),leftPadding:i.extend("--ft-notification-left-padding","",f.spacing5),rightPadding:i.extend("--ft-notification-right-padding","",f.spacing4),verticalPadding:i.extend("--ft-notification-vertical-padding","",f.spacing3),infoBackgroundColor:i.extend("--ft-notification-info-background-color","",m.backgroundInfoSubtle),infoColor:i.extend("--ft-notification-info-color","",m.contentInfoPrimary),infoIconColor:i.extend("--ft-notification-info-icon-color","",m.contentInfoIconOnly),infoBorderColor:i.extend("--ft-notification-info-border-color","",m.borderInfoSubtle),successBackgroundColor:i.extend("--ft-notification-success-background-color","",m.backgroundSuccessSubtle),successColor:i.extend("--ft-notification-success-color","",m.contentSuccessPrimary),successIconColor:i.extend("--ft-notification-success-icon-color","",m.contentSuccessIconOnly),successBorderColor:i.extend("--ft-notification-success-border-color","",m.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-notification-warning-background-color","",m.backgroundWarningSubtle),warningColor:i.extend("--ft-notification-warning-color","",m.contentWarningPrimary),warningIconColor:i.extend("--ft-notification-warning-icon-color","",m.contentWarningIconOnly),warningBorderColor:i.extend("--ft-notification-warning-border-color","",m.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-notification-error-background-color","",m.backgroundErrorSubtle),errorColor:i.extend("--ft-notification-error-color","",m.contentErrorPrimary),errorIconColor:i.extend("--ft-notification-error-icon-color","",m.contentErrorIconOnly),errorBorderColor:i.extend("--ft-notification-error-border-color","",m.borderErrorSubtle),borderRadius:i.extend("--ft-notification-border-radius","",f.borderRadiusPill),borderWidth:i.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ft-notification-leading-gap","",f.spacing2),trailingGap:i.extend("--ft-notification-trailing-gap","",f.spacing8)};var rf={horizontalPadding:i.extend("--ft-tooltip-horizontal-padding","",f.spacing2),verticalPadding:i.extend("--ft-tooltip-vertical-padding","",f.spacing2),borderRadius:i.extend("--ft-tooltip-border-radius","",f.borderRadiusS),color:i.extend("--ft-tooltip-color","",m.contentGlobalOnColor),backgroundColor:i.extend("--ft-tooltip-background-color","",m.contentGlobalPrimary),backgroundOpacity:i.extend("--ft-tooltip-background-opacity","",f.opacity80),shadow:i.extend("--ft-tooltip-shadow","",f.shadowElevation02),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ft-tooltip-gap","",f.spacing05)};var Qn;(function(e){e.brand="brand",e.neutral="neutral",e.info="info",e.success="success",e.warning="warning",e.error="error"})(Qn||(Qn={}));var ta;(function(e){e.large="large",e.medium="medium",e.small="small"})(ta||(ta={}));function of(e){return`design-system--family-${e}`}function nf(e){return`design-system--size-${e}`}var I={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 na={};st(na,{FtNotificationEvent:()=>kt,PostResizeEvent:()=>ia,PreResizeEvent:()=>oa});var kt=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},oa=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ia=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var ga={};st(ga,{computeOffsetPosition:()=>xo});var mc=["top","right","bottom","left"],hc=["start","end"],sa=mc.reduce((e,t)=>e.concat(t,t+"-"+hc[0],t+"-"+hc[1]),[]),ho=Math.min,$e=Math.max,mo=Math.round;var Oe=e=>({x:e,y:e}),af={left:"right",right:"left",bottom:"top",top:"bottom"},sf={start:"end",end:"start"};function ca(e,t,r){return $e(e,ho(t,r))}function si(e,t){return typeof e=="function"?e(t):e}function _r(e){return e.split("-")[0]}function De(e){return e.split("-")[1]}function la(e){return e==="x"?"y":"x"}function da(e){return e==="y"?"height":"width"}function ci(e){return["top","bottom"].includes(_r(e))?"y":"x"}function pa(e){return la(ci(e))}function gc(e,t,r){r===void 0&&(r=!1);let o=De(e),n=pa(e),s=da(n),c=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(c=aa(c)),[c,aa(c)]}function yc(e){return e.replace(/start|end/g,t=>sf[t])}function aa(e){return e.replace(/left|right|bottom|top/g,t=>af[t])}function cf(e){return{top:0,right:0,bottom:0,left:0,...e}}function bc(e){return typeof e!="number"?cf(e):{top:e,right:e,bottom:e,left:e}}function lr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function xc(e,t,r){let{reference:o,floating:n}=e,s=ci(t),c=pa(t),l=da(c),d=_r(t),u=s==="y",h=o.x+o.width/2-n.width/2,y=o.y+o.height/2-n.height/2,v=o[l]/2-n[l]/2,S;switch(d){case"top":S={x:h,y:o.y-n.height};break;case"bottom":S={x:h,y:o.y+o.height};break;case"right":S={x:o.x+o.width,y};break;case"left":S={x:o.x-n.width,y};break;default:S={x:o.x,y:o.y}}switch(De(t)){case"start":S[c]-=v*(r&&u?-1:1);break;case"end":S[c]+=v*(r&&u?-1:1);break}return S}var vc=async(e,t,r)=>{let{placement:o="bottom",strategy:n="absolute",middleware:s=[],platform:c}=r,l=s.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(t)),u=await c.getElementRects({reference:e,floating:t,strategy:n}),{x:h,y}=xc(u,o,d),v=o,S={},O=0;for(let N=0;N<l.length;N++){let{name:k,fn:L}=l[N],{x:U,y:E,data:w,reset:R}=await L({x:h,y,initialPlacement:o,placement:v,strategy:n,middlewareData:S,rects:u,platform:c,elements:{reference:e,floating:t}});if(h=U??h,y=E??y,S={...S,[k]:{...S[k],...w}},R&&O<=50){O++,typeof R=="object"&&(R.placement&&(v=R.placement),R.rects&&(u=R.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:n}):R.rects),{x:h,y}=xc(u,v,d)),N=-1;continue}}return{x:h,y,placement:v,strategy:n,middlewareData:S}};async function fa(e,t){var r;t===void 0&&(t={});let{x:o,y:n,platform:s,rects:c,elements:l,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:y="floating",altBoundary:v=!1,padding:S=0}=si(t,e),O=bc(S),k=l[v?y==="floating"?"reference":"floating":y],L=lr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(k)))==null||r?k:k.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:h,strategy:d})),U=y==="floating"?{...c.floating,x:o,y:n}:c.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),w=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},R=lr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:U,offsetParent:E,strategy:d}):U);return{top:(L.top-R.top+O.top)/w.y,bottom:(R.bottom-L.bottom+O.bottom)/w.y,left:(L.left-R.left+O.left)/w.x,right:(R.right-L.right+O.right)/w.x}}function lf(e,t,r){return(e?[...r.filter(n=>De(n)===e),...r.filter(n=>De(n)!==e)]:r.filter(n=>_r(n)===n)).filter(n=>e?De(n)===e||(t?yc(n)!==n:!1):!0)}var ua=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,n;let{rects:s,middlewareData:c,placement:l,platform:d,elements:u}=t,{crossAxis:h=!1,alignment:y,allowedPlacements:v=sa,autoAlignment:S=!0,...O}=si(e,t),N=y!==void 0||v===sa?lf(y||null,S,v):v,k=await fa(t,O),L=((r=c.autoPlacement)==null?void 0:r.index)||0,U=N[L];if(U==null)return{};let E=gc(U,s,await(d.isRTL==null?void 0:d.isRTL(u.floating)));if(l!==U)return{reset:{placement:N[0]}};let w=[k[_r(U)],k[E[0]],k[E[1]]],R=[...((o=c.autoPlacement)==null?void 0:o.overflows)||[],{placement:U,overflows:w}],F=N[L+1];if(F)return{data:{index:L+1,overflows:R},reset:{placement:F}};let K=R.map(b=>{let C=De(b.placement);return[b.placement,C&&h?b.overflows.slice(0,2).reduce((T,Y)=>T+Y,0):b.overflows[0],b.overflows]}).sort((b,C)=>b[1]-C[1]),Q=((n=K.filter(b=>b[2].slice(0,De(b[0])?2:3).every(C=>C<=0))[0])==null?void 0:n[0])||K[0][0];return Q!==l?{data:{index:L+1,overflows:R},reset:{placement:Q}}:{}}}};var ha=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:o,placement:n}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:l={fn:k=>{let{x:L,y:U}=k;return{x:L,y:U}}},...d}=si(e,t),u={x:r,y:o},h=await fa(t,d),y=ci(_r(n)),v=la(y),S=u[v],O=u[y];if(s){let k=v==="y"?"top":"left",L=v==="y"?"bottom":"right",U=S+h[k],E=S-h[L];S=ca(U,S,E)}if(c){let k=y==="y"?"top":"left",L=y==="y"?"bottom":"right",U=O+h[k],E=O-h[L];O=ca(U,O,E)}let N=l.fn({...t,[v]:S,[y]:O});return{...N,data:{x:N.x-r,y:N.y-o}}}}};function Ce(e){return Oc(e)?(e.nodeName||"").toLowerCase():"#document"}function Ut(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(Oc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Oc(e){return e instanceof Node||e instanceof Ut(e).Node}function de(e){return e instanceof Element||e instanceof Ut(e).Element}function ee(e){return e instanceof HTMLElement||e instanceof Ut(e).HTMLElement}function Sc(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ut(e).ShadowRoot}function Tr(e){let{overflow:t,overflowX:r,overflowY:o,display:n}=Gt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(n)}function Cc(e){return["table","td","th"].includes(Ce(e))}function di(e){let t=pi(),r=Gt(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function wc(e){let t=dr(e);for(;ee(t)&&!go(t);){if(di(t))return t;t=dr(t)}return null}function pi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function go(e){return["html","body","#document"].includes(Ce(e))}function Gt(e){return Ut(e).getComputedStyle(e)}function yo(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function dr(e){if(Ce(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Sc(e)&&e.host||we(e);return Sc(t)?t.host:t}function Ec(e){let t=dr(e);return go(t)?e.ownerDocument?e.ownerDocument.body:e.body:ee(t)&&Tr(t)?t:Ec(t)}function li(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=Ec(e),s=n===((o=e.ownerDocument)==null?void 0:o.body),c=Ut(n);return s?t.concat(c,c.visualViewport||[],Tr(n)?n:[],c.frameElement&&r?li(c.frameElement):[]):t.concat(n,li(n,[],r))}function Ac(e){let t=Gt(e),r=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=ee(e),s=n?e.offsetWidth:r,c=n?e.offsetHeight:o,l=mo(r)!==s||mo(o)!==c;return l&&(r=s,o=c),{width:r,height:o,$:l}}function Ic(e){return de(e)?e:e.contextElement}function Pr(e){let t=Ic(e);if(!ee(t))return Oe(1);let r=t.getBoundingClientRect(),{width:o,height:n,$:s}=Ac(t),c=(s?mo(r.width):r.width)/o,l=(s?mo(r.height):r.height)/n;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}var df=Oe(0);function _c(e){let t=Ut(e);return!pi()||!t.visualViewport?df:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pf(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ut(e)?!1:t}function bo(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),s=Ic(e),c=Oe(1);t&&(o?de(o)&&(c=Pr(o)):c=Pr(e));let l=pf(s,r,o)?_c(s):Oe(0),d=(n.left+l.x)/c.x,u=(n.top+l.y)/c.y,h=n.width/c.x,y=n.height/c.y;if(s){let v=Ut(s),S=o&&de(o)?Ut(o):o,O=v.frameElement;for(;O&&o&&S!==v;){let N=Pr(O),k=O.getBoundingClientRect(),L=Gt(O),U=k.left+(O.clientLeft+parseFloat(L.paddingLeft))*N.x,E=k.top+(O.clientTop+parseFloat(L.paddingTop))*N.y;d*=N.x,u*=N.y,h*=N.x,y*=N.y,d+=U,u+=E,O=Ut(O).frameElement}}return lr({width:h,height:y,x:d,y:u})}function ff(e){let{rect:t,offsetParent:r,strategy:o}=e,n=ee(r),s=we(r);if(r===s)return t;let c={scrollLeft:0,scrollTop:0},l=Oe(1),d=Oe(0);if((n||!n&&o!=="fixed")&&((Ce(r)!=="body"||Tr(s))&&(c=yo(r)),ee(r))){let u=bo(r);l=Pr(r),d.x=u.x+r.clientLeft,d.y=u.y+r.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-c.scrollLeft*l.x+d.x,y:t.y*l.y-c.scrollTop*l.y+d.y}}function uf(e){return Array.from(e.getClientRects())}function Tc(e){return bo(we(e)).left+yo(e).scrollLeft}function hf(e){let t=we(e),r=yo(e),o=e.ownerDocument.body,n=$e(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=$e(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),c=-r.scrollLeft+Tc(e),l=-r.scrollTop;return Gt(o).direction==="rtl"&&(c+=$e(t.clientWidth,o.clientWidth)-n),{width:n,height:s,x:c,y:l}}function mf(e,t){let r=Ut(e),o=we(e),n=r.visualViewport,s=o.clientWidth,c=o.clientHeight,l=0,d=0;if(n){s=n.width,c=n.height;let u=pi();(!u||u&&t==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:s,height:c,x:l,y:d}}function gf(e,t){let r=bo(e,!0,t==="fixed"),o=r.top+e.clientTop,n=r.left+e.clientLeft,s=ee(e)?Pr(e):Oe(1),c=e.clientWidth*s.x,l=e.clientHeight*s.y,d=n*s.x,u=o*s.y;return{width:c,height:l,x:d,y:u}}function Nc(e,t,r){let o;if(t==="viewport")o=mf(e,r);else if(t==="document")o=hf(we(e));else if(de(t))o=gf(t,r);else{let n=_c(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return lr(o)}function Pc(e,t){let r=dr(e);return r===t||!de(r)||go(r)?!1:Gt(r).position==="fixed"||Pc(r,t)}function yf(e,t){let r=t.get(e);if(r)return r;let o=li(e,[],!1).filter(l=>de(l)&&Ce(l)!=="body"),n=null,s=Gt(e).position==="fixed",c=s?dr(e):e;for(;de(c)&&!go(c);){let l=Gt(c),d=di(c);!d&&l.position==="fixed"&&(n=null),(s?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Tr(c)&&!d&&Pc(e,c))?o=o.filter(h=>h!==c):n=l,c=dr(c)}return t.set(e,o),o}function bf(e){let{element:t,boundary:r,rootBoundary:o,strategy:n}=e,c=[...r==="clippingAncestors"?yf(t,this._c):[].concat(r),o],l=c[0],d=c.reduce((u,h)=>{let y=Nc(t,h,n);return u.top=$e(y.top,u.top),u.right=ho(y.right,u.right),u.bottom=ho(y.bottom,u.bottom),u.left=$e(y.left,u.left),u},Nc(t,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function xf(e){return Ac(e)}function vf(e,t,r){let o=ee(t),n=we(t),s=r==="fixed",c=bo(e,!0,s,t),l={scrollLeft:0,scrollTop:0},d=Oe(0);if(o||!o&&!s)if((Ce(t)!=="body"||Tr(n))&&(l=yo(t)),o){let u=bo(t,!0,s,t);d.x=u.x+t.clientLeft,d.y=u.y+t.clientTop}else n&&(d.x=Tc(n));return{x:c.left+l.scrollLeft-d.x,y:c.top+l.scrollTop-d.y,width:c.width,height:c.height}}function Rc(e,t){return!ee(e)||Gt(e).position==="fixed"?null:t?t(e):e.offsetParent}function kc(e,t){let r=Ut(e);if(!ee(e))return r;let o=Rc(e,t);for(;o&&Cc(o)&&Gt(o).position==="static";)o=Rc(o,t);return o&&(Ce(o)==="html"||Ce(o)==="body"&&Gt(o).position==="static"&&!di(o))?r:o||wc(e)||r}var Sf=async function(e){let{reference:t,floating:r,strategy:o}=e,n=this.getOffsetParent||kc,s=this.getDimensions;return{reference:vf(t,await n(r),o),floating:{x:0,y:0,...await s(r)}}};function Of(e){return Gt(e).direction==="rtl"}var fi={convertOffsetParentRelativeRectToViewportRelativeRect:ff,getDocumentElement:we,getClippingRect:bf,getOffsetParent:kc,getElementRects:Sf,getClientRects:uf,getDimensions:xf,getScale:Pr,isElement:de,isRTL:Of};var Lc=(e,t,r)=>{let o=new Map,n={platform:fi,...r},s={...n.platform,_c:o};return vc(e,t,{...n,platform:s})};function $c(e){return Cf(e)}function ma(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Cf(e){for(let t=e;t;t=ma(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=ma(e);t;t=ma(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||t.tagName==="BODY"))return t}return null}async function xo(e,t,r){return Lc(e,t,{platform:{...fi,getOffsetParent:o=>fi.getOffsetParent(o,$c)},middleware:[ha({crossAxis:!0}),ua({allowedPlacements:[r]})]})}var ba={};st(ba,{FtLitElement:()=>H});var ya={};st(ya,{ScopedRegistryLitElement:()=>vo});var ui=window,wf=ui.ShadowRoot&&(ui.ShadyCSS===void 0||ui.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Jy=Symbol();var Dc=(e,t)=>{wf?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let o=document.createElement("style"),n=ui.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,e.appendChild(o)})};var vo=class extends xe{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,s])=>t.registry.define(n,s)));let r={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(r);return Dc(o,t.elementStyles),o}};var hi=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Bc,Uc=Symbol("constructorPrototype"),Mc=Symbol("constructorName"),Fc=Symbol("exportpartsDebouncer"),H=class extends vo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Bc]=new nt(5),this[Mc]=this.constructor.name,this[Uc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Mc]&&Object.setPrototypeOf(this,this[Uc])}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)}this.importDynamicDependencies()}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var r,o,n;if(((o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}scheduleExportpartsUpdate(){var t,r,o;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(o=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&o!==void 0&&o)&&this[Fc].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var r,o,n,s,c,l;let d=v=>v!=null&&v.trim().length>0,u=t.filter(d).map(v=>v.trim());if(u.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let v of(o=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let S=(s=(n=v.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&s!==void 0?s:[],O=(l=(c=v.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(N=>N.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...S,...O).filter(d).map(N=>N.trim()).forEach(N=>h.add(N))}if(h.size===0){this.removeAttribute("exportparts");return}let y=[...h.values()].flatMap(v=>u.map(S=>`${v}:${S}--${v}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};Bc=Fc;hi([x()],H.prototype,"exportpartsPrefix",void 0);hi([le([])],H.prototype,"exportpartsPrefixes",void 0);hi([x()],H.prototype,"customStylesheet",void 0);hi([V()],H.prototype,"useAdoptedStyleSheets",void 0);var Wc={};var Oa={};st(Oa,{highlightHtml:()=>Sa,highlightHtmlColorCssVariable:()=>zc,highlightHtmlStyles:()=>Nf});var pr=class e{constructor(t,r=!0,o=[],n=5e3){this.ctx=t,this.iframes=r,this.exclude=o,this.iframesTimeout=n}static matches(t,r){let o=typeof r=="string"?[r]:r,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(n){let s=!1;return o.every(c=>n.call(t,c)?(s=!0,!1):!0),s}else return!1}getContexts(){let t,r=[];return typeof this.ctx>"u"||!this.ctx?t=[]:NodeList.prototype.isPrototypeOf(this.ctx)?t=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?t=this.ctx:typeof this.ctx=="string"?t=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):t=[this.ctx],t.forEach(o=>{let n=r.filter(s=>s.contains(o)).length>0;r.indexOf(o)===-1&&!n&&r.push(o)}),r}getIframeContents(t,r,o=()=>{}){let n;try{let s=t.contentWindow;if(n=s.document,!s||!n)throw new Error("iframe inaccessible")}catch{o()}n&&r(n)}isIframeBlank(t){let r="about:blank",o=t.getAttribute("src").trim();return t.contentWindow.location.href===r&&o!==r&&o}observeIframeLoad(t,r,o){let n=!1,s=null,c=()=>{if(!n){n=!0,clearTimeout(s);try{this.isIframeBlank(t)||(t.removeEventListener("load",c),this.getIframeContents(t,r,o))}catch{o()}}};t.addEventListener("load",c),s=setTimeout(c,this.iframesTimeout)}onIframeReady(t,r,o){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,r,o):this.getIframeContents(t,r,o):this.observeIframeLoad(t,r,o)}catch{o()}}waitForIframes(t,r){let o=0;this.forEachIframe(t,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||r()})},n=>{n||r()})}forEachIframe(t,r,o,n=()=>{}){let s=t.querySelectorAll("iframe"),c=s.length,l=0;s=Array.prototype.slice.call(s);let d=()=>{--c<=0&&n(l)};c||d(),s.forEach(u=>{e.matches(u,this.exclude)?d():this.onIframeReady(u,h=>{r(u)&&(l++,o(h)),d()},d)})}createIterator(t,r,o){return document.createNodeIterator(t,r,o,!1)}createInstanceOnIframe(t){return new e(t.querySelector("html"),this.iframes)}compareNodeIframe(t,r,o){let n=t.compareDocumentPosition(o),s=Node.DOCUMENT_POSITION_PRECEDING;if(n&s)if(r!==null){let c=r.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(c&l)return!0}else return!0;return!1}getIteratorNode(t){let r=t.previousNode(),o;return r===null?o=t.nextNode():o=t.nextNode()&&t.nextNode(),{prevNode:r,node:o}}checkIframeFilter(t,r,o,n){let s=!1,c=!1;return n.forEach((l,d)=>{l.val===o&&(s=d,c=l.handled)}),this.compareNodeIframe(t,r,o)?(s===!1&&!c?n.push({val:o,handled:!0}):s!==!1&&!c&&(n[s].handled=!0),!0):(s===!1&&n.push({val:o,handled:!1}),!1)}handleOpenIframes(t,r,o,n){t.forEach(s=>{s.handled||this.getIframeContents(s.val,c=>{this.createInstanceOnIframe(c).forEachNode(r,o,n)})})}iterateThroughNodes(t,r,o,n,s){let c=this.createIterator(r,t,n),l=[],d=[],u,h,y=()=>({prevNode:h,node:u}=this.getIteratorNode(c),u);for(;y();)this.iframes&&this.forEachIframe(r,v=>this.checkIframeFilter(u,h,v,l),v=>{this.createInstanceOnIframe(v).forEachNode(t,S=>d.push(S),n)}),d.push(u);d.forEach(v=>{o(v)}),this.iframes&&this.handleOpenIframes(l,t,o,n),s()}forEachNode(t,r,o,n=()=>{}){let s=this.getContexts(),c=s.length;c||n(),s.forEach(l=>{let d=()=>{this.iterateThroughNodes(t,l,r,o,()=>{--c<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var So=class{constructor(t){this.ctx=t,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new pr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,r="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[r]=="function"&&o[r](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return this.opt.wildcards!=="disabled"&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),this.opt.wildcards!=="disabled"&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t),t}createSynonymsRegExp(t){let r=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let s in r)if(r.hasOwnProperty(s)){let c=r[s],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(c):this.escapeStr(c);l!==""&&d!==""&&(t=t.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+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,r=>r.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let r=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(r,o,n)=>{let s=n.charAt(o+1);return/[(|)\\]/.test(s)||s===""?r:r+"\0"})}createJoinersRegExp(t){let r=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&r.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?t.split(/\u0000+/).join(`[${r.join("")}]*`):t}createDiacriticsRegExp(t){let r=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return t.split("").forEach(s=>{o.every(c=>{if(c.indexOf(s)!==-1){if(n.indexOf(c)>-1)return!1;t=t.replace(new RegExp(`[${c}]`,`gm${r}`),`[${c}]`),n.push(c)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,n=typeof o=="string"?o:o.value,s=typeof o=="string"?[]:o.limiters,c="";switch(s.forEach(l=>{c+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${t})`;case"complementary":return c="\\s"+(c||this.escapeStr(r)),`()([^${c}]*${t}[^${c}]*)`;case"exactly":return`(^|\\s${c})(${t})(?=$|\\s${c})`}}getSeparatedKeywords(t){let r=[];return t.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):o.trim()&&r.indexOf(o)===-1&&r.push(o)}),{keywords:r.sort((o,n)=>n.length-o.length),length:r.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||Object.prototype.toString.call(t[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];let r=[],o=0;return t.sort((n,s)=>n.start-s.start).forEach(n=>{let{start:s,end:c,valid:l}=this.callNoMatchOnInvalidRanges(n,o);l&&(n.start=s,n.length=c-s,r.push(n),o=c)}),r}callNoMatchOnInvalidRanges(t,r){let o,n,s=!1;return t&&typeof t.start<"u"?(o=parseInt(t.start,10),n=o+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&n-r>0&&n-o>0?s=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:o,end:n,valid:s}}checkWhitespaceRanges(t,r,o){let n,s=!0,c=o.length,l=r-c,d=parseInt(t.start,10)-l;return d=d>c?c:d,n=d+parseInt(t.length,10),n>c&&(n=c,this.log(`End range automatically set to the max value of ${c}`)),d<0||n-d<0||d>c||n>c?(s=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):o.substring(d,n).replace(/\s+/g,"")===""&&(s=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:d,end:n,valid:s}}getTextNodes(t){let r="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:r,nodes:o})})}matchesExclude(t){return pr.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,r,o){let n=this.opt.element?this.opt.element:"mark",s=t.splitText(r),c=s.splitText(o-r),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=s.textContent,s.parentNode.replaceChild(l,s),c}wrapRangeInMappedTextNode(t,r,o,n,s){t.nodes.every((c,l)=>{let d=t.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(c.node))return!1;let u=r-c.start,h=(o>c.end?c.end:o)-c.start,y=t.value.substr(0,c.start),v=t.value.substr(h+c.start);if(c.node=this.wrapRangeInTextNode(c.node,u,h),t.value=y+v,t.nodes.forEach((S,O)=>{O>=l&&(t.nodes[O].start>0&&O!==l&&(t.nodes[O].start-=h),t.nodes[O].end-=h)}),o-=h,s(c.node.previousSibling,c.start),o>c.end)r=c.end;else return!1}return!0})}wrapMatches(t,r,o,n,s){let c=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let u;for(;(u=t.exec(d.textContent))!==null&&u[c]!=="";){if(!o(u[c],d))continue;let h=u.index;if(c!==0)for(let y=1;y<c;y++)h+=u[y].length;d=this.wrapRangeInTextNode(d,h,h+u[c].length),n(d.previousSibling),t.lastIndex=0}}),s()})}wrapMatchesAcrossElements(t,r,o,n,s){let c=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=t.exec(l.value))!==null&&d[c]!=="";){let u=d.index;if(c!==0)for(let y=1;y<c;y++)u+=d[y].length;let h=u+d[c].length;this.wrapRangeInMappedTextNode(l,u,h,y=>o(d[c],y),(y,v)=>{t.lastIndex=v,n(y)})}s()})}wrapRangeFromIndex(t,r,o,n){this.getTextNodes(s=>{let c=s.value.length;t.forEach((l,d)=>{let{start:u,end:h,valid:y}=this.checkWhitespaceRanges(l,c,s.value);y&&this.wrapRangeInMappedTextNode(s,u,h,v=>r(v,l,s.value.substring(u,h),d),v=>{o(v,l)})}),n()})}unwrapMatches(t){let r=t.parentNode,o=document.createDocumentFragment();for(;t.firstChild;)o.appendChild(t.removeChild(t.firstChild));r.replaceChild(o,t),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(t){if(t){if(t.nodeType===3)for(;t.nextSibling&&t.nextSibling.nodeType===3;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,r){this.opt=r,this.log(`Searching with expression "${t}"`);let o=0,n="wrapMatches",s=c=>{o++,this.opt.each(c)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](t,this.opt.ignoreGroups,(c,l)=>this.opt.filter(l,c,o),s,()=>{o===0&&this.opt.noMatch(t),this.opt.done(o)})}mark(t,r){this.opt=r;let o=0,n="wrapMatches",{keywords:s,length:c}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",d=u=>{let h=new RegExp(this.createRegExp(u),`gm${l}`),y=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(v,S)=>this.opt.filter(S,u,o,y),v=>{y++,o++,this.opt.each(v)},()=>{y===0&&this.opt.noMatch(u),s[c-1]===u?this.opt.done(o):d(s[s.indexOf(u)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),c===0?this.opt.done(o):d(s[0])}markRanges(t,r){this.opt=r;let o=0,n=this.checkRanges(t);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(s,c,l,d)=>this.opt.filter(s,c,l,d),(s,c)=>{o++,this.opt.each(s,c)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(t){this.opt=t;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=pr.matches(o,r),s=this.matchesExclude(o);return!n||s?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function xa(e){let t=new So(e);return this.mark=(r,o)=>(t.mark(r,o),this),this.markRegExp=(r,o)=>(t.markRegExp(r,o),this),this.markRanges=(r,o)=>(t.markRanges(r,o),this),this.unmark=r=>(t.unmark(r),this),this}var Ef=xa,zc=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Nf=P`
7
7
  .highlight-html-match {
8
- background: ${Ul};
8
+ background: ${zc};
9
9
  }
10
- `,ga={className:"highlight-html-match"};function ya(e,t){var r;let o=e.getAttribute("data-highlight-html-query");if((o??"")!==(t??"")){let n=new yu(e);n.unmark(ga),t&&t.trim()&&(n.mark(t.replace(/"[^"]+"/g,""),{...ga,separateWordSearch:!0}),((r=t.match(/"[^"]+"/g))!==null&&r!==void 0?r:[]).forEach(s=>n.mark(s.replace(/"/g,""),{...ga,separateWordSearch:!1})))}e.setAttribute("data-highlight-html-query",t??"")}var va={};it(va,{noTextSelect:()=>lr,safariEllipsisFix:()=>cr,wordWrap:()=>vu});var lr=P`
10
+ `,va={className:"highlight-html-match"};function Sa(e,t){var r;let o=e.getAttribute("data-highlight-html-query");if((o??"")!==(t??"")){let n=new Ef(e);n.unmark(va),t&&t.trim()&&(n.mark(t.replace(/"[^"]+"/g,""),{...va,separateWordSearch:!0}),((r=t.match(/"[^"]+"/g))!==null&&r!==void 0?r:[]).forEach(c=>n.mark(c.replace(/"/g,""),{...va,separateWordSearch:!1})))}e.setAttribute("data-highlight-html-query",t??"")}var Ca={};st(Ca,{noTextSelect:()=>fr,safariEllipsisFix:()=>ur,wordWrap:()=>Rf});var fr=P`
11
11
  .ft-no-text-select {
12
12
  -webkit-touch-callout: none;
13
13
  -webkit-user-select: none;
@@ -16,7 +16,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
16
16
  -ms-user-select: none;
17
17
  user-select: none;
18
18
  }
19
- `,vu=P`
19
+ `,Rf=P`
20
20
  .ft-word-wrap {
21
21
  white-space: normal;
22
22
  word-wrap: break-word;
@@ -28,7 +28,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
28
28
  -webkit-hyphens: auto;
29
29
  hyphens: auto
30
30
  }
31
- `,cr=P`
31
+ `,ur=P`
32
32
  .ft-safari-ellipsis-fix {
33
33
  margin-right: 0;
34
34
 
@@ -39,7 +39,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
39
39
  display: inline-block;
40
40
  width: 0;
41
41
  }
42
- `;var Bl={};var xa={};it(xa,{ParametrizedLabelResolver:()=>bo});var bo=class{constructor(t,r){this.defaultLabels=t,this.labels=r}resolve(t,...r){var o,n;t=this.resolvePluralKey(t,r);let a=(n=(o=this.labels[t])!==null&&o!==void 0?o:this.defaultLabels[t])!==null&&n!==void 0?n:"";return r.forEach((s,l)=>a=a.replace(new RegExp(`\\{${l}([^}]*)\\}`,"g"),(c,p)=>this.formatValue(s,p))),a}resolvePluralKey(t,r){for(let o of r)if(typeof o=="number"){let n=`${String(t)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return t}formatValue(t,r){return t instanceof Date?this.formatDate(t,r):t??""}formatDate(t,r){let o=n=>r?.includes("date")?t.toLocaleDateString(n):r?.includes("time")?t.toLocaleTimeString(n):t.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var Ka={};it(Ka,{FtCommandQueue:()=>xo,FtLitElementRedux:()=>jt,FtReduxStore:()=>we,clearAllStores:()=>of,isFtReduxStore:()=>dr,redux:()=>nt,reduxEventListener:()=>vo,reduxReactive:()=>xu});var xu=()=>(e,t)=>{var r;let o=e.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(t)},nt=e=>{let t=e??{};return(r,o)=>{var n;let a={hasChanged:so,attribute:!1,...t};g(a)(r,o);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=t.selector)!==null&&n!==void 0?n:l=>l[o],store:t.store})}},vo=e=>(t,r)=>{let o=t.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,e)};var xo=class{constructor(){this.queue=[]}add(t,r=!1){r&&(this.queue=this.queue.filter(o=>o.type!==t.type)),this.queue.push(t)}consume(t){let r=this.queue.find(o=>o.type===t);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}};function dr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Fl,zl,Wl,pi=Symbol("internalReduxEventsUnsubscribers"),ke=Symbol("internalStoresUnsubscribers"),pr=Symbol("internalStores"),jt=class extends F{constructor(){super(...arguments),this[Fl]=new Map,this[zl]=new Map,this[Wl]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(r=>t.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[pr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[pr].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[pr].get(t)}addStore(t,r){var o;r=(o=r??(dr(t)?t.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,t)}removeStore(t){let r=typeof t=="string"?t:t.name;this.unsubscribeFromStore(r),this[pr].delete(r)}setupStore(t,r){this[pr].set(t,r),this.subscribeToStore(t,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[pr].forEach((t,r)=>this.subscribeToStore(r,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,r)=>{let o=this.constructor.getPropertyOptions(r);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:r)){let n=this.getStore(t.store);n&&(t.store?this[ke].has(t.store):this[ke].size>0)&&(this[r]=t.selector(n.getState(),this))}})}subscribeToStore(t,r){var o;this[ke].set(t,r.subscribe(()=>this.updateFromStores())),dr(r)&&r.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||r.name===n.store)){let s=l=>this[a](l);r.eventBus.addEventListener(n.eventName,s),this[pi].push(()=>r.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ke].forEach((t,r)=>this.unsubscribeFromStore(r)),this[pi].forEach(t=>t()),this[pi]=[]}unsubscribeFromStore(t){this[ke].has(t)&&this[ke].get(t)(),this[ke].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Fl=ke,zl=pr,Wl=pi;jt.reduxProperties=new Map;jt.reduxReactiveProperties=new Set;jt.reduxEventListeners=new Map;function Kt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Oe(e){return!!e&&!!e[at]}function Jt(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===_u}(e)||Array.isArray(e)||!!e[ql]||!!(!((t=e.constructor)===null||t===void 0)&&t[ql])||Na(e)||Ta(e))}function ur(e,t,r){r===void 0&&(r=!1),Ir(e)===0?(r?Object.keys:Tr)(e).forEach(function(o){r&&typeof o=="symbol"||t(o,e[o],e)}):e.forEach(function(o,n){return t(n,o,e)})}function Ir(e){var t=e[at];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Na(e)?2:Ta(e)?3:0}function Nr(e,t){return Ir(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Su(e,t){return Ir(e)===2?e.get(t):e[t]}function Yl(e,t,r){var o=Ir(e);o===2?e.set(t,r):o===3?e.add(r):e[t]=r}function Xl(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Na(e){return Au&&e instanceof Map}function Ta(e){return Ru&&e instanceof Set}function Le(e){return e.o||e.t}function Ia(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=tc(e);delete t[at];for(var r=Tr(t),o=0;o<r.length;o++){var n=r[o],a=t[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[n]})}return Object.create(Object.getPrototypeOf(e),t)}function Pa(e,t){return t===void 0&&(t=!1),$a(e)||Oe(e)||!Jt(e)||(Ir(e)>1&&(e.set=e.add=e.clear=e.delete=Ou),Object.freeze(e),t&&ur(e,function(r,o){return Pa(o,!0)},!0)),e}function Ou(){Kt(2)}function $a(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function se(e){var t=_a[e];return t||Kt(18,e),t}function wu(e,t){_a[e]||(_a[e]=t)}function Ca(){return Oo}function Sa(e,t){t&&(se("Patches"),e.u=[],e.s=[],e.v=t)}function ui(e){Aa(e),e.p.forEach(Eu),e.p=null}function Aa(e){e===Oo&&(Oo=e.l)}function Hl(e){return Oo={p:[],l:Oo,h:e,m:!0,_:0}}function Eu(e){var t=e[at];t.i===0||t.i===1?t.j():t.g=!0}function Oa(e,t){t._=t.p.length;var r=t.p[0],o=e!==void 0&&e!==r;return t.h.O||se("ES5").S(t,e,o),o?(r[at].P&&(ui(t),Kt(4)),Jt(e)&&(e=fi(t,e),t.l||hi(t,e)),t.u&&se("Patches").M(r[at].t,e,t.u,t.s)):e=fi(t,r,[]),ui(t),t.u&&t.v(t.u,t.s),e!==Ql?e:void 0}function fi(e,t,r){if($a(t))return t;var o=t[at];if(!o)return ur(t,function(l,c){return Vl(e,o,t,l,c,r)},!0),t;if(o.A!==e)return t;if(!o.P)return hi(e,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=Ia(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),ur(a,function(l,c){return Vl(e,o,n,l,c,r,s)}),hi(e,n,!1),r&&e.u&&se("Patches").N(o,r,e.u,e.s)}return o.o}function Vl(e,t,r,o,n,a,s){if(Oe(n)){var l=fi(e,n,a&&t&&t.i!==3&&!Nr(t.R,o)?a.concat(o):void 0);if(Yl(r,o,l),!Oe(l))return;e.m=!1}else s&&r.add(n);if(Jt(n)&&!$a(n)){if(!e.h.D&&e._<1)return;fi(e,n),t&&t.A.l||hi(e,n)}}function hi(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Pa(t,r)}function wa(e,t){var r=e[at];return(r?Le(r):e)[t]}function jl(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var o=Object.getOwnPropertyDescriptor(r,t);if(o)return o;r=Object.getPrototypeOf(r)}}function Me(e){e.P||(e.P=!0,e.l&&Me(e.l))}function Ea(e){e.o||(e.o=Ia(e.t))}function Ra(e,t,r){var o=Na(t)?se("MapSet").F(t,r):Ta(t)?se("MapSet").T(t,r):e.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Ca(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},c=l,p=wo;s&&(c=[l],p=So);var u=Proxy.revocable(c,p),h=u.revoke,y=u.proxy;return l.k=y,l.j=h,y}(t,r):se("ES5").J(t,r);return(r?r.A:Ca()).p.push(o),o}function Cu(e){return Oe(e)||Kt(22,e),function t(r){if(!Jt(r))return r;var o,n=r[at],a=Ir(r);if(n){if(!n.P&&(n.i<4||!se("ES5").K(n)))return n.t;n.I=!0,o=Kl(r,a),n.I=!1}else o=Kl(r,a);return ur(o,function(s,l){n&&Su(n.t,s)===l||Yl(o,s,t(l))}),a===3?new Set(o):o}(e)}function Kl(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ia(e)}function Jl(){function e(s,l){var c=a[s];return c?c.enumerable=l:a[s]=c={configurable:!0,enumerable:l,get:function(){var p=this[at];return wo.get(p,s)},set:function(p){var u=this[at];wo.set(u,s,p)}},c}function t(s){for(var l=s.length-1;l>=0;l--){var c=s[l][at];if(!c.P)switch(c.i){case 5:o(c)&&Me(c);break;case 4:r(c)&&Me(c)}}}function r(s){for(var l=s.t,c=s.k,p=Tr(c),u=p.length-1;u>=0;u--){var h=p[u];if(h!==at){var y=l[h];if(y===void 0&&!Nr(l,h))return!0;var b=c[h],v=b&&b[at];if(v?v.t!==y:!Xl(b,y))return!0}}var w=!!l[at];return p.length!==Tr(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&&Kt(3,JSON.stringify(Le(s)))}var a={};wu("ES5",{J:function(s,l){var c=Array.isArray(s),p=function(h,y){if(h){for(var b=Array(y.length),v=0;v<y.length;v++)Object.defineProperty(b,""+v,e(v,!0));return b}var w=tc(y);delete w[at];for(var N=Tr(w),T=0;T<N.length;T++){var k=N[T];w[k]=e(k,h||!!w[k].enumerable)}return Object.create(Object.getPrototypeOf(y),w)}(c,s),u={i:c?5:4,A:l?l.A:Ca(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,at,{value:u,writable:!0}),p},S:function(s,l,c){c?Oe(l)&&l[at].A===s&&t(s.p):(s.u&&function p(u){if(u&&typeof u=="object"){var h=u[at];if(h){var y=h.t,b=h.k,v=h.R,w=h.i;if(w===4)ur(b,function(S){S!==at&&(y[S]!==void 0||Nr(y,S)?v[S]||p(b[S]):(v[S]=!0,Me(h)))}),ur(y,function(S){b[S]!==void 0||Nr(b,S)||(v[S]=!1,Me(h))});else if(w===5){if(o(h)&&(Me(h),v.length=!0),b.length<y.length)for(var N=b.length;N<y.length;N++)v[N]=!1;else for(var T=y.length;T<b.length;T++)v[T]=!0;for(var k=Math.min(b.length,y.length),O=0;O<k;O++)b.hasOwnProperty(O)||(v[O]=!0),v[O]===void 0&&p(b[O])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):o(s)}})}var Gl,Oo,ka=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Au=typeof Map<"u",Ru=typeof Set<"u",Zl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ql=ka?Symbol.for("immer-nothing"):((Gl={})["immer-nothing"]=!0,Gl),ql=ka?Symbol.for("immer-draftable"):"__$immer_draftable",at=ka?Symbol.for("immer-state"):"__$immer_state";var _u=""+Object.prototype.constructor,Tr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,tc=Object.getOwnPropertyDescriptors||function(e){var t={};return Tr(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},_a={},wo={get:function(e,t){if(t===at)return e;var r=Le(e);if(!Nr(r,t))return function(n,a,s){var l,c=jl(a,s);return c?"value"in c?c.value:(l=c.get)===null||l===void 0?void 0:l.call(n.k):void 0}(e,r,t);var o=r[t];return e.I||!Jt(o)?o:o===wa(e.t,t)?(Ea(e),e.o[t]=Ra(e.A.h,o,e)):o},has:function(e,t){return t in Le(e)},ownKeys:function(e){return Reflect.ownKeys(Le(e))},set:function(e,t,r){var o=jl(Le(e),t);if(o?.set)return o.set.call(e.k,r),!0;if(!e.P){var n=wa(Le(e),t),a=n?.[at];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Xl(r,n)&&(r!==void 0||Nr(e.t,t)))return!0;Ea(e),Me(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return wa(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ea(e),Me(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Le(e),o=Reflect.getOwnPropertyDescriptor(r,t);return o&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:o.enumerable,value:r[t]}},defineProperty:function(){Kt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Kt(12)}},So={};ur(wo,function(e,t){So[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),So.deleteProperty=function(e,t){return So.set.call(this,e,t,void 0)},So.set=function(e,t,r){return wo.set.call(this,e[0],t,r,e[0])};var Nu=function(){function e(r){var o=this;this.O=Zl,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 N=this;w===void 0&&(w=l);for(var T=arguments.length,k=Array(T>1?T-1:0),O=1;O<T;O++)k[O-1]=arguments[O];return c.produce(w,function(S){var E;return(E=a).call.apply(E,[N,S].concat(k))})}}var p;if(typeof a!="function"&&Kt(6),s!==void 0&&typeof s!="function"&&Kt(7),Jt(n)){var u=Hl(o),h=Ra(o,n,void 0),y=!0;try{p=a(h),y=!1}finally{y?ui(u):Aa(u)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(w){return Sa(u,s),Oa(w,u)},function(w){throw ui(u),w}):(Sa(u,s),Oa(p,u))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Ql&&(p=void 0),o.D&&Pa(p,!0),s){var b=[],v=[];se("Patches").M(n,p,b,v),s(b,v)}return p}Kt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var u=arguments.length,h=Array(u>1?u-1:0),y=1;y<u;y++)h[y-1]=arguments[y];return o.produceWithPatches(p,function(b){return n.apply(void 0,[b].concat(h))})};var s,l,c=o.produce(n,a,function(p,u){s=p,l=u});return typeof Promise<"u"&&c instanceof Promise?c.then(function(p){return[p,s,l]}):[c,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Jt(r)||Kt(8),Oe(r)&&(r=Cu(r));var o=Hl(this),n=Ra(this,r,void 0);return n[at].C=!0,Aa(o),n},t.finishDraft=function(r,o){var n=r&&r[at],a=n.A;return Sa(a,o),Oa(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Zl&&Kt(20),this.O=r},t.applyPatches=function(r,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(o=o.slice(n+1));var s=se("Patches").$;return Oe(r)?s(r,o):this.produce(r,function(l){return s(l,o)})},e}(),Wt=new Nu,Tu=Wt.produce,gb=Wt.produceWithPatches.bind(Wt),yb=Wt.setAutoFreeze.bind(Wt),bb=Wt.setUseProxies.bind(Wt),vb=Wt.applyPatches.bind(Wt),xb=Wt.createDraft.bind(Wt),Sb=Wt.finishDraft.bind(Wt),mi=Tu;function De(e){"@babel/helpers - typeof";return De=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},De(e)}function La(e,t){if(De(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(De(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ma(e){var t=La(e,"string");return De(t)==="symbol"?t:String(t)}function Da(e,t,r){return t=Ma(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ec(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function gi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ec(Object(r),!0).forEach(function(o){Da(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ec(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function Rt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var rc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ua=function(){return Math.random().toString(36).substring(7).split("").join(".")},yi={INIT:"@@redux/INIT"+Ua(),REPLACE:"@@redux/REPLACE"+Ua(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ua()}};function Iu(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Ba(e,t,r){var o;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Rt(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Rt(1));return r(Ba)(e,t)}if(typeof e!="function")throw new Error(Rt(2));var n=e,a=t,s=[],l=s,c=!1;function p(){l===s&&(l=s.slice())}function u(){if(c)throw new Error(Rt(3));return a}function h(w){if(typeof w!="function")throw new Error(Rt(4));if(c)throw new Error(Rt(5));var N=!0;return p(),l.push(w),function(){if(N){if(c)throw new Error(Rt(6));N=!1,p();var k=l.indexOf(w);l.splice(k,1),s=null}}}function y(w){if(!Iu(w))throw new Error(Rt(7));if(typeof w.type>"u")throw new Error(Rt(8));if(c)throw new Error(Rt(9));try{c=!0,a=n(a,w)}finally{c=!1}for(var N=s=l,T=0;T<N.length;T++){var k=N[T];k()}return w}function b(w){if(typeof w!="function")throw new Error(Rt(10));n=w,y({type:yi.REPLACE})}function v(){var w,N=h;return w={subscribe:function(k){if(typeof k!="object"||k===null)throw new Error(Rt(11));function O(){k.next&&k.next(u())}O();var S=N(O);return{unsubscribe:S}}},w[rc]=function(){return this},w}return y({type:yi.INIT}),o={dispatch:y,subscribe:h,getState:u,replaceReducer:b},o[rc]=v,o}function Pu(e){Object.keys(e).forEach(function(t){var r=e[t],o=r(void 0,{type:yi.INIT});if(typeof o>"u")throw new Error(Rt(12));if(typeof r(void 0,{type:yi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Rt(13))})}function oc(e){for(var t=Object.keys(e),r={},o=0;o<t.length;o++){var n=t[o];typeof e[n]=="function"&&(r[n]=e[n])}var a=Object.keys(r),s,l;try{Pu(r)}catch(c){l=c}return function(p,u){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var y=!1,b={},v=0;v<a.length;v++){var w=a[v],N=r[w],T=p[w],k=N(T,u);if(typeof k>"u"){var O=u&&u.type;throw new Error(Rt(14))}b[w]=k,y=y||k!==T}return y=y||a.length!==Object.keys(p).length,y?b:p}}function Pr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(o){return o}:t.length===1?t[0]:t.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function ic(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(Rt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(c){return c(s)});return a=Pr.apply(void 0,l)(n.dispatch),gi(gi({},n),{},{dispatch:a})}}}function nc(e){var t=function(o){var n=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,e):s(l)}}};return t}var ac=nc();ac.withExtraArgument=nc;var Fa=ac;var pc=function(){var e=function(t,r){return e=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])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),$u=function(e,t){var r={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(u){return c([p,u])}}function c(p){if(o)throw new TypeError("Generator is already executing.");for(;r;)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 r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=t.call(e,r)}catch(u){p=[6,u],n=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},$r=function(e,t){for(var r=0,o=t.length,n=e.length;r<o;r++,n++)e[n]=t[r];return e},ku=Object.defineProperty,Lu=Object.defineProperties,Mu=Object.getOwnPropertyDescriptors,sc=Object.getOwnPropertySymbols,Du=Object.prototype.hasOwnProperty,Uu=Object.prototype.propertyIsEnumerable,lc=function(e,t,r){return t in e?ku(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Ue=function(e,t){for(var r in t||(t={}))Du.call(t,r)&&lc(e,r,t[r]);if(sc)for(var o=0,n=sc(t);o<n.length;o++){var r=n[o];Uu.call(t,r)&&lc(e,r,t[r])}return e},za=function(e,t){return Lu(e,Mu(t))},Bu=function(e,t,r){return new Promise(function(o,n){var a=function(c){try{l(r.next(c))}catch(p){n(p)}},s=function(c){try{l(r.throw(c))}catch(p){n(p)}},l=function(c){return c.done?o(c.value):Promise.resolve(c.value).then(a,s)};l((r=r.apply(e,t)).next())})};var Fu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Pr:Pr.apply(null,arguments)},Bb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function zu(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var Wu=function(e){pc(t,e);function t(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=e.apply(this,r)||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 r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,$r([void 0],r[0].concat(this)))):new(t.bind.apply(t,$r([void 0],r.concat(this))))},t}(Array),Hu=function(e){pc(t,e);function t(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=e.apply(this,r)||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 r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,$r([void 0],r[0].concat(this)))):new(t.bind.apply(t,$r([void 0],r.concat(this))))},t}(Array);function Va(e){return Jt(e)?mi(e,function(){}):e}function Vu(e){return typeof e=="boolean"}function ju(){return function(t){return Ku(t)}}function Ku(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,o=e.immutableCheck,n=o===void 0?!0:o,a=e.serializableCheck,s=a===void 0?!0:a,l=new Wu;if(r&&(Vu(r)?l.push(Fa):l.push(Fa.withExtraArgument(r.extraArgument))),0){if(n)var c;if(s)var p}return l}var Wa=!0;function uc(e){var t=ju(),r=e||{},o=r.reducer,n=o===void 0?void 0:o,a=r.middleware,s=a===void 0?t():a,l=r.devTools,c=l===void 0?!0:l,p=r.preloadedState,u=p===void 0?void 0:p,h=r.enhancers,y=h===void 0?void 0:h,b;if(typeof n=="function")b=n;else if(zu(n))b=oc(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=s;if(typeof v=="function"&&(v=v(t),!Wa&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Wa&&v.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=ic.apply(void 0,v),N=Pr;c&&(N=Fu(Ue({trace:!Wa},typeof c=="object"&&c)));var T=new Hu(w),k=T;Array.isArray(y)?k=$r([w],y):typeof y=="function"&&(k=y(T));var O=N.apply(void 0,k);return Ba(b,u,O)}function Be(e,t){function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(t){var a=t.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return Ue(Ue({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:o[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(o){return o.type===e},r}function fc(e){var t={},r=[],o,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return e(n),[t,r,o]}function Gu(e){return typeof e=="function"}function Zu(e,t,r,o){r===void 0&&(r=[]);var n=typeof t=="function"?fc(t):[t,r,o],a=n[0],s=n[1],l=n[2],c;if(Gu(e))c=function(){return Va(e())};else{var p=Va(e);c=function(){return p}}function u(h,y){h===void 0&&(h=c());var b=$r([a[y.type]],s.filter(function(v){var w=v.matcher;return w(y)}).map(function(v){var w=v.reducer;return w}));return b.filter(function(v){return!!v}).length===0&&(b=[l]),b.reduce(function(v,w){if(w)if(Oe(v)){var N=v,T=w(N,y);return T===void 0?v:T}else{if(Jt(v))return mi(v,function(k){return w(k,y)});var T=w(v,y);if(T===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return v},h)}return u.getInitialState=c,u}function qu(e,t){return e+"/"+t}function hc(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Va(e.initialState),o=e.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(u){var h=o[u],y=qu(t,u),b,v;"reducer"in h?(b=h.reducer,v=h.prepare):b=h,a[u]=b,s[y]=b,l[u]=v?Be(y,v):Be(y)});function c(){var u=typeof e.extraReducers=="function"?fc(e.extraReducers):[e.extraReducers],h=u[0],y=h===void 0?{}:h,b=u[1],v=b===void 0?[]:b,w=u[2],N=w===void 0?void 0:w,T=Ue(Ue({},y),s);return Zu(r,function(k){for(var O in T)k.addCase(O,T[O]);for(var S=0,E=v;S<E.length;S++){var D=E[S];k.addMatcher(D.matcher,D.reducer)}N&&k.addDefaultCase(N)})}var p;return{name:t,reducer:function(u,h){return p||(p=c()),p(u,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=c()),p.getInitialState()}}}var Yu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Xu=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=Yu[Math.random()*64|0];return t},Ju=["name","message","stack","code"],Ha=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),cc=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Qu=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,o=Ju;r<o.length;r++){var n=o[r];typeof e[n]=="string"&&(t[n]=e[n])}return t}return{message:String(e)}},Hb=function(){function e(t,r,o){var n=Be(t+"/fulfilled",function(u,h,y,b){return{payload:u,meta:za(Ue({},b||{}),{arg:y,requestId:h,requestStatus:"fulfilled"})}}),a=Be(t+"/pending",function(u,h,y){return{payload:void 0,meta:za(Ue({},y||{}),{arg:h,requestId:u,requestStatus:"pending"})}}),s=Be(t+"/rejected",function(u,h,y,b,v){return{payload:b,error:(o&&o.serializeError||Qu)(u||"Rejected"),meta:za(Ue({},v||{}),{arg:y,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),l=!1,c=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function p(u){return function(h,y,b){var v=o?.idGenerator?o.idGenerator(u):Xu(),w=new c,N,T=!1;function k(S){N=S,w.abort()}var O=function(){return Bu(this,null,function(){var S,E,D,W,At,Y,m;return $u(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),W=(S=o?.condition)==null?void 0:S.call(o,u,{getState:y,extra:b}),ef(W)?[4,W]:[3,2];case 1:W=x.sent(),x.label=2;case 2:if(W===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,At=new Promise(function(_,G){return w.signal.addEventListener("abort",function(){return G({name:"AbortError",message:N||"Aborted"})})}),h(a(v,u,(E=o?.getPendingMeta)==null?void 0:E.call(o,{requestId:v,arg:u},{getState:y,extra:b}))),[4,Promise.race([At,Promise.resolve(r(u,{dispatch:h,getState:y,extra:b,requestId:v,signal:w.signal,abort:k,rejectWithValue:function(_,G){return new Ha(_,G)},fulfillWithValue:function(_,G){return new cc(_,G)}})).then(function(_){if(_ instanceof Ha)throw _;return _ instanceof cc?n(_.payload,v,u,_.meta):n(_,v,u)})])];case 3:return D=x.sent(),[3,5];case 4:return Y=x.sent(),D=Y instanceof Ha?s(null,v,u,Y.payload,Y.meta):s(Y,v,u),[3,5];case 5:return m=o&&!o.dispatchConditionRejection&&s.match(D)&&D.meta.condition,m||h(D),[2,D]}})})}();return Object.assign(O,{abort:k,requestId:v,arg:u,unwrap:function(){return O.then(tf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return e.withTypes=function(){return e},e}();function tf(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ef(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var mc="listener",gc="completed",yc="cancelled",Vb="task-"+yc,jb="task-"+gc,Kb=mc+"-"+yc,Gb=mc+"-"+gc;var ja="listenerMiddleware";var Zb=Be(ja+"/add"),qb=Be(ja+"/removeAll"),Yb=Be(ja+"/remove");var dc,Xb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(dc||(dc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},rf=function(e){return function(t){setTimeout(t,e)}},Jb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:rf(10);Jl();window.ftReduxStores||(window.ftReduxStores={});var we=class e{static get(t){var r;let o=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[o];if(dr(a))return a;if(n==null)return;let s=hc({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=uc({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 e(s,l)}constructor(t,r){this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new xo,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(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 of(){var e;for(let t of Object.values((e=window.ftReduxStores)!==null&&e!==void 0?e:{}))dr(t)&&t.clear()}var Ga={};it(Ga,{serializeRequest:()=>af});function nf(e){return`"${e}"`}function af(e,t){var r,o,n,a;let s=new URLSearchParams({"content-lang":(r=t.contentLocale)!==null&&r!==void 0?r:"all"});if(((o=t.query)===null||o===void 0?void 0:o.length)>0&&s.append("query",t.query),t.scope&&t.scope!=="DEFAULT"&&s.append("scope",t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&s.append("virtual-field",t.virtualField.toLowerCase()),t.periodFilter){let c=t.periodFilter.period,p=c?`_${c.from}_${c.to}`:"";s.append("period",t.periodFilter.periodType.toLowerCase()+p)}if(((n=t.sort)===null||n===void 0?void 0:n.length)>0&&t.sort[0].key==="ft:lastEdition"&&s.append("sort","last_update"),((a=t.filters)===null||a===void 0?void 0:a.length)>0){let c=t.filters.map(p=>{let u=p.values.map(h=>h.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(h=>encodeURIComponent(nf(h))).join("_");return`${p.key}~${u}`}).join("*");s.append("filters",c)}return new URL(`${e.replace(/\/+$/,"")}/search?${s.toString()}`).href}var Za={};it(Za,{toFtFormComponent:()=>fr});var bi=Symbol("elementInternals");function fr(e,t){class r extends e{static get formAssociated(){return!0}get form(){return this[bi].form}constructor(...n){super(n),this[bi]=this.attachInternals(),this[bi].role=t}setFormValue(n){this[bi].setFormValue(n)}}return r}var hr=class{static format(t,r,o,n){return window.moment?window.moment(t).locale(r).format(this.getDateFormat(o,n)):t}static getDateFormat(t,r){return t?r?"lll":"ll":r?"L LT":"L"}};var qa,Ya,Xa,Ja,Eo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Xa=(Ya=(qa=window.safari)===null||qa===void 0?void 0:qa.pushNotification)===null||Ya===void 0?void 0:Ya.toString())!==null&&Xa!==void 0?Xa:"")==="[object SafariRemoteNotification]",sf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ja=window.ftGlobals)!==null&&Ja!==void 0?Ja:{lit:ln,litDecorators:dn,litRepeat:un,litClassMap:fn,litStyleMap:hn,litUnsafeHTML:gn,wcUtils:{...vn,...bn,...xn,...hr,...Sn,...wn,...Jn,...ea,...ua,...Xn,...ha,...Dl,...On,...ba,...va,...Bl,...xa,...Ka,...fa,...Ga,...Za,isSafari:Eo,isTouchScreen:sf}};var Gt;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Gt||(Gt={}));var lf=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},ts=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Qa=Symbol("registerInterval");function cf(e){var t;class r extends e{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[Qa]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Qa]):this.dispatchEvent(new ts)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Qa,lf([H()],r.prototype,"stateManager",void 0),r}var Fe=class extends cf(jt){};var bc=i.extend("--ft-ripple-color","",A.colorContent),z={color:bc,backgroundColor:i.extend("--ft-ripple-background-color","",bc),opacityContentOnSurfacePressed:i.external(A.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(A.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(A.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(A.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},vc=i.extend("--ft-ripple-color","",A.colorPrimary),xc={color:vc,backgroundColor:i.extend("--ft-ripple-background-color","",vc)},Sc=i.extend("--ft-ripple-color","",A.colorSecondary),Oc={color:Sc,backgroundColor:i.extend("--ft-ripple-background-color","",Sc)},wc=P`
42
+ `;var Hc={};var wa={};st(wa,{ParametrizedLabelResolver:()=>Oo});var Oo=class{constructor(t,r){this.defaultLabels=t,this.labels=r}resolve(t,...r){var o,n;t=this.resolvePluralKey(t,r);let s=(n=(o=this.labels[t])!==null&&o!==void 0?o:this.defaultLabels[t])!==null&&n!==void 0?n:"";return r.forEach((c,l)=>s=s.replace(new RegExp(`\\{${l}([^}]*)\\}`,"g"),(d,u)=>this.formatValue(c,u))),s}resolvePluralKey(t,r){for(let o of r)if(typeof o=="number"){let n=`${String(t)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return t}formatValue(t,r){return t instanceof Date?this.formatDate(t,r):t??""}formatDate(t,r){let o=n=>r?.includes("date")?t.toLocaleDateString(n):r?.includes("time")?t.toLocaleTimeString(n):t.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var Ya={};st(Ya,{FtCommandQueue:()=>wo,FtLitElementRedux:()=>jt,FtReduxStore:()=>Ne,clearAllStores:()=>pu,isFtReduxStore:()=>hr,redux:()=>ct,reduxEventListener:()=>Co,reduxReactive:()=>Af});var Af=()=>(e,t)=>{var r;let o=e.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(r=o.reduxReactiveProperties)===null||r===void 0||r.add(t)},ct=e=>{let t=e??{};return(r,o)=>{var n;let s={hasChanged:fo,attribute:!1,...t};x(s)(r,o);let c=r.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(o,{selector:(n=t.selector)!==null&&n!==void 0?n:l=>l[o],store:t.store})}},Co=e=>(t,r)=>{let o=t.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(r,e)};var wo=class{constructor(){this.queue=[]}add(t,r=!1){r&&(this.queue=this.queue.filter(o=>o.type!==t.type)),this.queue.push(t)}consume(t){let r=this.queue.find(o=>o.type===t);return r&&(this.queue=this.queue.filter(o=>o!==r)),r}};function hr(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Gc,Kc,Vc,mi=Symbol("internalReduxEventsUnsubscribers"),Ue=Symbol("internalStoresUnsubscribers"),mr=Symbol("internalStores"),jt=class extends H{constructor(){super(...arguments),this[Gc]=new Map,this[Kc]=new Map,this[Vc]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(r=>t.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[mr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[mr].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[mr].get(t)}addStore(t,r){var o;r=(o=r??(hr(t)?t.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,t)}removeStore(t){let r=typeof t=="string"?t:t.name;this.unsubscribeFromStore(r),this[mr].delete(r)}setupStore(t,r){this[mr].set(t,r),this.subscribeToStore(t,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[mr].forEach((t,r)=>this.subscribeToStore(r,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,r)=>{let o=this.constructor.getPropertyOptions(r);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:r)){let n=this.getStore(t.store);n&&(t.store?this[Ue].has(t.store):this[Ue].size>0)&&(this[r]=t.selector(n.getState(),this))}})}subscribeToStore(t,r){var o;this[Ue].set(t,r.subscribe(()=>this.updateFromStores())),hr(r)&&r.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((n,s)=>{if(typeof this[s]=="function"&&(!n.store||r.name===n.store)){let c=l=>this[s](l);r.eventBus.addEventListener(n.eventName,c),this[mi].push(()=>r.eventBus.removeEventListener(n.eventName,c))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ue].forEach((t,r)=>this.unsubscribeFromStore(r)),this[mi].forEach(t=>t()),this[mi]=[]}unsubscribeFromStore(t){this[Ue].has(t)&&this[Ue].get(t)(),this[Ue].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Gc=Ue,Kc=mr,Vc=mi;jt.reduxProperties=new Map;jt.reduxReactiveProperties=new Set;jt.reduxEventListeners=new Map;function qt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];if(0)var n,s;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(c){return"'"+c+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ee(e){return!!e&&!!e[lt]}function re(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var o=Object.getPrototypeOf(r);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Df}(e)||Array.isArray(e)||!!e[Qc]||!!(!((t=e.constructor)===null||t===void 0)&&t[Qc])||ka(e)||La(e))}function gr(e,t,r){r===void 0&&(r=!1),$r(e)===0?(r?Object.keys:Lr)(e).forEach(function(o){r&&typeof o=="symbol"||t(o,e[o],e)}):e.forEach(function(o,n){return t(n,o,e)})}function $r(e){var t=e[lt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:ka(e)?2:La(e)?3:0}function kr(e,t){return $r(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function If(e,t){return $r(e)===2?e.get(t):e[t]}function tl(e,t,r){var o=$r(e);o===2?e.set(t,r):o===3?e.add(r):e[t]=r}function el(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ka(e){return Lf&&e instanceof Map}function La(e){return $f&&e instanceof Set}function Me(e){return e.o||e.t}function $a(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=il(e);delete t[lt];for(var r=Lr(t),o=0;o<r.length;o++){var n=r[o],s=t[n];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[n]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[n]})}return Object.create(Object.getPrototypeOf(e),t)}function Da(e,t){return t===void 0&&(t=!1),Ua(e)||Ee(e)||!re(e)||($r(e)>1&&(e.set=e.add=e.clear=e.delete=_f),Object.freeze(e),t&&gr(e,function(r,o){return Da(o,!0)},!0)),e}function _f(){qt(2)}function Ua(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function pe(e){var t=Pa[e];return t||qt(18,e),t}function Tf(e,t){Pa[e]||(Pa[e]=t)}function Ia(){return No}function Ea(e,t){t&&(pe("Patches"),e.u=[],e.s=[],e.v=t)}function gi(e){_a(e),e.p.forEach(Pf),e.p=null}function _a(e){e===No&&(No=e.l)}function Zc(e){return No={p:[],l:No,h:e,m:!0,_:0}}function Pf(e){var t=e[lt];t.i===0||t.i===1?t.j():t.g=!0}function Na(e,t){t._=t.p.length;var r=t.p[0],o=e!==void 0&&e!==r;return t.h.O||pe("ES5").S(t,e,o),o?(r[lt].P&&(gi(t),qt(4)),re(e)&&(e=yi(t,e),t.l||bi(t,e)),t.u&&pe("Patches").M(r[lt].t,e,t.u,t.s)):e=yi(t,r,[]),gi(t),t.u&&t.v(t.u,t.s),e!==ol?e:void 0}function yi(e,t,r){if(Ua(t))return t;var o=t[lt];if(!o)return gr(t,function(l,d){return jc(e,o,t,l,d,r)},!0),t;if(o.A!==e)return t;if(!o.P)return bi(e,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=$a(o.k):o.o,s=n,c=!1;o.i===3&&(s=new Set(n),n.clear(),c=!0),gr(s,function(l,d){return jc(e,o,n,l,d,r,c)}),bi(e,n,!1),r&&e.u&&pe("Patches").N(o,r,e.u,e.s)}return o.o}function jc(e,t,r,o,n,s,c){if(Ee(n)){var l=yi(e,n,s&&t&&t.i!==3&&!kr(t.R,o)?s.concat(o):void 0);if(tl(r,o,l),!Ee(l))return;e.m=!1}else c&&r.add(n);if(re(n)&&!Ua(n)){if(!e.h.D&&e._<1)return;yi(e,n),t&&t.A.l||bi(e,n)}}function bi(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Da(t,r)}function Ra(e,t){var r=e[lt];return(r?Me(r):e)[t]}function qc(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var o=Object.getOwnPropertyDescriptor(r,t);if(o)return o;r=Object.getPrototypeOf(r)}}function Be(e){e.P||(e.P=!0,e.l&&Be(e.l))}function Aa(e){e.o||(e.o=$a(e.t))}function Ta(e,t,r){var o=ka(t)?pe("MapSet").F(t,r):La(t)?pe("MapSet").T(t,r):e.O?function(n,s){var c=Array.isArray(n),l={i:c?1:0,A:s?s.A:Ia(),P:!1,I:!1,R:{},l:s,t:n,k:null,o:null,j:null,C:!1},d=l,u=Ro;c&&(d=[l],u=Eo);var h=Proxy.revocable(d,u),y=h.revoke,v=h.proxy;return l.k=v,l.j=y,v}(t,r):pe("ES5").J(t,r);return(r?r.A:Ia()).p.push(o),o}function kf(e){return Ee(e)||qt(22,e),function t(r){if(!re(r))return r;var o,n=r[lt],s=$r(r);if(n){if(!n.P&&(n.i<4||!pe("ES5").K(n)))return n.t;n.I=!0,o=Yc(r,s),n.I=!1}else o=Yc(r,s);return gr(o,function(c,l){n&&If(n.t,c)===l||tl(o,c,t(l))}),s===3?new Set(o):o}(e)}function Yc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return $a(e)}function rl(){function e(c,l){var d=s[c];return d?d.enumerable=l:s[c]=d={configurable:!0,enumerable:l,get:function(){var u=this[lt];return Ro.get(u,c)},set:function(u){var h=this[lt];Ro.set(h,c,u)}},d}function t(c){for(var l=c.length-1;l>=0;l--){var d=c[l][lt];if(!d.P)switch(d.i){case 5:o(d)&&Be(d);break;case 4:r(d)&&Be(d)}}}function r(c){for(var l=c.t,d=c.k,u=Lr(d),h=u.length-1;h>=0;h--){var y=u[h];if(y!==lt){var v=l[y];if(v===void 0&&!kr(l,y))return!0;var S=d[y],O=S&&S[lt];if(O?O.t!==v:!el(S,v))return!0}}var N=!!l[lt];return u.length!==Lr(l).length+(N?0:1)}function o(c){var l=c.k;if(l.length!==c.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function n(c){c.g&&qt(3,JSON.stringify(Me(c)))}var s={};Tf("ES5",{J:function(c,l){var d=Array.isArray(c),u=function(y,v){if(y){for(var S=Array(v.length),O=0;O<v.length;O++)Object.defineProperty(S,""+O,e(O,!0));return S}var N=il(v);delete N[lt];for(var k=Lr(N),L=0;L<k.length;L++){var U=k[L];N[U]=e(U,y||!!N[U].enumerable)}return Object.create(Object.getPrototypeOf(v),N)}(d,c),h={i:d?5:4,A:l?l.A:Ia(),P:!1,I:!1,R:{},l,t:c,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,lt,{value:h,writable:!0}),u},S:function(c,l,d){d?Ee(l)&&l[lt].A===c&&t(c.p):(c.u&&function u(h){if(h&&typeof h=="object"){var y=h[lt];if(y){var v=y.t,S=y.k,O=y.R,N=y.i;if(N===4)gr(S,function(w){w!==lt&&(v[w]!==void 0||kr(v,w)?O[w]||u(S[w]):(O[w]=!0,Be(y)))}),gr(v,function(w){S[w]!==void 0||kr(S,w)||(O[w]=!1,Be(y))});else if(N===5){if(o(y)&&(Be(y),O.length=!0),S.length<v.length)for(var k=S.length;k<v.length;k++)O[k]=!1;else for(var L=v.length;L<S.length;L++)O[L]=!0;for(var U=Math.min(S.length,v.length),E=0;E<U;E++)S.hasOwnProperty(E)||(O[E]=!0),O[E]===void 0&&u(S[E])}}}}(c.p[0]),t(c.p))},K:function(c){return c.i===4?r(c):o(c)}})}var Xc,No,Ma=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Lf=typeof Map<"u",$f=typeof Set<"u",Jc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ol=Ma?Symbol.for("immer-nothing"):((Xc={})["immer-nothing"]=!0,Xc),Qc=Ma?Symbol.for("immer-draftable"):"__$immer_draftable",lt=Ma?Symbol.for("immer-state"):"__$immer_state";var Df=""+Object.prototype.constructor,Lr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,il=Object.getOwnPropertyDescriptors||function(e){var t={};return Lr(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Pa={},Ro={get:function(e,t){if(t===lt)return e;var r=Me(e);if(!kr(r,t))return function(n,s,c){var l,d=qc(s,c);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0}(e,r,t);var o=r[t];return e.I||!re(o)?o:o===Ra(e.t,t)?(Aa(e),e.o[t]=Ta(e.A.h,o,e)):o},has:function(e,t){return t in Me(e)},ownKeys:function(e){return Reflect.ownKeys(Me(e))},set:function(e,t,r){var o=qc(Me(e),t);if(o?.set)return o.set.call(e.k,r),!0;if(!e.P){var n=Ra(Me(e),t),s=n?.[lt];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(el(r,n)&&(r!==void 0||kr(e.t,t)))return!0;Aa(e),Be(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Ra(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Aa(e),Be(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Me(e),o=Reflect.getOwnPropertyDescriptor(r,t);return o&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:o.enumerable,value:r[t]}},defineProperty:function(){qt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){qt(12)}},Eo={};gr(Ro,function(e,t){Eo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Eo.deleteProperty=function(e,t){return Eo.set.call(this,e,t,void 0)},Eo.set=function(e,t,r){return Ro.set.call(this,e[0],t,r,e[0])};var Uf=function(){function e(r){var o=this;this.O=Jc,this.D=!0,this.produce=function(n,s,c){if(typeof n=="function"&&typeof s!="function"){var l=s;s=n;var d=o;return function(N){var k=this;N===void 0&&(N=l);for(var L=arguments.length,U=Array(L>1?L-1:0),E=1;E<L;E++)U[E-1]=arguments[E];return d.produce(N,function(w){var R;return(R=s).call.apply(R,[k,w].concat(U))})}}var u;if(typeof s!="function"&&qt(6),c!==void 0&&typeof c!="function"&&qt(7),re(n)){var h=Zc(o),y=Ta(o,n,void 0),v=!0;try{u=s(y),v=!1}finally{v?gi(h):_a(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(N){return Ea(h,c),Na(N,h)},function(N){throw gi(h),N}):(Ea(h,c),Na(u,h))}if(!n||typeof n!="object"){if((u=s(n))===void 0&&(u=n),u===ol&&(u=void 0),o.D&&Da(u,!0),c){var S=[],O=[];pe("Patches").M(n,u,S,O),c(S,O)}return u}qt(21,n)},this.produceWithPatches=function(n,s){if(typeof n=="function")return function(u){for(var h=arguments.length,y=Array(h>1?h-1:0),v=1;v<h;v++)y[v-1]=arguments[v];return o.produceWithPatches(u,function(S){return n.apply(void 0,[S].concat(y))})};var c,l,d=o.produce(n,s,function(u,h){c=u,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(u){return[u,c,l]}):[d,c,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){re(r)||qt(8),Ee(r)&&(r=kf(r));var o=Zc(this),n=Ta(this,r,void 0);return n[lt].C=!0,_a(o),n},t.finishDraft=function(r,o){var n=r&&r[lt],s=n.A;return Ea(s,o),Na(void 0,s)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Jc&&qt(20),this.O=r},t.applyPatches=function(r,o){var n;for(n=o.length-1;n>=0;n--){var s=o[n];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}n>-1&&(o=o.slice(n+1));var c=pe("Patches").$;return Ee(r)?c(r,o):this.produce(r,function(l){return c(l,o)})},e}(),Kt=new Uf,Mf=Kt.produce,Cb=Kt.produceWithPatches.bind(Kt),wb=Kt.setAutoFreeze.bind(Kt),Eb=Kt.setUseProxies.bind(Kt),Nb=Kt.applyPatches.bind(Kt),Rb=Kt.createDraft.bind(Kt),Ab=Kt.finishDraft.bind(Kt),xi=Mf;function Fe(e){"@babel/helpers - typeof";return Fe=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},Fe(e)}function Ba(e,t){if(Fe(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(Fe(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fa(e){var t=Ba(e,"string");return Fe(t)==="symbol"?t:String(t)}function Wa(e,t,r){return t=Fa(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function vi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nl(Object(r),!0).forEach(function(o){Wa(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nl(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function _t(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var al=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),za=function(){return Math.random().toString(36).substring(7).split("").join(".")},Si={INIT:"@@redux/INIT"+za(),REPLACE:"@@redux/REPLACE"+za(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+za()}};function Bf(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Ha(e,t,r){var o;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(_t(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(_t(1));return r(Ha)(e,t)}if(typeof e!="function")throw new Error(_t(2));var n=e,s=t,c=[],l=c,d=!1;function u(){l===c&&(l=c.slice())}function h(){if(d)throw new Error(_t(3));return s}function y(N){if(typeof N!="function")throw new Error(_t(4));if(d)throw new Error(_t(5));var k=!0;return u(),l.push(N),function(){if(k){if(d)throw new Error(_t(6));k=!1,u();var U=l.indexOf(N);l.splice(U,1),c=null}}}function v(N){if(!Bf(N))throw new Error(_t(7));if(typeof N.type>"u")throw new Error(_t(8));if(d)throw new Error(_t(9));try{d=!0,s=n(s,N)}finally{d=!1}for(var k=c=l,L=0;L<k.length;L++){var U=k[L];U()}return N}function S(N){if(typeof N!="function")throw new Error(_t(10));n=N,v({type:Si.REPLACE})}function O(){var N,k=y;return N={subscribe:function(U){if(typeof U!="object"||U===null)throw new Error(_t(11));function E(){U.next&&U.next(h())}E();var w=k(E);return{unsubscribe:w}}},N[al]=function(){return this},N}return v({type:Si.INIT}),o={dispatch:v,subscribe:y,getState:h,replaceReducer:S},o[al]=O,o}function Ff(e){Object.keys(e).forEach(function(t){var r=e[t],o=r(void 0,{type:Si.INIT});if(typeof o>"u")throw new Error(_t(12));if(typeof r(void 0,{type:Si.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_t(13))})}function sl(e){for(var t=Object.keys(e),r={},o=0;o<t.length;o++){var n=t[o];typeof e[n]=="function"&&(r[n]=e[n])}var s=Object.keys(r),c,l;try{Ff(r)}catch(d){l=d}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var y;for(var v=!1,S={},O=0;O<s.length;O++){var N=s[O],k=r[N],L=u[N],U=k(L,h);if(typeof U>"u"){var E=h&&h.type;throw new Error(_t(14))}S[N]=U,v=v||U!==L}return v=v||s.length!==Object.keys(u).length,v?S:u}}function Dr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(o){return o}:t.length===1?t[0]:t.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function cl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(o){return function(){var n=o.apply(void 0,arguments),s=function(){throw new Error(_t(15))},c={getState:n.getState,dispatch:function(){return s.apply(void 0,arguments)}},l=t.map(function(d){return d(c)});return s=Dr.apply(void 0,l)(n.dispatch),vi(vi({},n),{},{dispatch:s})}}}function ll(e){var t=function(o){var n=o.dispatch,s=o.getState;return function(c){return function(l){return typeof l=="function"?l(n,s,e):c(l)}}};return t}var dl=ll();dl.withExtraArgument=ll;var Ga=dl;var ml=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(o[s]=n[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),Wf=function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,n,s,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(u){return function(h){return d([u,h])}}function d(u){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,n&&(s=u[0]&2?n.return:u[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,u[1])).done)return s;switch(n=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){r.label=u[1];break}if(u[0]===6&&r.label<s[1]){r.label=s[1],s=u;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(u);break}s[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(h){u=[6,h],n=0}finally{o=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Ur=function(e,t){for(var r=0,o=t.length,n=e.length;r<o;r++,n++)e[n]=t[r];return e},zf=Object.defineProperty,Hf=Object.defineProperties,Gf=Object.getOwnPropertyDescriptors,pl=Object.getOwnPropertySymbols,Kf=Object.prototype.hasOwnProperty,Vf=Object.prototype.propertyIsEnumerable,fl=function(e,t,r){return t in e?zf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},We=function(e,t){for(var r in t||(t={}))Kf.call(t,r)&&fl(e,r,t[r]);if(pl)for(var o=0,n=pl(t);o<n.length;o++){var r=n[o];Vf.call(t,r)&&fl(e,r,t[r])}return e},Ka=function(e,t){return Hf(e,Gf(t))},Zf=function(e,t,r){return new Promise(function(o,n){var s=function(d){try{l(r.next(d))}catch(u){n(u)}},c=function(d){try{l(r.throw(d))}catch(u){n(u)}},l=function(d){return d.done?o(d.value):Promise.resolve(d.value).then(s,c)};l((r=r.apply(e,t)).next())})};var jf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Dr:Dr.apply(null,arguments)},Vb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function qf(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var Yf=function(e){ml(t,e);function t(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=e.apply(this,r)||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 r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Ur([void 0],r[0].concat(this)))):new(t.bind.apply(t,Ur([void 0],r.concat(this))))},t}(Array),Xf=function(e){ml(t,e);function t(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var n=e.apply(this,r)||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 r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Ur([void 0],r[0].concat(this)))):new(t.bind.apply(t,Ur([void 0],r.concat(this))))},t}(Array);function ja(e){return re(e)?xi(e,function(){}):e}function Jf(e){return typeof e=="boolean"}function Qf(){return function(t){return tu(t)}}function tu(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,o=e.immutableCheck,n=o===void 0?!0:o,s=e.serializableCheck,c=s===void 0?!0:s,l=new Yf;if(r&&(Jf(r)?l.push(Ga):l.push(Ga.withExtraArgument(r.extraArgument))),0){if(n)var d;if(c)var u}return l}var Va=!0;function gl(e){var t=Qf(),r=e||{},o=r.reducer,n=o===void 0?void 0:o,s=r.middleware,c=s===void 0?t():s,l=r.devTools,d=l===void 0?!0:l,u=r.preloadedState,h=u===void 0?void 0:u,y=r.enhancers,v=y===void 0?void 0:y,S;if(typeof n=="function")S=n;else if(qf(n))S=sl(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 O=c;if(typeof O=="function"&&(O=O(t),!Va&&!Array.isArray(O)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Va&&O.some(function(w){return typeof w!="function"}))throw new Error("each middleware provided to configureStore must be a function");var N=cl.apply(void 0,O),k=Dr;d&&(k=jf(We({trace:!Va},typeof d=="object"&&d)));var L=new Xf(N),U=L;Array.isArray(v)?U=Ur([N],v):typeof v=="function"&&(U=v(L));var E=k.apply(void 0,U);return Ha(S,h,E)}function ze(e,t){function r(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(t){var s=t.apply(void 0,o);if(!s)throw new Error("prepareAction did not return an object");return We(We({type:e,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:e,payload:o[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(o){return o.type===e},r}function yl(e){var t={},r=[],o,n={addCase:function(s,c){var l=typeof s=="string"?s:s.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=c,n},addMatcher:function(s,c){return r.push({matcher:s,reducer:c}),n},addDefaultCase:function(s){return o=s,n}};return e(n),[t,r,o]}function eu(e){return typeof e=="function"}function ru(e,t,r,o){r===void 0&&(r=[]);var n=typeof t=="function"?yl(t):[t,r,o],s=n[0],c=n[1],l=n[2],d;if(eu(e))d=function(){return ja(e())};else{var u=ja(e);d=function(){return u}}function h(y,v){y===void 0&&(y=d());var S=Ur([s[v.type]],c.filter(function(O){var N=O.matcher;return N(v)}).map(function(O){var N=O.reducer;return N}));return S.filter(function(O){return!!O}).length===0&&(S=[l]),S.reduce(function(O,N){if(N)if(Ee(O)){var k=O,L=N(k,v);return L===void 0?O:L}else{if(re(O))return xi(O,function(U){return N(U,v)});var L=N(O,v);if(L===void 0){if(O===null)return O;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return O},y)}return h.getInitialState=d,h}function ou(e,t){return e+"/"+t}function bl(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:ja(e.initialState),o=e.reducers||{},n=Object.keys(o),s={},c={},l={};n.forEach(function(h){var y=o[h],v=ou(t,h),S,O;"reducer"in y?(S=y.reducer,O=y.prepare):S=y,s[h]=S,c[v]=S,l[h]=O?ze(v,O):ze(v)});function d(){var h=typeof e.extraReducers=="function"?yl(e.extraReducers):[e.extraReducers],y=h[0],v=y===void 0?{}:y,S=h[1],O=S===void 0?[]:S,N=h[2],k=N===void 0?void 0:N,L=We(We({},v),c);return ru(r,function(U){for(var E in L)U.addCase(E,L[E]);for(var w=0,R=O;w<R.length;w++){var F=R[w];U.addMatcher(F.matcher,F.reducer)}k&&U.addDefaultCase(k)})}var u;return{name:t,reducer:function(h,y){return u||(u=d()),u(h,y)},actions:l,caseReducers:s,getInitialState:function(){return u||(u=d()),u.getInitialState()}}}var iu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nu=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=iu[Math.random()*64|0];return t},au=["name","message","stack","code"],Za=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),ul=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),su=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,o=au;r<o.length;r++){var n=o[r];typeof e[n]=="string"&&(t[n]=e[n])}return t}return{message:String(e)}},Yb=function(){function e(t,r,o){var n=ze(t+"/fulfilled",function(h,y,v,S){return{payload:h,meta:Ka(We({},S||{}),{arg:v,requestId:y,requestStatus:"fulfilled"})}}),s=ze(t+"/pending",function(h,y,v){return{payload:void 0,meta:Ka(We({},v||{}),{arg:y,requestId:h,requestStatus:"pending"})}}),c=ze(t+"/rejected",function(h,y,v,S,O){return{payload:S,error:(o&&o.serializeError||su)(h||"Rejected"),meta:Ka(We({},O||{}),{arg:v,requestId:y,rejectedWithValue:!!S,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function u(h){return function(y,v,S){var O=o?.idGenerator?o.idGenerator(h):nu(),N=new d,k,L=!1;function U(w){k=w,N.abort()}var E=function(){return Zf(this,null,function(){var w,R,F,K,It,Q,b;return Wf(this,function(C){switch(C.label){case 0:return C.trys.push([0,4,,5]),K=(w=o?.condition)==null?void 0:w.call(o,h,{getState:v,extra:S}),lu(K)?[4,K]:[3,2];case 1:K=C.sent(),C.label=2;case 2:if(K===!1||N.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return L=!0,It=new Promise(function(T,Y){return N.signal.addEventListener("abort",function(){return Y({name:"AbortError",message:k||"Aborted"})})}),y(s(O,h,(R=o?.getPendingMeta)==null?void 0:R.call(o,{requestId:O,arg:h},{getState:v,extra:S}))),[4,Promise.race([It,Promise.resolve(r(h,{dispatch:y,getState:v,extra:S,requestId:O,signal:N.signal,abort:U,rejectWithValue:function(T,Y){return new Za(T,Y)},fulfillWithValue:function(T,Y){return new ul(T,Y)}})).then(function(T){if(T instanceof Za)throw T;return T instanceof ul?n(T.payload,O,h,T.meta):n(T,O,h)})])];case 3:return F=C.sent(),[3,5];case 4:return Q=C.sent(),F=Q instanceof Za?c(null,O,h,Q.payload,Q.meta):c(Q,O,h),[3,5];case 5:return b=o&&!o.dispatchConditionRejection&&c.match(F)&&F.meta.condition,b||y(F),[2,F]}})})}();return Object.assign(E,{abort:U,requestId:O,arg:h,unwrap:function(){return E.then(cu)}})}}return Object.assign(u,{pending:s,rejected:c,fulfilled:n,typePrefix:t})}return e.withTypes=function(){return e},e}();function cu(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function lu(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var xl="listener",vl="completed",Sl="cancelled",Xb="task-"+Sl,Jb="task-"+vl,Qb=xl+"-"+Sl,tx=xl+"-"+vl;var qa="listenerMiddleware";var ex=ze(qa+"/add"),rx=ze(qa+"/removeAll"),ox=ze(qa+"/remove");var hl,ix=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(hl||(hl=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},du=function(e){return function(t){setTimeout(t,e)}},nx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:du(10);rl();window.ftReduxStores||(window.ftReduxStores={});var Ne=class e{static get(t){var r;let o=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,s=window.ftReduxStores[o];if(hr(s))return s;if(n==null)return;let c=bl({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=gl({reducer:(d,u)=>u.type==="CLEAR_FT_REDUX_STORE"?c.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...u.overwrites}:c.reducer(d,u)});return window.ftReduxStores[n.name]=new e(c,l)}constructor(t,r){this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new wo,this.actions=new Proxy(this.reduxSlice.actions,{get:(o,n,s)=>{let c=n,l=o[c];return l?(...d)=>{let u=l(...d);return this.reduxStore.dispatch(u),u}:d=>{this.setState({[c]:d})}}})}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 pu(){var e;for(let t of Object.values((e=window.ftReduxStores)!==null&&e!==void 0?e:{}))hr(t)&&t.clear()}var Xa={};st(Xa,{serializeRequest:()=>uu});function fu(e){return`"${e}"`}function uu(e,t){var r,o,n,s;let c=new URLSearchParams({"content-lang":(r=t.contentLocale)!==null&&r!==void 0?r:"all"});if(((o=t.query)===null||o===void 0?void 0:o.length)>0&&c.append("query",t.query),t.scope&&t.scope!=="DEFAULT"&&c.append("scope",t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&c.append("virtual-field",t.virtualField.toLowerCase()),t.periodFilter){let d=t.periodFilter.period,u=d?`_${d.from}_${d.to}`:"";c.append("period",t.periodFilter.periodType.toLowerCase()+u)}if(((n=t.sort)===null||n===void 0?void 0:n.length)>0&&t.sort[0].key==="ft:lastEdition"&&c.append("sort","last_update"),((s=t.filters)===null||s===void 0?void 0:s.length)>0){let d=t.filters.map(u=>{let h=u.values.map(y=>y.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(y=>encodeURIComponent(fu(y))).join("_");return`${u.key}~${h}`}).join("*");c.append("filters",d)}return new URL(`${e.replace(/\/+$/,"")}/search?${c.toString()}`).href}var Ja={};st(Ja,{toFtFormComponent:()=>yr});var Oi=Symbol("elementInternals");function yr(e,t){class r extends e{static get formAssociated(){return!0}get form(){return this[Oi].form}constructor(...n){super(n),this[Oi]=this.attachInternals(),this[Oi].role=t}setFormValue(n){this[Oi].setFormValue(n)}}return r}var br=class{static format(t,r,o,n){return window.moment?window.moment(t).locale(r).format(this.getDateFormat(o,n)):t}static getDateFormat(t,r){return t?r?"lll":"ll":r?"L LT":"L"}};var Qa,ts,es,rs,Ao=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((es=(ts=(Qa=window.safari)===null||Qa===void 0?void 0:Qa.pushNotification)===null||ts===void 0?void 0:ts.toString())!==null&&es!==void 0?es:"")==="[object SafariRemoteNotification]",hu="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(rs=window.ftGlobals)!==null&&rs!==void 0?rs:{lit:fn,litDecorators:hn,litRepeat:gn,litClassMap:yn,litStyleMap:bn,litUnsafeHTML:vn,wcUtils:{...Cn,...On,...wn,...br,...En,...Rn,...ra,...na,...ga,...ea,...ba,...Wc,...Nn,...Oa,...Ca,...Hc,...wa,...Ya,...ya,...Xa,...Ja,isSafari:Ao,isTouchScreen:hu}};var Yt;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Yt||(Yt={}));var mu=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},is=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},os=Symbol("registerInterval");function gu(e){var t;class r extends e{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[os]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[os]):this.dispatchEvent(new is)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=os,mu([V()],r.prototype,"stateManager",void 0),r}var He=class extends gu(jt){};var Ol=i.extend("--ft-ripple-color","",I.colorContent),G={color:Ol,backgroundColor:i.extend("--ft-ripple-background-color","",Ol),opacityContentOnSurfacePressed:i.external(I.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(I.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(I.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(I.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},Cl=i.extend("--ft-ripple-color","",I.colorPrimary),wl={color:Cl,backgroundColor:i.extend("--ft-ripple-background-color","",Cl)},El=i.extend("--ft-ripple-color","",I.colorSecondary),Nl={color:El,backgroundColor:i.extend("--ft-ripple-background-color","",El)},Rl=P`
43
43
  :host {
44
44
  display: contents;
45
45
  }
@@ -52,7 +52,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
52
52
 
53
53
  .ft-ripple:not(.ft-ripple--unbounded) {
54
54
  overflow: hidden;
55
- border-radius: ${z.borderRadius};
55
+ border-radius: ${G.borderRadius};
56
56
  }
57
57
 
58
58
  .ft-ripple .ft-ripple--background,
@@ -86,27 +86,27 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
86
86
  }
87
87
 
88
88
  .ft-ripple .ft-ripple--background {
89
- background-color: ${z.backgroundColor};
89
+ background-color: ${G.backgroundColor};
90
90
  }
91
91
 
92
92
  .ft-ripple .ft-ripple--effect {
93
- background-color: ${z.color};
93
+ background-color: ${G.color};
94
94
  }
95
95
 
96
96
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
97
- background-color: ${Oc.backgroundColor};
97
+ background-color: ${Nl.backgroundColor};
98
98
  }
99
99
 
100
100
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
101
- background-color: ${Oc.color};
101
+ background-color: ${Nl.color};
102
102
  }
103
103
 
104
104
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
105
- background-color: ${xc.backgroundColor};
105
+ background-color: ${wl.backgroundColor};
106
106
  }
107
107
 
108
108
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
109
- background-color: ${xc.color};
109
+ background-color: ${wl.color};
110
110
  }
111
111
 
112
112
  .ft-ripple .ft-ripple--background {
@@ -136,23 +136,23 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
136
136
  }
137
137
 
138
138
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
139
- opacity: ${z.opacityContentOnSurfaceHover};
139
+ opacity: ${G.opacityContentOnSurfaceHover};
140
140
  }
141
141
 
142
142
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
143
- opacity: ${z.opacityContentOnSurfaceSelected};
143
+ opacity: ${G.opacityContentOnSurfaceSelected};
144
144
  }
145
145
 
146
146
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
147
- opacity: ${z.opacityContentOnSurfaceFocused};
147
+ opacity: ${G.opacityContentOnSurfaceFocused};
148
148
  }
149
149
 
150
150
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
151
- opacity: ${z.opacityContentOnSurfacePressed};
151
+ opacity: ${G.opacityContentOnSurfacePressed};
152
152
  transform: translate(-50%, -50%) scale(1);
153
153
  }
154
- `;function Ec(e){let t=lo[e];return P`
155
- .ft-typography--${he(e)} {
154
+ `;function Al(e){let t=uo[e];return P`
155
+ .ft-typography--${Jt(e)} {
156
156
  font-family: ${t.fontFamily};
157
157
  font-size: ${t.fontSize};
158
158
  font-weight: ${t.fontWeight};
@@ -160,54 +160,26 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
160
160
  line-height: ${t.lineHeight};
161
161
  text-transform: ${t.textCase};
162
162
  }
163
- `}var Cc=i.extend("--ft-typography-font-family","",A.titleFont),Ee=i.extend("--ft-typography-font-family","",A.contentFont),M={fontFamily:Ee,fontSize:i.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:i.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:i.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:i.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:i.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ze={fontFamily:i.extend("--ft-typography-title-font-family","",Cc),fontSize:i.extend("--ft-typography-title-font-size","",M.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",M.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",M.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",M.textTransform,"inherit")},We={fontFamily:i.extend("--ft-typography-title-dense-font-family","",Cc),fontSize:i.extend("--ft-typography-title-dense-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",M.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",M.textTransform,"inherit")},kr={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",Ee),fontSize:i.extend("--ft-typography-subtitle1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",M.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",M.textTransform,"inherit")},Lr={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",Ee),fontSize:i.extend("--ft-typography-subtitle2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",M.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",M.textTransform,"inherit")},Zt={fontFamily:i.extend("--ft-typography-body1-font-family","",Ee),fontSize:i.extend("--ft-typography-body1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",M.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",M.textTransform,"inherit")},Mr={fontFamily:i.extend("--ft-typography-body2-font-family","",Ee),fontSize:i.extend("--ft-typography-body2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",M.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",M.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",M.textTransform,"inherit")},Qt={fontFamily:i.extend("--ft-typography-caption-font-family","",Ee),fontSize:i.extend("--ft-typography-caption-font-size","",M.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",M.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",M.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",M.textTransform,"inherit")},Dr={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",Ee),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",M.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",M.textTransform,"inherit")},Ur={fontFamily:i.extend("--ft-typography-overline-font-family","",Ee),fontSize:i.extend("--ft-typography-overline-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",M.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",M.textTransform,"uppercase")},It={fontFamily:i.extend("--ft-typography-button-font-family","",Ee),fontSize:i.extend("--ft-typography-button-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",M.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",M.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",M.textTransform,"uppercase")},Ac=P`
163
+ `}var Il=i.extend("--ft-typography-font-family","",I.titleFont),Re=i.extend("--ft-typography-font-family","",I.contentFont),B={fontFamily:Re,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")},Ge={fontFamily:i.extend("--ft-typography-title-font-family","",Il),fontSize:i.extend("--ft-typography-title-font-size","",B.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",B.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",B.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",B.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",B.textTransform,"inherit")},Ke={fontFamily:i.extend("--ft-typography-title-dense-font-family","",Il),fontSize:i.extend("--ft-typography-title-dense-font-size","",B.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",B.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",B.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",B.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",B.textTransform,"inherit")},Mr={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",Re),fontSize:i.extend("--ft-typography-subtitle1-font-size","",B.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",B.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",B.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",B.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",B.textTransform,"inherit")},Br={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",Re),fontSize:i.extend("--ft-typography-subtitle2-font-size","",B.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",B.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",B.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",B.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",B.textTransform,"inherit")},Xt={fontFamily:i.extend("--ft-typography-body1-font-family","",Re),fontSize:i.extend("--ft-typography-body1-font-size","",B.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",B.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",B.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",B.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",B.textTransform,"inherit")},Fr={fontFamily:i.extend("--ft-typography-body2-font-family","",Re),fontSize:i.extend("--ft-typography-body2-font-size","",B.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",B.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",B.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",B.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",B.textTransform,"inherit")},oe={fontFamily:i.extend("--ft-typography-caption-font-family","",Re),fontSize:i.extend("--ft-typography-caption-font-size","",B.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",B.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",B.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",B.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",B.textTransform,"inherit")},Wr={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",Re),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",B.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",B.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",B.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",B.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",B.textTransform,"inherit")},zr={fontFamily:i.extend("--ft-typography-overline-font-family","",Re),fontSize:i.extend("--ft-typography-overline-font-size","",B.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",B.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",B.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",B.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",B.textTransform,"uppercase")},Lt={fontFamily:i.extend("--ft-typography-button-font-family","",Re),fontSize:i.extend("--ft-typography-button-font-size","",B.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",B.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",B.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",B.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",B.textTransform,"uppercase")},_l=P`
164
164
  .ft-typography--title {
165
- font-family: ${ze.fontFamily};
166
- font-size: ${ze.fontSize};
167
- font-weight: ${ze.fontWeight};
168
- letter-spacing: ${ze.letterSpacing};
169
- line-height: ${ze.lineHeight};
170
- text-transform: ${ze.textTransform};
171
- }
172
- `,Rc=P`
165
+ font-family: ${Ge.fontFamily};
166
+ font-size: ${Ge.fontSize};
167
+ font-weight: ${Ge.fontWeight};
168
+ letter-spacing: ${Ge.letterSpacing};
169
+ line-height: ${Ge.lineHeight};
170
+ text-transform: ${Ge.textTransform};
171
+ }
172
+ `,Tl=P`
173
173
  .ft-typography--title-dense {
174
- font-family: ${We.fontFamily};
175
- font-size: ${We.fontSize};
176
- font-weight: ${We.fontWeight};
177
- letter-spacing: ${We.letterSpacing};
178
- line-height: ${We.lineHeight};
179
- text-transform: ${We.textTransform};
180
- }
181
- `,_c=P`
174
+ font-family: ${Ke.fontFamily};
175
+ font-size: ${Ke.fontSize};
176
+ font-weight: ${Ke.fontWeight};
177
+ letter-spacing: ${Ke.letterSpacing};
178
+ line-height: ${Ke.lineHeight};
179
+ text-transform: ${Ke.textTransform};
180
+ }
181
+ `,Pl=P`
182
182
  .ft-typography--subtitle1 {
183
- font-family: ${kr.fontFamily};
184
- font-size: ${kr.fontSize};
185
- font-weight: ${kr.fontWeight};
186
- letter-spacing: ${kr.letterSpacing};
187
- line-height: ${kr.lineHeight};
188
- text-transform: ${kr.textTransform};
189
- }
190
- `,Nc=P`
191
- .ft-typography--subtitle2 {
192
- font-family: ${Lr.fontFamily};
193
- font-size: ${Lr.fontSize};
194
- font-weight: ${Lr.fontWeight};
195
- letter-spacing: ${Lr.letterSpacing};
196
- line-height: ${Lr.lineHeight};
197
- text-transform: ${Lr.textTransform};
198
- }
199
-
200
- `,Br=P`
201
- .ft-typography--body1 {
202
- font-family: ${Zt.fontFamily};
203
- font-size: ${Zt.fontSize};
204
- font-weight: ${Zt.fontWeight};
205
- letter-spacing: ${Zt.letterSpacing};
206
- line-height: ${Zt.lineHeight};
207
- text-transform: ${Zt.textTransform};
208
- }
209
- `,Tc=P`
210
- .ft-typography--body2 {
211
183
  font-family: ${Mr.fontFamily};
212
184
  font-size: ${Mr.fontSize};
213
185
  font-weight: ${Mr.fontWeight};
@@ -215,47 +187,75 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
215
187
  line-height: ${Mr.lineHeight};
216
188
  text-transform: ${Mr.textTransform};
217
189
  }
218
- `,vi=P`
190
+ `,kl=P`
191
+ .ft-typography--subtitle2 {
192
+ font-family: ${Br.fontFamily};
193
+ font-size: ${Br.fontSize};
194
+ font-weight: ${Br.fontWeight};
195
+ letter-spacing: ${Br.letterSpacing};
196
+ line-height: ${Br.lineHeight};
197
+ text-transform: ${Br.textTransform};
198
+ }
199
+
200
+ `,Hr=P`
201
+ .ft-typography--body1 {
202
+ font-family: ${Xt.fontFamily};
203
+ font-size: ${Xt.fontSize};
204
+ font-weight: ${Xt.fontWeight};
205
+ letter-spacing: ${Xt.letterSpacing};
206
+ line-height: ${Xt.lineHeight};
207
+ text-transform: ${Xt.textTransform};
208
+ }
209
+ `,Ll=P`
210
+ .ft-typography--body2 {
211
+ font-family: ${Fr.fontFamily};
212
+ font-size: ${Fr.fontSize};
213
+ font-weight: ${Fr.fontWeight};
214
+ letter-spacing: ${Fr.letterSpacing};
215
+ line-height: ${Fr.lineHeight};
216
+ text-transform: ${Fr.textTransform};
217
+ }
218
+ `,Ci=P`
219
219
  .ft-typography--caption {
220
- font-family: ${Qt.fontFamily};
221
- font-size: ${Qt.fontSize};
222
- font-weight: ${Qt.fontWeight};
223
- letter-spacing: ${Qt.letterSpacing};
224
- line-height: ${Qt.lineHeight};
225
- text-transform: ${Qt.textTransform};
226
- }
227
- `,Ic=P`
220
+ font-family: ${oe.fontFamily};
221
+ font-size: ${oe.fontSize};
222
+ font-weight: ${oe.fontWeight};
223
+ letter-spacing: ${oe.letterSpacing};
224
+ line-height: ${oe.lineHeight};
225
+ text-transform: ${oe.textTransform};
226
+ }
227
+ `,$l=P`
228
228
  .ft-typography--breadcrumb {
229
- font-family: ${Dr.fontFamily};
230
- font-size: ${Dr.fontSize};
231
- font-weight: ${Dr.fontWeight};
232
- letter-spacing: ${Dr.letterSpacing};
233
- line-height: ${Dr.lineHeight};
234
- text-transform: ${Dr.textTransform};
235
- }
236
- `,Pc=P`
229
+ font-family: ${Wr.fontFamily};
230
+ font-size: ${Wr.fontSize};
231
+ font-weight: ${Wr.fontWeight};
232
+ letter-spacing: ${Wr.letterSpacing};
233
+ line-height: ${Wr.lineHeight};
234
+ text-transform: ${Wr.textTransform};
235
+ }
236
+ `,Dl=P`
237
237
  .ft-typography--overline {
238
- font-family: ${Ur.fontFamily};
239
- font-size: ${Ur.fontSize};
240
- font-weight: ${Ur.fontWeight};
241
- letter-spacing: ${Ur.letterSpacing};
242
- line-height: ${Ur.lineHeight};
243
- text-transform: ${Ur.textTransform};
244
- }
245
- `,$c=P`
238
+ font-family: ${zr.fontFamily};
239
+ font-size: ${zr.fontSize};
240
+ font-weight: ${zr.fontWeight};
241
+ letter-spacing: ${zr.letterSpacing};
242
+ line-height: ${zr.lineHeight};
243
+ text-transform: ${zr.textTransform};
244
+ }
245
+ `,Ul=P`
246
246
  .ft-typography--button {
247
- font-family: ${It.fontFamily};
248
- font-size: ${It.fontSize};
249
- font-weight: ${It.fontWeight};
250
- letter-spacing: ${It.letterSpacing};
251
- line-height: ${It.lineHeight};
252
- text-transform: ${It.textTransform};
253
- }
254
- `,kc=P`
247
+ font-family: ${Lt.fontFamily};
248
+ font-size: ${Lt.fontSize};
249
+ font-weight: ${Lt.fontWeight};
250
+ letter-spacing: ${Lt.letterSpacing};
251
+ line-height: ${Lt.lineHeight};
252
+ text-transform: ${Lt.textTransform};
253
+ }
254
+ `,Ml=P`
255
255
  .ft-typography {
256
256
  vertical-align: inherit;
257
257
  }
258
- `,Lc=[Object.keys(lo).map(e=>Ec(e))];var Lt={color:i.extend("--ft-loader-color","",A.colorPrimary),size:i.create("--ft-loader-size","","SIZE","80px")},Mc=P`
258
+ `,Bl=[Object.keys(uo).map(e=>Al(e))];var Mt={color:i.extend("--ft-loader-color","",I.colorPrimary),size:i.create("--ft-loader-size","","SIZE","80px")},Fl=P`
259
259
  :host {
260
260
  line-height: 0;
261
261
  }
@@ -264,8 +264,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
264
264
  display: inline-block;
265
265
  position: relative;
266
266
 
267
- width: ${Lt.size};
268
- height: ${Lt.size};
267
+ width: ${Mt.size};
268
+ height: ${Mt.size};
269
269
  }
270
270
 
271
271
  .ft-loader div {
@@ -274,7 +274,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
274
274
  width: 25%;
275
275
  height: 25%;
276
276
  border-radius: 50%;
277
- background: ${Lt.color};
277
+ background: ${Mt.color};
278
278
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
279
279
  }
280
280
 
@@ -321,10 +321,10 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
321
321
  transform: translate(0, 0);
322
322
  }
323
323
  100% {
324
- transform: translate(calc(0.35 * ${Lt.size}), 0);
324
+ transform: translate(calc(0.35 * ${Mt.size}), 0);
325
325
  }
326
326
  }
327
- `;var Ot={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")},Dc=P`
327
+ `;var Et={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")},Wl=P`
328
328
  :host, i.ft-icon {
329
329
  display: inline-flex;
330
330
  align-items: center;
@@ -333,14 +333,14 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
333
333
  }
334
334
 
335
335
  :host {
336
- width: ${Ot.size};
337
- height: ${Ot.size};
336
+ width: ${Et.size};
337
+ height: ${Et.size};
338
338
  }
339
339
 
340
340
  i.ft-icon {
341
341
  width: 100%;
342
342
  height: 100%;
343
- font-size: ${Ot.size};
343
+ font-size: ${Et.size};
344
344
  line-height: 1;
345
345
  font-weight: normal;
346
346
  text-transform: none;
@@ -351,28 +351,28 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
351
351
  text-rendering: auto;
352
352
  -webkit-font-smoothing: antialiased;
353
353
  -moz-osx-font-smoothing: grayscale;
354
- vertical-align: ${Ot.verticalAlign};
354
+ vertical-align: ${Et.verticalAlign};
355
355
  }
356
356
 
357
357
  i.ft-icon.ft-icon--fluid-topics {
358
- font-family: ${Ot.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
358
+ font-family: ${Et.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
359
359
 
360
360
  /* Ugly fix because font is broken */
361
- font-size: calc(0.75 * ${Ot.size});
362
- line-height: ${Ot.size};
361
+ font-size: calc(0.75 * ${Et.size});
362
+ line-height: ${Et.size};
363
363
  position: relative;
364
364
  top: -4%;
365
365
  justify-content: center;
366
366
  }
367
367
 
368
368
  .ft-icon--file-format {
369
- font-family: ${Ot.fileFormatFontFamily}, ft-mime, sans-serif;
369
+ font-family: ${Et.fileFormatFontFamily}, ft-mime, sans-serif;
370
370
  }
371
371
 
372
372
  .ft-icon--material {
373
- font-family: ${Ot.materialFontFamily}, "Material Icons", sans-serif;
373
+ font-family: ${Et.materialFontFamily}, "Material Icons", sans-serif;
374
374
  }
375
- `;var Uc=i.extend("--ft-button-color","",A.colorPrimary),ot={backgroundColor:i.extend("--ft-button-background-color","",A.colorSurface),borderRadius:i.extend("--ft-button-border-radius","",A.borderRadiusL),color:Uc,fontSize:i.extend("--ft-button-font-size","",It.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",Uc),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(A.colorOpacityDisabled,"Design system")},Bc=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",A.colorOnPrimary)),es={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",A.colorPrimary)),color:Bc,rippleColor:i.extend("--ft-button-primary-ripple-color","",Bc)},le={borderRadius:i.extend("--ft-button-dense-border-radius","",i.extend("--ft-button-border-radius","",A.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")},Fc=[P`
375
+ `;var zl=i.extend("--ft-button-color","",I.colorPrimary),at={backgroundColor:i.extend("--ft-button-background-color","",I.colorSurface),borderRadius:i.extend("--ft-button-border-radius","",I.borderRadiusL),color:zl,fontSize:i.extend("--ft-button-font-size","",Lt.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",zl),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(I.colorOpacityDisabled,"Design system")},Hl=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",I.colorOnPrimary)),ns={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",I.colorPrimary)),color:Hl,rippleColor:i.extend("--ft-button-primary-ripple-color","",Hl)},fe={borderRadius:i.extend("--ft-button-dense-border-radius","",i.extend("--ft-button-border-radius","",I.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")},Gl=[P`
376
376
  :host {
377
377
  display: inline-block;
378
378
  max-width: 100%;
@@ -383,7 +383,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
383
383
  box-shadow: 0px 0px 0px transparent;
384
384
  border: 0px solid transparent;
385
385
  text-shadow: 0px 0px 0px transparent;
386
- font-size: ${ot.fontSize};
386
+ font-size: ${at.fontSize};
387
387
  }
388
388
 
389
389
  button:hover {
@@ -412,31 +412,31 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
412
412
  border: none;
413
413
  pointer-events: auto;
414
414
 
415
- --ft-button-internal-line-height: max(calc(${ot.fontSize} + 2px), ${ot.iconSize});
416
- --ft-button-internal-color: ${ot.color};
417
- ${C(Ot.size,ot.iconSize)};
418
- ${C(z.color,ot.rippleColor)};
415
+ --ft-button-internal-line-height: max(calc(${at.fontSize} + 2px), ${at.iconSize});
416
+ --ft-button-internal-color: ${at.color};
417
+ ${A(Et.size,at.iconSize)};
418
+ ${A(G.color,at.rippleColor)};
419
419
 
420
- border-radius: ${ot.borderRadius};
421
- padding: ${ot.verticalPadding} ${ot.horizontalPadding};
422
- background-color: ${ot.backgroundColor};
420
+ border-radius: ${at.borderRadius};
421
+ padding: ${at.verticalPadding} ${at.horizontalPadding};
422
+ background-color: ${at.backgroundColor};
423
423
  color: var(--ft-button-internal-color);
424
424
  -webkit-mask-image: radial-gradient(white, black);
425
425
  }
426
426
 
427
427
  .ft-button.ft-button--outlined {
428
428
  border: 1px solid var(--ft-button-internal-color);
429
- padding: calc(${ot.verticalPadding} - 1px) calc(${ot.horizontalPadding} - 1px);
429
+ padding: calc(${at.verticalPadding} - 1px) calc(${at.horizontalPadding} - 1px);
430
430
  }
431
431
 
432
432
  .ft-button.ft-button--dense {
433
- padding: ${le.verticalPadding} ${le.horizontalPadding};
434
- border-radius: ${le.borderRadius};
435
- gap: ${le.iconPadding};
433
+ padding: ${fe.verticalPadding} ${fe.horizontalPadding};
434
+ border-radius: ${fe.borderRadius};
435
+ gap: ${fe.iconPadding};
436
436
  }
437
437
 
438
438
  .ft-button.ft-button--dense.ft-button--outlined {
439
- padding: calc(${le.verticalPadding} - 1px) calc(${le.horizontalPadding} - 1px);
439
+ padding: calc(${fe.verticalPadding} - 1px) calc(${fe.horizontalPadding} - 1px);
440
440
  }
441
441
 
442
442
  .ft-button:not([disabled]):hover {
@@ -444,22 +444,22 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
444
444
  }
445
445
 
446
446
  .ft-button--round {
447
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ot.verticalPadding});
447
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${at.verticalPadding});
448
448
  }
449
449
 
450
450
  .ft-button--round.ft-button--dense {
451
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${le.verticalPadding});
451
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${fe.verticalPadding});
452
452
  }
453
453
 
454
454
  .ft-button[disabled] {
455
455
  filter: grayscale(1);
456
- opacity: ${ot.opacityDisabled};
456
+ opacity: ${at.opacityDisabled};
457
457
  }
458
458
 
459
459
  .ft-button.ft-button--primary {
460
- background-color: ${es.backgroundColor};
461
- --ft-button-internal-color: ${es.color};
462
- ${C(z.color,es.rippleColor)};
460
+ background-color: ${ns.backgroundColor};
461
+ --ft-button-internal-color: ${ns.color};
462
+ ${A(G.color,ns.rippleColor)};
463
463
  }
464
464
 
465
465
  .ft-button:focus {
@@ -472,13 +472,13 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
472
472
  white-space: nowrap;
473
473
  text-overflow: ellipsis;
474
474
  display: block;
475
- margin: 0 ${ot.iconPadding};
476
- ${C(It.fontSize,"1em")};
477
- ${C(It.lineHeight,"var(--ft-button-internal-line-height)")};
475
+ margin: 0 ${at.iconPadding};
476
+ ${A(Lt.fontSize,"1em")};
477
+ ${A(Lt.lineHeight,"var(--ft-button-internal-line-height)")};
478
478
  }
479
479
 
480
480
  .ft-button--dense .ft-button--label {
481
- margin: 0 ${le.iconPadding};
481
+ margin: 0 ${fe.iconPadding};
482
482
  }
483
483
 
484
484
  .ft-button--label[hidden] {
@@ -491,13 +491,13 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
491
491
  }
492
492
 
493
493
  .ft-button--label[hidden] + [part="icon"] {
494
- margin: 0 calc(${ot.horizontalPadding} * -1);
495
- padding: 0 ${ot.verticalPadding};
494
+ margin: 0 calc(${at.horizontalPadding} * -1);
495
+ padding: 0 ${at.verticalPadding};
496
496
  }
497
497
 
498
498
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
499
- margin: 0 calc(${le.horizontalPadding} * -1);
500
- padding: 0 ${le.verticalPadding};
499
+ margin: 0 calc(${fe.horizontalPadding} * -1);
500
+ padding: 0 ${fe.verticalPadding};
501
501
  }
502
502
 
503
503
  .ft-button:not(.ft-button--trailing-icon) [part="label"]{
@@ -505,10 +505,10 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
505
505
  }
506
506
 
507
507
  ft-loader {
508
- ${C(Lt.size,ot.iconSize)};
509
- ${C(Lt.color,"var(--ft-button-internal-color)")};
508
+ ${A(Mt.size,at.iconSize)};
509
+ ${A(Mt.color,"var(--ft-button-internal-color)")};
510
510
  }
511
- `,lr];var ft={textColor:i.extend("--ft-switch-text-color","",A.colorOnSurfaceHigh),backgroundColor:i.extend("--ft-switch-background-color","",A.colorSurface),selectedTextColor:i.extend("--ft-switch-selected-text-color","",A.colorPrimary),selectedBackgroundColor:i.extend("--ft-switch-selected-background-color","",A.colorPrimary),borderColor:i.extend("--ft-switch-border-color","",A.colorOutline),borderRadius:i.extend("--ft-switch-border-radius","",A.borderRadiusL),fontSize:i.extend("--ft-switch-font-size","",It.fontSize),iconSize:i.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:i.extend("--ft-switch-text-color","",A.colorOnSurfaceMedium),rippleColor:i.extend("--ft-switch-ripple-color","",A.colorPrimary),outlineColor:i.extend("--ft-switch-outline-color","",A.colorPrimary)};var ce={feedbackInputMinWidth:i.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:i.external(A.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:i.extend("--ft-reader-feedback-send-feedback-color","",A.colorOnPrimary),sendFeedbackBackgroundColor:i.extend("--ft-reader-feedback-send-feedback-background-color","",A.colorPrimary),filledRatingColor:i.extend("--ft-reader-feedback-filled-rating-color","",A.colorPrimary),emptyRatingColor:i.extend("--ft-reader-feedback-empty-rating-color","",A.colorOnSurfaceMedium),mainTitleFontSize:i.external(ze.fontSize,"Typography"),sectionTitleFontSize:i.external(We.fontSize,"Typography"),starsBackgroundColor:i.create("--ft-reader-feedback-stars-background-color","","COLOR",A.colorSurface)},zc=P`
511
+ `,fr];var gt={textColor:i.extend("--ft-switch-text-color","",I.colorOnSurfaceHigh),backgroundColor:i.extend("--ft-switch-background-color","",I.colorSurface),selectedTextColor:i.extend("--ft-switch-selected-text-color","",I.colorPrimary),selectedBackgroundColor:i.extend("--ft-switch-selected-background-color","",I.colorPrimary),borderColor:i.extend("--ft-switch-border-color","",I.colorOutline),borderRadius:i.extend("--ft-switch-border-radius","",I.borderRadiusL),fontSize:i.extend("--ft-switch-font-size","",Lt.fontSize),iconSize:i.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:i.extend("--ft-switch-text-color","",I.colorOnSurfaceMedium),rippleColor:i.extend("--ft-switch-ripple-color","",I.colorPrimary),outlineColor:i.extend("--ft-switch-outline-color","",I.colorPrimary)};var ue={feedbackInputMinWidth:i.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:i.external(I.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:i.extend("--ft-reader-feedback-send-feedback-color","",I.colorOnPrimary),sendFeedbackBackgroundColor:i.extend("--ft-reader-feedback-send-feedback-background-color","",I.colorPrimary),filledRatingColor:i.extend("--ft-reader-feedback-filled-rating-color","",I.colorPrimary),emptyRatingColor:i.extend("--ft-reader-feedback-empty-rating-color","",I.colorOnSurfaceMedium),mainTitleFontSize:i.external(Ge.fontSize,"Typography"),sectionTitleFontSize:i.external(Ke.fontSize,"Typography"),starsBackgroundColor:i.create("--ft-reader-feedback-stars-background-color","","COLOR",I.colorSurface)},Kl=P`
512
512
  .ft-reader-feedback {
513
513
  box-sizing: border-box;
514
514
  display: flex;
@@ -521,7 +521,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
521
521
  flex-direction: row;
522
522
  align-items: center;
523
523
  margin-left: -6px;
524
- ${C(ot.backgroundColor,ce.starsBackgroundColor)}
524
+ ${A(at.backgroundColor,ue.starsBackgroundColor)}
525
525
  }
526
526
 
527
527
  .ft-reader-feedback--rating, .ft-reader-feedback--feedback {
@@ -534,14 +534,14 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
534
534
  }
535
535
 
536
536
  .ft-reader-feedback--rating {
537
- ${C(ot.color,ce.emptyRatingColor)};
538
- ${C(ot.rippleColor,ce.filledRatingColor)};
539
- ${C(ft.textColor,ce.emptyRatingColor)};
540
- ${C(ft.selectedTextColor,ce.filledRatingColor)};
537
+ ${A(at.color,ue.emptyRatingColor)};
538
+ ${A(at.rippleColor,ue.filledRatingColor)};
539
+ ${A(gt.textColor,ue.emptyRatingColor)};
540
+ ${A(gt.selectedTextColor,ue.filledRatingColor)};
541
541
  }
542
542
 
543
543
  .ft-reader-feedback--rating .ft-reader-feedback--active {
544
- ${C(ot.color,ce.filledRatingColor)};
544
+ ${A(at.color,ue.filledRatingColor)};
545
545
  }
546
546
 
547
547
  .ft-reader-feedback--feedback {
@@ -549,41 +549,41 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
549
549
  }
550
550
 
551
551
  .ft-reader-feedback--rating-date {
552
- color: ${ce.ratedDateColor};
552
+ color: ${ue.ratedDateColor};
553
553
  }
554
554
 
555
555
  .ft-reader-feedback--feedback ft-text-area {
556
- min-width: ${ce.feedbackInputMinWidth};
556
+ min-width: ${ue.feedbackInputMinWidth};
557
557
  }
558
558
 
559
559
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
560
- ${C(ot.color,ce.sendFeedbackColor)};
561
- ${C(ot.backgroundColor,ce.sendFeedbackBackgroundColor)};
560
+ ${A(at.color,ue.sendFeedbackColor)};
561
+ ${A(at.backgroundColor,ue.sendFeedbackBackgroundColor)};
562
562
  }
563
563
 
564
564
  [part="buttons-container"] {
565
565
  align-self: flex-end;
566
566
  }
567
- `;var Hc=Symbol.for(""),df=e=>{if(e?.r===Hc)return e?._$litStatic$},rs=e=>({_$litStatic$:e,r:Hc});var Wc=new Map,Vc=e=>(t,...r)=>{let o=r.length,n,a,s=[],l=[],c,p=0,u=!1;for(;p<o;){for(c=t[p];p<o&&(a=r[p],(n=df(a))!==void 0);)c+=n+t[++p],u=!0;p!==o&&l.push(a),s.push(c),p++}if(p===o&&s.push(t[o]),u){let h=s.join("$$lit$$");(t=Wc.get(h))===void 0&&(s.raw=s,Wc.set(h,t=s)),r=l}return e(t,...r)},os=Vc(Ls),Zx=Vc(Ms);var mr;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(mr||(mr={}));var jc=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},ht=class extends F{constructor(){super(...arguments),this.variant=mr.body1}render(){return this.element?os`
568
- <${rs(this.element)}
567
+ `;var Zl=Symbol.for(""),yu=e=>{if(e?.r===Zl)return e?._$litStatic$},as=e=>({_$litStatic$:e,r:Zl});var Vl=new Map,jl=e=>(t,...r)=>{let o=r.length,n,s,c=[],l=[],d,u=0,h=!1;for(;u<o;){for(d=t[u];u<o&&(s=r[u],(n=yu(s))!==void 0);)d+=n+t[++u],h=!0;u!==o&&l.push(s),c.push(d),u++}if(u===o&&c.push(t[o]),h){let y=c.join("$$lit$$");(t=Vl.get(y))===void 0&&(c.raw=c,Vl.set(y,t=c)),r=l}return e(t,...r)},ss=jl(Bs),ev=jl(Fs);var xr;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(xr||(xr={}));var ql=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},yt=class extends H{constructor(){super(...arguments),this.variant=xr.body1}render(){return this.element?ss`
568
+ <${as(this.element)}
569
569
  part="text"
570
570
  class="ft-typography ft-typography--${this.variant}">
571
571
  <slot></slot>
572
- </${rs(this.element)}>
573
- `:os`
572
+ </${as(this.element)}>
573
+ `:ss`
574
574
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
575
- `}};ht.styles=[Ac,Rc,_c,Nc,Br,Tc,vi,Ic,Pc,$c,kc,...Lc];jc([g()],ht.prototype,"element",void 0);jc([g()],ht.prototype,"variant",void 0);V("ft-typography")(ht);var Mt=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},J=class extends F{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new rt(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 rt(10),this.moveRipple=t=>{var r,o;let{x:n,y:a}=this.getCoordinates(t),s=(o=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&o!==void 0?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return $`
575
+ `}};yt.styles=[_l,Tl,Pl,kl,Hr,Ll,Ci,$l,Dl,Ul,Ml,...Bl];ql([x()],yt.prototype,"element",void 0);ql([x()],yt.prototype,"variant",void 0);Z("ft-typography")(yt);var Bt=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},et=class extends H{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 nt(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 nt(10),this.moveRipple=t=>{var r,o;let{x:n,y:s}=this.getCoordinates(t),c=(o=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&o!==void 0?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-c.x:c.width/2),this.originY=Math.round(s!=null?s-c.y:c.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 D`
576
576
  <style>
577
577
  .ft-ripple .ft-ripple--effect {
578
578
  left: ${this.originX}px;
579
579
  top: ${this.originY}px;
580
580
  }
581
581
  </style>
582
- <div class="${Nt(t)}">
582
+ <div class="${Pt(t)}">
583
583
  <div class="ft-ripple--background"></div>
584
584
  <div class="ft-ripple--effect"></div>
585
585
  </div>
586
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let o=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;o&&this.setupFor((r=this.target)!==null&&r!==void 0?r:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>c=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(c)},o=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",o,s),t.addEventListener("touchstart",n,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",a,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",o,s),t.removeEventListener("touchstart",n,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",a,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,o=t,n,a;return r.x!=null?{x:n,y:a}=r:o.touches!=null&&(n=o.touches[0].clientX,a=o.touches[0].clientY),{x:n,y:a}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};J.elementDefinitions={};J.styles=wc;Mt([g({type:Boolean})],J.prototype,"primary",void 0);Mt([g({type:Boolean})],J.prototype,"secondary",void 0);Mt([g({type:Boolean})],J.prototype,"unbounded",void 0);Mt([g({type:Boolean})],J.prototype,"activated",void 0);Mt([g({type:Boolean})],J.prototype,"selected",void 0);Mt([g({type:Boolean})],J.prototype,"disabled",void 0);Mt([H()],J.prototype,"hovered",void 0);Mt([H()],J.prototype,"focused",void 0);Mt([H()],J.prototype,"pressed",void 0);Mt([H()],J.prototype,"rippling",void 0);Mt([H()],J.prototype,"originX",void 0);Mt([H()],J.prototype,"originY",void 0);Mt([Z(".ft-ripple")],J.prototype,"ripple",void 0);Mt([Z(".ft-ripple--effect")],J.prototype,"rippleEffect",void 0);V("ft-ripple")(J);var Fr={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(A.borderRadiusS,"Design system"),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","150px")},Kc=P`
586
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let o=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;o&&this.setupFor((r=this.target)!==null&&r!==void 0?r:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>d=>{l.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(d)},o=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),s=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},c={passive:!0};t.addEventListener("mouseover",this.startHover,c),t.addEventListener("mousemove",this.moveRipple,c),t.addEventListener("mouseleave",this.endHover,c),t.addEventListener("mousedown",o,c),t.addEventListener("touchstart",n,c),t.addEventListener("touchmove",this.moveRipple,c),t.addEventListener("keydown",s,c),t.addEventListener("focus",this.startFocus,c),t.addEventListener("blur",this.endFocus,c),t.addEventListener("focusin",this.startFocus,c),t.addEventListener("focusout",this.endFocus,c),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,c),t.removeEventListener("mousemove",this.moveRipple,c),t.removeEventListener("mouseleave",this.endHover,c),t.removeEventListener("mousedown",o,c),t.removeEventListener("touchstart",n,c),t.removeEventListener("touchmove",this.moveRipple,c),t.removeEventListener("keydown",s,c),t.removeEventListener("focus",this.startFocus,c),t.removeEventListener("blur",this.endFocus,c),t.removeEventListener("focusin",this.startFocus,c),t.removeEventListener("focusout",this.endFocus,c),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,o=t,n,s;return r.x!=null?{x:n,y:s}=r:o.touches!=null&&(n=o.touches[0].clientX,s=o.touches[0].clientY),{x:n,y:s}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};et.elementDefinitions={};et.styles=Rl;Bt([x({type:Boolean})],et.prototype,"primary",void 0);Bt([x({type:Boolean})],et.prototype,"secondary",void 0);Bt([x({type:Boolean})],et.prototype,"unbounded",void 0);Bt([x({type:Boolean})],et.prototype,"activated",void 0);Bt([x({type:Boolean})],et.prototype,"selected",void 0);Bt([x({type:Boolean})],et.prototype,"disabled",void 0);Bt([V()],et.prototype,"hovered",void 0);Bt([V()],et.prototype,"focused",void 0);Bt([V()],et.prototype,"pressed",void 0);Bt([V()],et.prototype,"rippling",void 0);Bt([V()],et.prototype,"originX",void 0);Bt([V()],et.prototype,"originY",void 0);Bt([X(".ft-ripple")],et.prototype,"ripple",void 0);Bt([X(".ft-ripple--effect")],et.prototype,"rippleEffect",void 0);Z("ft-ripple")(et);var Gr={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(I.borderRadiusS,"Design system"),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","150px")},Yl=P`
587
587
  .ft-tooltip--container {
588
588
  display: block;
589
589
  }
@@ -598,21 +598,21 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
598
598
  box-sizing: border-box;
599
599
  overflow: hidden;
600
600
  width: max-content;
601
- max-width: ${Fr.maxWidth};
601
+ max-width: ${Gr.maxWidth};
602
602
  text-align: center;
603
- padding: ${Fr.distance};
604
- z-index: ${Fr.zIndex};
603
+ padding: ${Gr.distance};
604
+ z-index: ${Gr.zIndex};
605
605
  }
606
606
 
607
607
  .ft-tooltip--content {
608
608
  padding: 4px 8px;
609
- border-radius: ${Fr.borderRadiusS};
610
- background-color: ${Fr.backgroundColor};
611
- color: ${Fr.color};
609
+ border-radius: ${Gr.borderRadiusS};
610
+ background-color: ${Gr.backgroundColor};
611
+ color: ${Gr.color};
612
612
  position: relative;
613
613
  word-break: break-word;
614
614
  }
615
- `;var Dt=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},st=class extends F{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 rt,this.revealDebouncer=new rt}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return $`
615
+ `;var Ft=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},dt=class extends H{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 nt,this.revealDebouncer=new nt}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return D`
616
616
  <div part="container"
617
617
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
618
618
  @mouseenter=${this.onHover}
@@ -630,12 +630,12 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
630
630
  </div>
631
631
  </div>
632
632
  </div>
633
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",mo(this.slottedElement,this.tooltip,this.position).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,r){return Math.max(t,Math.min(0,-r))}};st.elementDefinitions={"ft-typography":ht};st.styles=Kc;Dt([g()],st.prototype,"text",void 0);Dt([g({type:Boolean})],st.prototype,"manual",void 0);Dt([g({type:Boolean})],st.prototype,"inline",void 0);Dt([g({type:Number})],st.prototype,"delay",void 0);Dt([g()],st.prototype,"position",void 0);Dt([io()],st.prototype,"slotNodes",void 0);Dt([Z(".ft-tooltip--container")],st.prototype,"container",void 0);Dt([Z(".ft-tooltip")],st.prototype,"tooltip",void 0);Dt([Z(".ft-tooltip--content")],st.prototype,"tooltipContent",void 0);Dt([H()],st.prototype,"visible",void 0);Dt([ye({passive:!0})],st.prototype,"onTouch",null);Dt([ye({passive:!0})],st.prototype,"onHover",null);Dt([ye({passive:!0})],st.prototype,"onOut",null);Dt([ye({passive:!0})],st.prototype,"onClick",null);V("ft-tooltip")(st);var gr;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(gr||(gr={}));var R;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(R||(R={}));var B0=new Map([...["abw"].map(e=>[e,R.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,R.AUDIO]),...["avi"].map(e=>[e,R.AVI]),...["chm","xhs"].map(e=>[e,R.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,R.CODE]),...["csv"].map(e=>[e,R.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,R.DITA]),...["epub"].map(e=>[e,R.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,R.EXCEL]),...["flac"].map(e=>[e,R.FLAC]),...["gif"].map(e=>[e,R.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,R.GZIP]),...["html","htm","xhtml"].map(e=>[e,R.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,R.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,R.JPEG]),...["json"].map(e=>[e,R.JSON]),...["m4a","m4p"].map(e=>[e,R.M4A]),...["mov","qt"].map(e=>[e,R.MOV]),...["mp3"].map(e=>[e,R.MP3]),...["mp4","m4v"].map(e=>[e,R.MP4]),...["ogg","oga"].map(e=>[e,R.OGG]),...["pdf","ps"].map(e=>[e,R.PDF]),...["png"].map(e=>[e,R.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,R.POWERPOINT]),...["rar"].map(e=>[e,R.RAR]),...["stp"].map(e=>[e,R.STP]),...["txt","rtf","md","mdown"].map(e=>[e,R.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,R.VIDEO]),...["wav"].map(e=>[e,R.WAV]),...["wma"].map(e=>[e,R.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,R.WORD]),...["xml","xsl","rdf"].map(e=>[e,R.XML]),...["yaml","yml","x-yaml"].map(e=>[e,R.YAML]),...["zip"].map(e=>[e,R.ZIP])]);var F0={[R.ABW]:"#91ABC6",[R.AUDIO]:"#1795E3",[R.AVI]:"#E63324",[R.CHM]:"#71C3EB",[R.CODE]:"#71C3EB",[R.CSV]:"#1F7345",[R.DITA]:"#71C3EB",[R.EPUB]:"#85B926",[R.EXCEL]:"#1F7345",[R.FLAC]:"#1795E3",[R.GIF]:"#59B031",[R.GZIP]:"#F8AB36",[R.HTML]:"#71C3EB",[R.IMAGE]:"#59B031",[R.JPEG]:"#59B031",[R.JSON]:"#71C3EB",[R.M4A]:"#1795E3",[R.MOV]:"#E63324",[R.MP3]:"#1795E3",[R.MP4]:"#E63324",[R.OGG]:"#1795E3",[R.PDF]:"#E44948",[R.PNG]:"#59B031",[R.POWERPOINT]:"#B54A2B",[R.RAR]:"#F8AB36",[R.STP]:"#3764B1",[R.TEXT]:"#3162AB",[R.UNKNOWN]:"#999999",[R.VIDEO]:"#E63324",[R.WAV]:"#1795E3",[R.WMA]:"#1795E3",[R.WORD]:"#3162AB",[R.XML]:"#71C3EB",[R.YAML]:"#71C3EB",[R.ZIP]:"#F8AB36"};var Ut;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Ut||(Ut={}));var xi=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},gt=class extends F{constructor(){super(...arguments),this.resolvedIcon=B}render(){let t=this.variant&&Object.values(Ut).includes(this.variant)?this.variant:Ut.fluid_topics,r=t!==Ut.material||!!this.value;return $`
633
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",xo(this.slottedElement,this.tooltip,this.position).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,r){return Math.max(t,Math.min(0,-r))}};dt.elementDefinitions={"ft-typography":yt};dt.styles=Yl;Ft([x()],dt.prototype,"text",void 0);Ft([x({type:Boolean})],dt.prototype,"manual",void 0);Ft([x({type:Boolean})],dt.prototype,"inline",void 0);Ft([x({type:Number})],dt.prototype,"delay",void 0);Ft([x()],dt.prototype,"position",void 0);Ft([co()],dt.prototype,"slotNodes",void 0);Ft([X(".ft-tooltip--container")],dt.prototype,"container",void 0);Ft([X(".ft-tooltip")],dt.prototype,"tooltip",void 0);Ft([X(".ft-tooltip--content")],dt.prototype,"tooltipContent",void 0);Ft([V()],dt.prototype,"visible",void 0);Ft([ve({passive:!0})],dt.prototype,"onTouch",null);Ft([ve({passive:!0})],dt.prototype,"onHover",null);Ft([ve({passive:!0})],dt.prototype,"onOut",null);Ft([ve({passive:!0})],dt.prototype,"onClick",null);Z("ft-tooltip")(dt);var vr;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(vr||(vr={}));var _;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(_||(_={}));var Vv=new Map([...["abw"].map(e=>[e,_.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,_.AUDIO]),...["avi"].map(e=>[e,_.AVI]),...["chm","xhs"].map(e=>[e,_.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,_.CODE]),...["csv"].map(e=>[e,_.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,_.DITA]),...["epub"].map(e=>[e,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,_.EXCEL]),...["flac"].map(e=>[e,_.FLAC]),...["gif"].map(e=>[e,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,_.GZIP]),...["html","htm","xhtml"].map(e=>[e,_.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,_.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,_.JPEG]),...["json"].map(e=>[e,_.JSON]),...["m4a","m4p"].map(e=>[e,_.M4A]),...["mov","qt"].map(e=>[e,_.MOV]),...["mp3"].map(e=>[e,_.MP3]),...["mp4","m4v"].map(e=>[e,_.MP4]),...["ogg","oga"].map(e=>[e,_.OGG]),...["pdf","ps"].map(e=>[e,_.PDF]),...["png"].map(e=>[e,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,_.POWERPOINT]),...["rar"].map(e=>[e,_.RAR]),...["stp"].map(e=>[e,_.STP]),...["txt","rtf","md","mdown"].map(e=>[e,_.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,_.VIDEO]),...["wav"].map(e=>[e,_.WAV]),...["wma"].map(e=>[e,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,_.WORD]),...["xml","xsl","rdf"].map(e=>[e,_.XML]),...["yaml","yml","x-yaml"].map(e=>[e,_.YAML]),...["zip"].map(e=>[e,_.ZIP])]);var Zv={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var Wt;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Wt||(Wt={}));var wi=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},xt=class extends H{constructor(){super(...arguments),this.resolvedIcon=z}render(){let t=this.variant&&Object.values(Wt).includes(this.variant)?this.variant:Wt.fluid_topics,r=t!==Wt.material||!!this.value;return D`
634
634
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
635
- ${mn(this.resolvedIcon)}
635
+ ${xn(this.resolvedIcon)}
636
636
  <slot ?hidden=${r}></slot>
637
637
  </i>
638
- `}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let o=this.value||this.textContent;switch(this.variant){case Ut.file_format:this.resolvedIcon=(t=R[o.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:o;break;case Ut.material:this.resolvedIcon=this.value||B;break;default:this.resolvedIcon=(r=gr[o.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:o;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};gt.elementDefinitions={};gt.styles=Dc;xi([g()],gt.prototype,"variant",void 0);xi([g()],gt.prototype,"value",void 0);xi([H()],gt.prototype,"resolvedIcon",void 0);xi([Z("slot")],gt.prototype,"slottedContent",void 0);V("ft-icon")(gt);var vt={borderRadiusLeft:i.extend("--ft-switch-option-border-radius-left","",A.borderRadiusL),borderRadiusRight:i.extend("--ft-switch-option-border-radius-right","",A.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")},Gc=P`
638
+ `}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let o=this.value||this.textContent;switch(this.variant){case Wt.file_format:this.resolvedIcon=(t=_[o.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:o;break;case Wt.material:this.resolvedIcon=this.value||z;break;default:this.resolvedIcon=(r=vr[o.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:o;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};xt.elementDefinitions={};xt.styles=Wl;wi([x()],xt.prototype,"variant",void 0);wi([x()],xt.prototype,"value",void 0);wi([V()],xt.prototype,"resolvedIcon",void 0);wi([X("slot")],xt.prototype,"slottedContent",void 0);Z("ft-icon")(xt);var Ot={borderRadiusLeft:i.extend("--ft-switch-option-border-radius-left","",I.borderRadiusL),borderRadiusRight:i.extend("--ft-switch-option-border-radius-right","",I.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")},Xl=P`
639
639
  .ft-switch-option {
640
640
  position: relative;
641
641
  display: inline-block;
@@ -649,20 +649,20 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
649
649
  }
650
650
 
651
651
  .ft-switch-option--content {
652
- --ft-switch-option-internal-line-height: calc(${ft.fontSize} + 2px);
653
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${ft.iconSize});
652
+ --ft-switch-option-internal-line-height: calc(${gt.fontSize} + 2px);
653
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${gt.iconSize});
654
654
 
655
655
  border-style: solid;
656
- border-color: ${ft.borderColor};
657
- border-width: ${vt.borderWidthVertical} ${vt.borderWidthRight} ${vt.borderWidthVertical} ${vt.borderWidthLeft};
658
- border-radius: ${vt.borderRadiusLeft} ${vt.borderRadiusRight} ${vt.borderRadiusRight} ${vt.borderRadiusLeft};
656
+ border-color: ${gt.borderColor};
657
+ border-width: ${Ot.borderWidthVertical} ${Ot.borderWidthRight} ${Ot.borderWidthVertical} ${Ot.borderWidthLeft};
658
+ border-radius: ${Ot.borderRadiusLeft} ${Ot.borderRadiusRight} ${Ot.borderRadiusRight} ${Ot.borderRadiusLeft};
659
659
  display: flex;
660
660
  align-items: center;
661
661
  justify-content: center;
662
662
  overflow: hidden;
663
- ${C(Ot.size,ft.iconSize)};
663
+ ${A(Et.size,gt.iconSize)};
664
664
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
665
- background-color: ${ft.backgroundColor};
665
+ background-color: ${gt.backgroundColor};
666
666
  -webkit-mask-image: radial-gradient(white, black);
667
667
  }
668
668
 
@@ -671,28 +671,28 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
671
671
  }
672
672
 
673
673
  .ft-switch-option--selected .ft-switch-option--content:before {
674
- background-color: ${ft.selectedBackgroundColor};
675
- border-radius: ${vt.borderRadiusLeft} ${vt.borderRadiusRight} ${vt.borderRadiusRight} ${vt.borderRadiusLeft};
674
+ background-color: ${gt.selectedBackgroundColor};
675
+ border-radius: ${Ot.borderRadiusLeft} ${Ot.borderRadiusRight} ${Ot.borderRadiusRight} ${Ot.borderRadiusLeft};
676
676
  position: absolute;
677
677
  inset: 0;
678
678
  content: "";
679
679
  z-index: 1;
680
- opacity: ${A.opacityPrimaryOnSurfaceSelected};
680
+ opacity: ${I.opacityPrimaryOnSurfaceSelected};
681
681
  }
682
682
 
683
683
  .ft-switch-option--label {
684
- color: ${ft.textColor};
684
+ color: ${gt.textColor};
685
685
  overflow: hidden;
686
686
  white-space: nowrap;
687
687
  text-overflow: ellipsis;
688
688
  display: block;
689
689
  margin: 0 8px;
690
- ${C(It.fontSize,ft.fontSize)};
691
- ${C(It.lineHeight,"var(--ft-switch-option-internal-content-height)")}
690
+ ${A(Lt.fontSize,gt.fontSize)};
691
+ ${A(Lt.lineHeight,"var(--ft-switch-option-internal-content-height)")}
692
692
  }
693
693
 
694
694
  .ft-switch-option--selected .ft-switch-option--label {
695
- color: ${ft.selectedTextColor};
695
+ color: ${gt.selectedTextColor};
696
696
  }
697
697
 
698
698
  .ft-switch-option--label[hidden] {
@@ -700,7 +700,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
700
700
  }
701
701
 
702
702
  .ft-switch-option--ripple {
703
- ${C(z.color,ft.rippleColor)};
703
+ ${A(G.color,gt.rippleColor)};
704
704
  }
705
705
 
706
706
  ft-icon, ft-ripple, ft-typography {
@@ -713,20 +713,20 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
713
713
 
714
714
  ft-icon {
715
715
  flex-shrink: 0;
716
- color: ${ft.iconColor};
716
+ color: ${gt.iconColor};
717
717
  }
718
718
 
719
719
  .ft-switch-option--selected ft-icon {
720
- color: ${ft.selectedTextColor};
720
+ color: ${gt.selectedTextColor};
721
721
  }
722
- `;var de=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},is=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},ns=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},yt=class extends F{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new ns(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip($`
723
- <label part="label" for="input" class=${Nt(t)}
722
+ `;var he=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},cs=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},ls=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},vt=class extends H{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new ls(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(D`
723
+ <label part="label" for="input" class=${Pt(t)}
724
724
  @click=${this.onChange}>
725
725
  <div class="ft-switch-option--content">
726
726
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
727
727
  <ft-typography part="text"
728
728
  variant="button"
729
- class="ft-switch-option--label ${Eo?"ft-safari-ellipsis-fix":""}"
729
+ class="ft-switch-option--label ${Ao?"ft-safari-ellipsis-fix":""}"
730
730
  ?hidden=${!this.hasTextContent()}>
731
731
  <slot @slotchange=${this.onSlotchange}></slot>
732
732
  </ft-typography>
@@ -735,29 +735,29 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
735
735
  </label>
736
736
  <input id="input" type="radio" class="ft-switch-option--input"
737
737
  .checked=${this.selected}>
738
- `)}addTooltip(t){return this.hasTextContent()||this.getLabel().trim().length===0?t:$`
738
+ `)}addTooltip(t){return this.hasTextContent()||this.getLabel().trim().length===0?t:D`
739
739
  <ft-tooltip part="tooltip"
740
740
  text="${this.getLabel()}"
741
741
  position="${this.tooltipPosition}">
742
742
  ${t}
743
743
  </ft-tooltip>
744
- `}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new is(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?$`
744
+ `}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new cs(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?D`
745
745
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
746
- `:B}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};yt.elementDefinitions={"ft-ripple":J,"ft-typography":ht,"ft-tooltip":st,"ft-icon":gt};yt.styles=[cr,Gc];de([g()],yt.prototype,"value",void 0);de([g()],yt.prototype,"icon",void 0);de([g()],yt.prototype,"iconVariant",void 0);de([g()],yt.prototype,"label",void 0);de([g()],yt.prototype,"tooltipPosition",void 0);de([g({type:Boolean,reflect:!0})],yt.prototype,"selected",void 0);de([g({type:Boolean})],yt.prototype,"trailingIcon",void 0);de([g({type:Boolean})],yt.prototype,"unselectable",void 0);de([Z(".ft-switch-option--content slot")],yt.prototype,"slottedContent",void 0);de([Z(".ft-switch-option--input")],yt.prototype,"input",void 0);var Co=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},as=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Ht=class extends F{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return $`
747
- <div @keydown=${this.onKeyDown} tabindex="0" class="${Nt(t)}">
746
+ `:z}get textContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};vt.elementDefinitions={"ft-ripple":et,"ft-typography":yt,"ft-tooltip":dt,"ft-icon":xt};vt.styles=[ur,Xl];he([x()],vt.prototype,"value",void 0);he([x()],vt.prototype,"icon",void 0);he([x()],vt.prototype,"iconVariant",void 0);he([x()],vt.prototype,"label",void 0);he([x()],vt.prototype,"tooltipPosition",void 0);he([x({type:Boolean,reflect:!0})],vt.prototype,"selected",void 0);he([x({type:Boolean})],vt.prototype,"trailingIcon",void 0);he([x({type:Boolean})],vt.prototype,"unselectable",void 0);he([X(".ft-switch-option--content slot")],vt.prototype,"slottedContent",void 0);he([X(".ft-switch-option--input")],vt.prototype,"input",void 0);var Io=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ds=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Vt=class extends H{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return D`
747
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${Pt(t)}">
748
748
  <slot @slotchange=${this.onSlotchange}
749
749
  @option-change=${this.onOptionChangeByScript}
750
750
  @option-change-by-user=${this.onOptionChangeByUser}
751
751
  ></slot>
752
752
  </div>
753
- `}onKeyDown(t){let r;(t.key=="ArrowDown"||t.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(t.key=="ArrowUp"||t.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),r!=null&&(t.preventDefault(),this.options[this.fixIndex(r)].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(r=>{r instanceof yt&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let r=t.target;this.onOptionChange(r)}onOptionChangeByUser(t){var r;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new as((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(r=>r.selected)}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(t=>{t.selected=t===this.selectedOption})}};Ht.elementDefinitions={};Ht.styles=P`
753
+ `}onKeyDown(t){let r;(t.key=="ArrowDown"||t.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(t.key=="ArrowUp"||t.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),r!=null&&(t.preventDefault(),this.options[this.fixIndex(r)].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(r=>{r instanceof vt&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let r=t.target;this.onOptionChange(r)}onOptionChangeByUser(t){var r;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new ds((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(r=>r.selected)}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(t=>{t.selected=t===this.selectedOption})}};Vt.elementDefinitions={};Vt.styles=P`
754
754
  :host {
755
755
  display: inline-block;
756
756
  }
757
757
 
758
758
  .ft-switch {
759
- border-radius: ${ft.borderRadius};
760
- outline-color: ${ft.outlineColor};
759
+ border-radius: ${gt.borderRadius};
760
+ outline-color: ${gt.outlineColor};
761
761
  }
762
762
 
763
763
  .ft-switch slot {
@@ -766,25 +766,25 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
766
766
  }
767
767
 
768
768
  .ft-switch slot::slotted(ft-switch-option) {
769
- ${C(vt.borderRadiusLeft,"0")};
770
- ${C(vt.borderRadiusRight,"0")};
771
- ${C(vt.borderWidthLeft,"0")};
769
+ ${A(Ot.borderRadiusLeft,"0")};
770
+ ${A(Ot.borderRadiusRight,"0")};
771
+ ${A(Ot.borderWidthLeft,"0")};
772
772
  }
773
773
 
774
774
  .ft-switch slot::slotted(ft-switch-option:first-child) {
775
- ${C(vt.borderRadiusLeft,ft.borderRadius)};
776
- ${C(vt.borderWidthLeft,"1px")};
775
+ ${A(Ot.borderRadiusLeft,gt.borderRadius)};
776
+ ${A(Ot.borderWidthLeft,"1px")};
777
777
  }
778
778
 
779
779
  .ft-switch slot::slotted(ft-switch-option:last-child) {
780
- ${C(vt.borderRadiusRight,ft.borderRadius)};
780
+ ${A(Ot.borderRadiusRight,gt.borderRadius)};
781
781
  }
782
782
 
783
783
  .ft-switch--dense slot::slotted(ft-switch-option) {
784
784
  --ft-switch-internal-vertical-padding: 2px;
785
785
  --ft-switch-internal-horizontal-padding: 4px;
786
786
  }
787
- `;Co([g({type:Boolean})],Ht.prototype,"dense",void 0);Co([g({type:Boolean})],Ht.prototype,"unselectable",void 0);Co([Z(".ft-switch slot")],Ht.prototype,"slottedContent",void 0);Co([H()],Ht.prototype,"selectedOption",void 0);Co([Z(".ft-switch")],Ht.prototype,"ftSwitchDiv",void 0);V("ft-switch")(Ht);V("ft-switch-option")(yt);var Zc={colorOutline:i.external(A.colorOutline,"Design system"),colorOnSurfaceMedium:i.external(A.colorOnSurfaceMedium,"Design system")},qc=P`
787
+ `;Io([x({type:Boolean})],Vt.prototype,"dense",void 0);Io([x({type:Boolean})],Vt.prototype,"unselectable",void 0);Io([X(".ft-switch slot")],Vt.prototype,"slottedContent",void 0);Io([V()],Vt.prototype,"selectedOption",void 0);Io([X(".ft-switch")],Vt.prototype,"ftSwitchDiv",void 0);Z("ft-switch")(Vt);Z("ft-switch-option")(vt);var Jl={colorOutline:i.external(I.colorOutline,"Design system"),colorOnSurfaceMedium:i.external(I.colorOnSurfaceMedium,"Design system")},Ql=P`
788
788
  :host {
789
789
  display: block;
790
790
  }
@@ -795,17 +795,17 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
795
795
 
796
796
  ft-icon {
797
797
  transform: rotate(-45deg);
798
- color: ${Zc.colorOutline};
798
+ color: ${Jl.colorOutline};
799
799
  }
800
800
 
801
801
  .ft-resizer--dragging ft-icon,
802
802
  .ft-resizer:hover ft-icon {
803
- color: ${Zc.colorOnSurfaceMedium};
803
+ color: ${Jl.colorOnSurfaceMedium};
804
804
  }
805
- `;var He=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},ss=class extends CustomEvent{constructor(t,r){super("resize",{detail:{width:t,height:r}})}},_t=class extends F{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Ut.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 $`
805
+ `;var Ve=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ps=class extends CustomEvent{constructor(t,r){super("resize",{detail:{width:t,height:r}})}},Tt=class extends H{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Wt.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 D`
806
806
  <style>
807
807
  .ft-resizer {
808
- cursor: ${he(this.cursor)}
808
+ cursor: ${Jt(this.cursor)}
809
809
  }
810
810
  </style>
811
811
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
@@ -813,25 +813,25 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
813
813
  @touchstart=${this.initDragFromTouch}>
814
814
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
815
815
  </div>
816
- `}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,r){this.dragging=!0,this.startX=t,this.startY=r,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,r){let o=this.fixedWidth+t-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new ss(o,n))}};_t.elementDefinitions={"ft-icon":gt};_t.styles=[lr,qc];He([g({type:Number})],_t.prototype,"initialWidth",void 0);He([g({type:Number})],_t.prototype,"initialHeight",void 0);He([g()],_t.prototype,"icon",void 0);He([g()],_t.prototype,"iconVariant",void 0);He([g()],_t.prototype,"cursor",void 0);He([H()],_t.prototype,"dragging",void 0);He([ye({passive:!0})],_t.prototype,"initDragFromMouse",null);He([ye({passive:!0})],_t.prototype,"initDragFromTouch",null);V("ft-resizer")(_t);var U={fontSize:i.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:i.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:i.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:i.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:i.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:i.extend("--ft-input-label-border-color","",A.colorOutline),textColor:i.extend("--ft-input-label-text-color","",A.colorOnSurfaceMedium),disabledTextColor:i.extend("--ft-input-label-disabled-text-color","",A.colorOnSurfaceDisabled),colorSurface:i.external(A.colorSurface,"Design system"),borderRadiusS:i.external(A.borderRadiusS,"Design system"),colorError:i.external(A.colorError,"Design system")},Yc=P`
816
+ `}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,r){this.dragging=!0,this.startX=t,this.startY=r,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,r){let o=this.fixedWidth+t-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new ps(o,n))}};Tt.elementDefinitions={"ft-icon":xt};Tt.styles=[fr,Ql];Ve([x({type:Number})],Tt.prototype,"initialWidth",void 0);Ve([x({type:Number})],Tt.prototype,"initialHeight",void 0);Ve([x()],Tt.prototype,"icon",void 0);Ve([x()],Tt.prototype,"iconVariant",void 0);Ve([x()],Tt.prototype,"cursor",void 0);Ve([V()],Tt.prototype,"dragging",void 0);Ve([ve({passive:!0})],Tt.prototype,"initDragFromMouse",null);Ve([ve({passive:!0})],Tt.prototype,"initDragFromTouch",null);Z("ft-resizer")(Tt);var W={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","",I.colorOutline),textColor:i.extend("--ft-input-label-text-color","",I.colorOnSurfaceMedium),disabledTextColor:i.extend("--ft-input-label-disabled-text-color","",I.colorOnSurfaceDisabled),colorSurface:i.external(I.colorSurface,"Design system"),borderRadiusS:i.external(I.borderRadiusS,"Design system"),colorError:i.external(I.colorError,"Design system")},td=P`
817
817
  .ft-input-label {
818
818
  position: absolute;
819
819
  inset: 0;
820
820
  display: flex;
821
- background-color: ${U.colorSurface};
822
- border-radius: ${U.borderRadiusS} ${U.borderRadiusS} 0 0;
821
+ background-color: ${W.colorSurface};
822
+ border-radius: ${W.borderRadiusS} ${W.borderRadiusS} 0 0;
823
823
  }
824
824
 
825
825
  .ft-input-label--outlined {
826
- border-radius: ${U.borderRadiusS};
826
+ border-radius: ${W.borderRadiusS};
827
827
  }
828
828
 
829
829
  .ft-input-label {
830
- border-color: ${U.borderColor};
830
+ border-color: ${W.borderColor};
831
831
  }
832
832
 
833
833
  .ft-input-label.ft-input-label--in-error {
834
- border-color: ${U.colorError}
834
+ border-color: ${W.colorError}
835
835
  }
836
836
 
837
837
  .ft-input-label:before,
@@ -844,7 +844,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
844
844
  }
845
845
 
846
846
  .ft-input-label:before {
847
- width: calc(${U.horizontalSpacing} - 4px);
847
+ width: calc(${W.horizontalSpacing} - 4px);
848
848
  flex-shrink: 0;
849
849
  }
850
850
 
@@ -860,20 +860,20 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
860
860
  border-bottom-width: 1px;
861
861
  border-bottom-style: solid;
862
862
  border-color: inherit;
863
- color: ${U.textColor};
863
+ color: ${W.textColor};
864
864
  transition: font-size 250ms, line-height 250ms, color 250ms;
865
- max-width: calc(${U.labelMaxWidth} - 2 * (${U.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
865
+ max-width: calc(${W.labelMaxWidth} - 2 * (${W.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
866
866
  text-overflow: ellipsis;
867
- ${C(Qt.fontSize,U.fontSize)};
868
- ${C(Qt.lineHeight,U.fontSize)};
867
+ ${A(oe.fontSize,W.fontSize)};
868
+ ${A(oe.lineHeight,W.fontSize)};
869
869
  }
870
870
 
871
871
  .ft-input-label--in-error .ft-input-label--text {
872
- color: ${U.colorError}
872
+ color: ${W.colorError}
873
873
  }
874
874
 
875
875
  .ft-input-label--disabled .ft-input-label--text {
876
- color: ${U.disabledTextColor};
876
+ color: ${W.disabledTextColor};
877
877
  }
878
878
 
879
879
  .ft-input-label--hidden-text {
@@ -890,19 +890,19 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
890
890
  overflow: hidden;
891
891
  white-space: nowrap;
892
892
  text-overflow: ellipsis;
893
- padding: ${U.verticalSpacing} 4px;
894
- margin: calc(${U.verticalSpacing} * -1) 0;
893
+ padding: ${W.verticalSpacing} 4px;
894
+ margin: calc(${W.verticalSpacing} * -1) 0;
895
895
  max-width: 100%;
896
896
  box-sizing: border-box;
897
897
  }
898
898
 
899
899
  .ft-input-label--raised .ft-input-label--text {
900
- ${C(Qt.fontSize,U.raisedFontSize)};
901
- ${C(Qt.lineHeight,U.raisedFontSize)};
900
+ ${A(oe.fontSize,W.raisedFontSize)};
901
+ ${A(oe.lineHeight,W.raisedFontSize)};
902
902
  }
903
903
 
904
904
  .ft-input-label--raised .ft-input-label--floating-text {
905
- top: ${U.verticalSpacing};
905
+ top: ${W.verticalSpacing};
906
906
  }
907
907
 
908
908
  .ft-input-label--outlined .ft-input-label--text,
@@ -915,36 +915,36 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
915
915
  .ft-input-label--outlined:before {
916
916
  border-left-width: 1px;
917
917
  border-left-style: solid;
918
- border-radius: ${U.borderRadiusS} 0 0 ${U.borderRadiusS};
918
+ border-radius: ${W.borderRadiusS} 0 0 ${W.borderRadiusS};
919
919
  }
920
920
 
921
921
  .ft-input-label--outlined:after {
922
922
  border-right-width: 1px;
923
923
  border-right-style: solid;
924
- border-radius: 0 ${U.borderRadiusS} ${U.borderRadiusS} 0;
924
+ border-radius: 0 ${W.borderRadiusS} ${W.borderRadiusS} 0;
925
925
  }
926
926
 
927
927
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
928
928
  padding: 2px 4px;
929
- z-index: ${U.raisedZIndex};
930
- background-color: ${U.colorSurface};
931
- border-radius: ${U.borderRadiusS};
929
+ z-index: ${W.raisedZIndex};
930
+ background-color: ${W.colorSurface};
931
+ border-radius: ${W.borderRadiusS};
932
932
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
933
933
  }
934
934
 
935
935
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
936
936
  border-top: none;
937
937
  }
938
- `;var Ao=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Pt=class extends F{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 $`
939
- <div class="${Nt(t)}">
940
- ${this.text?$`
938
+ `;var _o=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},$t=class extends H{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 D`
939
+ <div class="${Pt(t)}">
940
+ ${this.text?D`
941
941
  <div class="ft-input-label--text ft-typography--caption">
942
942
  <span class="ft-input-label--floating-text">${this.text}</span>
943
943
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
944
944
  </div>
945
945
  `:null}
946
946
  </div>
947
- `}};Pt.elementDefinitions={};Pt.styles=[vi,Yc];Ao([g({type:String})],Pt.prototype,"text",void 0);Ao([g({type:Boolean})],Pt.prototype,"raised",void 0);Ao([g({type:Boolean})],Pt.prototype,"outlined",void 0);Ao([g({type:Boolean})],Pt.prototype,"disabled",void 0);Ao([g({type:Boolean})],Pt.prototype,"error",void 0);V("ft-input-label")(Pt);var Q={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","",A.colorOnSurfaceMedium),colorPrimary:i.external(A.colorPrimary,"Design system"),colorOnSurface:i.external(A.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(A.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(A.borderRadiusS,"Design system"),colorError:i.external(A.colorError,"Design system")},Xc=P`
947
+ `}};$t.elementDefinitions={};$t.styles=[Ci,td];_o([x({type:String})],$t.prototype,"text",void 0);_o([x({type:Boolean})],$t.prototype,"raised",void 0);_o([x({type:Boolean})],$t.prototype,"outlined",void 0);_o([x({type:Boolean})],$t.prototype,"disabled",void 0);_o([x({type:Boolean})],$t.prototype,"error",void 0);Z("ft-input-label")($t);var rt={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","",I.colorOnSurfaceMedium),colorPrimary:i.external(I.colorPrimary,"Design system"),colorOnSurface:i.external(I.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(I.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(I.borderRadiusS,"Design system"),colorError:i.external(I.colorError,"Design system")},ed=P`
948
948
  *:focus {
949
949
  outline: none;
950
950
  }
@@ -956,10 +956,10 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
956
956
  }
957
957
 
958
958
  ft-input-label {
959
- ${C(U.fontSize,Q.fontSize)};
960
- ${C(U.raisedFontSize,Q.labelSize)};
961
- ${C(U.verticalSpacing,Q.verticalSpacing)};
962
- ${C(U.horizontalSpacing,Q.horizontalSpacing)};
959
+ ${A(W.fontSize,rt.fontSize)};
960
+ ${A(W.raisedFontSize,rt.labelSize)};
961
+ ${A(W.verticalSpacing,rt.verticalSpacing)};
962
+ ${A(W.horizontalSpacing,rt.horizontalSpacing)};
963
963
  }
964
964
 
965
965
  .ft-text-area--main-panel {
@@ -977,8 +977,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
977
977
  }
978
978
 
979
979
  .ft-text-area--input-panel ft-ripple {
980
- ${C(z.opacityContentOnSurfaceHover,"0.08")};
981
- ${C(z.opacityContentOnSurfacePressed,"0.04")};
980
+ ${A(G.opacityContentOnSurfaceHover,"0.08")};
981
+ ${A(G.opacityContentOnSurfacePressed,"0.04")};
982
982
  }
983
983
 
984
984
  .ft-text-area--input {
@@ -990,12 +990,12 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
990
990
  align-self: stretch;
991
991
  resize: none;
992
992
 
993
- ${C(Zt.fontSize,Q.fontSize)};
994
- ${C(Zt.lineHeight,Q.fontSize)};
995
- color: ${Q.colorOnSurface};
993
+ ${A(Xt.fontSize,rt.fontSize)};
994
+ ${A(Xt.lineHeight,rt.fontSize)};
995
+ color: ${rt.colorOnSurface};
996
996
 
997
- padding: 0 ${Q.horizontalSpacing};
998
- margin: calc(${Q.verticalSpacing} + ${Q.labelSize} / 2) 0 ${Q.verticalSpacing} 0;
997
+ padding: 0 ${rt.horizontalSpacing};
998
+ margin: calc(${rt.verticalSpacing} + ${rt.labelSize} / 2) 0 ${rt.verticalSpacing} 0;
999
999
 
1000
1000
  border: none;
1001
1001
  background: none;
@@ -1004,7 +1004,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1004
1004
  }
1005
1005
 
1006
1006
  .ft-text-area--disabled .ft-text-area--input {
1007
- color: ${Q.colorOnSurfaceDisabled};
1007
+ color: ${rt.colorOnSurfaceDisabled};
1008
1008
  }
1009
1009
 
1010
1010
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -1012,49 +1012,49 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1012
1012
  }
1013
1013
 
1014
1014
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1015
- ${C(U.borderColor,Q.colorPrimary)};
1016
- ${C(U.textColor,Q.colorPrimary)};
1015
+ ${A(W.borderColor,rt.colorPrimary)};
1016
+ ${A(W.textColor,rt.colorPrimary)};
1017
1017
  }
1018
1018
 
1019
1019
  .ft-text-area--filled .ft-text-area--input-panel {
1020
- border-radius: ${Q.borderRadiusS} ${Q.borderRadiusS} 0 0;
1020
+ border-radius: ${rt.borderRadiusS} ${rt.borderRadiusS} 0 0;
1021
1021
  }
1022
1022
 
1023
1023
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
1024
1024
  align-self: stretch;
1025
- margin-bottom: ${Q.verticalSpacing};
1026
- margin-top: calc(${Q.labelSize} + 2 * ${Q.verticalSpacing});
1025
+ margin-bottom: ${rt.verticalSpacing};
1026
+ margin-top: calc(${rt.labelSize} + 2 * ${rt.verticalSpacing});
1027
1027
  }
1028
1028
 
1029
1029
  .ft-text-area--outlined .ft-text-area--input-panel {
1030
- border-radius: ${Q.borderRadiusS};
1030
+ border-radius: ${rt.borderRadiusS};
1031
1031
  }
1032
1032
 
1033
1033
  .ft-text-area--helper-text {
1034
- padding: 0 12px 0 ${Q.horizontalSpacing};
1035
- color: ${Q.helperColor};
1034
+ padding: 0 12px 0 ${rt.horizontalSpacing};
1035
+ color: ${rt.helperColor};
1036
1036
  }
1037
1037
 
1038
1038
  .ft-text-area--in-error .ft-text-area--input,
1039
1039
  .ft-text-area--in-error .ft-text-area--helper-text {
1040
- color: ${Q.colorError};
1040
+ color: ${rt.colorError};
1041
1041
  }
1042
1042
 
1043
1043
  ft-resizer {
1044
1044
  position: absolute;
1045
1045
  bottom: 0;
1046
1046
  }
1047
- `;var Ce=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},wt=class extends fr(F,"textbox"){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return $`
1047
+ `;var Ae=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Nt=class extends yr(H,"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 D`
1048
1048
  <style>
1049
1049
  .ft-text-area--main-panel {
1050
- height: calc(4 * ${Q.verticalSpacing} + ${Q.labelSize} + ${Q.fontSize} + ${this.height}px);
1050
+ height: calc(4 * ${rt.verticalSpacing} + ${rt.labelSize} + ${rt.fontSize} + ${this.height}px);
1051
1051
  }
1052
1052
 
1053
1053
  ft-resizer {
1054
1054
  right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1055
1055
  }
1056
1056
  </style>
1057
- <div class="${Nt(t)}">
1057
+ <div class="${Pt(t)}">
1058
1058
  <div class="ft-text-area--main-panel">
1059
1059
  <ft-input-label text="${this.label}"
1060
1060
  ?disabled=${this.disabled}
@@ -1064,7 +1064,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1064
1064
  ></ft-input-label>
1065
1065
  <div class="ft-text-area--input-panel"
1066
1066
  aria-label="${this.label}">
1067
- ${this.outlined?null:$`
1067
+ ${this.outlined?null:D`
1068
1068
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1069
1069
  `}
1070
1070
  <textarea class="ft-typography--body1 ft-text-area--input"
@@ -1081,45 +1081,46 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1081
1081
  initialHeight="${this.height}"
1082
1082
  cursor="ns-resize"></ft-resizer>
1083
1083
  </div>
1084
- ${this.helper?$`
1084
+ ${this.helper?D`
1085
1085
  <ft-typography class="ft-text-area--helper-text" variant="caption">
1086
1086
  ${this.helper}
1087
1087
  </ft-typography>`:void 0}
1088
1088
  </div>
1089
- `}setValue(t,r=!1){this.value=t,this.setFormValue(t),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){(t.key==="Enter"||t.key===" ")&&t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}};wt.elementDefinitions={"ft-input-label":Pt,"ft-resizer":_t,"ft-ripple":J,"ft-typography":ht};wt.styles=[Br,Xc];Ce([g({type:String})],wt.prototype,"label",void 0);Ce([g({reflect:!0})],wt.prototype,"value",void 0);Ce([g({type:String})],wt.prototype,"helper",void 0);Ce([g({type:Boolean})],wt.prototype,"outlined",void 0);Ce([g({type:Boolean})],wt.prototype,"disabled",void 0);Ce([g({type:Boolean})],wt.prototype,"error",void 0);Ce([g({type:Number,reflect:!0})],wt.prototype,"height",void 0);Ce([Z("textarea")],wt.prototype,"textarea",void 0);Ce([H()],wt.prototype,"focused",void 0);V("ft-text-area")(wt);var yr=class extends F{render(){return $`
1089
+ `}setValue(t,r=!1){this.value=t,this.setFormValue(t),r&&(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)}};Nt.elementDefinitions={"ft-input-label":$t,"ft-resizer":Tt,"ft-ripple":et,"ft-typography":yt};Nt.styles=[Hr,ed];Ae([x({type:String})],Nt.prototype,"label",void 0);Ae([x({reflect:!0})],Nt.prototype,"value",void 0);Ae([x({type:String})],Nt.prototype,"helper",void 0);Ae([x({type:Boolean})],Nt.prototype,"outlined",void 0);Ae([x({type:Boolean})],Nt.prototype,"disabled",void 0);Ae([x({type:Boolean})],Nt.prototype,"error",void 0);Ae([x({type:Number,reflect:!0})],Nt.prototype,"height",void 0);Ae([X("textarea")],Nt.prototype,"textarea",void 0);Ae([V()],Nt.prototype,"focused",void 0);Z("ft-text-area")(Nt);var Sr=class extends H{render(){return D`
1090
1090
  <div class="ft-loader">
1091
1091
  <div></div>
1092
1092
  <div></div>
1093
1093
  <div></div>
1094
1094
  <div></div>
1095
1095
  </div>
1096
- `}};yr.styles=Mc;V("ft-loader")(yr);var Vt=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},bt=class extends fr(F,"button"){constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){return this.addTooltipIfNeeded($`
1096
+ `}};Sr.styles=Fl;Z("ft-loader")(Sr);var Zt=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},St=class extends yr(H,"button"){constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){return this.addTooltipIfNeeded(D`
1097
1097
  <button part="button"
1098
- class="${Nt(this.buttonClasses)}"
1098
+ class="${Pt(this.buttonClasses)}"
1099
1099
  aria-label="${this.getLabel()}"
1100
1100
  ?disabled=${this.isDisabled()}>
1101
1101
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1102
1102
  <ft-typography part="label"
1103
1103
  variant=${this.typographyVariant}
1104
1104
  element="span"
1105
- class="ft-button--label ${Eo?"ft-safari-ellipsis-fix":""}"
1105
+ class="ft-button--label ${Ao?"ft-safari-ellipsis-fix":""}"
1106
1106
  ?hidden=${!this.hasTextContent()}>
1107
1107
  <slot @slotchange=${this.onSlotchange}></slot>
1108
1108
  </ft-typography>
1109
1109
  ${this.resolveIcon()}
1110
1110
  </button>
1111
- `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?$`
1111
+ `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?D`
1112
1112
  <ft-tooltip part="tooltip"
1113
1113
  text="${this.getLabel()}"
1114
1114
  position="${this.tooltipPosition}">
1115
1115
  ${t}
1116
1116
  </ft-tooltip>
1117
- `:t}resolveIcon(){return this.loading?$`
1118
- <ft-loader part="loader icon"></ft-loader> `:this.icon?$`
1117
+ `:t}resolveIcon(){return this.loading?D`
1118
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?D`
1119
1119
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
1120
- `:$`
1120
+ `:D`
1121
1121
  <slot part="icon" name="icon"></slot>
1122
- `}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(r=>this.unslotText(r)).join(""):t?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};bt.elementDefinitions={"ft-ripple":J,"ft-tooltip":st,"ft-typography":ht,"ft-icon":gt,"ft-loader":yr};Vt([g({type:String,reflect:!0})],bt.prototype,"role",void 0);Vt([g()],bt.prototype,"type",void 0);Vt([g({type:Boolean})],bt.prototype,"disabled",void 0);Vt([g()],bt.prototype,"label",void 0);Vt([g()],bt.prototype,"icon",void 0);Vt([g()],bt.prototype,"iconVariant",void 0);Vt([g({type:Boolean})],bt.prototype,"trailingIcon",void 0);Vt([g({type:Boolean})],bt.prototype,"loading",void 0);Vt([g()],bt.prototype,"tooltipPosition",void 0);Vt([g({type:Boolean})],bt.prototype,"hideTooltip",void 0);Vt([g({type:Boolean})],bt.prototype,"forceTooltip",void 0);Vt([Z(".ft-button")],bt.prototype,"button",void 0);Vt([Z(".ft-button--label slot")],bt.prototype,"slottedContent",void 0);var Si=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},te=class extends bt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};te.styles=[cr,Fc];Si([g({type:Boolean})],te.prototype,"primary",void 0);Si([g({type:Boolean})],te.prototype,"outlined",void 0);Si([g({type:Boolean})],te.prototype,"dense",void 0);Si([g({type:Boolean})],te.prototype,"round",void 0);var Jc=[P`
1122
+ `}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(r=>this.unslotText(r)).join(""):t?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};St.elementDefinitions={"ft-ripple":et,"ft-tooltip":dt,"ft-typography":yt,"ft-icon":xt,"ft-loader":Sr};Zt([x({type:String,reflect:!0})],St.prototype,"role",void 0);Zt([x()],St.prototype,"type",void 0);Zt([x({type:Boolean})],St.prototype,"disabled",void 0);Zt([x()],St.prototype,"label",void 0);Zt([x()],St.prototype,"icon",void 0);Zt([x()],St.prototype,"iconVariant",void 0);Zt([x({type:Boolean})],St.prototype,"trailingIcon",void 0);Zt([x({type:Boolean})],St.prototype,"loading",void 0);Zt([x()],St.prototype,"tooltipPosition",void 0);Zt([x({type:Boolean})],St.prototype,"hideTooltip",void 0);Zt([x({type:Boolean})],St.prototype,"forceTooltip",void 0);Zt([X(".ft-button")],St.prototype,"button",void 0);Zt([X(".ft-button--label slot")],St.prototype,"slottedContent",void 0);var Ei=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ie=class extends St{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=[ur,Gl];Ei([x({type:Boolean})],ie.prototype,"primary",void 0);Ei([x({type:Boolean})],ie.prototype,"outlined",void 0);Ei([x({type:Boolean})],ie.prototype,"dense",void 0);Ei([x({type:Boolean})],ie.prototype,"round",void 0);var Ze=e=>typeof e=="string"?Jt(e):e,a=class{static create(t,r,o,n){let s=l=>Ze(l??n),c=P`var(${Ze(t)}, ${s(n)})`;return c.name=t,c.description=r,c.category=o,c.defaultValue=n,c.defaultCssValue=s,c.get=l=>P`var(${Ze(t)}, ${s(l)})`,c.breadcrumb=()=>[],c.lastResortDefaultValue=()=>n,c}static extend(t,r,o,n){let s=l=>o.get(l??n),c=P`var(${Ze(t)}, ${s(n)})`;return c.name=t,c.description=r,c.category=o.category,c.fallbackVariable=o,c.defaultValue=n,c.defaultCssValue=s,c.get=l=>P`var(${Ze(t)}, ${s(l)})`,c.breadcrumb=()=>[o.name,...o.breadcrumb()],c.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),c}static external(t,r){let o=s=>t.fallbackVariable?t.fallbackVariable.get(s??t.defaultValue):Ze(s??t.lastResortDefaultValue()),n=P`var(${Ze(t.name)}, ${o(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=r,n.defaultCssValue=o,n.get=s=>P`var(${Ze(t.name)}, ${o(s)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};var p={colorWhite:a.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:a.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:a.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:a.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:a.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:a.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:a.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:a.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:a.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:a.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:a.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:a.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:a.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:a.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:a.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:a.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:a.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:a.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:a.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:a.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:a.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:a.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:a.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:a.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:a.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:a.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:a.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:a.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:a.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:a.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:a.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:a.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:a.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:a.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:a.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:a.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:a.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:a.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:a.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:a.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:a.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:a.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:a.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:a.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:a.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:a.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:a.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:a.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:a.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:a.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:a.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:a.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:a.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:a.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:a.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:a.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:a.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:a.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:a.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:a.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:a.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:a.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:a.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:a.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:a.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:a.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:a.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:a.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:a.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:a.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:a.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:a.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:a.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:a.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:a.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:a.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:a.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:a.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:a.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:a.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:a.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:a.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:a.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:a.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:a.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:a.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:a.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:a.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:a.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:a.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:a.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:a.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:a.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:a.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:a.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:a.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:a.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:a.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:a.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:a.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:a.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:a.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:a.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:a.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:a.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:a.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:a.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:a.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:a.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:a.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:a.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:a.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:a.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:a.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:a.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:a.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:a.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:a.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:a.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:a.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:a.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:a.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:a.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:a.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:a.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:a.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:a.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:a.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:a.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:a.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:a.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:a.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:a.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:a.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:a.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:a.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:a.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:a.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:a.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:a.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:a.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:a.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:a.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:a.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:a.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:a.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:a.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:a.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:a.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:a.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:a.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:a.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:a.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:a.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:a.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:a.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:a.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:a.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:a.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:a.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:a.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:a.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:a.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:a.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:a.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:a.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:a.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:a.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:a.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:a.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:a.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:a.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:a.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:a.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:a.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:a.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:a.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:a.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:a.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:a.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:a.create("--ft-opacity-0","","NUMBER","0"),opacity8:a.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:a.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:a.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:a.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:a.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:a.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:a.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:a.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:a.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:a.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:a.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:a.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:a.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:a.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)")},vC={fontFamily:a.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:a.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:a.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:a.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:a.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:a.create("--ft-typography-display-textCase","","UNKNOWN","none")},SC={fontFamily:a.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:a.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:a.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:a.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:a.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:a.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},OC={fontFamily:a.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:a.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:a.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:a.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:a.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:a.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},CC={fontFamily:a.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:a.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:a.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:a.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:a.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:a.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},wC={fontFamily:a.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:a.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:a.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:a.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:a.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:a.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},EC={fontFamily:a.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:a.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:a.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:a.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:a.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:a.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},NC={fontFamily:a.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:a.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:a.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:a.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:a.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:a.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},RC={fontFamily:a.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:a.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:a.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:a.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:a.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:a.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},AC={fontFamily:a.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:a.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:a.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:a.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:a.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:a.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},IC={fontFamily:a.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:a.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:a.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:a.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:a.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:a.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:a.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},_C={fontFamily:a.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:a.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:a.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:a.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:a.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:a.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},TC={fontFamily:a.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:a.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:a.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:a.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:a.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:a.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},PC={fontFamily:a.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:a.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:a.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:a.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:a.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:a.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},kC={fontFamily:a.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:a.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:a.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:a.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:a.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:a.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},LC={fontFamily:a.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:a.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:a.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:a.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:a.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:a.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},$C={fontFamily:a.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:a.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:a.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:a.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:a.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:a.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},DC={fontFamily:a.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:a.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:a.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:a.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:a.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:a.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},UC={fontFamily:a.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:a.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:a.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:a.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:a.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:a.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},MC={fontFamily:a.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:a.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:a.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:a.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:a.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:a.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},BC={fontFamily:a.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:a.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:a.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:a.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:a.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:a.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},FC={fontFamily:a.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:a.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:a.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:a.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:a.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:a.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},WC={fontFamily:a.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:a.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:a.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:a.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:a.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:a.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},zC={fontFamily:a.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:a.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:a.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:a.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:a.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:a.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},HC={fontFamily:a.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:a.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:a.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:a.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:a.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:a.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},GC={fontFamily:a.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:a.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:a.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:a.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:a.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:a.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},KC={fontFamily:a.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:a.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:a.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:a.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:a.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:a.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:a.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:a.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:a.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")};var g={backgroundActionPrimary:a.extend("--ft-background-action-primary","Used as backgorund of primary action components.",p.colorBrand0),backgroundErrorSubtle:a.extend("--ft-background-error-subtle","Used as background of subtle error components.",p.colorRed10),backgroundInfoSubtle:a.extend("--ft-background-info-subtle","Used as background of subtle information components.",p.colorCyan10),backgroundWarningSubtle:a.extend("--ft-background-warning-subtle","Used as background of subtle information components.",p.colorOrange10),backgroundSuccessSubtle:a.extend("--ft-background-success-subtle","Used as background of subtle success components.",p.colorGreen10),backgroundGlobalSurface:a.extend("--ft-background-global-surface","Used as app background.",p.colorWhite),backgroundGlobalOnSurface:a.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",p.colorGray10),backgroundGlobalOnSurfaceDark:a.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",p.colorGray30),contentActionPrimary:a.extend("--ft-content-action-primary","Used on label of primary action on light surface.",p.colorBrand0),contentWarningPrimary:a.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",p.colorOrange200),contentWarningIconOnly:a.extend("--ft-content-warning-icon-only","Used on warning status icons alone",p.colorOrange0),contentErrorPrimary:a.extend("--ft-content-error-primary","Used on label of error messages on light surface.",p.colorRed0),contentErrorIconOnly:a.extend("--ft-content-error-icon-only","Used on error status icons alone",p.colorRed70),contentInfoPrimary:a.extend("--ft-content-info-primary","Used on label of information messages on light surface.",p.colorCyan200),contentInfoIconOnly:a.extend("--ft-content-info-icon-only","Used on info status icons alone",p.colorCyan0),contentSuccessPrimary:a.extend("--ft-content-success-primary","Used on label of success messages on light surface.",p.colorGreen200),contentSuccessIconOnly:a.extend("--ft-content-success-icon-only","Used on success status icons alone",p.colorGreen0),contentGlobalPrimary:a.extend("--ft-content-global-primary","Used for main content on the page.",p.colorGray500),contentGlobalSecondary:a.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
1123
+ Also for action icons.`,p.colorGray200),contentGlobalSubtle:a.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",p.colorGray0),contentGlobalOnColor:a.extend("--ft-content-global-on-color","Used for content on a dominant color.",p.colorWhite),borderActionPrimary:a.extend("--ft-border-action-primary","Used as border for primary action components.",p.colorBrand0),borderActionFocusRing:a.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",p.colorCyan0),borderWarningPrimary:a.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",p.colorOrange200),borderWarningSubtle:a.extend("--ft-border-warning-subtle","Used as border for warning components.",p.colorOrange30),borderSuccessPrimary:a.extend("--ft-border-success-primary","Used as border for success buttons.",p.colorGreen200),borderSuccessSubtle:a.extend("--ft-border-success-subtle","Used as border for success components.",p.colorGreen30),borderErrorPrimary:a.extend("--ft-border-error-primary","Used as border for text fields in error states.",p.colorRed0),borderErrorSubtle:a.extend("--ft-border-error-subtle","Used as border for error components.",p.colorRed30),borderInfoPrimary:a.extend("--ft-border-info-primary","Used as border for buttons in info color.",p.colorCyan200),borderInfoSubtle:a.extend("--ft-border-info-subtle","Used as border for information components.",p.colorCyan30),borderGlobalPrimary:a.extend("--ft-border-global-primary","Used as border for element like input.",p.colorGray50),borderGlobalSubtle:a.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",p.colorGray30),borderInputPrimary:a.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",p.colorGray80)};var $={largeHeight:a.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:a.extend("--ft-button-large-horizontal-padding","",p.spacing4),largeGap:a.extend("--ft-button-large-gap","",p.spacing2),largeBorderRadius:a.extend("--ft-button-large-border-radius","",p.borderRadiusS),largeIconSize:a.extend("--ft-button-large-icon-size","",p.iconSize3),largeBorderWidth:a.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:a.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:a.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:a.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:a.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:a.extend("--ft-button-medium-horizontal-padding","",p.spacing3),mediumGap:a.extend("--ft-button-medium-gap","",p.spacing2),mediumBorderRadius:a.extend("--ft-button-medium-border-radius","",p.borderRadiusS),mediumIconSize:a.extend("--ft-button-medium-icon-size","",p.iconSize2),mediumBorderWidth:a.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:a.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:a.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:a.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:a.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:a.extend("--ft-button-small-horizontal-padding","",p.spacing2),smallGap:a.extend("--ft-button-small-gap","",p.spacing1),smallBorderRadius:a.extend("--ft-button-small-border-radius","",p.borderRadiusS),smallIconSize:a.extend("--ft-button-small-icon-size","",p.iconSize1),smallBorderWidth:a.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:a.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:a.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:a.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:a.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:a.extend("--ft-button-x-small-icon-size","",p.iconSize1),xSmallFocusOutlineOffset:a.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:a.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:a.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:a.extend("--ft-button-round-border-radius","",p.borderRadiusPill),primaryBackgroundColor:a.extend("--ft-button-primary-background-color","",g.backgroundActionPrimary),primaryColor:a.extend("--ft-button-primary-color","",g.contentGlobalOnColor),primaryIconColor:a.extend("--ft-button-primary-icon-color","",g.contentGlobalOnColor),primaryStateLayerColor:a.extend("--ft-button-primary-state-layer-color","",g.contentGlobalOnColor),primaryHoverStateLayerOpacity:a.extend("--ft-button-primary-hover-state-layer-opacity","",p.opacity16),primaryFocusStateLayerOpacity:a.extend("--ft-button-primary-focus-state-layer-opacity","",p.opacity16),primaryActiveStateLayerOpacity:a.extend("--ft-button-primary-active-state-layer-opacity","",p.opacity24),primaryDisabledComponentOpacity:a.extend("--ft-button-primary-disabled-component-opacity","",p.opacity40),focusFocusRingColor:a.extend("--ft-button-focus-focus-ring-color","",g.borderActionFocusRing),tertiaryBackgroundColor:a.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:a.extend("--ft-button-tertiary-color","",g.contentActionPrimary),tertiaryIconColor:a.extend("--ft-button-tertiary-icon-color","",g.contentActionPrimary),tertiaryStateLayerColor:a.extend("--ft-button-tertiary-state-layer-color","",g.contentActionPrimary),tertiaryHoverStateLayerOpacity:a.extend("--ft-button-tertiary-hover-state-layer-opacity","",p.opacity8),tertiaryFocusStateLayerOpacity:a.extend("--ft-button-tertiary-focus-state-layer-opacity","",p.opacity8),tertiaryActiveStateLayerOpacity:a.extend("--ft-button-tertiary-active-state-layer-opacity","",p.opacity16),tertiaryDisabledComponentOpacity:a.extend("--ft-button-tertiary-disabled-component-opacity","",p.opacity40),secondaryBackgroundColor:a.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:a.extend("--ft-button-secondary-color","",g.contentActionPrimary),secondaryIconColor:a.extend("--ft-button-secondary-icon-color","",g.contentActionPrimary),secondaryStateLayerColor:a.extend("--ft-button-secondary-state-layer-color","",g.contentActionPrimary),secondaryHoverStateLayerOpacity:a.extend("--ft-button-secondary-hover-state-layer-opacity","",p.opacity8),secondaryFocusStateLayerOpacity:a.extend("--ft-button-secondary-focus-state-layer-opacity","",p.opacity8),secondaryActiveStateLayerOpacity:a.extend("--ft-button-secondary-active-state-layer-opacity","",p.opacity16),secondaryDisabledComponentOpacity:a.extend("--ft-button-secondary-disabled-component-opacity","",p.opacity40),secondaryBorderColor:a.extend("--ft-button-secondary-border-color","",g.borderActionPrimary),neutralBackgroundColor:a.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:a.extend("--ft-button-neutral-icon-color","",g.contentGlobalSecondary),neutralColor:a.extend("--ft-button-neutral-color","",g.contentGlobalSecondary),neutralStateLayerColor:a.extend("--ft-button-neutral-state-layer-color","",g.contentGlobalSecondary),neutralHoverStateLayerOpacity:a.extend("--ft-button-neutral-hover-state-layer-opacity","",p.opacity8),neutralFocusStateLayerOpacity:a.extend("--ft-button-neutral-focus-state-layer-opacity","",p.opacity8),neutralActiveStateLayerOpacity:a.extend("--ft-button-neutral-active-state-layer-opacity","",p.opacity16),neutralDisabledComponentOpacity:a.extend("--ft-button-neutral-disabled-component-opacity","",p.opacity40)};var ow={largeMinHeight:a.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:a.extend("--ft-chip-large-horizontal-padding","",p.spacing3),largeButtonRightPadding:a.extend("--ft-chip-large-button-right-padding","",p.spacing1),largeGap:a.extend("--ft-chip-large-gap","",p.spacing1),largeFocusOutlineOffset:a.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:a.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:a.extend("--ft-chip-large-border-radius","",p.borderRadiusPill),largeBorderWidth:a.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:a.extend("--ft-chip-large-icon-size","",p.iconSize3),mediumMinHeight:a.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:a.extend("--ft-chip-medium-horizontal-padding","",p.spacing2),mediumButtonRightPadding:a.extend("--ft-chip-medium-button-right-padding","",p.spacing05),mediumGap:a.extend("--ft-chip-medium-gap","",p.spacing1),mediumFocusOutlineOffset:a.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:a.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:a.extend("--ft-chip-medium-border-radius","",p.borderRadiusPill),mediumBorderWidth:a.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:a.extend("--ft-chip-medium-icon-size","",p.iconSize2),smallMinHeight:a.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:a.extend("--ft-chip-small-horizontal-padding","",p.spacing1),smallButtonRightPadding:a.extend("--ft-chip-small-button-right-padding","",p.spacing05),smallGap:a.extend("--ft-chip-small-gap","",p.spacing1),smallFocusOutlineOffset:a.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:a.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:a.extend("--ft-chip-small-border-radius","",p.borderRadiusPill),smallBorderWidth:a.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:a.extend("--ft-chip-small-icon-size","",p.iconSize1),neutralBackgroundColor:a.extend("--ft-chip-neutral-background-color","",g.backgroundGlobalOnSurface),neutralColor:a.extend("--ft-chip-neutral-color","",g.contentGlobalSecondary),neutralIconColor:a.extend("--ft-chip-neutral-icon-color","",g.contentGlobalSecondary),neutralBorderColor:a.extend("--ft-chip-neutral-border-color","",g.borderGlobalSubtle),infoBackgroundColor:a.extend("--ft-chip-info-background-color","",g.backgroundInfoSubtle),infoColor:a.extend("--ft-chip-info-color","",g.contentInfoPrimary),infoIconColor:a.extend("--ft-chip-info-icon-color","",g.contentInfoIconOnly),infoBorderColor:a.extend("--ft-chip-info-border-color","",g.borderInfoSubtle),successBackgroundColor:a.extend("--ft-chip-success-background-color","",g.backgroundSuccessSubtle),successColor:a.extend("--ft-chip-success-color","",g.contentSuccessPrimary),successIconColor:a.extend("--ft-chip-success-icon-color","",g.contentSuccessIconOnly),successBorderColor:a.extend("--ft-chip-success-border-color","",g.borderSuccessSubtle),warningBackgroundColor:a.extend("--ft-chip-warning-background-color","",g.backgroundWarningSubtle),warningColor:a.extend("--ft-chip-warning-color","",g.contentWarningPrimary),warningIconColor:a.extend("--ft-chip-warning-icon-color","",g.contentWarningIconOnly),warningBorderColor:a.extend("--ft-chip-warning-border-color","",g.borderWarningSubtle),errorBackgroundColor:a.extend("--ft-chip-error-background-color","",g.backgroundErrorSubtle),errorColor:a.extend("--ft-chip-error-color","",g.contentErrorPrimary),errorIconColor:a.extend("--ft-chip-error-icon-color","",g.contentErrorIconOnly),errorBorderColor:a.extend("--ft-chip-error-border-color","",g.borderErrorSubtle)};var cw={focusOpacity:a.extend("--ft-link-focus-opacity","",p.opacity80),focusFocusRingColor:a.extend("--ft-link-focus-focus-ring-color","",g.borderActionFocusRing),brandColor:a.extend("--ft-link-brand-color","",g.contentActionPrimary),infoColor:a.extend("--ft-link-info-color","",g.contentInfoPrimary)};var uw={iconSize:a.extend("--ft-banner-icon-size","",p.iconSize5),borderWidth:a.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:a.extend("--ft-banner-left-padding","",p.spacing6),rightPadding:a.extend("--ft-banner-right-padding","",p.spacing6),verticalPadding:a.extend("--ft-banner-vertical-padding","",p.spacing6),horizontalSideGap:a.extend("--ft-banner-horizontal-side-gap","",p.spacing6),horizontalMobileGap:a.extend("--ft-banner-horizontal-mobile-gap","",p.spacing4),verticalMobileGap:a.extend("--ft-banner-vertical-mobile-gap","",p.spacing6),horizontalMiddleGap:a.extend("--ft-banner-horizontal-middle-gap","",p.spacing20),infoBackgroundColor:a.extend("--ft-banner-info-background-color","",g.backgroundInfoSubtle),infoColor:a.extend("--ft-banner-info-color","",g.contentInfoPrimary),infoIconColor:a.extend("--ft-banner-info-icon-color","",g.contentInfoIconOnly),infoBorderColor:a.extend("--ft-banner-info-border-color","",g.borderInfoSubtle)};var bw={horizontalPadding:a.extend("--ft-badge-horizontal-padding","",p.spacing1),verticalPadding:a.extend("--ft-badge-vertical-padding","",p.spacing1),borderRadius:a.extend("--ft-badge-border-radius","",p.borderRadiusPill),color:a.extend("--ft-badge-color","",g.contentGlobalOnColor),backgroundColor:a.extend("--ft-badge-background-color","",g.contentActionPrimary)};var Cw={horizontalGap:a.extend("--ft-breadcrumb-horizontal-gap","",p.spacing1),verticalGap:a.extend("--ft-breadcrumb-vertical-gap","",p.spacing2),currentColor:a.extend("--ft-breadcrumb-current-color","",g.contentGlobalPrimary),previousNonClickableColor:a.extend("--ft-breadcrumb-previous-non-clickable-color","",g.contentGlobalSecondary),iconColor:a.extend("--ft-breadcrumb-icon-color","",g.contentGlobalSubtle)};var Aw={horizontalPadding:a.extend("--ft-page-header-horizontal-padding","",p.spacing12),horizontalGap:a.extend("--ft-page-header-horizontal-gap","",p.spacing4),verticalGap:a.extend("--ft-page-header-vertical-gap","",p.spacing2),classicVerticalPadding:a.extend("--ft-page-header-classic-vertical-padding","",p.spacing6),multilineVerticalPadding:a.extend("--ft-page-header-multiline-vertical-padding","",p.spacing4),inlineVerticalPadding:a.extend("--ft-page-header-inline-vertical-padding","",p.spacing2),backgroundColor:a.extend("--ft-page-header-background-color","",p.colorWhite),bottomBorderColor:a.extend("--ft-page-header-bottom-border-color","",g.borderGlobalSubtle),titleColor:a.extend("--ft-page-header-title-color","",g.contentGlobalPrimary),subtitleColor:a.extend("--ft-page-header-subtitle-color","",g.contentGlobalSecondary)};var kw={smallContainerWidth:a.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:a.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:a.extend("--ft-modal-overlay-background-color","",p.colorGray700),overlayOpacity:a.extend("--ft-modal-overlay-opacity","",p.opacity40),shadow:a.extend("--ft-modal-shadow","",p.shadowElevation03),bodyBackgroundColor:a.extend("--ft-modal-body-background-color","",p.colorWhite),bodyColor:a.extend("--ft-modal-body-color","",g.contentGlobalPrimary),bodyHorizontalPadding:a.extend("--ft-modal-body-horizontal-padding","",p.spacing6),bodyVerticalPadding:a.extend("--ft-modal-body-vertical-padding","",p.spacing6),bodyVerticalGap:a.extend("--ft-modal-body-vertical-gap","",p.spacing6),containerMargin:a.extend("--ft-modal-container-margin","",p.spacing3),headerBackgroundColor:a.extend("--ft-modal-header-background-color","",g.backgroundGlobalOnSurface),headerBorderColor:a.extend("--ft-modal-header-border-color","",g.borderGlobalSubtle),headerColor:a.extend("--ft-modal-header-color","",g.contentGlobalPrimary),headerTrailingIconColor:a.extend("--ft-modal-header-trailing-icon-color","",g.contentGlobalSecondary),headerVerticalPadding:a.extend("--ft-modal-header-vertical-padding","",p.spacing1),headerRightPadding:a.extend("--ft-modal-header-right-padding","",p.spacing1),headerLeftPadding:a.extend("--ft-modal-header-left-padding","",p.spacing6),headerGap:a.extend("--ft-modal-header-gap","",p.spacing2),headerBorderBottom:a.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:a.extend("--ft-modal-border-radius","",p.borderRadiusM)};var Mw={overlayOpacity:a.extend("--ft-drawer-overlay-opacity","",p.opacity40),shadow:a.extend("--ft-drawer-shadow","",p.shadowElevation03),bodyColor:a.extend("--ft-drawer-body-color","",g.contentGlobalPrimary),bodyHorizontalPadding:a.extend("--ft-drawer-body-horizontal-padding","",p.spacing6),bodyVerticalPadding:a.extend("--ft-drawer-body-vertical-padding","",p.spacing6),bodyGap:a.extend("--ft-drawer-body-gap","",p.spacing6),bodyBackgroundColor:a.extend("--ft-drawer-body-background-color","",p.colorWhite),headerBackgroundColor:a.extend("--ft-drawer-header-background-color","",g.backgroundGlobalOnSurface),headerBorderColor:a.extend("--ft-drawer-header-border-color","",g.borderGlobalSubtle),headerColor:a.extend("--ft-drawer-header-color","",g.contentGlobalPrimary),headerTrailingIconColor:a.extend("--ft-drawer-header-trailing-icon-color","",g.contentGlobalSecondary),headerHeight:a.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:a.extend("--ft-drawer-header-horizontal-padding","",p.spacing2),headerBorderWidth:a.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:a.extend("--ft-drawer-header-gap","",p.spacing3),buttonsBarBackgroundColor:a.extend("--ft-drawer-buttons-bar-background-color","",g.backgroundGlobalOnSurface),buttonsBarBorderColor:a.extend("--ft-drawer-buttons-bar-border-color","",g.borderGlobalSubtle),buttonsBarColor:a.extend("--ft-drawer-buttons-bar-color","",g.contentGlobalPrimary),buttonsBarHorizontalPadding:a.extend("--ft-drawer-buttons-bar-horizontal-padding","",p.spacing4),buttonsBarVerticalPadding:a.extend("--ft-drawer-buttons-bar-vertical-padding","",p.spacing4),buttonsBarGap:a.extend("--ft-drawer-buttons-bar-gap","",p.spacing3),buttonsBarBorderWidth:a.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:a.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:a.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:a.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:a.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:a.extend("--ft-drawer-overlay-background-color","",p.colorGray700)};var Hw={fieldHorizontalPadding:a.extend("--ft-text-input-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:a.extend("--ft-text-input-field-horizontal-gap","",p.spacing3),fieldVerticalGap:a.extend("--ft-text-input-field-vertical-gap","",p.spacing05),fieldIconSize:a.extend("--ft-text-input-field-icon-size","",p.iconSize3),fieldHeight:a.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:a.extend("--ft-text-input-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:a.extend("--ft-text-input-helper-horizontal-gap","",p.spacing1),helperIconSize:a.extend("--ft-text-input-helper-icon-size","",p.iconSize2),borderRadius:a.extend("--ft-text-input-border-radius","",p.borderRadiusM),backgroundColor:a.extend("--ft-text-input-background-color","",p.colorWhite),contentValueColor:a.extend("--ft-text-input-content-value-color","",g.contentGlobalPrimary),trailingIconColor:a.extend("--ft-text-input-trailing-icon-color","",g.contentGlobalSubtle),labelColor:a.extend("--ft-text-input-label-color","",g.contentGlobalSubtle),defaultBorderColor:a.extend("--ft-text-input-default-border-color","",g.borderInputPrimary),defaultHelperTextColor:a.extend("--ft-text-input-default-helper-text-color","",g.contentGlobalSubtle),defaultBorderWidth:a.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:a.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:a.extend("--ft-text-input-error-border-color","",g.borderErrorPrimary),errorHelperTextColor:a.extend("--ft-text-input-error-helper-text-color","",g.contentErrorPrimary),errorHelperIconColor:a.extend("--ft-text-input-error-helper-icon-color","",g.contentErrorIconOnly),warningBorderWidth:a.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:a.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:a.extend("--ft-text-input-focus-focus-ring-color","",g.borderActionFocusRing),focusOutlineOffset:a.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:a.extend("--ft-text-input-disabled-component-opacity","",p.opacity40)};var jw={backgroundColor:a.extend("--ft-text-area-background-color","",p.colorWhite),contentValueColor:a.extend("--ft-text-area-content-value-color","",g.contentGlobalPrimary),labelColor:a.extend("--ft-text-area-label-color","",g.contentGlobalSubtle),defaultBorderColor:a.extend("--ft-text-area-default-border-color","",g.borderInputPrimary),defaultHelperTextColor:a.extend("--ft-text-area-default-helper-text-color","",g.contentGlobalSubtle),defaultBorderWidth:a.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:a.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:a.extend("--ft-text-area-error-border-color","",g.borderErrorPrimary),errorHelperTextColor:a.extend("--ft-text-area-error-helper-text-color","",g.contentErrorPrimary),errorHelperIconColor:a.extend("--ft-text-area-error-helper-icon-color","",g.contentErrorIconOnly),focusFocusRingColor:a.extend("--ft-text-area-focus-focus-ring-color","",g.borderActionFocusRing),focusOutlineWidth:a.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:a.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:a.extend("--ft-text-area-disabled-component-opacity","",p.opacity40),fieldHorizontalLeftPadding:a.extend("--ft-text-area-field-horizontal-left-padding","",p.spacing4),fieldHorizontalGap:a.extend("--ft-text-area-field-horizontal-gap","",p.spacing3),fieldVerticalGap:a.extend("--ft-text-area-field-vertical-gap","",p.spacing05),fieldMinHeight:a.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:a.extend("--ft-text-area-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:a.extend("--ft-text-area-helper-horizontal-gap","",p.spacing1),helperIconSize:a.extend("--ft-text-area-helper-icon-size","",p.iconSize2),borderRadius:a.extend("--ft-text-area-border-radius","",p.borderRadiusM)};var Qw={height:a.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:a.extend("--ft-floating-menu-horizontal-padding","",p.spacing4),offIconColor:a.extend("--ft-floating-menu-off-icon-color","",g.contentGlobalPrimary),offColor:a.extend("--ft-floating-menu-off-color","",g.contentGlobalPrimary),onColor:a.extend("--ft-floating-menu-on-color","",g.contentActionPrimary),onStateLayerColor:a.extend("--ft-floating-menu-on-state-layer-color","",g.contentActionPrimary),gap:a.extend("--ft-floating-menu-gap","",p.spacing3),focusFocusRingColor:a.extend("--ft-floating-menu-focus-focus-ring-color","",g.borderActionFocusRing),focusOutlineWidth:a.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:a.extend("--ft-floating-menu-focus-state-layer-opacity","",p.opacity8),hoverStateLayerOpacity:a.extend("--ft-floating-menu-hover-state-layer-opacity","",p.opacity8),activeStateLayerOpacity:a.extend("--ft-floating-menu-active-state-layer-opacity","",p.opacity16),disabledComponentOpacity:a.extend("--ft-floating-menu-disabled-component-opacity","",p.opacity40),iconSize:a.extend("--ft-floating-menu-icon-size","",p.iconSize3),backgroundColor:a.extend("--ft-floating-menu-background-color","",g.backgroundGlobalOnSurface)};var iE={fieldHorizontalPadding:a.extend("--ft-combobox-single-select-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:a.extend("--ft-combobox-single-select-field-horizontal-gap","",p.spacing3),fieldVerticalGap:a.extend("--ft-combobox-single-select-field-vertical-gap","",p.spacing05),fieldIconSize:a.extend("--ft-combobox-single-select-field-icon-size","",p.iconSize3),fieldHeight:a.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:a.extend("--ft-combobox-single-select-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:a.extend("--ft-combobox-single-select-helper-horizontal-gap","",p.spacing1),helperVerticalGap:a.extend("--ft-combobox-single-select-helper-vertical-gap","",p.spacing1),helperIconSize:a.extend("--ft-combobox-single-select-helper-icon-size","",p.iconSize2),menuVerticalGap:a.extend("--ft-combobox-single-select-menu-vertical-gap","",p.spacing2),borderRadius:a.extend("--ft-combobox-single-select-border-radius","",p.borderRadiusM),backgroundColor:a.extend("--ft-combobox-single-select-background-color","",p.colorWhite),labelColor:a.extend("--ft-combobox-single-select-label-color","",g.contentGlobalSubtle),contentValueColor:a.extend("--ft-combobox-single-select-content-value-color","",g.contentGlobalPrimary),trailingIconColor:a.extend("--ft-combobox-single-select-trailing-icon-color","",g.contentGlobalSubtle),defaultBorderColor:a.extend("--ft-combobox-single-select-default-border-color","",g.borderInputPrimary),defaultHelperTextColor:a.extend("--ft-combobox-single-select-default-helper-text-color","",g.contentGlobalSubtle),defaultBorderWidth:a.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:a.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:a.extend("--ft-combobox-single-select-error-border-color","",g.borderErrorPrimary),errorHelperTextColor:a.extend("--ft-combobox-single-select-error-helper-text-color","",g.contentErrorPrimary),warningBorderWidth:a.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:a.extend("--ft-combobox-single-select-warning-border-color","",g.borderWarningPrimary),warningHelperTextColor:a.extend("--ft-combobox-single-select-warning-helper-text-color","",g.contentWarningPrimary),warningHelperIconColor:a.extend("--ft-combobox-single-select-warning-helper-icon-color","",g.contentWarningIconOnly),focusOutlineWidth:a.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:a.extend("--ft-combobox-single-select-focus-focus-ring-color","",g.borderActionFocusRing),focusOutlineOffset:a.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:a.extend("--ft-combobox-single-select-disabled-component-opacity","",p.opacity40)};var lE={backgroundColor:a.extend("--ft-combobox-multi-select-background-color","",p.colorWhite),labelColor:a.extend("--ft-combobox-multi-select-label-color","",g.contentGlobalSubtle),trailingIconColor:a.extend("--ft-combobox-multi-select-trailing-icon-color","",g.contentGlobalSubtle),defaultBorderColor:a.extend("--ft-combobox-multi-select-default-border-color","",g.borderInputPrimary),defaultHelperTextColor:a.extend("--ft-combobox-multi-select-default-helper-text-color","",g.contentGlobalSubtle),defaultBorderWidth:a.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:a.extend("--ft-combobox-multi-select-error-border-color","",g.borderErrorPrimary),errorHelperTextColor:a.extend("--ft-combobox-multi-select-error-helper-text-color","",g.contentErrorPrimary),errorHelperIcon:a.extend("--ft-combobox-multi-select-error-helper-icon","",g.contentErrorIconOnly),errorBorderWidth:a.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:a.extend("--ft-combobox-multi-select-warning-border-color","",g.borderWarningPrimary),warningHelperTextColor:a.extend("--ft-combobox-multi-select-warning-helper-text-color","",g.contentWarningPrimary),warningHelperIconColor:a.extend("--ft-combobox-multi-select-warning-helper-icon-color","",g.contentWarningIconOnly),warningBorderWidth:a.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:a.extend("--ft-combobox-multi-select-focus-focus-ring-color","",g.borderActionFocusRing),focusOutlineWidth:a.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:a.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:a.extend("--ft-combobox-multi-select-disabled-component-opacity","",p.opacity40),helperHorizontalPadding:a.extend("--ft-combobox-multi-select-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:a.extend("--ft-combobox-multi-select-helper-horizontal-gap","",p.spacing1),helperVerticalGap:a.extend("--ft-combobox-multi-select-helper-vertical-gap","",p.spacing1),helperIconSize:a.extend("--ft-combobox-multi-select-helper-icon-size","",p.iconSize2),fieldHorizontalPadding:a.extend("--ft-combobox-multi-select-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:a.extend("--ft-combobox-multi-select-field-horizontal-gap","",p.spacing3),fieldVerticalGap:a.extend("--ft-combobox-multi-select-field-vertical-gap","",p.spacing05),fieldIconSize:a.extend("--ft-combobox-multi-select-field-icon-size","",p.iconSize3),fieldMaxHeight:a.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:a.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",p.spacing1),contentValuesVerticalGap:a.extend("--ft-combobox-multi-select-content-values-vertical-gap","",p.spacing1),borderRadius:a.extend("--ft-combobox-multi-select-border-radius","",p.borderRadiusM)};var hE={backgroundColor:a.extend("--ft-popover-background-color","",g.backgroundGlobalOnSurface),horizontalPadding:a.extend("--ft-popover-horizontal-padding","",p.spacing6),verticalPadding:a.extend("--ft-popover-vertical-padding","",p.spacing6),titleColor:a.extend("--ft-popover-title-color","",g.contentGlobalPrimary),bodyColor:a.extend("--ft-popover-body-color","",g.contentGlobalSecondary),linkColor:a.extend("--ft-popover-link-color","",g.contentActionPrimary),gap:a.extend("--ft-popover-gap","",p.spacing3),borderRadius:a.extend("--ft-popover-border-radius","",p.borderRadiusM),shadow:a.extend("--ft-popover-shadow","",p.shadowElevation02)};var xE={topLeftBorderRadius:a.extend("--ft-tabs-top-left-border-radius","",p.borderRadiusS),topRightBorderRadius:a.extend("--ft-tabs-top-right-border-radius","",p.borderRadiusS),withLabelHorizontalPadding:a.extend("--ft-tabs-with-label-horizontal-padding","",p.spacing4),withLabelVerticalPadding:a.extend("--ft-tabs-with-label-vertical-padding","",p.spacing3),horizontalGap:a.extend("--ft-tabs-horizontal-gap","",p.spacing1),verticalGap:a.extend("--ft-tabs-vertical-gap","",p.spacing1),offHoverStateLayerOpacity:a.extend("--ft-tabs-off-hover-state-layer-opacity","",p.opacity8),offDefaultStateLayerOpacity:a.extend("--ft-tabs-off-default-state-layer-opacity","",p.opacity0),offFocusStateLayerOpacity:a.extend("--ft-tabs-off-focus-state-layer-opacity","",p.opacity8),offDisabledComponentOpacity:a.extend("--ft-tabs-off-disabled-component-opacity","",p.opacity40),offColor:a.extend("--ft-tabs-off-color","",g.contentGlobalSubtle),offStateLayerColor:a.extend("--ft-tabs-off-state-layer-color","",g.contentGlobalSubtle),onHoverStateLayerOpacity:a.extend("--ft-tabs-on-hover-state-layer-opacity","",p.opacity8),onDefaultStateLayerOpacity:a.extend("--ft-tabs-on-default-state-layer-opacity","",p.opacity0),onFocusStateLayerOpacity:a.extend("--ft-tabs-on-focus-state-layer-opacity","",p.opacity8),onActiveStateLayerOpacity:a.extend("--ft-tabs-on-active-state-layer-opacity","",p.opacity16),onColor:a.extend("--ft-tabs-on-color","",g.contentActionPrimary),onStateLayerColor:a.extend("--ft-tabs-on-state-layer-color","",g.contentActionPrimary),iconOnlyHorizontalPadding:a.extend("--ft-tabs-icon-only-horizontal-padding","",p.spacing4),iconOnlyVerticalPadding:a.extend("--ft-tabs-icon-only-vertical-padding","",p.spacing4),alertTopPadding:a.extend("--ft-tabs-alert-top-padding","",p.spacing1),alertRightPadding:a.extend("--ft-tabs-alert-right-padding","",p.spacing05),focusOutlineWidth:a.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:a.extend("--ft-tabs-focus-focus-ring-color","",g.borderActionFocusRing)};var wE={hoverStateLayerOpacity:a.extend("--ft-collapsible-hover-state-layer-opacity","",p.opacity8),focusStateLayerOpacity:a.extend("--ft-collapsible-focus-state-layer-opacity","",p.opacity8),focusOutlineWidth:a.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:a.extend("--ft-collapsible-focus-focus-ring-color","",g.borderActionFocusRing),activeStateLayerOpacity:a.extend("--ft-collapsible-active-state-layer-opacity","",p.opacity16),disabledComponentOpacity:a.extend("--ft-collapsible-disabled-component-opacity","",p.opacity40),horizontalPadding:a.extend("--ft-collapsible-horizontal-padding","",p.spacing4),verticalPadding:a.extend("--ft-collapsible-vertical-padding","",p.spacing3),color:a.extend("--ft-collapsible-color","",g.contentGlobalPrimary),stateLayerColor:a.extend("--ft-collapsible-state-layer-color","",g.contentGlobalPrimary),backgroundColor:a.extend("--ft-collapsible-background-color","",g.backgroundGlobalOnSurface),borderColor:a.extend("--ft-collapsible-border-color","",g.borderGlobalSubtle),iconSize:a.extend("--ft-collapsible-icon-size","",p.iconSize3)};var IE={groupHorizontalPadding:a.extend("--ft-switch-group-horizontal-padding","",p.spacing1),groupVerticalPadding:a.extend("--ft-switch-group-vertical-padding","",p.spacing1),groupGap:a.extend("--ft-switch-group-gap","",p.spacing1),groupBackgroundColor:a.extend("--ft-switch-group-background-color","",g.backgroundGlobalSurface),groupBorderColor:a.extend("--ft-switch-group-border-color","",g.borderGlobalSubtle),groupBorderRadius:a.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:a.extend("--ft-switch-label-horizontal-padding","",p.spacing2),labelVerticalPadding:a.extend("--ft-switch-label-vertical-padding","",p.spacing1),offHoverStateLayerOpacity:a.extend("--ft-switch-off-hover-state-layer-opacity","",p.opacity8),offFocusStateLayerOpacity:a.extend("--ft-switch-off-focus-state-layer-opacity","",p.opacity8),offActiveStateLayerOpacity:a.extend("--ft-switch-off-active-state-layer-opacity","",p.opacity16),offDisabledComponentOpacity:a.extend("--ft-switch-off-disabled-component-opacity","",p.opacity40),offColor:a.extend("--ft-switch-off-color","",g.contentGlobalSubtle),offStateLayerColor:a.extend("--ft-switch-off-state-layer-color","",g.contentGlobalSubtle),onHoverStateLayerOpacity:a.extend("--ft-switch-on-hover-state-layer-opacity","",p.opacity8),onFocusStateLayerOpacity:a.extend("--ft-switch-on-focus-state-layer-opacity","",p.opacity8),onActiveStateLayerOpacity:a.extend("--ft-switch-on-active-state-layer-opacity","",p.opacity16),onDisabledComponentOpacity:a.extend("--ft-switch-on-disabled-component-opacity","",p.opacity40),onColor:a.extend("--ft-switch-on-color","",g.contentActionPrimary),onStateLayerColor:a.extend("--ft-switch-on-state-layer-color","",g.contentActionPrimary),iconHorizontalPadding:a.extend("--ft-switch-icon-horizontal-padding","",p.spacing1),iconVerticalPadding:a.extend("--ft-switch-icon-vertical-padding","",p.spacing1),focusOutlineWidth:a.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:a.extend("--ft-switch-focus-focus-ring-color","",g.borderActionFocusRing),optionBorderRadius:a.extend("--ft-switch-option-border-radius","",p.borderRadiusS)};var kE={color1Light:a.extend("--ft-chart-1-light","for area color charts",p.colorBrand40),color1Base:a.extend("--ft-chart-1-base","for line charts",p.colorBrand0),color2Light:a.extend("--ft-chart-2-light","for area color charts",p.colorYellow60),color2Base:a.extend("--ft-chart-2-base","for line charts",p.colorYellow100),color3Light:a.extend("--ft-chart-3-light","",p.colorUltramarine40),color3Base:a.extend("--ft-chart-3-base","",p.colorUltramarine70),color4Light:a.extend("--ft-chart-4-light","",p.colorCyan50),color4Base:a.extend("--ft-chart-4-base","",p.colorCyan100),color5Light:a.extend("--ft-chart-5-light","",p.colorRed40),color5Base:a.extend("--ft-chart-5-base","",p.colorRed60),color6Light:a.extend("--ft-chart-6-light","",p.colorGreen40),color6Base:a.extend("--ft-chart-6-base","",p.colorGreen70),color7Light:a.extend("--ft-chart-7-light","",p.colorOrange70),color7Base:a.extend("--ft-chart-7-base","",p.colorOrange100),color8Light:a.extend("--ft-chart-8-light","",p.colorAvocado70),color8Base:a.extend("--ft-chart-8-base","",p.colorAvocado200),color9Light:a.extend("--ft-chart-9-light","",p.colorBrown50),color9Base:a.extend("--ft-chart-9-base","",p.colorBrown200),color10Light:a.extend("--ft-chart-10-light","",p.colorGray50),color10Base:a.extend("--ft-chart-10-base","",p.colorGray80),monochrome10:a.extend("--ft-chart-monochrome-10","",p.colorBrand10),monochrome20:a.extend("--ft-chart-monochrome-20","",p.colorBrand20),monochrome30:a.extend("--ft-chart-monochrome-30","",p.colorBrand40),monochrome40:a.extend("--ft-chart-monochrome-40","",p.colorBrand60),monochrome50:a.extend("--ft-chart-monochrome-50","",p.colorBrand0),monochrome60:a.extend("--ft-chart-monochrome-60","",p.colorBrand200)};var ME={borderWidth:a.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:a.extend("--ft-notice-horizontal-padding","",p.spacing3),verticalPadding:a.extend("--ft-notice-vertical-padding","",p.spacing2),borderRadius:a.extend("--ft-notice-border-radius","",p.borderRadiusS),gap:a.extend("--ft-notice-gap","",p.spacing2),iconSize:a.extend("--ft-notice-icon-size","",p.iconSize3),infoBackgroundColor:a.extend("--ft-notice-info-background-color","",g.backgroundInfoSubtle),infoBorderColor:a.extend("--ft-notice-info-border-color","",g.borderInfoSubtle),infoColor:a.extend("--ft-notice-info-color","",g.contentInfoPrimary),infoIconColor:a.extend("--ft-notice-info-icon-color","",g.contentInfoIconOnly),warningBackgroundColor:a.extend("--ft-notice-warning-background-color","",g.backgroundWarningSubtle),warningBorderColor:a.extend("--ft-notice-warning-border-color","",g.borderWarningSubtle),warningColor:a.extend("--ft-notice-warning-color","",g.contentWarningPrimary),warningIconColor:a.extend("--ft-notice-warning-icon-color","",g.contentWarningIconOnly),errorBackgroundColor:a.extend("--ft-notice-error-background-color","",g.backgroundErrorSubtle),errorBorderColor:a.extend("--ft-notice-error-border-color","",g.borderErrorSubtle),errorColor:a.extend("--ft-notice-error-color","",g.contentErrorPrimary),errorIconColor:a.extend("--ft-notice-error-icon-color","",g.contentErrorIconOnly),successBackgroundColor:a.extend("--ft-notice-success-background-color","",g.backgroundSuccessSubtle),successBorderColor:a.extend("--ft-notice-success-border-color","",g.borderSuccessSubtle),successColor:a.extend("--ft-notice-success-color","",g.contentSuccessPrimary),successIconColor:a.extend("--ft-notice-success-icon-color","",g.contentSuccessIconOnly)};var HE={color:a.extend("--ft-checkbox-color","",g.contentGlobalPrimary),checkedBackgroundColor:a.extend("--ft-checkbox-checked-background-color","",g.contentActionPrimary),checkedStateLayerColor:a.extend("--ft-checkbox-checked-state-layer-color","",g.contentActionPrimary),checkedIconColor:a.extend("--ft-checkbox-checked-icon-color","",g.contentGlobalOnColor),checkedHoverStateLayerOpacity:a.extend("--ft-checkbox-checked-hover-state-layer-opacity","",p.opacity16),checkedFocusStateLayerOpacity:a.extend("--ft-checkbox-checked-focus-state-layer-opacity","",p.opacity16),checkedActiveStateLayerOpacity:a.extend("--ft-checkbox-checked-active-state-layer-opacity","",p.opacity24),checkedDisabledComponentOpacity:a.extend("--ft-checkbox-checked-disabled-component-opacity","",p.opacity40),uncheckedBorderColor:a.extend("--ft-checkbox-unchecked-border-color","",p.colorGray80),uncheckedStateLayerColor:a.extend("--ft-checkbox-unchecked-state-layer-color","",p.colorGray80),uncheckedHoverStateLayerOpacity:a.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",p.opacity16),uncheckedFocusStateLayerOpacity:a.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",p.opacity16),uncheckedActiveStateLayerOpacity:a.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",p.opacity24),uncheckedDisabledComponentOpacity:a.extend("--ft-checkbox-unchecked-disabled-component-opacity","",p.opacity40),focusFocusRingColor:a.extend("--ft-checkbox-focus-focus-ring-color","",g.borderActionFocusRing),focusOutlineOffset:a.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:a.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:a.extend("--ft-checkbox-gap","",p.spacing3)};var jE={offHoverStateLayerOpacity:a.extend("--ft-toggle-off-hover-state-layer-opacity","",p.opacity16),offFocusStateLayerOpacity:a.extend("--ft-toggle-off-focus-state-layer-opacity","",p.opacity16),offActiveStateLayerOpacity:a.extend("--ft-toggle-off-active-state-layer-opacity","",p.opacity24),offDisabledComponentOpacity:a.extend("--ft-toggle-off-disabled-component-opacity","",p.opacity40),offBackgroundColor:a.extend("--ft-toggle-off-background-color","",g.contentGlobalSubtle),offIconColor:a.extend("--ft-toggle-off-icon-color","",g.contentGlobalSubtle),offStateLayerColor:a.extend("--ft-toggle-off-state-layer-color","",g.contentGlobalSubtle),onHoverStateLayerOpacity:a.extend("--ft-toggle-on-hover-state-layer-opacity","",p.opacity16),onFocusStateLayerOpacity:a.extend("--ft-toggle-on-focus-state-layer-opacity","",p.opacity16),onActiveStateLayerOpacity:a.extend("--ft-toggle-on-active-state-layer-opacity","",p.opacity24),onDisabledComponentOpacity:a.extend("--ft-toggle-on-disabled-component-opacity","",p.opacity40),onBackgroundColor:a.extend("--ft-toggle-on-background-color","",g.contentActionPrimary),onStateLayerColor:a.extend("--ft-toggle-on-state-layer-color","",g.contentActionPrimary),onIconColor:a.extend("--ft-toggle-on-icon-color","",g.contentActionPrimary),color:a.extend("--ft-toggle-color","",g.contentGlobalPrimary),focusFocusRingColor:a.extend("--ft-toggle-focus-focus-ring-color","",g.borderActionFocusRing),gap:a.extend("--ft-toggle-gap","",p.spacing3)};var QE={color:a.extend("--ft-radio-color","",g.contentGlobalPrimary),selectedRadioColor:a.extend("--ft-radio-selected-radio-color","",g.contentActionPrimary),selectedStateLayerColor:a.extend("--ft-radio-selected-state-layer-color","",g.contentActionPrimary),selectedHoverStateLayerOpacity:a.extend("--ft-radio-selected-hover-state-layer-opacity","",p.opacity16),selectedFocusStateLayerOpacity:a.extend("--ft-radio-selected-focus-state-layer-opacity","",p.opacity16),selectedActiveStateLayerOpacity:a.extend("--ft-radio-selected-active-state-layer-opacity","",p.opacity24),selectedDisabledComponentOpacity:a.extend("--ft-radio-selected-disabled-component-opacity","",p.opacity40),unselectedStateLayerColor:a.extend("--ft-radio-unselected-state-layer-color","",g.borderInputPrimary),unselectedBorderColor:a.extend("--ft-radio-unselected-border-color","",g.borderInputPrimary),unselectedHoverStateLayerOpacity:a.extend("--ft-radio-unselected-hover-state-layer-opacity","",p.opacity16),unselectedFocusStateLayerOpacity:a.extend("--ft-radio-unselected-focus-state-layer-opacity","",p.opacity16),unselectedActiveStateLayerOpacity:a.extend("--ft-radio-unselected-active-state-layer-opacity","",p.opacity24),unselectedDisabledComponentOpacity:a.extend("--ft-radio-unselected-disabled-component-opacity","",p.opacity40),focusFocusRingColor:a.extend("--ft-radio-focus-focus-ring-color","",g.borderActionFocusRing),focusOutlineOffset:a.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:a.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:a.extend("--ft-radio-gap","",p.spacing3)};var iN={iconSize:a.extend("--ft-notification-icon-size","",p.iconSize4),leftPadding:a.extend("--ft-notification-left-padding","",p.spacing5),rightPadding:a.extend("--ft-notification-right-padding","",p.spacing4),verticalPadding:a.extend("--ft-notification-vertical-padding","",p.spacing3),infoBackgroundColor:a.extend("--ft-notification-info-background-color","",g.backgroundInfoSubtle),infoColor:a.extend("--ft-notification-info-color","",g.contentInfoPrimary),infoIconColor:a.extend("--ft-notification-info-icon-color","",g.contentInfoIconOnly),infoBorderColor:a.extend("--ft-notification-info-border-color","",g.borderInfoSubtle),successBackgroundColor:a.extend("--ft-notification-success-background-color","",g.backgroundSuccessSubtle),successColor:a.extend("--ft-notification-success-color","",g.contentSuccessPrimary),successIconColor:a.extend("--ft-notification-success-icon-color","",g.contentSuccessIconOnly),successBorderColor:a.extend("--ft-notification-success-border-color","",g.borderSuccessSubtle),warningBackgroundColor:a.extend("--ft-notification-warning-background-color","",g.backgroundWarningSubtle),warningColor:a.extend("--ft-notification-warning-color","",g.contentWarningPrimary),warningIconColor:a.extend("--ft-notification-warning-icon-color","",g.contentWarningIconOnly),warningBorderColor:a.extend("--ft-notification-warning-border-color","",g.borderWarningSubtle),errorBackgroundColor:a.extend("--ft-notification-error-background-color","",g.backgroundErrorSubtle),errorColor:a.extend("--ft-notification-error-color","",g.contentErrorPrimary),errorIconColor:a.extend("--ft-notification-error-icon-color","",g.contentErrorIconOnly),errorBorderColor:a.extend("--ft-notification-error-border-color","",g.borderErrorSubtle),borderRadius:a.extend("--ft-notification-border-radius","",p.borderRadiusPill),borderWidth:a.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:a.extend("--ft-notification-leading-gap","",p.spacing2),trailingGap:a.extend("--ft-notification-trailing-gap","",p.spacing8)};var lN={horizontalPadding:a.extend("--ft-tooltip-horizontal-padding","",p.spacing2),verticalPadding:a.extend("--ft-tooltip-vertical-padding","",p.spacing2),borderRadius:a.extend("--ft-tooltip-border-radius","",p.borderRadiusS),color:a.extend("--ft-tooltip-color","",g.contentGlobalOnColor),backgroundColor:a.extend("--ft-tooltip-background-color","",g.contentGlobalPrimary),backgroundOpacity:a.extend("--ft-tooltip-background-opacity","",p.opacity80),shadow:a.extend("--ft-tooltip-shadow","",p.shadowElevation03),maxWidth:a.create("--ft-tooltip-max-width","","SIZE","256px"),gap:a.extend("--ft-tooltip-gap","",p.spacing05)};var rd;(function(e){e.brand="brand",e.neutral="neutral",e.info="info",e.success="success",e.warning="warning",e.error="error"})(rd||(rd={}));var od;(function(e){e.large="large",e.medium="medium",e.small="small"})(od||(od={}));var id=[P`
1123
1124
  :host {
1124
1125
  display: inline-block;
1125
1126
  max-width: 100%;
@@ -1169,7 +1170,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1169
1170
  }
1170
1171
 
1171
1172
  .ft-button:focus-visible {
1172
- outline-color: ${I.focusFocusRingColor};
1173
+ outline-color: ${$.focusFocusRingColor};
1173
1174
  outline-style: solid;
1174
1175
  }
1175
1176
 
@@ -1198,154 +1199,154 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1198
1199
  /** Primary styles **/
1199
1200
 
1200
1201
  .ft-button--primary {
1201
- ${C(Lt.color,I.primaryIconColor)};
1202
+ ${A(Mt.color,$.primaryIconColor)};
1202
1203
 
1203
- ${C(z.color,I.primaryStateLayerColor)};
1204
- ${C(z.opacityContentOnSurfaceHover,I.primaryHoverStateLayerOpacity)};
1205
- ${C(z.opacityContentOnSurfaceFocused,I.primaryFocusStateLayerOpacity)};
1206
- ${C(z.opacityContentOnSurfaceSelected,I.primaryActiveStateLayerOpacity)};
1207
- ${C(z.opacityContentOnSurfacePressed,I.primaryActiveStateLayerOpacity)};
1204
+ ${A(G.color,$.primaryStateLayerColor)};
1205
+ ${A(G.opacityContentOnSurfaceHover,$.primaryHoverStateLayerOpacity)};
1206
+ ${A(G.opacityContentOnSurfaceFocused,$.primaryFocusStateLayerOpacity)};
1207
+ ${A(G.opacityContentOnSurfaceSelected,$.primaryActiveStateLayerOpacity)};
1208
+ ${A(G.opacityContentOnSurfacePressed,$.primaryActiveStateLayerOpacity)};
1208
1209
 
1209
- background-color: ${I.primaryBackgroundColor};
1210
- color: ${I.primaryColor};
1210
+ background-color: ${$.primaryBackgroundColor};
1211
+ color: ${$.primaryColor};
1211
1212
  border-style: none;
1212
1213
  }
1213
1214
 
1214
1215
  .ft-button--primary[disabled] {
1215
- opacity: ${I.primaryDisabledComponentOpacity};
1216
+ opacity: ${$.primaryDisabledComponentOpacity};
1216
1217
  }
1217
1218
 
1218
1219
  .ft-button--primary ft-icon {
1219
- color: ${I.primaryIconColor};
1220
+ color: ${$.primaryIconColor};
1220
1221
  }
1221
1222
 
1222
1223
  /** Secondary styles **/
1223
1224
 
1224
1225
  .ft-button--secondary {
1225
- ${C(Lt.color,I.secondaryIconColor)};
1226
+ ${A(Mt.color,$.secondaryIconColor)};
1226
1227
 
1227
- ${C(z.color,I.secondaryStateLayerColor)};
1228
- ${C(z.opacityContentOnSurfaceHover,I.secondaryHoverStateLayerOpacity)};
1229
- ${C(z.opacityContentOnSurfaceFocused,I.secondaryFocusStateLayerOpacity)};
1230
- ${C(z.opacityContentOnSurfaceSelected,I.secondaryActiveStateLayerOpacity)};
1231
- ${C(z.opacityContentOnSurfacePressed,I.secondaryActiveStateLayerOpacity)};
1228
+ ${A(G.color,$.secondaryStateLayerColor)};
1229
+ ${A(G.opacityContentOnSurfaceHover,$.secondaryHoverStateLayerOpacity)};
1230
+ ${A(G.opacityContentOnSurfaceFocused,$.secondaryFocusStateLayerOpacity)};
1231
+ ${A(G.opacityContentOnSurfaceSelected,$.secondaryActiveStateLayerOpacity)};
1232
+ ${A(G.opacityContentOnSurfacePressed,$.secondaryActiveStateLayerOpacity)};
1232
1233
 
1233
- background-color: ${I.secondaryBackgroundColor};
1234
- color: ${I.secondaryColor};
1235
- border-color: ${I.secondaryBorderColor};
1234
+ background-color: ${$.secondaryBackgroundColor};
1235
+ color: ${$.secondaryColor};
1236
+ border-color: ${$.secondaryBorderColor};
1236
1237
  border-style: solid;
1237
1238
  }
1238
1239
 
1239
1240
  .ft-button--secondary[disabled] {
1240
- opacity: ${I.secondaryDisabledComponentOpacity};
1241
+ opacity: ${$.secondaryDisabledComponentOpacity};
1241
1242
  }
1242
1243
 
1243
1244
  .ft-button--secondary ft-icon {
1244
- color: ${I.secondaryIconColor};
1245
+ color: ${$.secondaryIconColor};
1245
1246
  }
1246
1247
 
1247
1248
  /** Tertiary styles **/
1248
1249
 
1249
1250
  .ft-button--tertiary {
1250
- ${C(Lt.color,I.tertiaryIconColor)};
1251
+ ${A(Mt.color,$.tertiaryIconColor)};
1251
1252
 
1252
- ${C(z.color,I.tertiaryStateLayerColor)};
1253
- ${C(z.opacityContentOnSurfaceHover,I.tertiaryHoverStateLayerOpacity)};
1254
- ${C(z.opacityContentOnSurfaceFocused,I.tertiaryFocusStateLayerOpacity)};
1255
- ${C(z.opacityContentOnSurfaceSelected,I.tertiaryActiveStateLayerOpacity)};
1256
- ${C(z.opacityContentOnSurfacePressed,I.tertiaryActiveStateLayerOpacity)};
1253
+ ${A(G.color,$.tertiaryStateLayerColor)};
1254
+ ${A(G.opacityContentOnSurfaceHover,$.tertiaryHoverStateLayerOpacity)};
1255
+ ${A(G.opacityContentOnSurfaceFocused,$.tertiaryFocusStateLayerOpacity)};
1256
+ ${A(G.opacityContentOnSurfaceSelected,$.tertiaryActiveStateLayerOpacity)};
1257
+ ${A(G.opacityContentOnSurfacePressed,$.tertiaryActiveStateLayerOpacity)};
1257
1258
 
1258
- background-color: ${I.tertiaryBackgroundColor};
1259
- color: ${I.tertiaryColor};
1259
+ background-color: ${$.tertiaryBackgroundColor};
1260
+ color: ${$.tertiaryColor};
1260
1261
  border-style: none;
1261
1262
  }
1262
1263
 
1263
1264
  .ft-button--tertiary[disabled] {
1264
- opacity: ${I.tertiaryDisabledComponentOpacity};
1265
+ opacity: ${$.tertiaryDisabledComponentOpacity};
1265
1266
  }
1266
1267
 
1267
1268
  .ft-button--tertiary ft-icon {
1268
- color: ${I.tertiaryIconColor};
1269
+ color: ${$.tertiaryIconColor};
1269
1270
  }
1270
1271
 
1271
1272
  /** Neutral styles **/
1272
1273
 
1273
1274
  .ft-button--neutral {
1274
- ${C(Lt.color,I.neutralIconColor)};
1275
+ ${A(Mt.color,$.neutralIconColor)};
1275
1276
 
1276
- ${C(z.backgroundColor,I.neutralStateLayerColor)};
1277
- ${C(z.opacityContentOnSurfaceHover,I.neutralHoverStateLayerOpacity)};
1278
- ${C(z.opacityContentOnSurfaceFocused,I.neutralFocusStateLayerOpacity)};
1279
- ${C(z.opacityContentOnSurfaceSelected,I.neutralActiveStateLayerOpacity)};
1280
- ${C(z.opacityContentOnSurfacePressed,I.neutralActiveStateLayerOpacity)};
1277
+ ${A(G.backgroundColor,$.neutralStateLayerColor)};
1278
+ ${A(G.opacityContentOnSurfaceHover,$.neutralHoverStateLayerOpacity)};
1279
+ ${A(G.opacityContentOnSurfaceFocused,$.neutralFocusStateLayerOpacity)};
1280
+ ${A(G.opacityContentOnSurfaceSelected,$.neutralActiveStateLayerOpacity)};
1281
+ ${A(G.opacityContentOnSurfacePressed,$.neutralActiveStateLayerOpacity)};
1281
1282
 
1282
- background-color: ${I.neutralBackgroundColor};
1283
- color: ${I.neutralColor};
1283
+ background-color: ${$.neutralBackgroundColor};
1284
+ color: ${$.neutralColor};
1284
1285
  border-style: none;
1285
1286
  }
1286
1287
 
1287
1288
  .ft-button--neutral[disabled] {
1288
- opacity: ${I.neutralDisabledComponentOpacity};
1289
+ opacity: ${$.neutralDisabledComponentOpacity};
1289
1290
  }
1290
1291
 
1291
1292
  .ft-button--neutral ft-icon {
1292
- color: ${I.neutralIconColor};
1293
+ color: ${$.neutralIconColor};
1293
1294
  }
1294
1295
 
1295
1296
  /** Large styles **/
1296
1297
 
1297
1298
  .ft-button--large {
1298
- ${C(Ot.size,I.largeIconSize)};
1299
- ${C(Lt.size,I.largeIconSize)};
1299
+ ${A(Et.size,$.largeIconSize)};
1300
+ ${A(Mt.size,$.largeIconSize)};
1300
1301
 
1301
- height: ${I.largeHeight};
1302
- padding: 0 ${I.largeHorizontalPadding};
1303
- gap: ${I.largeGap};
1304
- border-radius: ${I.largeBorderRadius};
1305
- border-width: ${I.largeBorderWidth};
1302
+ height: ${$.largeHeight};
1303
+ padding: 0 ${$.largeHorizontalPadding};
1304
+ gap: ${$.largeGap};
1305
+ border-radius: ${$.largeBorderRadius};
1306
+ border-width: ${$.largeBorderWidth};
1306
1307
  }
1307
1308
 
1308
1309
  .ft-button--large:focus-visible {
1309
- outline-width: ${I.largeFocusOutlineWidth};
1310
- outline-offset: ${I.largeFocusOutlineOffset};
1310
+ outline-width: ${$.largeFocusOutlineWidth};
1311
+ outline-offset: ${$.largeFocusOutlineOffset};
1311
1312
  }
1312
1313
 
1313
1314
  .ft-button--large.ft-button--icon-only {
1314
- width: ${I.largeIconOnlyWidth};
1315
+ width: ${$.largeIconOnlyWidth};
1315
1316
  padding: unset;
1316
1317
  }
1317
1318
 
1318
1319
  /** Small styles **/
1319
1320
 
1320
1321
  .ft-button--small {
1321
- ${C(Ot.size,I.smallIconSize)};
1322
- ${C(Lt.size,I.smallIconSize)};
1322
+ ${A(Et.size,$.smallIconSize)};
1323
+ ${A(Mt.size,$.smallIconSize)};
1323
1324
 
1324
- height: ${I.smallHeight};
1325
- padding: 0 ${I.smallHorizontalPadding};
1326
- gap: ${I.smallGap};
1327
- border-radius: ${I.smallBorderRadius};
1328
- border-width: ${I.smallBorderWidth};
1325
+ height: ${$.smallHeight};
1326
+ padding: 0 ${$.smallHorizontalPadding};
1327
+ gap: ${$.smallGap};
1328
+ border-radius: ${$.smallBorderRadius};
1329
+ border-width: ${$.smallBorderWidth};
1329
1330
  }
1330
1331
 
1331
1332
  .ft-button--small:focus-visible {
1332
- outline-width: ${I.smallFocusOutlineWidth};
1333
- outline-offset: ${I.smallFocusOutlineOffset};
1333
+ outline-width: ${$.smallFocusOutlineWidth};
1334
+ outline-offset: ${$.smallFocusOutlineOffset};
1334
1335
  }
1335
1336
 
1336
1337
  .ft-button--small.ft-button--icon-only {
1337
- width: ${I.smallIconOnlyWidth};
1338
+ width: ${$.smallIconOnlyWidth};
1338
1339
  padding: unset;
1339
1340
  }
1340
- `,lr];var Ro=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},pe=class extends bt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}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&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"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}}get typographyVariant(){return this.small?mr.caption1medium:mr.body2medium}};pe.styles=[cr,Jc];Ro([g({type:Boolean})],pe.prototype,"primary",void 0);Ro([g({type:Boolean})],pe.prototype,"secondary",void 0);Ro([g({type:Boolean})],pe.prototype,"tertiary",void 0);Ro([g({type:Boolean})],pe.prototype,"neutral",void 0);Ro([g({type:Boolean})],pe.prototype,"small",void 0);V("ft-button")(te);V("ftds-button")(pe);var Qc=P`
1341
- `;var td=P`
1342
- `;var pf="ft-app-info",ls=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},uf={session:(e,t)=>{Yt(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>L.eventBus.dispatchEvent(new ls(t.payload)),0))}},L=we.get({name:pf,reducers:uf,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 br=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:o}=L.getState(),n=t??o;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(t){return new Promise(r=>{let o=e.get(t);if(o)r(o);else{let n=L.subscribe(()=>{o=e.get(t),o&&(n(),r(o))})}})}};var ue=class{constructor(t=!0,r){var o;this.overrideApi=r;let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new ie,this.cache=t?n.commonCache:new ie}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:br.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):br.await()}clearCache(){this.cache.clearAll()}};var ed,ff=Symbol("clearAfterUnitTest"),Oi=class extends ue{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ed]=()=>{this.defaultMessages={},this.cache=new ie,this.listeners={}},this.currentUiLocale=L.getState().uiLocale,L.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=L.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var o;if(t=t.toLowerCase(),Object.keys(r).length>0){let n={...(o=this.defaultMessages[t])!==null&&o!==void 0?o:{},...r};Yt(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,r,...o){var n,a,s;t=t.toLowerCase(),this.fetchContext(t);let l=(a=(n=this.cache.getNow(t))===null||n===void 0?void 0:n.messages)!==null&&a!==void 0?a:{};return new bo((s=this.defaultMessages[t])!==null&&s!==void 0?s:{},l).resolve(r,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(r){console.error(r)}}subscribe(t,r){var o;return t=t.toLowerCase(),this.listeners[t]=(o=this.listeners[t])!==null&&o!==void 0?o:new Set,this.listeners[t].add(r),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(r=>ei(0).then(()=>r()).catch(()=>null)))}};ed=ff;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Oi{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Oi{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var zr=window.FluidTopicsI18nService,rd=window.FluidTopicsCustomI18nService;var $t=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},mt=class extends F{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>br.get(),this.messageContexts=[],this.cache=new ie,this.cleanSessionDebouncer=new rt}render(){return $`
1341
+ `,fr];var To=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},me=class extends St{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}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&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"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}}get typographyVariant(){return this.small?xr.caption1medium:xr.body2medium}};me.styles=[ur,id];To([x({type:Boolean})],me.prototype,"primary",void 0);To([x({type:Boolean})],me.prototype,"secondary",void 0);To([x({type:Boolean})],me.prototype,"tertiary",void 0);To([x({type:Boolean})],me.prototype,"neutral",void 0);To([x({type:Boolean})],me.prototype,"small",void 0);Z("ft-button")(ie);Z("ftds-button")(me);var nd=P`
1342
+ `;var ad=P`
1343
+ `;var bu="ft-app-info",fs=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},xu={session:(e,t)=>{te(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>M.eventBus.dispatchEvent(new fs(t.payload)),0))}},M=Ne.get({name:bu,reducers:xu,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 Or=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:o}=M.getState(),n=t??o;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(t){return new Promise(r=>{let o=e.get(t);if(o)r(o);else{let n=M.subscribe(()=>{o=e.get(t),o&&(n(),r(o))})}})}};var ge=class{constructor(t=!0,r){var o;this.overrideApi=r;let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new ce,this.cache=t?n.commonCache:new ce}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Or.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Or.await()}clearCache(){this.cache.clearAll()}};var sd,vu=Symbol("clearAfterUnitTest"),Ni=class extends ge{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[sd]=()=>{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 r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var o;if(t=t.toLowerCase(),Object.keys(r).length>0){let n={...(o=this.defaultMessages[t])!==null&&o!==void 0?o:{},...r};te(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,r,...o){var n,s,c;t=t.toLowerCase(),this.fetchContext(t);let l=(s=(n=this.cache.getNow(t))===null||n===void 0?void 0:n.messages)!==null&&s!==void 0?s:{};return new Oo((c=this.defaultMessages[t])!==null&&c!==void 0?c:{},l).resolve(r,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(r){console.error(r)}}subscribe(t,r){var o;return t=t.toLowerCase(),this.listeners[t]=(o=this.listeners[t])!==null&&o!==void 0?o:new Set,this.listeners[t].add(r),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(r=>ni(0).then(()=>r()).catch(()=>null)))}};sd=vu;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ni{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ni{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Kr=window.FluidTopicsI18nService,cd=window.FluidTopicsCustomI18nService;var Dt=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},bt=class extends H{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=()=>Or.get(),this.messageContexts=[],this.cache=new ce,this.cleanSessionDebouncer=new nt}render(){return D`
1343
1344
  <slot></slot>
1344
- `}update(t){super.update(t),t.has("baseUrl")&&(L.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&L.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&L.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&L.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&L.actions.noCustom(this.noCustom),t.has("editorMode")&&L.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&L.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&L.actions.session(this.session),t.has("availableUiLocales")&&L.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>zr.addContext(r)),t.has("openExternalDocumentInNewTab")&&L.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&L.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&L.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};mt.elementDefinitions={};mt.styles=td;$t([g()],mt.prototype,"baseUrl",void 0);$t([g()],mt.prototype,"apiIntegrationIdentifier",void 0);$t([g()],mt.prototype,"uiLocale",void 0);$t([ne(null)],mt.prototype,"availableUiLocales",void 0);$t([ne(null)],mt.prototype,"metadataConfiguration",void 0);$t([g({type:Boolean})],mt.prototype,"editorMode",void 0);$t([g({type:Boolean})],mt.prototype,"noCustom",void 0);$t([g({type:Boolean})],mt.prototype,"openExternalDocumentInNewTab",void 0);$t([g({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],mt.prototype,"noCustomComponent",void 0);$t([g({type:Boolean})],mt.prototype,"withManualResources",void 0);$t([g({type:Boolean})],mt.prototype,"navigatorOnline",void 0);$t([g({type:Boolean})],mt.prototype,"forcedOffline",void 0);$t([g({type:Object})],mt.prototype,"apiProvider",void 0);$t([ne([])],mt.prototype,"messageContexts",void 0);$t([ne(void 0)],mt.prototype,"session",void 0);var wi=class extends ue{async listMySearches(){let t=L.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Ei=class extends ue{async listMyBookmarks(){let t=L.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var hf="ft-user-assets",Ci=we.get({name:hf,initialState:{savedSearches:void 0,bookmarks:void 0}}),cs=class{constructor(){this.currentSession=L.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ei,this.savedSearchesService=new wi,L.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=L.getState();Yt((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ci.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ci.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Ci.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ci.actions.bookmarks(r)}}},od=new cs;var ds=class{addCommand(t,r=!1){L.commands.add(t,r)}consumeCommand(t){return L.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new ds;var ps=class{highlightHtml(t,r){ya(t,r)}};window.FluidTopicsHighlightHtmlService=new ps;var us=class{isDate(t){var r,o,n,a;return(a=(n=((o=(r=L.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===t))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(t,r){var o,n,a;return hr.format(t,(o=r?.locale)!==null&&o!==void 0?o:L.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new us;V("ft-app-context")(mt);var mf=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},fs=Symbol("i18nAttributes"),vr=Symbol("i18nProperties"),_o=Symbol("i18nUnsubs");function Ve(e){var t;class r extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map}get i18nService(){return this.useCustomMessageContexts?rd:zr}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[fs])===null||a===void 0||a.forEach((l,c)=>{var p;let u=this.getI18nAttributeValue(c);((p=u?.context)===null||p===void 0?void 0:p.toLowerCase())===n.toLowerCase()&&this.updateI18nAttributeMessage(c,u,l)}),(s=this[vr])===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[fs])===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[vr])===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[vr])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[fs])===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[_o].has(n)||this[_o].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[_o].forEach(n=>n()),this[_o].clear()}}return t=_o,mf([g({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var id=class extends Ve(F){},Ai=class extends Ve(jt){};var No=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},ee=class extends Ai{constructor(){super(),this.editorMode=!1,this.addStore(L)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":B:$`
1345
+ `}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(r=>Kr.addContext(r)),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())}};bt.elementDefinitions={};bt.styles=ad;Dt([x()],bt.prototype,"baseUrl",void 0);Dt([x()],bt.prototype,"apiIntegrationIdentifier",void 0);Dt([x()],bt.prototype,"uiLocale",void 0);Dt([le(null)],bt.prototype,"availableUiLocales",void 0);Dt([le(null)],bt.prototype,"metadataConfiguration",void 0);Dt([x({type:Boolean})],bt.prototype,"editorMode",void 0);Dt([x({type:Boolean})],bt.prototype,"noCustom",void 0);Dt([x({type:Boolean})],bt.prototype,"openExternalDocumentInNewTab",void 0);Dt([x({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],bt.prototype,"noCustomComponent",void 0);Dt([x({type:Boolean})],bt.prototype,"withManualResources",void 0);Dt([x({type:Boolean})],bt.prototype,"navigatorOnline",void 0);Dt([x({type:Boolean})],bt.prototype,"forcedOffline",void 0);Dt([x({type:Object})],bt.prototype,"apiProvider",void 0);Dt([le([])],bt.prototype,"messageContexts",void 0);Dt([le(void 0)],bt.prototype,"session",void 0);var Ri=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 Ai=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 Su="ft-user-assets",Ii=Ne.get({name:Su,initialState:{savedSearches:void 0,bookmarks:void 0}}),us=class{constructor(){this.currentSession=M.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ai,this.savedSearchesService=new Ri,M.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=M.getState();te((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ii.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ii.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Ii.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ii.actions.bookmarks(r)}}},ld=new us;var hs=class{addCommand(t,r=!1){M.commands.add(t,r)}consumeCommand(t){return M.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new hs;var ms=class{highlightHtml(t,r){Sa(t,r)}};window.FluidTopicsHighlightHtmlService=new ms;var gs=class{isDate(t){var r,o,n,s;return(s=(n=((o=(r=M.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===t))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1}format(t,r){var o,n,s;return br.format(t,(o=r?.locale)!==null&&o!==void 0?o:M.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1)}};window.FluidTopicsDateService=new gs;Z("ft-app-context")(bt);var Ou=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ys=Symbol("i18nAttributes"),Cr=Symbol("i18nProperties"),Po=Symbol("i18nUnsubs");function je(e){var t;class r extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map}get i18nService(){return this.useCustomMessageContexts?cd:Kr}i18n(n,s,...c){var l;if(typeof n=="string")return this.i18nService.resolveMessage(n,s,...c);let d=(l=n.args)!==null&&l!==void 0?l:n.argsProvider?n.argsProvider(this):[];return this.i18nService.resolveMessage(n.context,n.key,...d)}onI18nUpdate(n){var s,c;(s=this[ys])===null||s===void 0||s.forEach((l,d)=>{var u;let h=this.getI18nAttributeValue(d);((u=h?.context)===null||u===void 0?void 0:u.toLowerCase())===n.toLowerCase()&&this.updateI18nAttributeMessage(d,h,l)}),(c=this[Cr])===null||c===void 0||c.forEach((l,d)=>{l.context.toLowerCase()===n.toLowerCase()&&(this[d]=this.i18n(l))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(n,s,c){this[n]={...s,message:this.i18n({context:s.context,key:s.key,...c})}}update(n){var s,c;super.update(n),(s=this[ys])===null||s===void 0||s.forEach((l,d)=>{let u=this.getI18nAttributeValue(d);u?.context&&u.key&&(n.has(d)||l.argsProvider!=null)&&(n.has(d)&&this.addI18nContext(u.context),this.updateI18nAttributeMessage(d,u,l))}),(c=this[Cr])===null||c===void 0||c.forEach((l,d)=>{l.argsProvider!=null&&(this[d]=this.i18n(l))})}getI18nAttributeValue(n){return this[n]}connectedCallback(){var n,s,c,l;super.connectedCallback(),new Set([...(s=(n=this[Cr])===null||n===void 0?void 0:n.values())!==null&&s!==void 0?s:[],...[...(l=(c=this[ys])===null||c===void 0?void 0:c.keys())!==null&&l!==void 0?l:[]].map(d=>this.getI18nAttributeValue(d))].map(d=>d?.context)).forEach(d=>d&&this.addI18nMessages(d))}addI18nMessages(n,s){n=n.toLowerCase(),this[Po].has(n)||this[Po].set(n,this.i18nService.subscribe(n,()=>this.onI18nUpdate(n))),this.i18nService.prepareContext(n,s??{}),this.onI18nUpdate(n)}addI18nContext(n,s){this.addI18nMessages(typeof n=="string"?n:n.name,s)}disconnectedCallback(){super.disconnectedCallback(),this[Po].forEach(n=>n()),this[Po].clear()}}return t=Po,Ou([x({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var dd=class extends je(H){},_i=class extends je(jt){};var ko=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ne=class extends _i{constructor(){super(),this.editorMode=!1,this.addStore(M)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":z:D`
1345
1346
  <span class="ft-i18n">
1346
1347
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1347
1348
  </span>
1348
- `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(o=>t.has(o))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};ee.elementDefinitions={};ee.styles=Qc;No([nt()],ee.prototype,"editorMode",void 0);No([g()],ee.prototype,"context",void 0);No([g()],ee.prototype,"key",void 0);No([ne([])],ee.prototype,"args",void 0);No([g()],ee.prototype,"defaultMessage",void 0);var je=class e{static build(t){return new e(t)}static fromGwt(t){return new e(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(r,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:(r,o)=>(...n)=>zr.resolveMessage(this.name,o,...n)})}};var Ri=(e,t)=>(r,o)=>{var n,a;r.constructor.createProperty(o,t??{attribute:!1,type:String});let s={...e,key:(n=e.key)!==null&&n!==void 0?n:o};r[vr]=(a=r[vr])!==null&&a!==void 0?a:new Map,r[vr].set(o,s)};V("ft-i18n")(ee);var q=je.build("integratedFeedbackComponent"),nd={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=e=>e??ct;var j={fontSize:i.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-field-helper-color","",A.colorOnSurfaceMedium),colorPrimary:i.external(A.colorPrimary,"Design system"),colorOnSurface:i.external(A.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(A.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(A.borderRadiusS,"Design system"),colorError:i.external(A.colorError,"Design system"),prefixColor:i.extend("--ft-text-field-prefix-color","",A.colorOnSurfaceMedium),iconColor:i.extend("--ft-text-field-icon-color","",A.colorOnSurfaceMedium),floatingZIndex:i.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:i.external(A.colorSurface,"Design system"),colorOutline:i.external(A.colorOutline,"Design system"),elevation02:i.external(A.elevation02,"Design system"),suggestSize:i.create("--ft-text-field-suggest-size","","SIZE","300px")},ad=P`
1349
+ `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(o=>t.has(o))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};ne.elementDefinitions={};ne.styles=nd;ko([ct()],ne.prototype,"editorMode",void 0);ko([x()],ne.prototype,"context",void 0);ko([x()],ne.prototype,"key",void 0);ko([le([])],ne.prototype,"args",void 0);ko([x()],ne.prototype,"defaultMessage",void 0);var qe=class e{static build(t){return new e(t)}static fromGwt(t){return new e(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(r,o)=>{let n=o;return s=>({context:this.name,key:n,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(r,o)=>(...n)=>Kr.resolveMessage(this.name,o,...n)})}};var Ti=(e,t)=>(r,o)=>{var n,s;r.constructor.createProperty(o,t??{attribute:!1,type:String});let c={...e,key:(n=e.key)!==null&&n!==void 0?n:o};r[Cr]=(s=r[Cr])!==null&&s!==void 0?s:new Map,r[Cr].set(o,c)};Z("ft-i18n")(ne);var J=qe.build("integratedFeedbackComponent"),pd={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 bs=e=>e??ft;var j={fontSize:i.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-field-helper-color","",I.colorOnSurfaceMedium),colorPrimary:i.external(I.colorPrimary,"Design system"),colorOnSurface:i.external(I.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(I.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(I.borderRadiusS,"Design system"),colorError:i.external(I.colorError,"Design system"),prefixColor:i.extend("--ft-text-field-prefix-color","",I.colorOnSurfaceMedium),iconColor:i.extend("--ft-text-field-icon-color","",I.colorOnSurfaceMedium),floatingZIndex:i.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:i.external(I.colorSurface,"Design system"),colorOutline:i.external(I.colorOutline,"Design system"),elevation02:i.external(I.elevation02,"Design system"),suggestSize:i.create("--ft-text-field-suggest-size","","SIZE","300px")},fd=P`
1349
1350
  *:focus {
1350
1351
  outline: none;
1351
1352
  }
@@ -1358,10 +1359,10 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1358
1359
  }
1359
1360
 
1360
1361
  ft-input-label {
1361
- ${C(U.fontSize,j.fontSize)};
1362
- ${C(U.raisedFontSize,j.labelSize)};
1363
- ${C(U.verticalSpacing,j.verticalSpacing)};
1364
- ${C(U.horizontalSpacing,j.horizontalSpacing)};
1362
+ ${A(W.fontSize,j.fontSize)};
1363
+ ${A(W.raisedFontSize,j.labelSize)};
1364
+ ${A(W.verticalSpacing,j.verticalSpacing)};
1365
+ ${A(W.horizontalSpacing,j.horizontalSpacing)};
1365
1366
  }
1366
1367
 
1367
1368
  .ft-text-field--main-panel {
@@ -1378,13 +1379,13 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1378
1379
  overflow: hidden;
1379
1380
  padding: 0 ${j.horizontalSpacing};
1380
1381
 
1381
- ${C(Zt.fontSize,j.fontSize)};
1382
- ${C(Zt.lineHeight,j.fontSize)};
1382
+ ${A(Xt.fontSize,j.fontSize)};
1383
+ ${A(Xt.lineHeight,j.fontSize)};
1383
1384
  }
1384
1385
 
1385
1386
  .ft-text-field--input-panel ft-ripple {
1386
- ${C(z.opacityContentOnSurfaceHover,"0.08")};
1387
- ${C(z.opacityContentOnSurfacePressed,"0.04")};
1387
+ ${A(G.opacityContentOnSurfaceHover,"0.08")};
1388
+ ${A(G.opacityContentOnSurfacePressed,"0.04")};
1388
1389
  }
1389
1390
 
1390
1391
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
@@ -1433,8 +1434,8 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1433
1434
  }
1434
1435
 
1435
1436
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1436
- ${C(U.borderColor,j.colorPrimary)};
1437
- ${C(U.textColor,j.colorPrimary)};
1437
+ ${A(W.borderColor,j.colorPrimary)};
1438
+ ${A(W.textColor,j.colorPrimary)};
1438
1439
  }
1439
1440
 
1440
1441
  .ft-text-field--filled .ft-text-field--input-panel {
@@ -1489,14 +1490,14 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1489
1490
  }
1490
1491
 
1491
1492
  .ft-text-field--with-icon {
1492
- ${C(U.labelMaxWidth,`calc(100% - ${Ot.size} - ${U.horizontalSpacing})`)};
1493
+ ${A(W.labelMaxWidth,`calc(100% - ${Et.size} - ${W.horizontalSpacing})`)};
1493
1494
  }
1494
1495
 
1495
1496
  .ft-text-field--with-password ft-icon:hover {
1496
1497
  cursor: pointer;
1497
1498
  }
1498
- `;var et=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},K=class extends fr(F,"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=gr.EYE_SLASH,this.passwordRevealedIcon=gr.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 r=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}render(){var t;let r={"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 $`
1499
- <div class="${Nt(r)}">
1499
+ `;var it=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},q=class extends yr(H,"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=vr.EYE_SLASH,this.passwordRevealedIcon=vr.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 r=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}render(){var t;let r={"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 D`
1500
+ <div class="${Pt(r)}">
1500
1501
  <div class="ft-text-field--main-panel"
1501
1502
  @keydown=${this.handleKeyboardNavigation}
1502
1503
  @focusout=${this.onMainPanelBlur}>
@@ -1506,17 +1507,17 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1506
1507
  ?raised=${this.focused||this.value!=""}
1507
1508
  ?error=${this.error}></ft-input-label>
1508
1509
  <div class="ft-text-field--input-panel">
1509
- ${this.outlined?B:$`
1510
+ ${this.outlined?z:D`
1510
1511
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1511
1512
  `}
1512
- ${this.prefix?$`
1513
+ ${this.prefix?D`
1513
1514
  <ft-typography class="ft-text-field--prefix" variant="body1">
1514
1515
  ${this.prefix}
1515
1516
  </ft-typography>
1516
- `:B}
1517
+ `:z}
1517
1518
  <input type=${(t=this.type)!==null&&t!==void 0?t:this.password&&this.hidePassword?"password":"text"}
1518
- name=${hs(this.name)}
1519
- maxlength=${hs(this.maxLength||void 0)}
1519
+ name=${bs(this.name)}
1520
+ maxlength=${bs(this.maxLength||void 0)}
1520
1521
  aria-label="${this.label}"
1521
1522
  class="ft-typography--body1 ft-text-field--input"
1522
1523
  part="input"
@@ -1532,23 +1533,23 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1532
1533
  <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1533
1534
  </div>
1534
1535
  </div>
1535
- ${this.helper?$`
1536
+ ${this.helper?D`
1536
1537
  <ft-typography class="ft-text-field--helper-text" variant="caption">
1537
1538
  ${this.helper}
1538
1539
  </ft-typography>
1539
- `:B}
1540
+ `:z}
1540
1541
  </div>
1541
- `}renderPasswordIcon(){return $`
1542
+ `}renderPasswordIcon(){return D`
1542
1543
  <ft-icon class="ft-text-field--icon"
1543
1544
  .variant=${this.iconVariant}
1544
1545
  .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
1545
1546
  @click=${()=>this.togglePasswordVisibility()}></ft-icon>
1546
- `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?$`
1547
+ `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?D`
1547
1548
  <ft-icon class="ft-text-field--icon"
1548
1549
  .variant=${this.iconVariant}
1549
1550
  .value=${this.icon}
1550
1551
  @click=${()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.focus()}}></ft-icon>
1551
- `:B}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",mo(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:r,y:o})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${o}px`}))}setValue(t,r=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),r&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var r;let o=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(o,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var r;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let o=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;t.key==="ArrowDown"?n=o<this.visibleSuggestions.length-1?o+1:0:n=o>0?o-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var r;this.setValue(t.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,r;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}};K.elementDefinitions={"ft-input-label":Pt,"ft-ripple":J,"ft-typography":ht,"ft-icon":gt};K.styles=[Br,ad];et([g()],K.prototype,"label",void 0);et([g({noAccessor:!0})],K.prototype,"value",null);et([H()],K.prototype,"dispatchedValue",void 0);et([g()],K.prototype,"helper",void 0);et([g({type:Boolean})],K.prototype,"outlined",void 0);et([g({type:Boolean})],K.prototype,"disabled",void 0);et([g({type:Boolean})],K.prototype,"error",void 0);et([g({type:Boolean})],K.prototype,"fixedMenuPosition",void 0);et([g()],K.prototype,"prefix",void 0);et([g()],K.prototype,"icon",void 0);et([g()],K.prototype,"name",void 0);et([g()],K.prototype,"type",void 0);et([g()],K.prototype,"passwordHiddenIcon",void 0);et([g()],K.prototype,"passwordRevealedIcon",void 0);et([g()],K.prototype,"iconVariant",void 0);et([g({type:Boolean})],K.prototype,"filterSuggestions",void 0);et([g({type:Number})],K.prototype,"maxLength",void 0);et([g({type:Boolean})],K.prototype,"password",void 0);et([H()],K.prototype,"focused",void 0);et([H()],K.prototype,"hidePassword",void 0);et([H()],K.prototype,"hideSuggestions",void 0);et([H()],K.prototype,"visibleSuggestions",void 0);et([Z(".ft-text-field--main-panel")],K.prototype,"mainPanel",void 0);et([Z(".ft-text-field--input")],K.prototype,"input",void 0);et([Z(".ft-text-field--suggestions")],K.prototype,"suggestionsContainer",void 0);et([cn({selector:"ft-text-field-suggestion"})],K.prototype,"suggestions",void 0);var sd=P`
1552
+ `:z}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",xo(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:r,y:o})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${o}px`}))}setValue(t,r=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),r&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var r;let o=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(o,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var r;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let o=this.visibleSuggestions.findIndex(s=>s.matches(":focus-within")),n;t.key==="ArrowDown"?n=o<this.visibleSuggestions.length-1?o+1:0:n=o>0?o-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var r;this.setValue(t.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,r;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}};q.elementDefinitions={"ft-input-label":$t,"ft-ripple":et,"ft-typography":yt,"ft-icon":xt};q.styles=[Hr,fd];it([x()],q.prototype,"label",void 0);it([x({noAccessor:!0})],q.prototype,"value",null);it([V()],q.prototype,"dispatchedValue",void 0);it([x()],q.prototype,"helper",void 0);it([x({type:Boolean})],q.prototype,"outlined",void 0);it([x({type:Boolean})],q.prototype,"disabled",void 0);it([x({type:Boolean})],q.prototype,"error",void 0);it([x({type:Boolean})],q.prototype,"fixedMenuPosition",void 0);it([x()],q.prototype,"prefix",void 0);it([x()],q.prototype,"icon",void 0);it([x()],q.prototype,"name",void 0);it([x()],q.prototype,"type",void 0);it([x()],q.prototype,"passwordHiddenIcon",void 0);it([x()],q.prototype,"passwordRevealedIcon",void 0);it([x()],q.prototype,"iconVariant",void 0);it([x({type:Boolean})],q.prototype,"filterSuggestions",void 0);it([x({type:Number})],q.prototype,"maxLength",void 0);it([x({type:Boolean})],q.prototype,"password",void 0);it([V()],q.prototype,"focused",void 0);it([V()],q.prototype,"hidePassword",void 0);it([V()],q.prototype,"hideSuggestions",void 0);it([V()],q.prototype,"visibleSuggestions",void 0);it([X(".ft-text-field--main-panel")],q.prototype,"mainPanel",void 0);it([X(".ft-text-field--input")],q.prototype,"input",void 0);it([X(".ft-text-field--suggestions")],q.prototype,"suggestionsContainer",void 0);it([un({selector:"ft-text-field-suggestion"})],q.prototype,"suggestions",void 0);var ud=P`
1552
1553
  .ft-text-field-suggestion {
1553
1554
  position: relative;
1554
1555
  padding: 8px 16px;
@@ -1573,7 +1574,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1573
1574
  slot {
1574
1575
  pointer-events: none;
1575
1576
  }
1576
- `;var gs=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},ms=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},Ae=class extends F{render(){return $`
1577
+ `;var vs=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},xs=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},Ie=class extends H{render(){return D`
1577
1578
  <div class="ft-text-field-suggestion"
1578
1579
  tabindex="-1"
1579
1580
  @keydown=${this.onKeyDown}
@@ -1585,17 +1586,17 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1585
1586
  <slot></slot>
1586
1587
  </ft-typography>
1587
1588
  </div>
1588
- `}focus(t){var r;(r=this.container)===null||r===void 0||r.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new ms(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())}};Ae.elementDefinitions={"ft-ripple":J,"ft-typography":ht,"ft-icon":gt};Ae.styles=sd;gs([g()],Ae.prototype,"value",void 0);gs([Z(".ft-text-field-suggestion")],Ae.prototype,"container",void 0);gs([io()],Ae.prototype,"assignedNodes",void 0);V("ft-text-field")(K);V("ft-text-field-suggestion")(Ae);var ld=e=>we.get({name:"ft-reader-"+e,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 ys=class{constructor(t,r){this.mapId=t,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,r,o){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,o)),n.tocId==null?this.extractPagesToc(n.children,r,o):[{tocId:n.tocId,title:n.title,depth:r,children:this.extractPagesToc(n.children,r+1,n.tocId)}]))}convertNodes(t,r,o){return t.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],r,n.tocId),...this.convertNodes(n.children,r,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:r,parentTocId:o,children:[]};this.register(p);let u=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],r+1,n.tocId),h=this.convertNodes(n.children,r+1,p.tocId);return p.children=[...u,...h],[p]})}convertSectionNodes(t,r,o){return t.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:r,parentTocId:o,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,r+1,n.tocId),[l]})}buildPage(t,r){var o,n,a,s,l,c;let p={number:this.pages.length+1,title:(o=t.title)!==null&&o!==void 0?o:"",rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},u=(y,b)=>(b?p.topics:p.hiddenTopics).push(y),h=(l=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return p.breadcrumb.forEach((y,b)=>{u(y,h[b])}),t.tocId&&u(t.tocId,t.pageConfiguration.isVisible),p.topics.push(...this.tocIds((c=t.pageToc)!==null&&c!==void 0?c:[])),p}registerPage(t){for(let r of[...t.topics,...t.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=t);this.pages.push(t)}tocIds(t){return t.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(t){let r=[t.tocId];for(;t?.parentTocId;)r.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return r}register(t){t.prettyUrl&&(this.nodeByUrl[t.prettyUrl]==null?this.nodeByUrl[t.prettyUrl]=t:this.duplicatedPrettyUrls.add(t.prettyUrl)),this.nodeByUrl[`${this.mapId}/${t.tocId}`]=t,this.nodeByTocId[t.tocId]=t}},_i=class{convertPaginatedToc(t,r){return new ys(t,r).build()}};var vA=Ud(dd(),1);var pd;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(pd||(pd={}));var ud;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(ud||(ud={}));var fd;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(fd||(fd={}));var hd;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(hd||(hd={}));var md;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(md||(md={}));var gd;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(gd||(gd={}));var yd;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(yd||(yd={}));var Re;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Re||(Re={}));var bd;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(bd||(bd={}));var vd;(function(e){e.ASC="ASC",e.DESC="DESC"})(vd||(vd={}));var xd;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(xd||(xd={}));var Sd;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Sd||(Sd={}));var Od;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Od||(Od={}));var wd;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(wd||(wd={}));var Ed;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Ed||(Ed={}));var Cd;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Cd||(Cd={}));var Ad;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS"})(Ad||(Ad={}));var lt;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN",e.DEVELOPER="DEVELOPER"})(lt||(lt={}));var Rd;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Rd||(Rd={}));var gf={[lt.PERSONAL_BOOK_SHARE_USER]:[lt.PERSONAL_BOOK_USER],[lt.HTML_EXPORT_USER]:[lt.PERSONAL_BOOK_USER],[lt.PDF_EXPORT_USER]:[lt.PERSONAL_BOOK_USER],[lt.KHUB_ADMIN]:[lt.CONTENT_PUBLISHER],[lt.ADMIN]:[lt.KHUB_ADMIN,lt.USERS_ADMIN,lt.PORTAL_ADMIN],[lt.DEVELOPER]:[lt.BETA_USER,lt.DEBUG_USER]};function _d(e,t){return e===t||(gf[e]??[]).some(r=>_d(r,t))}function xr(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(o=>_d(o,t))}var Ni=class extends ue{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,r,o){super(!1,r),this.converter=t,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(r=>this.converter.convertPaginatedToc(t,r)))),this.cache.register("ratingSummary",()=>{var t,r;return xr((r=(t=L.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&r!==void 0?r:[],"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 r;return(r=this.enrichedToc)===null||r===void 0?void 0:r.nodeByTocId[t]}getTocNodeNowByUrl(t){var r,o;let n=this.getMapNow();return n?.prettyUrl==t||`${n?.id}/root`===t?(r=this.enrichedToc)===null||r===void 0?void 0:r.toc[0]:(o=this.enrichedToc)===null||o===void 0?void 0:o.nodeByUrl[t]}async getPage(t){let r=await this.getEnrichedToc();return r.pages[t-1]||r.pages[0]}async getPageByTocId(t){let r=await this.getEnrichedToc();return r.pageByTocId[t]||r.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,r){return this.cache.get("document-relatives-"+t+"-"+r.join("-"),()=>this.fetchRelativesForDocument(t,r))}getRelativesForTopicInMap(t,r,o){return this.cache.get("topic-relatives-"+[t,r,...o].join("-"),()=>this.fetchRelativesForTopicInMap(t,r,o))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,r,o){let n=this.getNavigationData(t,r,o),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(t,r,o){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:r&&l&&l.number!==r?r:void 0,prettyUrl:p?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(p??""))!==null&&a!==void 0?a:!1,section:o}}async getAccurateNavigationData(t,r,o){return await this.getEnrichedToc(),this.getNavigationData(t,r,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(r=>{var o;return r?{type:r.topics.type,rating:(o=r.topics)===null||o===void 0?void 0:o.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,r){return this.makeRateMapRequest(t,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,r){return this.makeMapFeedbackRequest(t,r)}rateTopic(t,r,o){return this.makeRateTopicRequest(t,r,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=L.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,r,o){return this.makeTopicFeedbackRequest(t,r,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let r=this.getTocNodeNow(t),o=[{tocId:r.tocId,title:r.title}],n=this.getTocNodeNow(r.parentTocId);for(;n;)o.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return o}isFeatureAccessible(t,{session:r,ratingType:o}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case Gt.FEEDBACK:return xr(r??[],lt.FEEDBACK_USER);case Gt.RATING:return xr(r??[],lt.RATING_USER)&&o!=null&&o!==Re.NO_RATING;case Gt.PRINT:return xr(r??[],lt.PRINT_USER);case Gt.BOOKMARK:return!!r?.sessionAuthenticated;case Gt.COLLECTIONS:return xr(r??[],lt.COLLECTION_USER);case Gt.PERSONAL_BOOKS:return xr(r??[],lt.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var Ti=class e extends Ni{static async build(t){return new e(new _i,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let r=await this.api.getMap(t);return this.fingerprint=r.fingerprint,r}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,r){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:r,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,r,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:r},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,r){return this.api.sendMapFeedback(this.mapId,t,r)}makeRateMapRequest(t,r){return this.api.rateMap(this.mapId,t,r)}makeRateTopicRequest(t,r,o){return this.api.rateTopic(this.mapId,t,r,o)}makeTopicFeedbackRequest(t,r,o){return this.api.sendTopicFeedback(this.mapId,t,r,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var Ii=class e{static build(t,r){return new e(ld(t.trim()||"context"),r??Ti.build)}constructor(t,r,o){this.store=t,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new rt(10),this.initService(r)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return ao(()=>this.service)}async navigateToTopic(t,r,o){let n=await this.awaitService(),a=await(o!=null?n.getPage(o):n.getPageByTocId(t??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,a),section:r})}resolveValidNonRootTocId(t,r){var o,n,a;let s=(o=t==="root"?void 0:t)!==null&&o!==void 0?o:r.rootTocId;return r.topics.includes(s)?s:(a=(n=r.topics[0])!==null&&n!==void 0?n:r.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){let o=await(await this.awaitService()).getPage(t);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var t;this.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,r,o,n,a;try{await Promise.all([(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(s=>this.store.actions.configuration(s)),(r=this.service)===null||r===void 0?void 0:r.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))]).then(()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()})}catch(s){this.errorHandler&&!(s instanceof ir)&&this.errorHandler(s)}}fetchRelatives(){var t,r,o;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(r=this.service)===null||r===void 0||r.getRelativesForDocument((o=this.store.getState().configuration)===null||o===void 0?void 0:o.relativePivotMetadata,n).then(a=>{let s=a.results.flatMap(l=>l.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,r;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=(r=(t=L.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&r!==void 0?r:[];return new no(o,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var r,o,n;let a=await ao(()=>{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=(o=(r=c?.results)===null||r===void 0?void 0:r[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(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 Nd=P`
1589
- `;var Pi=class extends CustomEvent{constructor(t,r){super("ft-reader-map-loaded",{detail:{map:t,toc:r}})}},$i=class extends CustomEvent{constructor(t,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},ki=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},Li=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},Mi=class extends Event{constructor(){super("ft-reader-map-not-found")}},Di=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Ui=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Bi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Bt=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},yf=e=>t=>+(t??"NaN")>0?+t:e,xt=class extends jt{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new rt(5),this.navigationDebouncer=new rt(10),this.mapLoadedEventDebouncer=new rt(50),this.addStore(L)}render(){return $`
1589
+ `}focus(t){var r;(r=this.container)===null||r===void 0||r.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new xs(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())}};Ie.elementDefinitions={"ft-ripple":et,"ft-typography":yt,"ft-icon":xt};Ie.styles=ud;vs([x()],Ie.prototype,"value",void 0);vs([X(".ft-text-field-suggestion")],Ie.prototype,"container",void 0);vs([co()],Ie.prototype,"assignedNodes",void 0);Z("ft-text-field")(q);Z("ft-text-field-suggestion")(Ie);var hd=e=>Ne.get({name:"ft-reader-"+e,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 Ss=class{constructor(t,r){this.mapId=t,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,r,o){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,o)),n.tocId==null?this.extractPagesToc(n.children,r,o):[{tocId:n.tocId,title:n.title,depth:r,children:this.extractPagesToc(n.children,r+1,n.tocId)}]))}convertNodes(t,r,o){return t.flatMap(n=>{var s,c,l;if(n.tocId==null)return[...this.convertSectionNodes((s=n.pageToc)!==null&&s!==void 0?s:[],r,n.tocId),...this.convertNodes(n.children,r,n.tocId)];let d=(c=n.prettyUrl)===null||c===void 0?void 0:c.replace(/^\//,""),u={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:d,depth:r,parentTocId:o,children:[]};this.register(u);let h=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],r+1,n.tocId),y=this.convertNodes(n.children,r+1,u.tocId);return u.children=[...h,...y],[u]})}convertSectionNodes(t,r,o){return t.flatMap(n=>{var s;let c=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),l={...n,prettyUrl:c,depth:r,parentTocId:o,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,r+1,n.tocId),[l]})}buildPage(t,r){var o,n,s,c,l,d;let u={number:this.pages.length+1,title:(o=t.title)!==null&&o!==void 0?o:"",rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((s=t.pageToc)!==null&&s!==void 0?s:[]).map(v=>this.nodeByTocId[v.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(v,S)=>(S?u.topics:u.hiddenTopics).push(v),y=(l=(c=t.pageConfiguration)===null||c===void 0?void 0:c.parentsVisibility)!==null&&l!==void 0?l:[];return u.breadcrumb.forEach((v,S)=>{h(v,y[S])}),t.tocId&&h(t.tocId,t.pageConfiguration.isVisible),u.topics.push(...this.tocIds((d=t.pageToc)!==null&&d!==void 0?d:[])),u}registerPage(t){for(let r of[...t.topics,...t.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=t);this.pages.push(t)}tocIds(t){return t.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(t){let r=[t.tocId];for(;t?.parentTocId;)r.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return r}register(t){t.prettyUrl&&(this.nodeByUrl[t.prettyUrl]==null?this.nodeByUrl[t.prettyUrl]=t:this.duplicatedPrettyUrls.add(t.prettyUrl)),this.nodeByUrl[`${this.mapId}/${t.tocId}`]=t,this.nodeByTocId[t.tocId]=t}},Pi=class{convertPaginatedToc(t,r){return new Ss(t,r).build()}};var Q1=Gd(gd(),1);var yd;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(yd||(yd={}));var bd;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(bd||(bd={}));var xd;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(xd||(xd={}));var vd;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(vd||(vd={}));var Sd;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Sd||(Sd={}));var Od;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Od||(Od={}));var Cd;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Cd||(Cd={}));var _e;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(_e||(_e={}));var wd;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(wd||(wd={}));var Ed;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ed||(Ed={}));var Nd;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Nd||(Nd={}));var Rd;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Rd||(Rd={}));var Ad;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Ad||(Ad={}));var Id;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Id||(Id={}));var _d;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(_d||(_d={}));var Td;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Td||(Td={}));var Pd;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS"})(Pd||(Pd={}));var pt;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN",e.DEVELOPER="DEVELOPER"})(pt||(pt={}));var kd;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(kd||(kd={}));var Cu={[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 Ld(e,t){return e===t||(Cu[e]??[]).some(r=>Ld(r,t))}function wr(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(o=>Ld(o,t))}var ki=class extends ge{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,r,o){super(!1,r),this.converter=t,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(r=>this.converter.convertPaginatedToc(t,r)))),this.cache.register("ratingSummary",()=>{var t,r;return wr((r=(t=M.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&r!==void 0?r:[],"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 r;return(r=this.enrichedToc)===null||r===void 0?void 0:r.nodeByTocId[t]}getTocNodeNowByUrl(t){var r,o;let n=this.getMapNow();return n?.prettyUrl==t||`${n?.id}/root`===t?(r=this.enrichedToc)===null||r===void 0?void 0:r.toc[0]:(o=this.enrichedToc)===null||o===void 0?void 0:o.nodeByUrl[t]}async getPage(t){let r=await this.getEnrichedToc();return r.pages[t-1]||r.pages[0]}async getPageByTocId(t){let r=await this.getEnrichedToc();return r.pageByTocId[t]||r.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,r){return this.cache.get("document-relatives-"+t+"-"+r.join("-"),()=>this.fetchRelativesForDocument(t,r))}getRelativesForTopicInMap(t,r,o){return this.cache.get("topic-relatives-"+[t,r,...o].join("-"),()=>this.fetchRelativesForTopicInMap(t,r,o))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,r,o){let n=this.getNavigationData(t,r,o),s=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),c=new URL(s,this.api.tenantBaseUrl);return n.page!=null&&c.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&c.searchParams.set("tocId",n.tocId),n.section!=null&&c.searchParams.set("section",n.section),c.href}getNavigationData(t,r,o){var n,s;t=t||"root";let c=this.enrichedToc,l=c?.pageByTocId[t],d=c?.nodeByTocId[t],u=d?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(n=d?.title)!==null&&n!==void 0?n:"",page:r&&l&&l.number!==r?r:void 0,prettyUrl:u?.replace(/^r\//,""),prettyUrlDuplicated:(s=c?.duplicatedPrettyUrls.has(u??""))!==null&&s!==void 0?s:!1,section:o}}async getAccurateNavigationData(t,r,o){return await this.getEnrichedToc(),this.getNavigationData(t,r,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(r=>{var o;return r?{type:r.topics.type,rating:(o=r.topics)===null||o===void 0?void 0:o.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,r){return this.makeRateMapRequest(t,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,r){return this.makeMapFeedbackRequest(t,r)}rateTopic(t,r,o){return this.makeRateTopicRequest(t,r,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=M.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,r,o){return this.makeTopicFeedbackRequest(t,r,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let r=this.getTocNodeNow(t),o=[{tocId:r.tocId,title:r.title}],n=this.getTocNodeNow(r.parentTocId);for(;n;)o.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return o}isFeatureAccessible(t,{session:r,ratingType:o}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case Yt.FEEDBACK:return wr(r??[],pt.FEEDBACK_USER);case Yt.RATING:return wr(r??[],pt.RATING_USER)&&o!=null&&o!==_e.NO_RATING;case Yt.PRINT:return wr(r??[],pt.PRINT_USER);case Yt.BOOKMARK:return!!r?.sessionAuthenticated;case Yt.COLLECTIONS:return wr(r??[],pt.COLLECTION_USER);case Yt.PERSONAL_BOOKS:return wr(r??[],pt.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var Li=class e extends ki{static async build(t){return new e(new Pi,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let r=await this.api.getMap(t);return this.fingerprint=r.fingerprint,r}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,r){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:r,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,r,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:r},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,r){return this.api.sendMapFeedback(this.mapId,t,r)}makeRateMapRequest(t,r){return this.api.rateMap(this.mapId,t,r)}makeRateTopicRequest(t,r,o){return this.api.rateTopic(this.mapId,t,r,o)}makeTopicFeedbackRequest(t,r,o){return this.api.sendTopicFeedback(this.mapId,t,r,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var $i=class e{static build(t,r){return new e(hd(t.trim()||"context"),r??Li.build)}constructor(t,r,o){this.store=t,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new nt(10),this.initService(r)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return po(()=>this.service)}async navigateToTopic(t,r,o){let n=await this.awaitService(),s=await(o!=null?n.getPage(o):n.getPageByTocId(t??"root"));this.store.actions.currentPage(s),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,s),section:r})}resolveValidNonRootTocId(t,r){var o,n,s;let c=(o=t==="root"?void 0:t)!==null&&o!==void 0?o:r.rootTocId;return r.topics.includes(c)?c:(s=(n=r.topics[0])!==null&&n!==void 0?n:r.hiddenTopics[0])!==null&&s!==void 0?s:"root"}async navigateToPage(t){let o=await(await this.awaitService()).getPage(t);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var t;this.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,r,o,n,s;try{await Promise.all([(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(c=>this.store.actions.configuration(c)),(r=this.service)===null||r===void 0?void 0:r.getMap().then(c=>this.store.actions.map(c)),(o=this.service)===null||o===void 0?void 0:o.getToc().then(c=>this.store.actions.toc(c)),(n=this.service)===null||n===void 0?void 0:n.getPagesToc().then(c=>this.store.actions.pagesToc(c)),(s=this.service)===null||s===void 0?void 0:s.getPaginationConfiguration().then(c=>this.store.actions.paginationConfiguration(c))]).then(()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()})}catch(c){this.errorHandler&&!(c instanceof cr)&&this.errorHandler(c)}}fetchRelatives(){var t,r,o;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.metadata.filter(s=>{var c;return s.key==((c=this.store.getState().configuration)===null||c===void 0?void 0:c.relativePivotMetadata)}).flatMap(s=>s.values);n!==void 0&&n.length>0?(r=this.service)===null||r===void 0||r.getRelativesForDocument((o=this.store.getState().configuration)===null||o===void 0?void 0:o.relativePivotMetadata,n).then(s=>{let c=s.results.flatMap(l=>l.entries);this.store.actions.relatives(c),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let n=o.find(c=>{var l;return((l=c.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),s=(r=(t=M.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&r!==void 0?r:[];return new lo(o,n,this.metadataForSwitchToRelatives,s)}}async navigateToRelativeTopicIfFound(t){var r,o,n;let s=await po(()=>{var u;return(u=this.store.getState().configuration)===null||u===void 0?void 0:u.relativeTopicPivotMetadata}),c=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(c,s,[t]);if(!((n=(o=(r=d?.results)===null||r===void 0?void 0:r[0])===null||o===void 0?void 0:o.entries)===null||n===void 0)&&n[0]){let u=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(u),!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 $d=P`
1590
+ `;var Di=class extends CustomEvent{constructor(t,r){super("ft-reader-map-loaded",{detail:{map:t,toc:r}})}},Ui=class extends CustomEvent{constructor(t,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},Mi=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},Bi=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},Fi=class extends Event{constructor(){super("ft-reader-map-not-found")}},Wi=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},zi=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Hi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var zt=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},wu=e=>t=>+(t??"NaN")>0?+t:e,Ct=class extends jt{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new nt(5),this.navigationDebouncer=new nt(10),this.mapLoadedEventDebouncer=new nt(50),this.addStore(M)}render(){return D`
1590
1591
  ${this.importStyleIfNeeded()}
1591
1592
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1592
- `}importStyleIfNeeded(){var t,r;let o=(t=this.stateManager.service)===null||t===void 0?void 0:t.themeStylesheet();return!o||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?B:$`
1593
+ `}importStyleIfNeeded(){var t,r;let o=(t=this.stateManager.service)===null||t===void 0?void 0:t.themeStylesheet();return!o||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?z:D`
1593
1594
  <style>
1594
1595
  @import "${o}"
1595
1596
  </style>
1596
- `}get stateManager(){return this._stateManager==null&&(this._stateManager=Ii.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let r=t.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",r),document.head.append(o)}})}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>t.has(r))&&this.mapId&&this.navigateToTarget(),t.has("session")&&this.reload()}contentAvailableCallback(t){var r;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let o=t.get("scrollTarget");o?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var n;return this.stateManager.service.getAccurateNavigationData(o.tocId,(n=this.currentPage)===null||n===void 0?void 0:n.number,o.section).then(a=>this.dispatchEvent(new ki(a)))})}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map(o=>{var n;return this.stateManager.service.getAccurateNavigationData(o,(n=this.currentPage)===null||n===void 0?void 0:n.number)})).then(o=>{let n=o.filter(a=>a!=null&&a.topicTitle!=="").map(a=>{var s;return{tocId:a.tocId,title:a.topicTitle,page:a.page,prettyUrl:a.prettyUrl,prettyUrlDuplicated:a.prettyUrlDuplicated,breadcrumb:(s=this.stateManager.service)===null||s===void 0?void 0:s.buildBreadcrumb(a.tocId)}});this.dispatchEvent(new $i(this.map,n))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Bi),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 r=t.composedPath()[0];this.register(r)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let r=t;r.status===401?this.dispatchEvent(new Di):r.status===403?this.dispatchEvent(new Ui):r.status===404?this.dispatchEvent(new Mi):this.dispatchEvent(new Li(t))}reloadBookmarks(){od.reloadBookmarks()}async reloadRating(){var t,r;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Pi(this.map,this.toc))})}};xt.styles=Nd;Bt([nt({store:L.name})],xt.prototype,"baseUrl",void 0);Bt([nt({store:L.name})],xt.prototype,"session",void 0);Bt([g()],xt.prototype,"mapId",void 0);Bt([g()],xt.prototype,"tocId",void 0);Bt([g()],xt.prototype,"section",void 0);Bt([g()],xt.prototype,"topicPivot",void 0);Bt([g()],xt.prototype,"searchInDocumentQuery",void 0);Bt([g({type:Number,converter:{fromAttribute:yf()}})],xt.prototype,"page",void 0);Bt([nt({store:"reader"})],xt.prototype,"map",void 0);Bt([nt({store:"reader"})],xt.prototype,"toc",void 0);Bt([nt({store:"reader"})],xt.prototype,"visibleTopics",void 0);Bt([nt({store:"reader"})],xt.prototype,"currentPage",void 0);Bt([nt({store:"reader"})],xt.prototype,"scrollTarget",void 0);Bt([g({attribute:!1})],xt.prototype,"readerServiceProvider",void 0);V("ft-reader-context")(xt);var Fi=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},zi=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},Wi=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},Hi=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},Vi=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var St=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},tt=class extends Ve(Fe){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,nd)}get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Gt.FEEDBACK,{session:this.session})}get canAccessRating(){var t,r;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Gt.RATING,{session:this.session,ratingType:(r=this.ratingSummary)===null||r===void 0?void 0:r.type})}get configuredRatingType(){var t,r;return(r=this.ratingAllowed?(t=this.ratingSummary)===null||t===void 0?void 0:t.type:"NO_RATING")!==null&&r!==void 0?r:"NO_RATING"}get ratingType(){var t,r,o;return(o=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.type)!==null&&o!==void 0?o:"NO_RATING"}get ratingValue(){var t,r,o;return(o=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.value)!==null&&o!==void 0?o:-1}get ratingDate(){var t,r;let o=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.date;return typeof o=="string"?ri(o):o}render(){return!this.canAccessFeedback&&!this.canAccessRating?B:$`
1597
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=$i.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let r=t.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",r),document.head.append(o)}})}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>t.has(r))&&this.mapId&&this.navigateToTarget(),t.has("session")&&this.reload()}contentAvailableCallback(t){var r;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let o=t.get("scrollTarget");o?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var n;return this.stateManager.service.getAccurateNavigationData(o.tocId,(n=this.currentPage)===null||n===void 0?void 0:n.number,o.section).then(s=>this.dispatchEvent(new Mi(s)))})}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map(o=>{var n;return this.stateManager.service.getAccurateNavigationData(o,(n=this.currentPage)===null||n===void 0?void 0:n.number)})).then(o=>{let n=o.filter(s=>s!=null&&s.topicTitle!=="").map(s=>{var c;return{tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:(c=this.stateManager.service)===null||c===void 0?void 0:c.buildBreadcrumb(s.tocId)}});this.dispatchEvent(new Ui(this.map,n))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Hi),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(t){t.stopPropagation();let r=t.composedPath()[0];this.register(r)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let r=t;r.status===401?this.dispatchEvent(new Wi):r.status===403?this.dispatchEvent(new zi):r.status===404?this.dispatchEvent(new Fi):this.dispatchEvent(new Bi(t))}reloadBookmarks(){ld.reloadBookmarks()}async reloadRating(){var t,r;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Di(this.map,this.toc))})}};Ct.styles=$d;zt([ct({store:M.name})],Ct.prototype,"baseUrl",void 0);zt([ct({store:M.name})],Ct.prototype,"session",void 0);zt([x()],Ct.prototype,"mapId",void 0);zt([x()],Ct.prototype,"tocId",void 0);zt([x()],Ct.prototype,"section",void 0);zt([x()],Ct.prototype,"topicPivot",void 0);zt([x()],Ct.prototype,"searchInDocumentQuery",void 0);zt([x({type:Number,converter:{fromAttribute:wu()}})],Ct.prototype,"page",void 0);zt([ct({store:"reader"})],Ct.prototype,"map",void 0);zt([ct({store:"reader"})],Ct.prototype,"toc",void 0);zt([ct({store:"reader"})],Ct.prototype,"visibleTopics",void 0);zt([ct({store:"reader"})],Ct.prototype,"currentPage",void 0);zt([ct({store:"reader"})],Ct.prototype,"scrollTarget",void 0);zt([x({attribute:!1})],Ct.prototype,"readerServiceProvider",void 0);Z("ft-reader-context")(Ct);var Gi=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},Ki=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},Vi=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},Zi=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},ji=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var wt=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ot=class extends je(He){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(J,pd)}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,r;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Yt.RATING,{session:this.session,ratingType:(r=this.ratingSummary)===null||r===void 0?void 0:r.type})}get configuredRatingType(){var t,r;return(r=this.ratingAllowed?(t=this.ratingSummary)===null||t===void 0?void 0:t.type:"NO_RATING")!==null&&r!==void 0?r:"NO_RATING"}get ratingType(){var t,r,o;return(o=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.type)!==null&&o!==void 0?o:"NO_RATING"}get ratingValue(){var t,r,o;return(o=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.value)!==null&&o!==void 0?o:-1}get ratingDate(){var t,r;let o=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.date;return typeof o=="string"?ai(o):o}render(){return!this.canAccessFeedback&&!this.canAccessRating?z:D`
1597
1598
  <div class="ft-reader-feedback">
1598
- ${this.hideTitle?B:$`
1599
+ ${this.hideTitle?z:D`
1599
1600
  <ft-typography variant="title" part="main-title">
1600
1601
  ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1601
1602
  </ft-typography>
@@ -1603,7 +1604,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1603
1604
  ${this.renderRatingSection()}
1604
1605
  ${this.renderFeedbackSection()}
1605
1606
  </div>
1606
- `}renderRatingSection(){return this.canAccessRating?$`
1607
+ `}renderRatingSection(){return this.canAccessRating?D`
1607
1608
  <div class="ft-reader-feedback--rating" part="rating-container">
1608
1609
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1609
1610
  ${this.i18n(this.ratingSummary.type==="DICHOTOMOUS"?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
@@ -1613,95 +1614,95 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
1613
1614
  ${this.renderRatingDate()}
1614
1615
  </ft-typography>
1615
1616
  </div>
1616
- `:B}renderRatingDate(){let t=this.ratingDate;if(t==null)return q.messages.notRated();if(t.getTime()>new Date().getTime()-6e4)return q.messages.ratedNow();let r=new Date().toLocaleDateString(),o=t.toLocaleDateString();return r===o?q.messages.ratedToday():q.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return $`
1617
+ `:z}renderRatingDate(){let t=this.ratingDate;if(t==null)return J.messages.notRated();if(t.getTime()>new Date().getTime()-6e4)return J.messages.ratedNow();let r=new Date().toLocaleDateString(),o=t.toLocaleDateString();return r===o?J.messages.ratedToday():J.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return D`
1617
1618
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1618
- ${pn(new Array(5),(a,s)=>s,(a,s)=>{let l=this.ratingType==="STARS"&&this.ratingValue>s,c=s+1;return $`
1619
- <ft-button round part="rating-stars-${c}"
1620
- label="${q.messages.starsRating(c)}"
1619
+ ${mn(new Array(5),(s,c)=>c,(s,c)=>{let l=this.ratingType==="STARS"&&this.ratingValue>c,d=c+1;return D`
1620
+ <ft-button round part="rating-stars-${d}"
1621
+ label="${J.messages.starsRating(d)}"
1621
1622
  tooltipPosition="top"
1622
1623
  .iconVariant=${this.iconVariant}
1623
1624
  icon="${l?this.filledStarIcon:this.emptyStarIcon}"
1624
1625
  class="ft-reader-feedback--${l?"active":"inactive"}"
1625
- @click=${()=>this.rate(this.ratingValue===c?void 0:c)}
1626
+ @click=${()=>this.rate(this.ratingValue===d?void 0:d)}
1626
1627
  ></ft-button>
1627
1628
  `})}
1628
1629
  </div>
1629
- `;case"LIKE":let t=this.ratingType==="LIKE"&&this.ratingValue===0,r=this.ratingType==="LIKE"&&this.ratingValue===1;return $`
1630
+ `;case"LIKE":let t=this.ratingType==="LIKE"&&this.ratingValue===0,r=this.ratingType==="LIKE"&&this.ratingValue===1;return D`
1630
1631
  <ft-switch unselectable
1631
- @change=${a=>this.rate(a.detail)}
1632
+ @change=${s=>this.rate(s.detail)}
1632
1633
  part="rating rating-like">
1633
1634
  <ft-switch-option .value=${1}
1634
1635
  ?selected=${r}
1635
1636
  .iconVariant=${this.iconVariant}
1636
1637
  icon="${r?this.filledLikeIcon:this.emptyLikeIcon}">
1637
- ${q.messages.like()}
1638
+ ${J.messages.like()}
1638
1639
  </ft-switch-option>
1639
1640
  <ft-switch-option .value=${0}
1640
1641
  ?selected=${t}
1641
1642
  .iconVariant=${this.iconVariant}
1642
1643
  icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
1643
- ${q.messages.dislike()}
1644
+ ${J.messages.dislike()}
1644
1645
  </ft-switch-option>
1645
1646
  </ft-switch>
1646
- `;case"DICHOTOMOUS":let o=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===0,n=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===1;return $`
1647
+ `;case"DICHOTOMOUS":let o=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===0,n=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===1;return D`
1647
1648
  <ft-switch unselectable
1648
- @change=${a=>this.rate(a.detail)}
1649
+ @change=${s=>this.rate(s.detail)}
1649
1650
  part="rating rating-dichotomous">
1650
1651
  <ft-switch-option .value=${1}
1651
1652
  ?selected=${n}>
1652
- ${q.messages.dichotomousYes()}
1653
+ ${J.messages.dichotomousYes()}
1653
1654
  </ft-switch-option>
1654
1655
  <ft-switch-option .value=${0}
1655
1656
  ?selected=${o}>
1656
- ${q.messages.dichotomousNo()}
1657
+ ${J.messages.dichotomousNo()}
1657
1658
  </ft-switch-option>
1658
1659
  </ft-switch>
1659
- `}return B}rate(t){(t??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,r,o,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=$`
1660
+ `}return z}rate(t){(t??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,r,o,n,s;if(this.canAccessFeedback){let c=this.feedbackMailLinkBuilder(this.feedbackMessage),l=D`
1660
1661
  <ft-button primary
1661
1662
  type="submit" name="submit"
1662
1663
  class="ft-reader-feedback--send-feedback"
1663
1664
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1664
1665
  part="send-feedback">
1665
- ${q.messages.okButton()}
1666
+ ${J.messages.okButton()}
1666
1667
  </ft-button>
1667
- `;s&&(l=$`
1668
- <a class="ft-reader-feedback--feedback-link" href="${s}">
1668
+ `;c&&(l=D`
1669
+ <a class="ft-reader-feedback--feedback-link" href="${c}">
1669
1670
  ${l}
1670
1671
  </a>
1671
- `);let c=this.withMoreOptionsButton&&(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?$`
1672
+ `);let d=this.withMoreOptionsButton&&(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?D`
1672
1673
  <ft-button outlined
1673
1674
  type="button" name="more-options"
1674
1675
  class="ft-reader-feedback--more-options"
1675
1676
  @click="${this.onOpenMoreDetails}"
1676
1677
  part="more-options">
1677
- ${q.messages.moreOptionsButton()}
1678
+ ${J.messages.moreOptionsButton()}
1678
1679
  </ft-button>
1679
- `:B;return $`
1680
+ `:z;return D`
1680
1681
  <form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
1681
- @submit="${p=>this.onFormSubmitEvent(p,!!s)}">
1682
+ @submit="${u=>this.onFormSubmitEvent(u,!!c)}">
1682
1683
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1683
1684
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1684
1685
  </ft-typography>
1685
- ${((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)?$`
1686
+ ${((n=(o=this.session)===null||o===void 0?void 0:o.profile)===null||n===void 0?void 0:n.userId)==null&&(!((s=this.configuration)===null||s===void 0)&&s.mailsSentByFluidTopicsForUnauthenticatedUsers)?D`
1686
1687
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1687
1688
  class="ft-reader-feedback--from-input"
1688
- label=${q.messages.feedbackfromEmail()}
1689
- @change=${p=>this.from=p.detail.trim()}
1689
+ label=${J.messages.feedbackfromEmail()}
1690
+ @change=${u=>this.from=u.detail.trim()}
1690
1691
  ?error=${this.from&&!this.validFromEmail()}
1691
- helper=${this.from&&!this.validFromEmail()?q.messages.feedbackfromEmailInvalid():""}
1692
+ helper=${this.from&&!this.validFromEmail()?J.messages.feedbackfromEmailInvalid():""}
1692
1693
  />
1693
- `:B}
1694
+ `:z}
1694
1695
  <ft-text-area outlined
1695
1696
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1696
- label="${q.messages.feedbackInputLabel()}"
1697
- @live-change=${p=>this.feedbackMessage=p.detail.trim()}
1697
+ label="${J.messages.feedbackInputLabel()}"
1698
+ @live-change=${u=>this.feedbackMessage=u.detail.trim()}
1698
1699
  ></ft-text-area>
1699
1700
  <div part="buttons-container">
1700
- ${c}
1701
+ ${d}
1701
1702
  ${l}
1702
1703
  </div>
1703
1704
  </form>
1704
- `}return B}onFormSubmitEvent(t,r){t.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,r,o;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0?void 0:r.userId)==null&&(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new Fi({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)}};tt.elementDefinitions={"ft-button":te,"ft-typography":ht,"ft-switch":Ht,"ft-switch-option":yt,"ft-text-area":wt,"ft-text-field":K};tt.styles=zc;St([g({type:Boolean})],tt.prototype,"editorMode",void 0);St([g({type:Boolean})],tt.prototype,"hideTitle",void 0);St([g({type:Boolean})],tt.prototype,"withMoreOptionsButton",void 0);St([g({type:Boolean})],tt.prototype,"ratingAllowed",void 0);St([g({attribute:!1})],tt.prototype,"i18nProperties",void 0);St([g({attribute:!1})],tt.prototype,"ratingSummary",void 0);St([g({attribute:!1})],tt.prototype,"session",void 0);St([Z(".ft-reader-feedback--feedback-input")],tt.prototype,"feedbackInput",void 0);St([H()],tt.prototype,"from",void 0);St([H()],tt.prototype,"feedbackMessage",void 0);St([g()],tt.prototype,"iconVariant",void 0);St([g()],tt.prototype,"emptyStarIcon",void 0);St([g()],tt.prototype,"filledStarIcon",void 0);St([g()],tt.prototype,"emptyLikeIcon",void 0);St([g()],tt.prototype,"filledLikeIcon",void 0);St([g()],tt.prototype,"emptyDislikeIcon",void 0);St([g()],tt.prototype,"filledDislikeIcon",void 0);St([nt({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],tt.prototype,"configuration",void 0);St([g()],tt.prototype,"feedbackMailLinkBuilder",void 0);var Wr=je.fromGwt("server");var Hr=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,r,o,n,a){var s;this.subject=t,this.url=r,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(o,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(o,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(t,r){return r.map(o=>t.find(n=>n.key===o)).filter(o=>o!=null&&o.values.length>0)}shouldUseMailer(){var t,r;let o=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||n}build(t){var r;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let o=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1705
+ `}return z}onFormSubmitEvent(t,r){t.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,r,o;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0?void 0:r.userId)==null&&(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new Gi({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)}};ot.elementDefinitions={"ft-button":ie,"ft-typography":yt,"ft-switch":Vt,"ft-switch-option":vt,"ft-text-area":Nt,"ft-text-field":q};ot.styles=Kl;wt([x({type:Boolean})],ot.prototype,"editorMode",void 0);wt([x({type:Boolean})],ot.prototype,"hideTitle",void 0);wt([x({type:Boolean})],ot.prototype,"withMoreOptionsButton",void 0);wt([x({type:Boolean})],ot.prototype,"ratingAllowed",void 0);wt([x({attribute:!1})],ot.prototype,"i18nProperties",void 0);wt([x({attribute:!1})],ot.prototype,"ratingSummary",void 0);wt([x({attribute:!1})],ot.prototype,"session",void 0);wt([X(".ft-reader-feedback--feedback-input")],ot.prototype,"feedbackInput",void 0);wt([V()],ot.prototype,"from",void 0);wt([V()],ot.prototype,"feedbackMessage",void 0);wt([x()],ot.prototype,"iconVariant",void 0);wt([x()],ot.prototype,"emptyStarIcon",void 0);wt([x()],ot.prototype,"filledStarIcon",void 0);wt([x()],ot.prototype,"emptyLikeIcon",void 0);wt([x()],ot.prototype,"filledLikeIcon",void 0);wt([x()],ot.prototype,"emptyDislikeIcon",void 0);wt([x()],ot.prototype,"filledDislikeIcon",void 0);wt([ct({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],ot.prototype,"configuration",void 0);wt([x()],ot.prototype,"feedbackMailLinkBuilder",void 0);var Vr=qe.fromGwt("server");var Zr=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,r,o,n,s){var c;this.subject=t,this.url=r,this.configuration=n,this.isAuthenticated=s,this.subjectMetadata=this.filterMetadata(o,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(o,(c=n.bodyMetadataIds)!==null&&c!==void 0?c:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(t,r){return r.map(o=>t.find(n=>n.key===o)).filter(o=>o!=null&&o.values.length>0)}shouldUseMailer(){var t,r;let o=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||n}build(t){var r;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let o=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1705
1706
  ${this.bodyMetadata}
1706
1707
  ${this.url}
1707
1708
  _________________________________________________________________
@@ -1709,7 +1710,7 @@ _________________________________________________________________
1709
1710
  ${t??""}
1710
1711
 
1711
1712
  _________________________________________________________________
1712
- ${Wr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${o}&body=${n}`}};var Ke=je.build("inDesignerFeedbackComponent"),ji={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Et=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},dt=class extends Ve(Fe){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ut.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 Hr,this.i18nProperties={feedbackMainTitle:q.properties.mapFeedbackMainTitle(),ratingSectionTitle:q.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:q.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:q.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new rt(100),this.sendRatingDebouncer=new rt(500),this.addStore(L)}render(){return $`
1713
+ ${Vr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${o}&body=${n}`}};var Ye=qe.build("inDesignerFeedbackComponent"),qi={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Rt=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ut=class extends je(He){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Wt.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 Zr,this.i18nProperties={feedbackMainTitle:J.properties.mapFeedbackMainTitle(),ratingSectionTitle:J.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:J.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:J.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new nt(100),this.sendRatingDebouncer=new nt(500),this.addStore(M)}render(){return D`
1713
1714
  <ft-reader-feedback
1714
1715
  ratingAllowed
1715
1716
  .i18nProperties=${this.i18nProperties}
@@ -1731,7 +1732,7 @@ ${Wr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1731
1732
  @mailer-feedback=${this.onMailerFeedbackSent}
1732
1733
  @open-more-options=${this.openMoreOptions}
1733
1734
  ></ft-reader-feedback>
1734
- `}update(t){var r,o,n,a;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(Ke,ji),["map","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(o=(r=this.service)===null||r===void 0?void 0:r.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(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,r;this.map&&(!((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0)&&r.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 r,o,n;if(!this.editorMode&&this.ratingSummary){try{t==null?await((r=this.service)===null||r===void 0?void 0:r.unrateMap()):await((o=this.service)===null||o===void 0?void 0:o.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Tt({type:"error",message:q.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Tt({type:"info",message:Ke.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var r;try{this.editorMode?this.dispatchEvent(new Tt({type:"info",message:Ke.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Tt({type:"info",message:q.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Tt({type:"error",message:q.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new Vi)}openMoreOptions(){var t,r,o;this.dispatchEvent(new Wi({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((r=this.ratingSummary)===null||r===void 0?void 0:r.type)||Re.NO_RATING,ratingValue:(o=this.ratingSummary)===null||o===void 0?void 0:o.rating}))}};dt.elementDefinitions={"ft-reader-feedback":tt};Et([nt({store:L.name})],dt.prototype,"session",void 0);Et([nt({store:"reader"})],dt.prototype,"map",void 0);Et([nt({store:L.name})],dt.prototype,"editorMode",void 0);Et([nt({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],dt.prototype,"configuration",void 0);Et([H()],dt.prototype,"ratingSummary",void 0);Et([g({type:Boolean})],dt.prototype,"hideTitle",void 0);Et([g({type:Boolean})],dt.prototype,"withMoreOptionsButton",void 0);Et([g()],dt.prototype,"iconVariant",void 0);Et([g()],dt.prototype,"emptyStarIcon",void 0);Et([g()],dt.prototype,"filledStarIcon",void 0);Et([g()],dt.prototype,"emptyLikeIcon",void 0);Et([g()],dt.prototype,"filledLikeIcon",void 0);Et([g()],dt.prototype,"emptyDislikeIcon",void 0);Et([g()],dt.prototype,"filledDislikeIcon",void 0);Et([Z("ft-reader-feedback")],dt.prototype,"readerFeedback",void 0);Et([Ri(Wr.properties["mail.map_feedback.subject"](e=>{var t;return[(t=e.map)===null||t===void 0?void 0:t.title]}))],dt.prototype,"mailSubject",void 0);Et([vo({eventName:"rating-changed"})],dt.prototype,"fetchRatingSummary",null);var Td=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},vs=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},bs=Symbol("registerInterval");function bf(e){var t;class r extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[bs]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[bs]):this.dispatchEvent(new vs)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=bs,Td([H()],r.prototype,"tocNode",void 0),Td([H()],r.prototype,"disableContextInteractions",void 0),r}var Ki=class extends bf(Fe){};var Ct=function(e,t,r,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},pt=class extends Ve(Ki){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ut.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 Hr,this.i18nProperties={feedbackMainTitle:q.properties.topicFeedbackMainTitle(),ratingSectionTitle:q.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:q.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:q.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new rt(100),this.sendRatingDebouncer=new rt(500),this.addStore(L)}render(){var t;return $`
1735
+ `}update(t){var r,o,n,s;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(Ye,qi),["map","configuration","user","mailSubject"].some(c=>t.has(c))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(o=(r=this.service)===null||r===void 0?void 0:r.getLink())!==null&&o!==void 0?o:"",this.map.metadata,this.configuration,((s=(n=this.session)===null||n===void 0?void 0:n.profile)===null||s===void 0?void 0:s.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,r;this.map&&(!((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0)&&r.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 r,o,n;if(!this.editorMode&&this.ratingSummary){try{t==null?await((r=this.service)===null||r===void 0?void 0:r.unrateMap()):await((o=this.service)===null||o===void 0?void 0:o.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new kt({type:"error",message:J.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new kt({type:"info",message:Ye.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var r;try{this.editorMode?this.dispatchEvent(new kt({type:"info",message:Ye.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new kt({type:"info",message:J.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new kt({type:"error",message:J.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new ji)}openMoreOptions(){var t,r,o;this.dispatchEvent(new Vi({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((r=this.ratingSummary)===null||r===void 0?void 0:r.type)||_e.NO_RATING,ratingValue:(o=this.ratingSummary)===null||o===void 0?void 0:o.rating}))}};ut.elementDefinitions={"ft-reader-feedback":ot};Rt([ct({store:M.name})],ut.prototype,"session",void 0);Rt([ct({store:"reader"})],ut.prototype,"map",void 0);Rt([ct({store:M.name})],ut.prototype,"editorMode",void 0);Rt([ct({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],ut.prototype,"configuration",void 0);Rt([V()],ut.prototype,"ratingSummary",void 0);Rt([x({type:Boolean})],ut.prototype,"hideTitle",void 0);Rt([x({type:Boolean})],ut.prototype,"withMoreOptionsButton",void 0);Rt([x()],ut.prototype,"iconVariant",void 0);Rt([x()],ut.prototype,"emptyStarIcon",void 0);Rt([x()],ut.prototype,"filledStarIcon",void 0);Rt([x()],ut.prototype,"emptyLikeIcon",void 0);Rt([x()],ut.prototype,"filledLikeIcon",void 0);Rt([x()],ut.prototype,"emptyDislikeIcon",void 0);Rt([x()],ut.prototype,"filledDislikeIcon",void 0);Rt([X("ft-reader-feedback")],ut.prototype,"readerFeedback",void 0);Rt([Ti(Vr.properties["mail.map_feedback.subject"](e=>{var t;return[(t=e.map)===null||t===void 0?void 0:t.title]}))],ut.prototype,"mailSubject",void 0);Rt([Co({eventName:"rating-changed"})],ut.prototype,"fetchRatingSummary",null);var Dd=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},Cs=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Os=Symbol("registerInterval");function Eu(e){var t;class r extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[Os]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Os]):this.dispatchEvent(new Cs)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=Os,Dd([V()],r.prototype,"tocNode",void 0),Dd([V()],r.prototype,"disableContextInteractions",void 0),r}var Yi=class extends Eu(He){};var At=function(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(s=(n<3?c(s):n>3?c(t,r,s):c(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},ht=class extends je(Yi){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Wt.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 Zr,this.i18nProperties={feedbackMainTitle:J.properties.topicFeedbackMainTitle(),ratingSectionTitle:J.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:J.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:J.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new nt(100),this.sendRatingDebouncer=new nt(500),this.addStore(M)}render(){var t;return D`
1735
1736
  <ft-reader-feedback
1736
1737
  .i18nProperties=${this.i18nProperties}
1737
1738
  ?ratingAllowed=${(t=this.tocNode)===null||t===void 0?void 0:t.hasRating}
@@ -1753,7 +1754,7 @@ ${Wr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1753
1754
  @mailer-feedback=${this.onMailerFeedbackSent}
1754
1755
  @open-more-options=${this.openMoreOptions}
1755
1756
  ></ft-reader-feedback>
1756
- `}update(t){var r,o,n,a;super.update(t),["tocNode","user"].some(s=>t.has(s))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(Ke,ji),["map","tocNode","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(o=(r=this.service)===null||r===void 0?void 0:r.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 t,r;this.tocNode&&(!((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0)&&r.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 r,o,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{t==null?await((r=this.service)===null||r===void 0?void 0:r.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,t))}catch{this.dispatchEvent(new Tt({type:"error",message:q.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Tt({type:"info",message:Ke.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var r;try{!this.editorMode&&this.tocNode?(await((r=this.service)===null||r===void 0?void 0:r.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new Tt({type:"info",message:q.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Tt({type:"info",message:Ke.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Tt({type:"error",message:q.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let t=this.tocNode;this.dispatchEvent(new Hi(t))}openMoreOptions(){var t,r,o,n,a,s,l,c;this.dispatchEvent(new zi({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(r=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&r!==void 0?r:"",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:Re.NO_RATING)||Re.NO_RATING,ratingValue:(c=this.ratingSummary)===null||c===void 0?void 0:c.rating}))}};pt.elementDefinitions={"ft-reader-feedback":tt};Ct([nt({store:L.name})],pt.prototype,"session",void 0);Ct([nt({store:"reader"})],pt.prototype,"map",void 0);Ct([nt({store:L.name})],pt.prototype,"editorMode",void 0);Ct([nt({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],pt.prototype,"configuration",void 0);Ct([H()],pt.prototype,"ratingSummary",void 0);Ct([g({type:Boolean})],pt.prototype,"hideTitle",void 0);Ct([g({type:Boolean})],pt.prototype,"withMoreOptionsButton",void 0);Ct([g()],pt.prototype,"iconVariant",void 0);Ct([g()],pt.prototype,"emptyStarIcon",void 0);Ct([g()],pt.prototype,"filledStarIcon",void 0);Ct([g()],pt.prototype,"emptyLikeIcon",void 0);Ct([g()],pt.prototype,"filledLikeIcon",void 0);Ct([g()],pt.prototype,"emptyDislikeIcon",void 0);Ct([g()],pt.prototype,"filledDislikeIcon",void 0);Ct([Z("ft-reader-feedback")],pt.prototype,"readerFeedback",void 0);Ct([Ri(Wr.properties["mail.feedback.subject"](e=>{var t,r;return[(t=e.tocNode)===null||t===void 0?void 0:t.title,(r=e.map)===null||r===void 0?void 0:r.title]}))],pt.prototype,"mailSubject",void 0);Ct([vo({eventName:"rating-changed"})],pt.prototype,"fetchRatingSummary",null);V("ft-reader-map-feedback")(dt);V("ft-reader-topic-feedback")(pt);})();
1757
+ `}update(t){var r,o,n,s;super.update(t),["tocNode","user"].some(c=>t.has(c))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(Ye,qi),["map","tocNode","configuration","user","mailSubject"].some(c=>t.has(c))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(o=(r=this.service)===null||r===void 0?void 0:r.getLink(this.tocNode.tocId))!==null&&o!==void 0?o:"",this.map.metadata,this.configuration,((s=(n=this.session)===null||n===void 0?void 0:n.profile)===null||s===void 0?void 0:s.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,r;this.tocNode&&(!((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0)&&r.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 r,o,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{t==null?await((r=this.service)===null||r===void 0?void 0:r.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,t))}catch{this.dispatchEvent(new kt({type:"error",message:J.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new kt({type:"info",message:Ye.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var r;try{!this.editorMode&&this.tocNode?(await((r=this.service)===null||r===void 0?void 0:r.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new kt({type:"info",message:J.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new kt({type:"info",message:Ye.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new kt({type:"error",message:J.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let t=this.tocNode;this.dispatchEvent(new Zi(t))}openMoreOptions(){var t,r,o,n,s,c,l,d;this.dispatchEvent(new Ki({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(r=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&r!==void 0?r:"",mapMetadata:((o=this.map)===null||o===void 0?void 0:o.metadata)||[],breadcrumb:((s=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||s===void 0?void 0:s.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((c=this.tocNode)===null||c===void 0)&&c.hasRating?(l=this.ratingSummary)===null||l===void 0?void 0:l.type:_e.NO_RATING)||_e.NO_RATING,ratingValue:(d=this.ratingSummary)===null||d===void 0?void 0:d.rating}))}};ht.elementDefinitions={"ft-reader-feedback":ot};At([ct({store:M.name})],ht.prototype,"session",void 0);At([ct({store:"reader"})],ht.prototype,"map",void 0);At([ct({store:M.name})],ht.prototype,"editorMode",void 0);At([ct({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],ht.prototype,"configuration",void 0);At([V()],ht.prototype,"ratingSummary",void 0);At([x({type:Boolean})],ht.prototype,"hideTitle",void 0);At([x({type:Boolean})],ht.prototype,"withMoreOptionsButton",void 0);At([x()],ht.prototype,"iconVariant",void 0);At([x()],ht.prototype,"emptyStarIcon",void 0);At([x()],ht.prototype,"filledStarIcon",void 0);At([x()],ht.prototype,"emptyLikeIcon",void 0);At([x()],ht.prototype,"filledLikeIcon",void 0);At([x()],ht.prototype,"emptyDislikeIcon",void 0);At([x()],ht.prototype,"filledDislikeIcon",void 0);At([X("ft-reader-feedback")],ht.prototype,"readerFeedback",void 0);At([Ti(Vr.properties["mail.feedback.subject"](e=>{var t,r;return[(t=e.tocNode)===null||t===void 0?void 0:t.title,(r=e.map)===null||r===void 0?void 0:r.title]}))],ht.prototype,"mailSubject",void 0);At([Co({eventName:"rating-changed"})],ht.prototype,"fetchRatingSummary",null);Z("ft-reader-map-feedback")(ut);Z("ft-reader-topic-feedback")(ht);})();
1757
1758
  /*! Bundled license information:
1758
1759
 
1759
1760
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: