@fluid-topics/ft-reader-feedback 1.2.11 → 1.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";(()=>{var gp=Object.create;var gn=Object.defineProperty;var bp=Object.getOwnPropertyDescriptor;var vp=Object.getOwnPropertyNames;var xp=Object.getPrototypeOf,Sp=Object.prototype.hasOwnProperty;var Op=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),rt=(r,t)=>{for(var e in t)gn(r,e,{get:t[e],enumerable:!0})},Cp=(r,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of vp(t))!Sp.call(r,n)&&n!==e&&gn(r,n,{get:()=>t[n],enumerable:!(i=bp(t,n))||i.enumerable});return r};var
|
|
2
|
-
`)===0?K.substr(1,K.length):K}).forEach(function(K){var Q=K.split(":"),V=Q.shift().trim();if(V){var se=Q.join(":").trim();try{O.append(V,se)}catch(oo){console.warn("Response "+oo.message)}}}),O}P.call(A.prototype);function J(m,O){if(!(this instanceof J))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(O||(O={}),this.type="default",this.status=O.status===void 0?200:O.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=O.statusText===void 0?"":""+O.statusText,this.headers=new h(O.headers),this.url=O.url||"",this._initBody(m)}P.call(J.prototype),J.prototype.clone=function(){return new J(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},J.error=function(){var m=new J(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var q=[301,302,303,307,308];J.redirect=function(m,O){if(q.indexOf(O)===-1)throw new RangeError("Invalid status code");return new J(null,{status:O,headers:{location:m}})},e.DOMException=i.DOMException;try{new e.DOMException}catch{e.DOMException=function(O,D){this.message=O,this.name=D;var K=Error(O);this.stack=K.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function F(m,O){return new Promise(function(D,K){var Q=new A(m,O);if(Q.signal&&Q.signal.aborted)return K(new e.DOMException("Aborted","AbortError"));var V=new XMLHttpRequest;function se(){V.abort()}V.onload=function(){var _t={statusText:V.statusText,headers:z(V.getAllResponseHeaders()||"")};Q.url.indexOf("file://")===0&&(V.status<200||V.status>599)?_t.status=200:_t.status=V.status,_t.url="responseURL"in V?V.responseURL:_t.headers.get("X-Request-URL");var er="response"in V?V.response:V.responseText;setTimeout(function(){D(new J(er,_t))},0)},V.onerror=function(){setTimeout(function(){K(new TypeError("Network request failed"))},0)},V.ontimeout=function(){setTimeout(function(){K(new TypeError("Network request timed out"))},0)},V.onabort=function(){setTimeout(function(){K(new e.DOMException("Aborted","AbortError"))},0)};function oo(_t){try{return _t===""&&i.location.href?i.location.href:_t}catch{return _t}}if(V.open(Q.method,oo(Q.url),!0),Q.credentials==="include"?V.withCredentials=!0:Q.credentials==="omit"&&(V.withCredentials=!1),"responseType"in V&&(n.blob?V.responseType="blob":n.arrayBuffer&&(V.responseType="arraybuffer")),O&&typeof O.headers=="object"&&!(O.headers instanceof h||i.Headers&&O.headers instanceof i.Headers)){var Qs=[];Object.getOwnPropertyNames(O.headers).forEach(function(_t){Qs.push(d(_t)),V.setRequestHeader(_t,p(O.headers[_t]))}),Q.headers.forEach(function(_t,er){Qs.indexOf(er)===-1&&V.setRequestHeader(er,_t)})}else Q.headers.forEach(function(_t,er){V.setRequestHeader(er,_t)});Q.signal&&(Q.signal.addEventListener("abort",se),V.onreadystatechange=function(){V.readyState===4&&Q.signal.removeEventListener("abort",se)}),V.send(typeof Q._bodyInit>"u"?null:Q._bodyInit)})}return F.polyfill=!0,i.fetch||(i.fetch=F,i.Headers=h,i.Request=A,i.Response=J),e.Headers=h,e.Request=A,e.Response=J,e.fetch=F,e}({})})(Mi);Mi.fetch.ponyfill=!0;delete Mi.fetch.polyfill;var Gr=Di.fetch?Di:Mi;Ge=Gr.fetch;Ge.default=Gr.fetch;Ge.fetch=Gr.fetch;Ge.Headers=Gr.Headers;Ge.Request=Gr.Request;Ge.Response=Gr.Response;Qc.exports=Ge});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,t=window.customElements.define,e=window.customElements.get,i=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(E,C){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(C)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let A=C.prototype.attributeChangedCallback,k=new Set(C.observedAttributes||[]);y(C,k,A);let z={elementClass:C,connectedCallback:C.prototype.connectedCallback,disconnectedCallback:C.prototype.disconnectedCallback,adoptedCallback:C.prototype.adoptedCallback,attributeChangedCallback:A,formAssociated:C.formAssociated,formAssociatedCallback:C.prototype.formAssociatedCallback,formDisabledCallback:C.prototype.formDisabledCallback,formResetCallback:C.prototype.formResetCallback,formStateRestoreCallback:C.prototype.formStateRestoreCallback,observedAttributes:k};this._definitionsByTag.set(E,z),this._definitionsByClass.set(C,z);let J=e.call(i,E);J||(J=h(E),t.call(i,E,J)),this===window.customElements&&(s.set(C,z),z.standInClass=J);let q=this._awaitingUpgrade.get(E);if(q){this._awaitingUpgrade.delete(E);for(let m of q)a.delete(m),S(m,z,!0)}let F=this._whenDefinedPromises.get(E);return F!==void 0&&(F.resolve(C),this._whenDefinedPromises.delete(E)),C}upgrade(){T.push(this),i.upgrade.apply(i,arguments),T.pop()}get(E){return this._definitionsByTag.get(E)?.elementClass}_getDefinition(E){return this._definitionsByTag.get(E)}whenDefined(E){let C=this._getDefinition(E);if(C!==void 0)return Promise.resolve(C.elementClass);let A=this._whenDefinedPromises.get(E);return A===void 0&&(A={},A.promise=new Promise(k=>A.resolve=k),this._whenDefinedPromises.set(E,A)),A.promise}_upgradeWhenDefined(E,C,A){let k=this._awaitingUpgrade.get(C);k||this._awaitingUpgrade.set(C,k=new Set),A?k.add(E):k.delete(E)}};let d;window.HTMLElement=function(){let C=d;if(C)return d=void 0,C;let A=s.get(this.constructor);if(!A)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return C=Reflect.construct(r,[],A.standInClass),Object.setPrototypeOf(C,this.constructor.prototype),n.set(C,A),C},window.HTMLElement.prototype=r.prototype;let p=E=>E===document||E instanceof ShadowRoot,f=E=>{let C=E.getRootNode();if(!p(C)){let A=T[T.length-1];if(A instanceof CustomElementRegistry)return A;C=A.getRootNode(),p(C)||(C=l.get(C)?.getRootNode()||document)}return C.customElements},h=E=>class{static get formAssociated(){return!0}constructor(){let A=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(A,HTMLElement.prototype);let k=f(A)||window.customElements,z=k._getDefinition(E);return z?S(A,z):a.set(A,k),A}connectedCallback(){let A=n.get(this);A?A.connectedCallback&&A.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,E,!0)}disconnectedCallback(){let A=n.get(this);A?A.disconnectedCallback&&A.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,E,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let A=n.get(this);A&&A.formAssociated&&A?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let A=n.get(this);A?.formAssociated&&A?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let A=n.get(this);A?.formAssociated&&A?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let A=n.get(this);A?.formAssociated&&A?.formStateRestoreCallback?.apply(this,arguments)}},y=(E,C,A)=>{if(C.size===0||A===void 0)return;let k=E.prototype.setAttribute;k&&(E.prototype.setAttribute=function(q,F){let m=q.toLowerCase();if(C.has(m)){let O=this.getAttribute(m);k.call(this,m,F),A.call(this,m,O,F)}else k.call(this,m,F)});let z=E.prototype.removeAttribute;z&&(E.prototype.removeAttribute=function(q){let F=q.toLowerCase();if(C.has(F)){let m=this.getAttribute(F);z.call(this,F),A.call(this,F,m,null)}else z.call(this,F)});let J=E.prototype.toggleAttribute;J&&(E.prototype.toggleAttribute=function(q,F){let m=q.toLowerCase();if(C.has(m)){let O=this.getAttribute(m);J.call(this,m,F);let D=this.getAttribute(m);A.call(this,m,O,D)}else J.call(this,m,F)})},v=E=>{let C=Object.getPrototypeOf(E);if(C!==window.HTMLElement)return C===r?Object.setPrototypeOf(E,window.HTMLElement):v(C)},S=(E,C,A=!1)=>{Object.setPrototypeOf(E,C.elementClass.prototype),n.set(E,C),d=E;try{new C.elementClass}catch{v(C.elementClass),new C.elementClass}C.attributeChangedCallback&&C.observedAttributes.forEach(k=>{E.hasAttribute(k)&&C.attributeChangedCallback.call(E,k,null,E.getAttribute(k))}),A&&C.connectedCallback&&E.isConnected&&C.connectedCallback.call(E)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(E){let C=w.apply(this,arguments);return E.customElements&&(C.customElements=E.customElements),C};let T=[document],I=(E,C,A=void 0)=>{let k=(A?Object.getPrototypeOf(A):E.prototype)[C];E.prototype[C]=function(){T.push(this);let z=k.apply(A||this,arguments);return z!==void 0&&l.set(z,this),T.pop(),z}};I(ShadowRoot,"createElement",document),I(ShadowRoot,"importNode",document),I(Element,"insertAdjacentHTML");let P=(E,C)=>{let A=Object.getOwnPropertyDescriptor(E.prototype,C);Object.defineProperty(E.prototype,C,{...A,set(k){T.push(this),A.set.call(this,k),T.pop()}})};if(P(Element,"innerHTML"),P(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let E=new WeakMap,C=HTMLElement.prototype.attachInternals,A=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...q){let F=C.call(this,...q);return E.set(F,this),F},A.forEach(q=>{let F=window.ElementInternals.prototype,m=F[q];F[q]=function(...O){let D=E.get(this);if(n.get(D).formAssociated===!0)return m?.call(this,...O);throw new DOMException(`Failed to execute ${m} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class k extends Array{constructor(F){super(...F),this._elements=F}get value(){return this._elements.find(F=>F.checked===!0)?.value||""}}class z{constructor(F){let m=new Map;F.forEach((O,D)=>{let K=O.getAttribute("name"),Q=m.get(K)||[];this[+D]=O,Q.push(O),m.set(K,Q)}),this.length=F.length,m.forEach((O,D)=>{O&&(O.length===1?this[D]=O[0]:this[D]=new k(O))})}namedItem(F){return this[F]}}let J=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let q=J.get.call(this,[]),F=[];for(let m of q){let O=n.get(m);(!O||O.formAssociated===!0)&&F.push(m)}return new z(F)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(i!==null)try{t.bind(window.customElements)(e,i,n)}catch(a){console.info(e,i,n,a)}}}var Nn={};rt(Nn,{CSSResult:()=>$r,LitElement:()=>Oe,ReactiveElement:()=>le,_$LE:()=>Zp,_$LH:()=>jp,adoptStyles:()=>li,css:()=>L,defaultConverter:()=>ci,getCompatibleStyle:()=>uo,html:()=>$,isServer:()=>Ph,noChange:()=>ke,notEqual:()=>wn,nothing:()=>U,render:()=>Tn,supportsAdoptingStyleSheets:()=>po,svg:()=>Vp,unsafeCSS:()=>xe});var Zo=globalThis,Yo=Zo.ShadowRoot&&(Zo.ShadyCSS===void 0||Zo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,el=Symbol(),tl=new WeakMap,qo=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==el)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Yo&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=tl.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&tl.set(e,t))}return t}toString(){return this.cssText}},rl=r=>new qo(typeof r=="string"?r:r+"",void 0,el);var bn=(r,t)=>{if(Yo)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let i=document.createElement("style"),n=Zo.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)}},Xo=Yo?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return rl(e)})(r):r;var{is:Ep,defineProperty:Ap,getOwnPropertyDescriptor:Rp,getOwnPropertyNames:_p,getOwnPropertySymbols:Tp,getPrototypeOf:Np}=Object,Jo=globalThis,ol=Jo.trustedTypes,Ip=ol?ol.emptyScript:"",$p=Jo.reactiveElementPolyfillSupport,io=(r,t)=>r,no={toAttribute(r,t){switch(t){case Boolean:r=r?Ip:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Qo=(r,t)=>!Ep(r,t),il={attribute:!0,type:String,converter:no,reflect:!1,hasChanged:Qo};Symbol.metadata??=Symbol("metadata"),Jo.litPropertyMetadata??=new WeakMap;var rr=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=il){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,e);n!==void 0&&Ap(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){let{get:n,set:a}=Rp(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??il}static _$Ei(){if(this.hasOwnProperty(io("elementProperties")))return;let t=Np(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(io("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(io("properties"))){let e=this.properties,i=[..._p(e),...Tp(e)];for(let n of i)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[i,n]of e)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[e,i]of this.elementProperties){let n=this._$Eu(e,i);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)e.unshift(Xo(n))}else t!==void 0&&e.push(Xo(t));return e}static _$Eu(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return bn(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:no).toAttribute(e,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let i=this.constructor,n=i._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:no;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??Qo)(n?a:this[t],e))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};rr.elementStyles=[],rr.shadowRootOptions={mode:"open"},rr[io("elementProperties")]=new Map,rr[io("finalized")]=new Map,$p?.({ReactiveElement:rr}),(Jo.reactiveElementVersions??=[]).push("2.0.2");var xn=globalThis,ti=xn.trustedTypes,nl=ti?ti.createPolicy("lit-html",{createHTML:r=>r}):void 0,Sn="$lit$",ve=`lit$${(Math.random()+"").slice(9)}$`,On="?"+ve,Pp=`<${On}>`,nr=document,ei=()=>nr.createComment(""),so=r=>r===null||typeof r!="object"&&typeof r!="function",pl=Array.isArray,ul=r=>pl(r)||typeof r?.[Symbol.iterator]=="function",vn=`[
|
|
1
|
+
"use strict";(()=>{var gp=Object.create;var gn=Object.defineProperty;var bp=Object.getOwnPropertyDescriptor;var vp=Object.getOwnPropertyNames;var xp=Object.getPrototypeOf,Sp=Object.prototype.hasOwnProperty;var Op=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),rt=(r,t)=>{for(var e in t)gn(r,e,{get:t[e],enumerable:!0})},Cp=(r,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of vp(t))!Sp.call(r,n)&&n!==e&&gn(r,n,{get:()=>t[n],enumerable:!(i=bp(t,n))||i.enumerable});return r};var Ep=(r,t,e)=>(e=r!=null?gp(xp(r)):{},Cp(t||!r||!r.__esModule?gn(e,"default",{value:r,enumerable:!0}):e,r));var td=Op((Ge,Qc)=>{var Di=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Mi=function(){function r(){this.fetch=!1,this.DOMException=Di.DOMException}return r.prototype=Di,new r}();(function(r){var t=function(e){var i=typeof r<"u"&&r||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(m){return m&&DataView.prototype.isPrototypeOf(m)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(m){return m&&s.indexOf(Object.prototype.toString.call(m))>-1};function d(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(m)||m==="")throw new TypeError('Invalid character in header field name: "'+m+'"');return m.toLowerCase()}function p(m){return typeof m!="string"&&(m=String(m)),m}function f(m){var O={next:function(){var D=m.shift();return{done:D===void 0,value:D}}};return n.iterable&&(O[Symbol.iterator]=function(){return O}),O}function h(m){this.map={},m instanceof h?m.forEach(function(O,D){this.append(D,O)},this):Array.isArray(m)?m.forEach(function(O){if(O.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+O.length);this.append(O[0],O[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(O){this.append(O,m[O])},this)}h.prototype.append=function(m,O){m=d(m),O=p(O);var D=this.map[m];this.map[m]=D?D+", "+O:O},h.prototype.delete=function(m){delete this.map[d(m)]},h.prototype.get=function(m){return m=d(m),this.has(m)?this.map[m]:null},h.prototype.has=function(m){return this.map.hasOwnProperty(d(m))},h.prototype.set=function(m,O){this.map[d(m)]=p(O)},h.prototype.forEach=function(m,O){for(var D in this.map)this.map.hasOwnProperty(D)&&m.call(O,this.map[D],D,this)},h.prototype.keys=function(){var m=[];return this.forEach(function(O,D){m.push(D)}),f(m)},h.prototype.values=function(){var m=[];return this.forEach(function(O){m.push(O)}),f(m)},h.prototype.entries=function(){var m=[];return this.forEach(function(O,D){m.push([D,O])}),f(m)},n.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);function y(m){if(!m._noBody){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}}function v(m){return new Promise(function(O,D){m.onload=function(){O(m.result)},m.onerror=function(){D(m.error)}})}function S(m){var O=new FileReader,D=v(O);return O.readAsArrayBuffer(m),D}function E(m){var O=new FileReader,D=v(O),K=/charset=([A-Za-z0-9_-]+)/.exec(m.type),Q=K?K[1]:"utf-8";return O.readAsText(m,Q),D}function I(m){for(var O=new Uint8Array(m),D=new Array(O.length),K=0;K<O.length;K++)D[K]=String.fromCharCode(O[K]);return D.join("")}function N(m){if(m.slice)return m.slice(0);var O=new Uint8Array(m.byteLength);return O.set(new Uint8Array(m)),O.buffer}function $(){return this.bodyUsed=!1,this._initBody=function(m){this.bodyUsed=this.bodyUsed,this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:n.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:n.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():n.arrayBuffer&&n.blob&&a(m)?(this._bodyArrayBuffer=N(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||l(m))?this._bodyArrayBuffer=N(m):this._bodyText=m=Object.prototype.toString.call(m):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof m=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var m=y(this);if(m)return m;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var m=y(this);return m||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var m=y(this);if(m)return m;if(this._bodyBlob)return E(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(I(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function C(m){var O=m.toUpperCase();return w.indexOf(O)>-1?O:m}function A(m,O){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');O=O||{};var D=O.body;if(m instanceof A){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,O.headers||(this.headers=new h(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!D&&m._bodyInit!=null&&(D=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=O.credentials||this.credentials||"same-origin",(O.headers||!this.headers)&&(this.headers=new h(O.headers)),this.method=C(O.method||this.method||"GET"),this.mode=O.mode||this.mode||null,this.signal=O.signal||this.signal||function(){if("AbortController"in i){var V=new AbortController;return V.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&D)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(D),(this.method==="GET"||this.method==="HEAD")&&(O.cache==="no-store"||O.cache==="no-cache")){var K=/([?&])_=[^&]*/;if(K.test(this.url))this.url=this.url.replace(K,"$1_="+new Date().getTime());else{var Q=/\?/;this.url+=(Q.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})};function k(m){var O=new FormData;return m.trim().split("&").forEach(function(D){if(D){var K=D.split("="),Q=K.shift().replace(/\+/g," "),V=K.join("=").replace(/\+/g," ");O.append(decodeURIComponent(Q),decodeURIComponent(V))}}),O}function z(m){var O=new h,D=m.replace(/\r?\n[\t ]+/g," ");return D.split("\r").map(function(K){return K.indexOf(`
|
|
2
|
+
`)===0?K.substr(1,K.length):K}).forEach(function(K){var Q=K.split(":"),V=Q.shift().trim();if(V){var se=Q.join(":").trim();try{O.append(V,se)}catch(oo){console.warn("Response "+oo.message)}}}),O}$.call(A.prototype);function J(m,O){if(!(this instanceof J))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(O||(O={}),this.type="default",this.status=O.status===void 0?200:O.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=O.statusText===void 0?"":""+O.statusText,this.headers=new h(O.headers),this.url=O.url||"",this._initBody(m)}$.call(J.prototype),J.prototype.clone=function(){return new J(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},J.error=function(){var m=new J(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var q=[301,302,303,307,308];J.redirect=function(m,O){if(q.indexOf(O)===-1)throw new RangeError("Invalid status code");return new J(null,{status:O,headers:{location:m}})},e.DOMException=i.DOMException;try{new e.DOMException}catch{e.DOMException=function(O,D){this.message=O,this.name=D;var K=Error(O);this.stack=K.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function F(m,O){return new Promise(function(D,K){var Q=new A(m,O);if(Q.signal&&Q.signal.aborted)return K(new e.DOMException("Aborted","AbortError"));var V=new XMLHttpRequest;function se(){V.abort()}V.onload=function(){var _t={statusText:V.statusText,headers:z(V.getAllResponseHeaders()||"")};Q.url.indexOf("file://")===0&&(V.status<200||V.status>599)?_t.status=200:_t.status=V.status,_t.url="responseURL"in V?V.responseURL:_t.headers.get("X-Request-URL");var er="response"in V?V.response:V.responseText;setTimeout(function(){D(new J(er,_t))},0)},V.onerror=function(){setTimeout(function(){K(new TypeError("Network request failed"))},0)},V.ontimeout=function(){setTimeout(function(){K(new TypeError("Network request timed out"))},0)},V.onabort=function(){setTimeout(function(){K(new e.DOMException("Aborted","AbortError"))},0)};function oo(_t){try{return _t===""&&i.location.href?i.location.href:_t}catch{return _t}}if(V.open(Q.method,oo(Q.url),!0),Q.credentials==="include"?V.withCredentials=!0:Q.credentials==="omit"&&(V.withCredentials=!1),"responseType"in V&&(n.blob?V.responseType="blob":n.arrayBuffer&&(V.responseType="arraybuffer")),O&&typeof O.headers=="object"&&!(O.headers instanceof h||i.Headers&&O.headers instanceof i.Headers)){var Qs=[];Object.getOwnPropertyNames(O.headers).forEach(function(_t){Qs.push(d(_t)),V.setRequestHeader(_t,p(O.headers[_t]))}),Q.headers.forEach(function(_t,er){Qs.indexOf(er)===-1&&V.setRequestHeader(er,_t)})}else Q.headers.forEach(function(_t,er){V.setRequestHeader(er,_t)});Q.signal&&(Q.signal.addEventListener("abort",se),V.onreadystatechange=function(){V.readyState===4&&Q.signal.removeEventListener("abort",se)}),V.send(typeof Q._bodyInit>"u"?null:Q._bodyInit)})}return F.polyfill=!0,i.fetch||(i.fetch=F,i.Headers=h,i.Request=A,i.Response=J),e.Headers=h,e.Request=A,e.Response=J,e.fetch=F,e}({})})(Mi);Mi.fetch.ponyfill=!0;delete Mi.fetch.polyfill;var Gr=Di.fetch?Di:Mi;Ge=Gr.fetch;Ge.default=Gr.fetch;Ge.fetch=Gr.fetch;Ge.Headers=Gr.Headers;Ge.Request=Gr.Request;Ge.Response=Gr.Response;Qc.exports=Ge});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,t=window.customElements.define,e=window.customElements.get,i=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(w,C){if(w=w.toLowerCase(),this._getDefinition(w)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${w}" has already been used with this registry`);if(this._definitionsByClass.get(C)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let A=C.prototype.attributeChangedCallback,k=new Set(C.observedAttributes||[]);y(C,k,A);let z={elementClass:C,connectedCallback:C.prototype.connectedCallback,disconnectedCallback:C.prototype.disconnectedCallback,adoptedCallback:C.prototype.adoptedCallback,attributeChangedCallback:A,formAssociated:C.formAssociated,formAssociatedCallback:C.prototype.formAssociatedCallback,formDisabledCallback:C.prototype.formDisabledCallback,formResetCallback:C.prototype.formResetCallback,formStateRestoreCallback:C.prototype.formStateRestoreCallback,observedAttributes:k};this._definitionsByTag.set(w,z),this._definitionsByClass.set(C,z);let J=e.call(i,w);J||(J=h(w),t.call(i,w,J)),this===window.customElements&&(s.set(C,z),z.standInClass=J);let q=this._awaitingUpgrade.get(w);if(q){this._awaitingUpgrade.delete(w);for(let m of q)a.delete(m),S(m,z,!0)}let F=this._whenDefinedPromises.get(w);return F!==void 0&&(F.resolve(C),this._whenDefinedPromises.delete(w)),C}upgrade(){I.push(this),i.upgrade.apply(i,arguments),I.pop()}get(w){return this._definitionsByTag.get(w)?.elementClass}_getDefinition(w){return this._definitionsByTag.get(w)}whenDefined(w){let C=this._getDefinition(w);if(C!==void 0)return Promise.resolve(C.elementClass);let A=this._whenDefinedPromises.get(w);return A===void 0&&(A={},A.promise=new Promise(k=>A.resolve=k),this._whenDefinedPromises.set(w,A)),A.promise}_upgradeWhenDefined(w,C,A){let k=this._awaitingUpgrade.get(C);k||this._awaitingUpgrade.set(C,k=new Set),A?k.add(w):k.delete(w)}};let d;window.HTMLElement=function(){let C=d;if(C)return d=void 0,C;let A=s.get(this.constructor);if(!A)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return C=Reflect.construct(r,[],A.standInClass),Object.setPrototypeOf(C,this.constructor.prototype),n.set(C,A),C},window.HTMLElement.prototype=r.prototype;let p=w=>w===document||w instanceof ShadowRoot,f=w=>{let C=w.getRootNode();if(!p(C)){let A=I[I.length-1];if(A instanceof CustomElementRegistry)return A;C=A.getRootNode(),p(C)||(C=l.get(C)?.getRootNode()||document)}return C.customElements},h=w=>class{static get formAssociated(){return!0}constructor(){let A=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(A,HTMLElement.prototype);let k=f(A)||window.customElements,z=k._getDefinition(w);return z?S(A,z):a.set(A,k),A}connectedCallback(){let A=n.get(this);A?A.connectedCallback&&A.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!0)}disconnectedCallback(){let A=n.get(this);A?A.disconnectedCallback&&A.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let A=n.get(this);A&&A.formAssociated&&A?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let A=n.get(this);A?.formAssociated&&A?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let A=n.get(this);A?.formAssociated&&A?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let A=n.get(this);A?.formAssociated&&A?.formStateRestoreCallback?.apply(this,arguments)}},y=(w,C,A)=>{if(C.size===0||A===void 0)return;let k=w.prototype.setAttribute;k&&(w.prototype.setAttribute=function(q,F){let m=q.toLowerCase();if(C.has(m)){let O=this.getAttribute(m);k.call(this,m,F),A.call(this,m,O,F)}else k.call(this,m,F)});let z=w.prototype.removeAttribute;z&&(w.prototype.removeAttribute=function(q){let F=q.toLowerCase();if(C.has(F)){let m=this.getAttribute(F);z.call(this,F),A.call(this,F,m,null)}else z.call(this,F)});let J=w.prototype.toggleAttribute;J&&(w.prototype.toggleAttribute=function(q,F){let m=q.toLowerCase();if(C.has(m)){let O=this.getAttribute(m);J.call(this,m,F);let D=this.getAttribute(m);A.call(this,m,O,D)}else J.call(this,m,F)})},v=w=>{let C=Object.getPrototypeOf(w);if(C!==window.HTMLElement)return C===r?Object.setPrototypeOf(w,window.HTMLElement):v(C)},S=(w,C,A=!1)=>{Object.setPrototypeOf(w,C.elementClass.prototype),n.set(w,C),d=w;try{new C.elementClass}catch{v(C.elementClass),new C.elementClass}C.attributeChangedCallback&&C.observedAttributes.forEach(k=>{w.hasAttribute(k)&&C.attributeChangedCallback.call(w,k,null,w.getAttribute(k))}),A&&C.connectedCallback&&w.isConnected&&C.connectedCallback.call(w)},E=Element.prototype.attachShadow;Element.prototype.attachShadow=function(w){let C=E.apply(this,arguments);return w.customElements&&(C.customElements=w.customElements),C};let I=[document],N=(w,C,A=void 0)=>{let k=(A?Object.getPrototypeOf(A):w.prototype)[C];w.prototype[C]=function(){I.push(this);let z=k.apply(A||this,arguments);return z!==void 0&&l.set(z,this),I.pop(),z}};N(ShadowRoot,"createElement",document),N(ShadowRoot,"importNode",document),N(Element,"insertAdjacentHTML");let $=(w,C)=>{let A=Object.getOwnPropertyDescriptor(w.prototype,C);Object.defineProperty(w.prototype,C,{...A,set(k){I.push(this),A.set.call(this,k),I.pop()}})};if($(Element,"innerHTML"),$(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let w=new WeakMap,C=HTMLElement.prototype.attachInternals,A=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...q){let F=C.call(this,...q);return w.set(F,this),F},A.forEach(q=>{let F=window.ElementInternals.prototype,m=F[q];F[q]=function(...O){let D=w.get(this);if(n.get(D).formAssociated===!0)return m?.call(this,...O);throw new DOMException(`Failed to execute ${m} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class k extends Array{constructor(F){super(...F),this._elements=F}get value(){return this._elements.find(F=>F.checked===!0)?.value||""}}class z{constructor(F){let m=new Map;F.forEach((O,D)=>{let K=O.getAttribute("name"),Q=m.get(K)||[];this[+D]=O,Q.push(O),m.set(K,Q)}),this.length=F.length,m.forEach((O,D)=>{O&&(O.length===1?this[D]=O[0]:this[D]=new k(O))})}namedItem(F){return this[F]}}let J=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let q=J.get.call(this,[]),F=[];for(let m of q){let O=n.get(m);(!O||O.formAssociated===!0)&&F.push(m)}return new z(F)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(i!==null)try{t.bind(window.customElements)(e,i,n)}catch(a){console.info(e,i,n,a)}}}var Tn={};rt(Tn,{CSSResult:()=>Pr,LitElement:()=>Oe,ReactiveElement:()=>le,_$LE:()=>Zp,_$LH:()=>jp,adoptStyles:()=>li,css:()=>L,defaultConverter:()=>ci,getCompatibleStyle:()=>uo,html:()=>P,isServer:()=>Lh,noChange:()=>ke,notEqual:()=>En,nothing:()=>U,render:()=>In,supportsAdoptingStyleSheets:()=>po,svg:()=>Vp,unsafeCSS:()=>xe});var Zo=globalThis,Yo=Zo.ShadowRoot&&(Zo.ShadyCSS===void 0||Zo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,el=Symbol(),tl=new WeakMap,qo=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==el)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Yo&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=tl.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&tl.set(e,t))}return t}toString(){return this.cssText}},rl=r=>new qo(typeof r=="string"?r:r+"",void 0,el);var bn=(r,t)=>{if(Yo)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let i=document.createElement("style"),n=Zo.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)}},Xo=Yo?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return rl(e)})(r):r;var{is:wp,defineProperty:Ap,getOwnPropertyDescriptor:Rp,getOwnPropertyNames:_p,getOwnPropertySymbols:Ip,getPrototypeOf:Tp}=Object,Jo=globalThis,ol=Jo.trustedTypes,Np=ol?ol.emptyScript:"",Pp=Jo.reactiveElementPolyfillSupport,io=(r,t)=>r,no={toAttribute(r,t){switch(t){case Boolean:r=r?Np:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Qo=(r,t)=>!wp(r,t),il={attribute:!0,type:String,converter:no,reflect:!1,hasChanged:Qo};Symbol.metadata??=Symbol("metadata"),Jo.litPropertyMetadata??=new WeakMap;var rr=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=il){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,e);n!==void 0&&Ap(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){let{get:n,set:a}=Rp(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??il}static _$Ei(){if(this.hasOwnProperty(io("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(io("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(io("properties"))){let e=this.properties,i=[..._p(e),...Ip(e)];for(let n of i)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[i,n]of e)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[e,i]of this.elementProperties){let n=this._$Eu(e,i);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)e.unshift(Xo(n))}else t!==void 0&&e.push(Xo(t));return e}static _$Eu(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return bn(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:no).toAttribute(e,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let i=this.constructor,n=i._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:no;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??Qo)(n?a:this[t],e))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};rr.elementStyles=[],rr.shadowRootOptions={mode:"open"},rr[io("elementProperties")]=new Map,rr[io("finalized")]=new Map,Pp?.({ReactiveElement:rr}),(Jo.reactiveElementVersions??=[]).push("2.0.2");var xn=globalThis,ti=xn.trustedTypes,nl=ti?ti.createPolicy("lit-html",{createHTML:r=>r}):void 0,Sn="$lit$",ve=`lit$${(Math.random()+"").slice(9)}$`,On="?"+ve,$p=`<${On}>`,nr=document,ei=()=>nr.createComment(""),so=r=>r===null||typeof r!="object"&&typeof r!="function",pl=Array.isArray,ul=r=>pl(r)||typeof r?.[Symbol.iterator]=="function",vn=`[
|
|
3
3
|
\f\r]`,ao=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,al=/-->/g,sl=/>/g,or=RegExp(`>|${vn}(?:([^\\s"'>=/]+)(${vn}*=${vn}*(?:[^
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ll=/'/g,cl=/"/g,fl=/^(?:script|style|textarea|title)$/i,hl=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),ml=hl(1),yl=hl(2),jt=Symbol.for("lit-noChange"),mt=Symbol.for("lit-nothing"),dl=new WeakMap,ir=nr.createTreeWalker(nr,129);function gl(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return nl!==void 0?nl.createHTML(t):t}var bl=(r,t)=>{let e=r.length-1,i=[],n,a=t===2?"<svg>":"",s=ao;for(let l=0;l<e;l++){let d=r[l],p,f,h=-1,y=0;for(;y<d.length&&(s.lastIndex=y,f=s.exec(d),f!==null);)y=s.lastIndex,s===ao?f[1]==="!--"?s=al:f[1]!==void 0?s=sl:f[2]!==void 0?(fl.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=or):f[3]!==void 0&&(s=or):s===or?f[0]===">"?(s=n??ao,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?or:f[3]==='"'?cl:ll):s===cl||s===ll?s=or:s===al||s===sl?s=ao:(s=or,n=void 0);let v=s===or&&r[l+1].startsWith("/>")?" ":"";a+=s===ao?d+Pp:h>=0?(i.push(p),d.slice(0,h)+Sn+d.slice(h)+ve+v):d+ve+(h===-2?l:v)}return[gl(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),i]},lo=class r{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,f]=bl(t,e);if(this.el=r.createElement(p,i),ir.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=ir.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Sn)){let y=f[s++],v=n.getAttribute(h).split(ve),S=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?oi:S[1]==="?"?ii:S[1]==="@"?ni:sr}),n.removeAttribute(h)}else h.startsWith(ve)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(fl.test(n.tagName)){let h=n.textContent.split(ve),y=h.length-1;if(y>0){n.textContent=ti?ti.emptyScript:"";for(let v=0;v<y;v++)n.append(h[v],ei()),ir.nextNode(),d.push({type:2,index:++a});n.append(h[y],ei())}}}else if(n.nodeType===8)if(n.data===On)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(ve,h+1))!==-1;)d.push({type:7,index:a}),h+=ve.length-1}a++}}static createElement(t,e){let i=nr.createElement("template");return i.innerHTML=t,i}};function ar(r,t,e=r,i){if(t===jt)return t;let n=i!==void 0?e._$Co?.[i]:e._$Cl,a=so(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,i)),i!==void 0?(e._$Co??=[])[i]=n:e._$Cl=n),n!==void 0&&(t=ar(r,n._$AS(r,t.values),n,i)),t}var ri=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,n=(t?.creationScope??nr).importNode(e,!0);ir.currentNode=n;let a=ir.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new co(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new ai(a,this,t)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=ir.nextNode(),s++)}return ir.currentNode=nr,n}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},co=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=mt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ar(this,t,e),so(t)?t===mt||t==null||t===""?(this._$AH!==mt&&this._$AR(),this._$AH=mt):t!==this._$AH&&t!==jt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ul(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!==mt&&so(this._$AH)?this._$AA.nextSibling.data=t:this.$(nr.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=lo.createElement(gl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new ri(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=dl.get(t.strings);return e===void 0&&dl.set(t.strings,e=new lo(t)),e}T(t){pl(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,n=0;for(let a of t)n===e.length?e.push(i=new r(this.k(ei()),this.k(ei()),this,this.options)):i=e[n],i._$AI(a),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},sr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,a){this.type=1,this._$AH=mt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=mt}_$AI(t,e=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=ar(this,t,e,0),s=!so(t)||t!==this._$AH&&t!==jt,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=ar(this,l[i+d],e,d),p===jt&&(p=this._$AH[d]),s||=!so(p)||p!==this._$AH[d],p===mt?t=mt:t!==mt&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(t)}O(t){t===mt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},oi=class extends sr{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===mt?void 0:t}},ii=class extends sr{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==mt)}},ni=class extends sr{constructor(t,e,i,n,a){super(t,e,i,n,a),this.type=5}_$AI(t,e=this){if((t=ar(this,t,e,0)??mt)===jt)return;let i=this._$AH,n=t===mt&&i!==mt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==mt&&(i===mt||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ai=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ar(this,t)}},vl={j:Sn,P:ve,A:On,C:1,M:bl,L:ri,R:ul,V:ar,D:co,I:sr,H:ii,N:ni,U:oi,B:ai},Lp=xn.litHtmlPolyfillSupport;Lp?.(lo,co),(xn.litHtmlVersions??=[]).push("3.1.0");var si=globalThis,po=si.ShadowRoot&&(si.ShadyCSS===void 0||si.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Cn=Symbol(),xl=new WeakMap,$r=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Cn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(po&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=xl.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&xl.set(e,t))}return t}toString(){return this.cssText}},xe=r=>new $r(typeof r=="string"?r:r+"",void 0,Cn),L=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((i,n,a)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[a+1],r[0]);return new $r(e,r,Cn)},li=(r,t)=>{if(po)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let i=document.createElement("style"),n=si.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)}},uo=po?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return xe(e)})(r):r;var{is:kp,defineProperty:Dp,getOwnPropertyDescriptor:Mp,getOwnPropertyNames:Fp,getOwnPropertySymbols:Bp,getPrototypeOf:Up}=Object,di=globalThis,Sl=di.trustedTypes,Wp=Sl?Sl.emptyScript:"",Hp=di.reactiveElementPolyfillSupport,fo=(r,t)=>r,ci={toAttribute(r,t){switch(t){case Boolean:r=r?Wp:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},wn=(r,t)=>!kp(r,t),Ol={attribute:!0,type:String,converter:ci,reflect:!1,hasChanged:wn};Symbol.metadata??=Symbol("metadata"),di.litPropertyMetadata??=new WeakMap;var le=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ol){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,e);n!==void 0&&Dp(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){let{get:n,set:a}=Mp(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ol}static _$Ei(){if(this.hasOwnProperty(fo("elementProperties")))return;let t=Up(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(fo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(fo("properties"))){let e=this.properties,i=[...Fp(e),...Bp(e)];for(let n of i)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[i,n]of e)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[e,i]of this.elementProperties){let n=this._$Eu(e,i);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)e.unshift(uo(n))}else t!==void 0&&e.push(uo(t));return e}static _$Eu(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return li(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:ci).toAttribute(e,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let i=this.constructor,n=i._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:ci;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??wn)(n?a:this[t],e))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};le.elementStyles=[],le.shadowRootOptions={mode:"open"},le[fo("elementProperties")]=new Map,le[fo("finalized")]=new Map,Hp?.({ReactiveElement:le}),(di.reactiveElementVersions??=[]).push("2.0.2");var An=globalThis,pi=An.trustedTypes,Cl=pi?pi.createPolicy("lit-html",{createHTML:r=>r}):void 0,Rn="$lit$",Se=`lit$${(Math.random()+"").slice(9)}$`,_n="?"+Se,zp=`<${_n}>`,dr=document,mo=()=>dr.createComment(""),yo=r=>r===null||typeof r!="object"&&typeof r!="function",Tl=Array.isArray,Nl=r=>Tl(r)||typeof r?.[Symbol.iterator]=="function",En=`[
|
|
5
|
-
\f\r]`,ho=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
6
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Al=/'/g,Rl=/"/g,Il=/^(?:script|style|textarea|title)$/i,$l=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),$=$l(1),Vp=$l(2),ke=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),_l=new WeakMap,cr=dr.createTreeWalker(dr,129);function Pl(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Cl!==void 0?Cl.createHTML(t):t}var Ll=(r,t)=>{let e=r.length-1,i=[],n,a=t===2?"<svg>":"",s=ho;for(let l=0;l<e;l++){let d=r[l],p,f,h=-1,y=0;for(;y<d.length&&(s.lastIndex=y,f=s.exec(d),f!==null);)y=s.lastIndex,s===ho?f[1]==="!--"?s=wl:f[1]!==void 0?s=El:f[2]!==void 0?(Il.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=lr):f[3]!==void 0&&(s=lr):s===lr?f[0]===">"?(s=n??ho,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?lr:f[3]==='"'?Rl:Al):s===Rl||s===Al?s=lr:s===wl||s===El?s=ho:(s=lr,n=void 0);let v=s===lr&&r[l+1].startsWith("/>")?" ":"";a+=s===ho?d+zp:h>=0?(i.push(p),d.slice(0,h)+Rn+d.slice(h)+Se+v):d+Se+(h===-2?l:v)}return[Pl(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),i]},go=class r{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,f]=Ll(t,e);if(this.el=r.createElement(p,i),cr.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=cr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Rn)){let y=f[s++],v=n.getAttribute(h).split(Se),S=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?fi:S[1]==="?"?hi:S[1]==="@"?mi:ur}),n.removeAttribute(h)}else h.startsWith(Se)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(Il.test(n.tagName)){let h=n.textContent.split(Se),y=h.length-1;if(y>0){n.textContent=pi?pi.emptyScript:"";for(let v=0;v<y;v++)n.append(h[v],mo()),cr.nextNode(),d.push({type:2,index:++a});n.append(h[y],mo())}}}else if(n.nodeType===8)if(n.data===_n)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(Se,h+1))!==-1;)d.push({type:7,index:a}),h+=Se.length-1}a++}}static createElement(t,e){let i=dr.createElement("template");return i.innerHTML=t,i}};function pr(r,t,e=r,i){if(t===ke)return t;let n=i!==void 0?e._$Co?.[i]:e._$Cl,a=yo(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,i)),i!==void 0?(e._$Co??=[])[i]=n:e._$Cl=n),n!==void 0&&(t=pr(r,n._$AS(r,t.values),n,i)),t}var ui=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,n=(t?.creationScope??dr).importNode(e,!0);cr.currentNode=n;let a=cr.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new Pr(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new yi(a,this,t)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=cr.nextNode(),s++)}return cr.currentNode=dr,n}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},Pr=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=pr(this,t,e),yo(t)?t===U||t==null||t===""?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==ke&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Nl(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!==U&&yo(this._$AH)?this._$AA.nextSibling.data=t:this.$(dr.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=go.createElement(Pl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new ui(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=_l.get(t.strings);return e===void 0&&_l.set(t.strings,e=new go(t)),e}T(t){Tl(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,n=0;for(let a of t)n===e.length?e.push(i=new r(this.k(mo()),this.k(mo()),this,this.options)):i=e[n],i._$AI(a),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},ur=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,a){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=U}_$AI(t,e=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=pr(this,t,e,0),s=!yo(t)||t!==this._$AH&&t!==ke,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=pr(this,l[i+d],e,d),p===ke&&(p=this._$AH[d]),s||=!yo(p)||p!==this._$AH[d],p===U?t=U:t!==U&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(t)}O(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},fi=class extends ur{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===U?void 0:t}},hi=class extends ur{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==U)}},mi=class extends ur{constructor(t,e,i,n,a){super(t,e,i,n,a),this.type=5}_$AI(t,e=this){if((t=pr(this,t,e,0)??U)===ke)return;let i=this._$AH,n=t===U&&i!==U||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==U&&(i===U||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},yi=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){pr(this,t)}},jp={j:Rn,P:Se,A:_n,C:1,M:Ll,L:ui,R:Nl,V:pr,D:Pr,I:ur,H:hi,N:mi,U:fi,B:yi},Gp=An.litHtmlPolyfillSupport;Gp?.(go,Pr),(An.litHtmlVersions??=[]).push("3.1.0");var Tn=(r,t,e)=>{let i=e?.renderBefore??t,n=i._$litPart$;if(n===void 0){let a=e?.renderBefore??null;i._$litPart$=n=new Pr(t.insertBefore(mo(),a),a,void 0,e??{})}return n._$AI(r),n};var Oe=class extends le{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Tn(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ke}};Oe._$litElement$=!0,Oe.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Oe});var Kp=globalThis.litElementPolyfillSupport;Kp?.({LitElement:Oe});var Zp={_$AK:(r,t,e)=>{r._$AK(t,e)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Ph=!1;var $n={};rt($n,{customElement:()=>qp,eventOptions:()=>Ce,property:()=>g,query:()=>Y,queryAll:()=>Jp,queryAssignedElements:()=>In,queryAssignedNodes:()=>bo,queryAsync:()=>Qp,standardProperty:()=>kl,state:()=>W});var qp=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};var Yp={attribute:!0,type:String,converter:no,reflect:!1,hasChanged:Qo},kl=(r=Yp,t,e)=>{let{kind:i,metadata:n}=e,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(e.name,r),i==="accessor"){let{name:s}=e;return{set(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,d,r)},init(l){return l!==void 0&&this.C(s,void 0,r),l}}}if(i==="setter"){let{name:s}=e;return function(l){let d=this[s];t.call(this,l),this.requestUpdate(s,d,r)}}throw Error("Unsupported decorator location: "+i)};function g(r){return(t,e)=>typeof e=="object"?kl(r,t,e):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,s?{...i,wrapped:!0}:i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,t,e)}function W(r){return g({...r,state:!0,attribute:!1})}function Ce(r){return(t,e)=>{let i=typeof t=="function"?t:t[e];Object.assign(i,r)}}var Qt=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);function Y(r,t){return(e,i,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(t){let{get:s,set:l}=typeof i=="object"?e:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return Qt(e,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Qt(e,i,{get(){return a(this)}})}}var Xp;function Jp(r){return(t,e)=>Qt(t,e,{get(){return(this.renderRoot??(Xp??=document.createDocumentFragment())).querySelectorAll(r)}})}function Qp(r){return(t,e)=>Qt(t,e,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function In(r){return(t,e)=>{let{slot:i,selector:n}=r??{},a="slot"+(i?`[name=${i}]`:":not([name])");return Qt(t,e,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function bo(r){return(t,e)=>{let{slot:i}=r??{},n="slot"+(i?`[name=${i}]`:":not([name])");return Qt(t,e,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var Ln={};rt(Ln,{repeat:()=>Pn});var De={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Me=r=>(...t)=>({_$litDirective$:r,values:t}),ce=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{D:tu}=vl;var Dl=()=>document.createComment(""),Lr=(r,t,e)=>{let i=r._$AA.parentNode,n=t===void 0?r._$AB:t._$AA;if(e===void 0){let a=i.insertBefore(Dl(),n),s=i.insertBefore(Dl(),n);e=new tu(a,s,r,r.options)}else{let a=e._$AB.nextSibling,s=e._$AM,l=s!==r;if(l){let d;e._$AQ?.(r),e._$AM=r,e._$AP!==void 0&&(d=r._$AU)!==s._$AU&&e._$AP(d)}if(a!==n||l){let d=e._$AA;for(;d!==a;){let p=d.nextSibling;i.insertBefore(d,n),d=p}}}return e},Fe=(r,t,e=r)=>(r._$AI(t,e),r),eu={},Ml=(r,t=eu)=>r._$AH=t,Fl=r=>r._$AH,gi=r=>{r._$AP?.(!1,!0);let t=r._$AA,e=r._$AB.nextSibling;for(;t!==e;){let i=t.nextSibling;t.remove(),t=i}};var Bl=(r,t,e)=>{let i=new Map;for(let n=t;n<=e;n++)i.set(r[n],n);return i},Pn=Me(class extends ce{constructor(r){if(super(r),r.type!==De.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,t,e){let i;e===void 0?e=t:t!==void 0&&(i=t);let n=[],a=[],s=0;for(let l of r)n[s]=i?i(l,s):s,a[s]=e(l,s),s++;return{values:a,keys:n}}render(r,t,e){return this.ht(r,t,e).values}update(r,[t,e,i]){let n=Fl(r),{values:a,keys:s}=this.ht(t,e,i);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],d=[],p,f,h=0,y=n.length-1,v=0,S=a.length-1;for(;h<=y&&v<=S;)if(n[h]===null)h++;else if(n[y]===null)y--;else if(l[h]===s[v])d[v]=Fe(n[h],a[v]),h++,v++;else if(l[y]===s[S])d[S]=Fe(n[y],a[S]),y--,S--;else if(l[h]===s[S])d[S]=Fe(n[h],a[S]),Lr(r,d[S+1],n[h]),h++,S--;else if(l[y]===s[v])d[v]=Fe(n[y],a[v]),Lr(r,n[h],n[y]),y--,v++;else if(p===void 0&&(p=Bl(s,v,S),f=Bl(l,h,y)),p.has(l[h]))if(p.has(l[y])){let w=f.get(s[v]),T=w!==void 0?n[w]:null;if(T===null){let I=Lr(r,n[h]);Fe(I,a[v]),d[v]=I}else d[v]=Fe(T,a[v]),Lr(r,n[h],T),n[w]=null;v++}else gi(n[y]),y--;else gi(n[h]),h++;for(;v<=S;){let w=Lr(r,d[S+1]);Fe(w,a[v]),d[v++]=w}for(;h<=y;){let w=n[h++];w!==null&&gi(w)}return this.dt=s,Ml(r,d),jt}});var kn={};rt(kn,{classMap:()=>Rt});var Rt=Me(class extends ce{constructor(r){if(super(r),r.type!==De.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in t)t[i]&&!this.st?.has(i)&&this.it.add(i);return this.render(t)}let e=r.element.classList;for(let i of this.it)i in t||(e.remove(i),this.it.delete(i));for(let i in t){let n=!!t[i];n===this.it.has(i)||this.st?.has(i)||(n?(e.add(i),this.it.add(i)):(e.remove(i),this.it.delete(i)))}return jt}});var Dn={};rt(Dn,{styleMap:()=>ou});var Ul="important",ru=" !"+Ul,ou=Me(class extends ce{constructor(r){if(super(r),r.type!==De.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((t,e)=>{let i=r[e];return i==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[t]){let{style:e}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(t)),this.render(t);for(let i of this.ut)t[i]==null&&(this.ut.delete(i),i.includes("-")?e.removeProperty(i):e[i]=null);for(let i in t){let n=t[i];if(n!=null){this.ut.add(i);let a=typeof n=="string"&&n.endsWith(ru);i.includes("-")||a?e.setProperty(i,a?n.slice(0,-11):n,a?Ul:""):e[i]=n}}return jt}});var Fn={};rt(Fn,{UnsafeHTMLDirective:()=>kr,unsafeHTML:()=>Mn});var kr=class extends ce{constructor(t){if(super(t),this.et=mt,t.type!==De.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===mt||t==null)return this.vt=void 0,this.et=t;if(t===jt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;let e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};kr.directiveName="unsafeHTML",kr.resultType=1;var Mn=Me(kr);var Vn={};rt(Vn,{CacheRegistry:()=>de,ClearCacheEvent:()=>vo});var Un={};rt(Un,{CancelablePromise:()=>Dr,CanceledPromiseError:()=>fr,cancelable:()=>Bn});var fr=class extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}},Dr=class extends Promise{constructor(t){super((e,i)=>t(n=>{this.isCanceled?i(new fr("Promise has been canceled",n)):e(n)},n=>{this.isCanceled?i(new fr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Bn=r=>new Dr((t,e)=>r.then(t).catch(e));var zn={};rt(zn,{FtNotificationEvent:()=>Mt,PostResizeEvent:()=>Hn,PreResizeEvent:()=>Wn,WithEventBus:()=>hr,withEventBus:()=>Wl});var Mt=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},Wn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Hn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function Wl(r,t){return class extends r{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(e,i,n){this.eventBus.addEventListener(e,i,n)}dispatchEvent(e){return this.eventBus.dispatchEvent(e)}removeEventListener(e,i,n){this.eventBus.removeEventListener(e,i,n)}}}var hr=class extends Wl(Object){};var vo=class extends CustomEvent{constructor(t){super("clear-cache",{detail:{clearedKeys:t}})}},de=class extends hr{constructor(){super(...arguments),this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(t=!0){let e=[];for(let i in this.content)this.clear(i,!1)!=null&&e.push(i);t&&e.length>0&&this.dispatchEvent(new vo(e))}clear(t,e=!0){if(!this.finalContent.has(t))return this.forceClear(t),e&&this.dispatchEvent(new vo([t])),t}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof Dr&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){this.clearTimeouts[t]!=null&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,async()=>e),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,async()=>e),this.content[t]=e}async get(t,e,i){if(this.content[t]===void 0){if(e=e??this.loaders[t],e==null)throw new Error("Unknown cache key "+t);let n=Bn(e());return this.content[t]=n,n.then(a=>(this.content[t]=a,i!=null&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout(()=>this.clear(t),i)),a))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return t!=null&&!(t instanceof Promise)&&!(t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return this.content[t]!=null}resolvedKeys(){return Object.keys(this.content).filter(t=>this.isResolvedValue(this.content[t]))}resolvedValues(){return Object.values(this.content).filter(t=>this.isResolvedValue(t))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var jn={};rt(jn,{ClusteringHelper:()=>xo});var xo=class r{constructor(t,e,i,n){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=i,this.metadataDescriptors=n}static extractResultMetadata(t,e){var i,n;let a=((n=(i=t?.map)!==null&&i!==void 0?i:t?.document)!==null&&n!==void 0?n:t?.topic).metadata;return e==null?r.flattenMetadata(a):r.flattenMetadata(a.find(s=>s.key===e))}static flattenMetadata(t){if(Array.isArray(t))return t.map(i=>r.flattenMetadata(i)).filter(i=>i!=null);let e=t?.hierarchicalValues!=null&&t.hierarchicalValues.length>0;if(!(t==null||t.values.length==0&&!e))if(e){let i=[],n=[];return t.hierarchicalValues.forEach(a=>{i.push(a.join(" > ")),a.length>2?n.push(`... > ${a[a.length-1]}`):n.push(a.join(" > "))}),{key:t.key,label:t.label,value:i.join(", "),displayValue:n.join(", ")}}else{let i=t.values.join(", ");return{key:t.key,label:t.label,value:i,displayValue:i}}}computeClustersItemsForMetadata(t,e,i="No value"){var n,a;let s=r.extractResultMetadata(this.selectedResult,t),l=(n=s?.label)!==null&&n!==void 0?n:(a=this.getMetadataDescriptor(t))===null||a===void 0?void 0:a.label;return this.allResults.map(p=>r.extractResultMetadata(p,t)).map(p=>p??{key:t,label:l,value:void 0,displayValue:i}).filter(p=>p.value!=s?.value).filter((p,f,h)=>h.findIndex(y=>y.value===p.value)===f).map(p=>({result:this.findBestResultForMetadataValue(t,p.value),metadata:p})).sort((p,f)=>this.compareMetadata(p.metadata.value,f.metadata.value,t,e))}compareMetadata(t,e,i,n){if(t==null)return-1;if(e==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=t.localeCompare(e,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(e=>t==e.key)}findBestResultForMetadataValue(t,e){let i=this.allResults.filter(d=>{var p;return((p=r.extractResultMetadata(d,t))===null||p===void 0?void 0:p.value)==e}),a=[...r.extractResultMetadata(this.selectedResult).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==t)],s,l=-1;for(let d of i){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(t,e){return r.extractResultMetadata(t).filter(i=>e.some(n=>n.key===i.key&&n.value===i.value)).length}};var Gn={};rt(Gn,{Debouncer:()=>st});var st=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((e,i)=>{this.resolvePromise=e,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,e;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(e=this.resolvePromise)!==null&&e!==void 0?e:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var qn={};rt(qn,{customElement:()=>X,isNumber:()=>zl,jsonProperty:()=>pe,optionalNumberProperty:()=>lu});var Zn={};rt(Zn,{dateReviver:()=>iu,deepEqual:()=>te,delay:()=>bi,eventPathContainsMatchingElement:()=>au,flatDeep:()=>Hl,hasChanged:()=>Oo,last:()=>su,minmax:()=>Co,parseDate:()=>vi,unslotText:()=>xi,waitFor:()=>So,waitUntil:()=>Kn});var bi=r=>new Promise(t=>setTimeout(t,r));async function Kn(r,t=10,e=2e4){await So(async()=>await r()||void 0,t,e)}async function So(r,t=10,e=2e4){let i=await r(),n,a;for(n=a=performance.now();i==null&&(!e||a-n<e);)await bi(t),i=await r(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Hl(r,t){return r.flatMap(e=>[e,...Hl(t(e),t)])}function iu(...r){return function(t,e){return r.includes(t)?vi(e):e}}function vi(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,e,i,n)=>e+i+":"+n),new Date(r)}function nu(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var e,i,n;if(Array.isArray(r)){if(e=r.length,e!=t.length)return!1;for(i=e;i--!==0;)if(!te(r[i],t[i]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(i of r.entries())if(!t.has(i[0]))return!1;for(i of r.entries())if(!te(i[1],t.get(i[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(i of r.entries())if(!t.has(i[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(n=Object.keys(r),e=n.length,e!==Object.keys(t).length)return!1;for(i=e;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=e;i--!==0;){var a=n[i];if(!te(r[a],t[a]))return!1}return!0}return r!==r&&t!==t}function te(r,t){try{return nu(r,t)}catch{return!1}}function Oo(r,t){return!te(r,t)}function au(r,t,e=window.document.body){if(t.length>0){let i=r.composedPath();for(let n of i){if(n===e)return!1;if(n.matches&&t.some(a=>n.matches(a)))return!0}}return!1}function Co(r,t,e){return Math.min(Math.max(r,t),e)}function su(r){return r[r.length-1]}function xi(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(t=>xi(t)).join(""):r?.textContent||""}var X=r=>t=>{window.customElements.get(r)||window.customElements.define(r,t)};function pe(r,t){let e=()=>JSON.parse(JSON.stringify(r));return g({type:Object,converter:{fromAttribute:i=>{if(i==null)return e();try{return JSON.parse(i)}catch{return e()}},toAttribute:i=>JSON.stringify(i)},hasChanged:Oo,...t??{}})}function lu(r){return g({type:Object,converter:{fromAttribute:t=>{if(t!=null)return zl(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...r??{}})}function zl(r){return!isNaN(parseFloat(r))}var wa={};rt(wa,{designSystemVariables:()=>_});var Ca={};rt(Ca,{DesignSystemFamily:()=>mr,DesignSystemSize:()=>Ee,FtCssVariableFactory:()=>o,badge:()=>hu,banner:()=>fu,button:()=>b,chart:()=>Nu,checkbox:()=>Pu,chip:()=>pu,chipChoice:()=>du,collapsible:()=>_u,comboboxMultiSelect:()=>Au,comboboxSingleSelect:()=>Eu,drawer:()=>xu,floatingMenu:()=>wu,foundation:()=>c,link:()=>uu,modal:()=>vu,notice:()=>$u,notification:()=>Du,pageDesigner:()=>Iu,pageFooter:()=>gu,pageHeader:()=>yu,pageLayout:()=>bu,popover:()=>Ru,radio:()=>ku,resolveFamilyClass:()=>Sa,resolveSizeClass:()=>Oa,semantic:()=>u,setVariable:()=>x,switch_:()=>Tu,tabs:()=>Su,textArea:()=>Cu,textInput:()=>Ou,titleBreadcrumb:()=>mu,toggle:()=>Lu,tooltip:()=>Mu,typographies:()=>wo,typographyBody1Medium:()=>ea,typographyBody1Regular:()=>ta,typographyBody1Semibold:()=>ra,typographyBody2Medium:()=>ia,typographyBody2MediumUnderline:()=>Vl,typographyBody2Regular:()=>oa,typographyBody2Semibold:()=>na,typographyCaption1Bold:()=>ha,typographyCaption1Medium:()=>ua,typographyCaption1Semibold:()=>fa,typographyCaption2Bold:()=>ga,typographyCaption2Medium:()=>ma,typographyCaption2Semibold:()=>ya,typographyCaption3Bold:()=>xa,typographyCaption3Medium:()=>ba,typographyCaption3Semibold:()=>va,typographyDisplay:()=>Yn,typographyLabel1Bold:()=>la,typographyLabel1Medium:()=>aa,typographyLabel1Semibold:()=>sa,typographyLabel2Bold:()=>pa,typographyLabel2Medium:()=>ca,typographyLabel2Semibold:()=>da,typographyTitle1:()=>Xn,typographyTitle2:()=>Jn,typographyTitle3:()=>Qn,typographyVariants:()=>cu});var we=r=>typeof r=="string"?xe(r):r,o=class{static create(t,e,i,n){let a=l=>we(l??n),s=L`var(${we(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>L`var(${we(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,e,i,n){let a=l=>i.get(l??n),s=L`var(${we(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>L`var(${we(t)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(t,e){let i=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):we(a??t.lastResortDefaultValue()),n=L`var(${we(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=a=>L`var(${we(t.name)}, ${i(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};function x(r,t){return we(`${r.name}: ${t}`)}var c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Yn={fontFamily:o.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-textCase","","UNKNOWN","none")},Xn={fontFamily:o.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Jn={fontFamily:o.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Qn={fontFamily:o.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},ta={fontFamily:o.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},ea={fontFamily:o.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},ra={fontFamily:o.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},oa={fontFamily:o.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},ia={fontFamily:o.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Vl={fontFamily:o.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},na={fontFamily:o.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},aa={fontFamily:o.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},sa={fontFamily:o.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},la={fontFamily:o.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},ca={fontFamily:o.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},da={fontFamily:o.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},pa={fontFamily:o.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},ua={fontFamily:o.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},fa={fontFamily:o.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},ha={fontFamily:o.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},ma={fontFamily:o.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},ya={fontFamily:o.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},ga={fontFamily:o.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},ba={fontFamily:o.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},va={fontFamily:o.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},xa={fontFamily:o.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},wo={display:Yn,"title-1":Xn,"title-2":Jn,"title-3":Qn,"body-1-regular":ta,"body-1-medium":ea,"body-1-semibold":ra,"body-2-regular":oa,"body-2-medium":ia,"body-2-medium-underline":Vl,"body-2-semibold":na,"label-1-medium":aa,"label-1-semibold":sa,"label-1-bold":la,"label-2-medium":ca,"label-2-semibold":da,"label-2-bold":pa,"caption-1-medium":ua,"caption-1-semibold":fa,"caption-1-bold":ha,"caption-2-medium":ma,"caption-2-semibold":ya,"caption-2-bold":ga,"caption-3-medium":ba,"caption-3-semibold":va,"caption-3-bold":xa},cu=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var u={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
7
|
-
Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var b={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ft-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ft-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ft-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ft-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ft-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ft-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ft-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ft-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ft-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ft-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ft-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ft-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ft-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ft-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ft-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ft-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ft-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ft-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ft-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ft-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ft-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ft-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ft-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ft-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ft-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ft-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ft-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ft-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ft-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ft-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ft-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ft-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ft-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ft-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ft-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ft-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ft-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ft-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ft-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ft-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ft-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ft-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var du={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-choice-medium-icon-size","",c.iconSize2)};var pu={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)};var uu={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)};var fu={iconSize:o.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)};var hu={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",u.contentActionPrimary)};var mu={horizontalGap:o.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ft-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ft-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var yu={parentHorizontalPadding:o.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ft-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:o.extend("--ft-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:o.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var gu={horizontalPadding:o.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ft-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:o.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)};var bu={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var vu={smallContainerTargetWidth:o.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ft-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:o.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ft-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ft-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",c.borderRadiusM)};var xu={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",c.colorGray700)};var Su={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)};var Ou={fieldHorizontalPadding:o.extend("--ft-text-input-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-input-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-input-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-text-input-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var Cu={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",c.borderRadiusM)};var wu={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var Eu={fieldHorizontalPadding:o.extend("--ft-combobox-single-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-single-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-single-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-single-select-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)};var Au={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusM)};var Ru={backgroundColor:o.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",u.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",u.contentActionPrimary),gap:o.extend("--ft-popover-gap","",c.spacing3),borderRadius:o.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-popover-max-width","","SIZE","440px")};var _u={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)};var Tu={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var Nu={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorCyan10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorRed10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var Iu={color1IconColor:o.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var $u={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly)};var Pu={color:o.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-checkbox-gap","",c.spacing3)};var Lu={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)};var ku={color:o.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-radio-gap","",c.spacing3)};var Du={iconSize:o.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",c.spacing8)};var Mu={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)};var mr;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(mr||(mr={}));var Ee;(function(r){r.large="large",r.medium="medium",r.small="small"})(Ee||(Ee={}));function Sa(r){return`ftds--family-${r}`}function Oa(r){return`ftds--size-${r}`}var _={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:o.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:o.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:o.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:o.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:o.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:o.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:o.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:o.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:o.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:o.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Fa={};rt(Fa,{computeFlipOffsetPosition:()=>nf,computeOffsetPosition:()=>Po});var Gl=["top","right","bottom","left"],jl=["start","end"],Ea=Gl.reduce((r,t)=>r.concat(t,t+"-"+jl[0],t+"-"+jl[1]),[]),Ro=Math.min,Be=Math.max,_o=Math.round;var Ae=r=>({x:r,y:r}),Fu={left:"right",right:"left",bottom:"top",top:"bottom"},Bu={start:"end",end:"start"};function Aa(r,t,e){return Be(r,Ro(t,e))}function Mr(r,t){return typeof r=="function"?r(t):r}function ue(r){return r.split("-")[0]}function fe(r){return r.split("-")[1]}function Ra(r){return r==="x"?"y":"x"}function _a(r){return r==="y"?"height":"width"}function To(r){return["top","bottom"].includes(ue(r))?"y":"x"}function Ta(r){return Ra(To(r))}function Na(r,t,e){e===void 0&&(e=!1);let i=fe(r),n=Ta(r),a=_a(n),s=n==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Ao(s)),[s,Ao(s)]}function Kl(r){let t=Ao(r);return[Eo(r),t,Eo(t)]}function Eo(r){return r.replace(/start|end/g,t=>Bu[t])}function Uu(r,t,e){let i=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(r){case"top":case"bottom":return e?t?n:i:t?i:n;case"left":case"right":return t?a:s;default:return[]}}function Zl(r,t,e,i){let n=fe(r),a=Uu(ue(r),e==="start",i);return n&&(a=a.map(s=>s+"-"+n),t&&(a=a.concat(a.map(Eo)))),a}function Ao(r){return r.replace(/left|right|bottom|top/g,t=>Fu[t])}function Wu(r){return{top:0,right:0,bottom:0,left:0,...r}}function ql(r){return typeof r!="number"?Wu(r):{top:r,right:r,bottom:r,left:r}}function yr(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function Yl(r,t,e){let{reference:i,floating:n}=r,a=To(t),s=Ta(t),l=_a(s),d=ue(t),p=a==="y",f=i.x+i.width/2-n.width/2,h=i.y+i.height/2-n.height/2,y=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:f,y:i.y-n.height};break;case"bottom":v={x:f,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:h};break;case"left":v={x:i.x-n.width,y:h};break;default:v={x:i.x,y:i.y}}switch(fe(t)){case"start":v[s]-=y*(e&&p?-1:1);break;case"end":v[s]+=y*(e&&p?-1:1);break}return v}var Xl=async(r,t,e)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=e,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:r,floating:t,strategy:n}),{x:f,y:h}=Yl(p,i,d),y=i,v={},S=0;for(let w=0;w<l.length;w++){let{name:T,fn:I}=l[w],{x:P,y:E,data:C,reset:A}=await I({x:f,y:h,initialPlacement:i,placement:y,strategy:n,middlewareData:v,rects:p,platform:s,elements:{reference:r,floating:t}});if(f=P??f,h=E??h,v={...v,[T]:{...v[T],...C}},A&&S<=50){S++,typeof A=="object"&&(A.placement&&(y=A.placement),A.rects&&(p=A.rects===!0?await s.getElementRects({reference:r,floating:t,strategy:n}):A.rects),{x:f,y:h}=Yl(p,y,d)),w=-1;continue}}return{x:f,y:h,placement:y,strategy:n,middlewareData:v}};async function Si(r,t){var e;t===void 0&&(t={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:y=!1,padding:v=0}=Mr(t,r),S=ql(v),T=l[y?h==="floating"?"reference":"floating":h],I=yr(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(T)))==null||e?T:T.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:f,strategy:d})),P=h==="floating"?{...s.floating,x:i,y:n}:s.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),C=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},A=yr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:P,offsetParent:E,strategy:d}):P);return{top:(I.top-A.top+S.top)/C.y,bottom:(A.bottom-I.bottom+S.bottom)/C.y,left:(I.left-A.left+S.left)/C.x,right:(A.right-I.right+S.right)/C.x}}function Hu(r,t,e){return(r?[...e.filter(n=>fe(n)===r),...e.filter(n=>fe(n)!==r)]:e.filter(n=>ue(n)===n)).filter(n=>r?fe(n)===r||(t?Eo(n)!==n:!1):!0)}var Ia=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(t){var e,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=t,{crossAxis:f=!1,alignment:h,allowedPlacements:y=Ea,autoAlignment:v=!0,...S}=Mr(r,t),w=h!==void 0||y===Ea?Hu(h||null,v,y):y,T=await Si(t,S),I=((e=s.autoPlacement)==null?void 0:e.index)||0,P=w[I];if(P==null)return{};let E=Na(P,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==P)return{reset:{placement:w[0]}};let C=[T[ue(P)],T[E[0]],T[E[1]]],A=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:P,overflows:C}],k=w[I+1];if(k)return{data:{index:I+1,overflows:A},reset:{placement:k}};let z=A.map(F=>{let m=fe(F.placement);return[F.placement,m&&f?F.overflows.slice(0,2).reduce((O,D)=>O+D,0):F.overflows[0],F.overflows]}).sort((F,m)=>F[1]-m[1]),q=((n=z.filter(F=>F[2].slice(0,fe(F[0])?2:3).every(m=>m<=0))[0])==null?void 0:n[0])||z[0][0];return q!==l?{data:{index:I+1,overflows:A},reset:{placement:q}}:{}}}},$a=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(t){var e,i;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:p}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:y,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:w=!0,...T}=Mr(r,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let I=ue(n),P=ue(l)===l,E=await(d.isRTL==null?void 0:d.isRTL(p.floating)),C=y||(P||!w?[Ao(l)]:Kl(l));!y&&S!=="none"&&C.push(...Zl(l,w,S,E));let A=[l,...C],k=await Si(t,T),z=[],J=((i=a.flip)==null?void 0:i.overflows)||[];if(f&&z.push(k[I]),h){let O=Na(n,s,E);z.push(k[O[0]],k[O[1]])}if(J=[...J,{placement:n,overflows:z}],!z.every(O=>O<=0)){var q,F;let O=(((q=a.flip)==null?void 0:q.index)||0)+1,D=A[O];if(D)return{data:{index:O,overflows:J},reset:{placement:D}};let K=(F=J.filter(Q=>Q.overflows[0]<=0).sort((Q,V)=>Q.overflows[1]-V.overflows[1])[0])==null?void 0:F.placement;if(!K)switch(v){case"bestFit":{var m;let Q=(m=J.map(V=>[V.placement,V.overflows.filter(se=>se>0).reduce((se,oo)=>se+oo,0)]).sort((V,se)=>V[1]-se[1])[0])==null?void 0:m[0];Q&&(K=Q);break}case"initialPlacement":K=l;break}if(n!==K)return{reset:{placement:K}}}return{}}}};async function zu(r,t){let{placement:e,platform:i,elements:n}=r,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=ue(e),l=fe(e),d=To(e)==="y",p=["left","top"].includes(s)?-1:1,f=a&&d?-1:1,h=Mr(t,r),{mainAxis:y,crossAxis:v,alignmentAxis:S}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return l&&typeof S=="number"&&(v=l==="end"?S*-1:S),d?{x:v*f,y:y*p}:{x:y*p,y:v*f}}var Pa=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(t){var e,i;let{x:n,y:a,placement:s,middlewareData:l}=t,d=await zu(t,r);return s===((e=l.offset)==null?void 0:e.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},La=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){let{x:e,y:i,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:T=>{let{x:I,y:P}=T;return{x:I,y:P}}},...d}=Mr(r,t),p={x:e,y:i},f=await Si(t,d),h=To(ue(n)),y=Ra(h),v=p[y],S=p[h];if(a){let T=y==="y"?"top":"left",I=y==="y"?"bottom":"right",P=v+f[T],E=v-f[I];v=Aa(P,v,E)}if(s){let T=h==="y"?"top":"left",I=h==="y"?"bottom":"right",P=S+f[T],E=S-f[I];S=Aa(P,S,E)}let w=l.fn({...t,[y]:v,[h]:S});return{...w,data:{x:w.x-e,y:w.y-i}}}}};function Re(r){return Ql(r)?(r.nodeName||"").toLowerCase():"#document"}function Wt(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function _e(r){var t;return(t=(Ql(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function Ql(r){return r instanceof Node||r instanceof Wt(r).Node}function he(r){return r instanceof Element||r instanceof Wt(r).Element}function ee(r){return r instanceof HTMLElement||r instanceof Wt(r).HTMLElement}function Jl(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Wt(r).ShadowRoot}function Fr(r){let{overflow:t,overflowX:e,overflowY:i,display:n}=Gt(r);return/auto|scroll|overlay|hidden|clip/.test(t+i+e)&&!["inline","contents"].includes(n)}function tc(r){return["table","td","th"].includes(Re(r))}function Ci(r){let t=wi(),e=Gt(r);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function ec(r){let t=gr(r);for(;ee(t)&&!No(t);){if(Ci(t))return t;t=gr(t)}return null}function wi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function No(r){return["html","body","#document"].includes(Re(r))}function Gt(r){return Wt(r).getComputedStyle(r)}function Io(r){return he(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function gr(r){if(Re(r)==="html")return r;let t=r.assignedSlot||r.parentNode||Jl(r)&&r.host||_e(r);return Jl(t)?t.host:t}function rc(r){let t=gr(r);return No(t)?r.ownerDocument?r.ownerDocument.body:r.body:ee(t)&&Fr(t)?t:rc(t)}function Oi(r,t,e){var i;t===void 0&&(t=[]),e===void 0&&(e=!0);let n=rc(r),a=n===((i=r.ownerDocument)==null?void 0:i.body),s=Wt(n);return a?t.concat(s,s.visualViewport||[],Fr(n)?n:[],s.frameElement&&e?Oi(s.frameElement):[]):t.concat(n,Oi(n,[],e))}function nc(r){let t=Gt(r),e=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=ee(r),a=n?r.offsetWidth:e,s=n?r.offsetHeight:i,l=_o(e)!==a||_o(i)!==s;return l&&(e=a,i=s),{width:e,height:i,$:l}}function ac(r){return he(r)?r:r.contextElement}function Br(r){let t=ac(r);if(!ee(t))return Ae(1);let e=t.getBoundingClientRect(),{width:i,height:n,$:a}=nc(t),s=(a?_o(e.width):e.width)/i,l=(a?_o(e.height):e.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Vu=Ae(0);function sc(r){let t=Wt(r);return!wi()||!t.visualViewport?Vu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ju(r,t,e){return t===void 0&&(t=!1),!e||t&&e!==Wt(r)?!1:t}function $o(r,t,e,i){t===void 0&&(t=!1),e===void 0&&(e=!1);let n=r.getBoundingClientRect(),a=ac(r),s=Ae(1);t&&(i?he(i)&&(s=Br(i)):s=Br(r));let l=ju(a,e,i)?sc(a):Ae(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,f=n.width/s.x,h=n.height/s.y;if(a){let y=Wt(a),v=i&&he(i)?Wt(i):i,S=y.frameElement;for(;S&&i&&v!==y;){let w=Br(S),T=S.getBoundingClientRect(),I=Gt(S),P=T.left+(S.clientLeft+parseFloat(I.paddingLeft))*w.x,E=T.top+(S.clientTop+parseFloat(I.paddingTop))*w.y;d*=w.x,p*=w.y,f*=w.x,h*=w.y,d+=P,p+=E,S=Wt(S).frameElement}}return yr({width:f,height:h,x:d,y:p})}function Gu(r){let{rect:t,offsetParent:e,strategy:i}=r,n=ee(e),a=_e(e);if(e===a)return t;let s={scrollLeft:0,scrollTop:0},l=Ae(1),d=Ae(0);if((n||!n&&i!=="fixed")&&((Re(e)!=="body"||Fr(a))&&(s=Io(e)),ee(e))){let p=$o(e);l=Br(e),d.x=p.x+e.clientLeft,d.y=p.y+e.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+d.x,y:t.y*l.y-s.scrollTop*l.y+d.y}}function Ku(r){return Array.from(r.getClientRects())}function lc(r){return $o(_e(r)).left+Io(r).scrollLeft}function Zu(r){let t=_e(r),e=Io(r),i=r.ownerDocument.body,n=Be(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=Be(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-e.scrollLeft+lc(r),l=-e.scrollTop;return Gt(i).direction==="rtl"&&(s+=Be(t.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function qu(r,t){let e=Wt(r),i=_e(r),n=e.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let p=wi();(!p||p&&t==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function Yu(r,t){let e=$o(r,!0,t==="fixed"),i=e.top+r.clientTop,n=e.left+r.clientLeft,a=ee(r)?Br(r):Ae(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=n*a.x,p=i*a.y;return{width:s,height:l,x:d,y:p}}function oc(r,t,e){let i;if(t==="viewport")i=qu(r,e);else if(t==="document")i=Zu(_e(r));else if(he(t))i=Yu(t,e);else{let n=sc(r);i={...t,x:t.x-n.x,y:t.y-n.y}}return yr(i)}function cc(r,t){let e=gr(r);return e===t||!he(e)||No(e)?!1:Gt(e).position==="fixed"||cc(e,t)}function Xu(r,t){let e=t.get(r);if(e)return e;let i=Oi(r,[],!1).filter(l=>he(l)&&Re(l)!=="body"),n=null,a=Gt(r).position==="fixed",s=a?gr(r):r;for(;he(s)&&!No(s);){let l=Gt(s),d=Ci(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Fr(s)&&!d&&cc(r,s))?i=i.filter(f=>f!==s):n=l,s=gr(s)}return t.set(r,i),i}function Ju(r){let{element:t,boundary:e,rootBoundary:i,strategy:n}=r,s=[...e==="clippingAncestors"?Xu(t,this._c):[].concat(e),i],l=s[0],d=s.reduce((p,f)=>{let h=oc(t,f,n);return p.top=Be(h.top,p.top),p.right=Ro(h.right,p.right),p.bottom=Ro(h.bottom,p.bottom),p.left=Be(h.left,p.left),p},oc(t,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Qu(r){return nc(r)}function tf(r,t,e){let i=ee(t),n=_e(t),a=e==="fixed",s=$o(r,!0,a,t),l={scrollLeft:0,scrollTop:0},d=Ae(0);if(i||!i&&!a)if((Re(t)!=="body"||Fr(n))&&(l=Io(t)),i){let p=$o(t,!0,a,t);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else n&&(d.x=lc(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function ic(r,t){return!ee(r)||Gt(r).position==="fixed"?null:t?t(r):r.offsetParent}function dc(r,t){let e=Wt(r);if(!ee(r))return e;let i=ic(r,t);for(;i&&tc(i)&&Gt(i).position==="static";)i=ic(i,t);return i&&(Re(i)==="html"||Re(i)==="body"&&Gt(i).position==="static"&&!Ci(i))?e:i||ec(r)||e}var ef=async function(r){let{reference:t,floating:e,strategy:i}=r,n=this.getOffsetParent||dc,a=this.getDimensions;return{reference:tf(t,await n(e),i),floating:{x:0,y:0,...await a(e)}}};function rf(r){return Gt(r).direction==="rtl"}var Ur={convertOffsetParentRelativeRectToViewportRelativeRect:Gu,getDocumentElement:_e,getClippingRect:Ju,getOffsetParent:dc,getElementRects:ef,getClientRects:Ku,getDimensions:Qu,getScale:Br,isElement:he,isRTL:rf};var ka=(r,t,e)=>{let i=new Map,n={platform:Ur,...e},a={...n.platform,_c:i};return Xl(r,t,{...n,platform:a})};function Ma(r){return of(r)}function Da(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function of(r){for(let t=r;t;t=Da(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Da(r);t;t=Da(t)){if(!(t instanceof Element))continue;let e=getComputedStyle(t);if(e.display!=="contents"&&(e.position!=="static"||e.filter!=="none"||t.tagName==="BODY"))return t}return null}async function Po(r,t,e){return ka(r,t,{platform:{...Ur,getOffsetParent:i=>Ur.getOffsetParent(i,Ma)},middleware:[La({crossAxis:!0}),Ia({allowedPlacements:[e]})]})}async function nf(r,t,e,i,n){return ka(r,t,{placement:e,strategy:n,platform:{...Ur,getOffsetParent:a=>Ur.getOffsetParent(a,Ma)},middleware:[Pa(4),$a({fallbackPlacements:i})]})}var Ha={};rt(Ha,{FtdsBase:()=>Wa,toFtdsBase:()=>Ri});var Ua={};rt(Ua,{FtLitElement:()=>j});var Ba={};rt(Ba,{ScopedRegistryLitElement:()=>Lo});var Ei=window,af=Ei.ShadowRoot&&(Ei.ShadyCSS===void 0||Ei.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ev=Symbol();var pc=(r,t)=>{af?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let i=document.createElement("style"),n=Ei.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)})};var Lo=class extends Oe{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,a])=>t.registry.define(n,a)));let e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return pc(i,t.elementStyles),i}};var Ai=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},mc,uc=Symbol("constructorPrototype"),fc=Symbol("constructorName"),yc=Symbol("exportpartsDebouncer"),hc=Symbol("dynamicDependenciesLoaded"),j=class extends Lo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[mc]=new st(5),this[fc]=this.constructor.name,this[uc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[fc]&&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(e){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",e)}let t=this.constructor;t[hc]||(t[hc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var e,i,n;if(((i=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var t,e,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(e=this.exportpartsPrefixes)===null||e===void 0?void 0:e.length)!==null&&i!==void 0&&i)&&this[yc].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var e,i,n,a,s,l;let d=y=>y!=null&&y.trim().length>0,p=t.filter(d).map(y=>y.trim());if(p.length===0){this.removeAttribute("exportparts");return}let f=new Set;for(let y of(i=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let v=(a=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(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(...v,...S).filter(d).map(w=>w.trim()).forEach(w=>f.add(w))}if(f.size===0){this.removeAttribute("exportparts");return}let h=[...f.values()].flatMap(y=>p.map(v=>`${y}:${v}--${y}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};mc=yc;Ai([g()],j.prototype,"exportpartsPrefix",void 0);Ai([pe([])],j.prototype,"exportpartsPrefixes",void 0);Ai([g()],j.prototype,"customStylesheet",void 0);Ai([W()],j.prototype,"useAdoptedStyleSheets",void 0);var gc=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a};function Ri(r){class t extends r{constructor(){super(...arguments),this.size=Ee.medium,this.family=mr.neutral}getDesignSystemBaseClasses(){return{[Sa(this.family)]:!0,[Oa(this.size)]:!0}}}return gc([g()],t.prototype,"size",void 0),gc([g()],t.prototype,"family",void 0),t}var Wa=class extends Ri(j){};var bc={};var ja={};rt(ja,{highlightHtml:()=>Va,highlightHtmlColorCssVariable:()=>vc,highlightHtmlStyles:()=>lf});var br=class r{constructor(t,e=!0,i=[],n=5e3){this.ctx=t,this.iframes=e,this.exclude=i,this.iframesTimeout=n}static matches(t,e){let i=typeof e=="string"?[e]:e,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(t,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let t,e=[];return typeof this.ctx>"u"||!this.ctx?t=[]:NodeList.prototype.isPrototypeOf(this.ctx)?t=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?t=this.ctx:typeof this.ctx=="string"?t=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):t=[this.ctx],t.forEach(i=>{let n=e.filter(a=>a.contains(i)).length>0;e.indexOf(i)===-1&&!n&&e.push(i)}),e}getIframeContents(t,e,i=()=>{}){let n;try{let a=t.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&e(n)}isIframeBlank(t){let e="about:blank",i=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&i!==e&&i}observeIframeLoad(t,e,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,e,i))}catch{i()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,e,i){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,e,i):this.getIframeContents(t,e,i):this.observeIframeLoad(t,e,i)}catch{i()}}waitForIframes(t,e){let i=0;this.forEachIframe(t,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||e()})},n=>{n||e()})}forEachIframe(t,e,i,n=()=>{}){let a=t.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(p=>{r.matches(p,this.exclude)?d():this.onIframeReady(p,f=>{e(p)&&(l++,i(f)),d()},d)})}createIterator(t,e,i){return document.createNodeIterator(t,e,i,!1)}createInstanceOnIframe(t){return new r(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,i){let n=t.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(e!==null){let s=e.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let e=t.previousNode(),i;return e===null?i=t.nextNode():i=t.nextNode()&&t.nextNode(),{prevNode:e,node:i}}checkIframeFilter(t,e,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(t,e,i)?(a===!1&&!s?n.push({val:i,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(t,e,i,n){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(e,i,n)})})}iterateThroughNodes(t,e,i,n,a){let s=this.createIterator(e,t,n),l=[],d=[],p,f,h=()=>({prevNode:f,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(e,y=>this.checkIframeFilter(p,f,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(t,v=>d.push(v),n)}),d.push(p);d.forEach(y=>{i(y)}),this.iframes&&this.handleOpenIframes(l,t,i,n),a()}forEachNode(t,e,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(t,l,e,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var ko=class{constructor(t){this.ctx=t,this.ie=!1;let e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new br(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[e]=="function"&&i[e](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return this.opt.wildcards!=="disabled"&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),this.opt.wildcards!=="disabled"&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t),t}createSynonymsRegExp(t){let e=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in e)if(e.hasOwnProperty(a)){let s=e[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(t=t.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),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,e=>e.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,e=>e.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let e=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(e,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?e:e+"\0"})}createJoinersRegExp(t){let e=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&e.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){let e=this.opt.caseSensitive?"":"i",i=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return t.split("").forEach(a=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;t=t.replace(new RegExp(`[${s}]`,`gm${e}`),`[${s}]`),n.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let e="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,a=typeof i=="string"?[]:i.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${t})`;case"complementary":return s="\\s"+(s||this.escapeStr(e)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let e=[];return t.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&e.indexOf(n)===-1&&e.push(n)}):i.trim()&&e.indexOf(i)===-1&&e.push(i)}),{keywords:e.sort((i,n)=>n.length-i.length),length:e.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||Object.prototype.toString.call(t[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];let e=[],i=0;return t.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=a,n.length=s-a,e.push(n),i=s)}),e}callNoMatchOnInvalidRanges(t,e){let i,n,a=!1;return t&&typeof t.start<"u"?(i=parseInt(t.start,10),n=i+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&n-e>0&&n-i>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:i,end:n,valid:a}}checkWhitespaceRanges(t,e,i){let n,a=!0,s=i.length,l=e-s,d=parseInt(t.start,10)-l;return d=d>s?s:d,n=d+parseInt(t.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):i.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:d,end:n,valid:a}}getTextNodes(t){let e="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:e.length,end:(e+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:e,nodes:i})})}matchesExclude(t){return br.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,i){let n=this.opt.element?this.opt.element:"mark",a=t.splitText(e),s=a.splitText(i-e),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(t,e,i,n,a){t.nodes.every((s,l)=>{let d=t.nodes[l+1];if(typeof d>"u"||d.start>e){if(!n(s.node))return!1;let p=e-s.start,f=(i>s.end?s.end:i)-s.start,h=t.value.substr(0,s.start),y=t.value.substr(f+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,f),t.value=h+y,t.nodes.forEach((v,S)=>{S>=l&&(t.nodes[S].start>0&&S!==l&&(t.nodes[S].start-=f),t.nodes[S].end-=f)}),i-=f,a(s.node.previousSibling,s.start),i>s.end)e=s.end;else return!1}return!0})}wrapMatches(t,e,i,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=t.exec(d.textContent))!==null&&p[s]!=="";){if(!i(p[s],d))continue;let f=p.index;if(s!==0)for(let h=1;h<s;h++)f+=p[h].length;d=this.wrapRangeInTextNode(d,f,f+p[s].length),n(d.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,e,i,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{let d;for(;(d=t.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let h=1;h<s;h++)p+=d[h].length;let f=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,f,h=>i(d[s],h),(h,y)=>{t.lastIndex=y,n(h)})}a()})}wrapRangeFromIndex(t,e,i,n){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,d)=>{let{start:p,end:f,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,f,y=>e(y,l,a.value.substring(p,f),d),y=>{i(y,l)})}),n()})}unwrapMatches(t){let e=t.parentNode,i=document.createDocumentFragment();for(;t.firstChild;)i.appendChild(t.removeChild(t.firstChild));e.replaceChild(i,t),this.ie?this.normalizeTextNode(e):e.normalize()}normalizeTextNode(t){if(t){if(t.nodeType===3)for(;t.nextSibling&&t.nextSibling.nodeType===3;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,e){this.opt=e,this.log(`Searching with expression "${t}"`);let i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](t,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(t),this.opt.done(i)})}mark(t,e){this.opt=e;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",d=p=>{let f=new RegExp(this.createRegExp(p),`gm${l}`),h=0;this.log(`Searching with expression "${f}"`),this[n](f,1,(y,v)=>this.opt.filter(v,p,i,h),y=>{h++,i++,this.opt.each(y)},()=>{h===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(i):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(t,e){this.opt=e;let i=0,n=this.checkRanges(t);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{i++,this.opt.each(a,s)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=br.matches(i,e),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function za(r){let t=new ko(r);return this.mark=(e,i)=>(t.mark(e,i),this),this.markRegExp=(e,i)=>(t.markRegExp(e,i),this),this.markRanges=(e,i)=>(t.markRanges(e,i),this),this.unmark=e=>(t.unmark(e),this),this}var sf=za,vc=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),lf=L`
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ll=/'/g,cl=/"/g,fl=/^(?:script|style|textarea|title)$/i,hl=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),ml=hl(1),yl=hl(2),jt=Symbol.for("lit-noChange"),mt=Symbol.for("lit-nothing"),dl=new WeakMap,ir=nr.createTreeWalker(nr,129);function gl(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return nl!==void 0?nl.createHTML(t):t}var bl=(r,t)=>{let e=r.length-1,i=[],n,a=t===2?"<svg>":"",s=ao;for(let l=0;l<e;l++){let d=r[l],p,f,h=-1,y=0;for(;y<d.length&&(s.lastIndex=y,f=s.exec(d),f!==null);)y=s.lastIndex,s===ao?f[1]==="!--"?s=al:f[1]!==void 0?s=sl:f[2]!==void 0?(fl.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=or):f[3]!==void 0&&(s=or):s===or?f[0]===">"?(s=n??ao,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?or:f[3]==='"'?cl:ll):s===cl||s===ll?s=or:s===al||s===sl?s=ao:(s=or,n=void 0);let v=s===or&&r[l+1].startsWith("/>")?" ":"";a+=s===ao?d+$p:h>=0?(i.push(p),d.slice(0,h)+Sn+d.slice(h)+ve+v):d+ve+(h===-2?l:v)}return[gl(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),i]},lo=class r{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,f]=bl(t,e);if(this.el=r.createElement(p,i),ir.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=ir.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Sn)){let y=f[s++],v=n.getAttribute(h).split(ve),S=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?oi:S[1]==="?"?ii:S[1]==="@"?ni:sr}),n.removeAttribute(h)}else h.startsWith(ve)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(fl.test(n.tagName)){let h=n.textContent.split(ve),y=h.length-1;if(y>0){n.textContent=ti?ti.emptyScript:"";for(let v=0;v<y;v++)n.append(h[v],ei()),ir.nextNode(),d.push({type:2,index:++a});n.append(h[y],ei())}}}else if(n.nodeType===8)if(n.data===On)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(ve,h+1))!==-1;)d.push({type:7,index:a}),h+=ve.length-1}a++}}static createElement(t,e){let i=nr.createElement("template");return i.innerHTML=t,i}};function ar(r,t,e=r,i){if(t===jt)return t;let n=i!==void 0?e._$Co?.[i]:e._$Cl,a=so(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,i)),i!==void 0?(e._$Co??=[])[i]=n:e._$Cl=n),n!==void 0&&(t=ar(r,n._$AS(r,t.values),n,i)),t}var ri=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,n=(t?.creationScope??nr).importNode(e,!0);ir.currentNode=n;let a=ir.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new co(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new ai(a,this,t)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=ir.nextNode(),s++)}return ir.currentNode=nr,n}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},co=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=mt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ar(this,t,e),so(t)?t===mt||t==null||t===""?(this._$AH!==mt&&this._$AR(),this._$AH=mt):t!==this._$AH&&t!==jt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ul(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!==mt&&so(this._$AH)?this._$AA.nextSibling.data=t:this.$(nr.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=lo.createElement(gl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new ri(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=dl.get(t.strings);return e===void 0&&dl.set(t.strings,e=new lo(t)),e}T(t){pl(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,n=0;for(let a of t)n===e.length?e.push(i=new r(this.k(ei()),this.k(ei()),this,this.options)):i=e[n],i._$AI(a),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},sr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,a){this.type=1,this._$AH=mt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=mt}_$AI(t,e=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=ar(this,t,e,0),s=!so(t)||t!==this._$AH&&t!==jt,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=ar(this,l[i+d],e,d),p===jt&&(p=this._$AH[d]),s||=!so(p)||p!==this._$AH[d],p===mt?t=mt:t!==mt&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(t)}O(t){t===mt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},oi=class extends sr{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===mt?void 0:t}},ii=class extends sr{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==mt)}},ni=class extends sr{constructor(t,e,i,n,a){super(t,e,i,n,a),this.type=5}_$AI(t,e=this){if((t=ar(this,t,e,0)??mt)===jt)return;let i=this._$AH,n=t===mt&&i!==mt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==mt&&(i===mt||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ai=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ar(this,t)}},vl={j:Sn,P:ve,A:On,C:1,M:bl,L:ri,R:ul,V:ar,D:co,I:sr,H:ii,N:ni,U:oi,B:ai},Lp=xn.litHtmlPolyfillSupport;Lp?.(lo,co),(xn.litHtmlVersions??=[]).push("3.1.0");var si=globalThis,po=si.ShadowRoot&&(si.ShadyCSS===void 0||si.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Cn=Symbol(),xl=new WeakMap,Pr=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Cn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(po&&t===void 0){let i=e!==void 0&&e.length===1;i&&(t=xl.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&xl.set(e,t))}return t}toString(){return this.cssText}},xe=r=>new Pr(typeof r=="string"?r:r+"",void 0,Cn),L=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((i,n,a)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[a+1],r[0]);return new Pr(e,r,Cn)},li=(r,t)=>{if(po)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let i=document.createElement("style"),n=si.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)}},uo=po?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return xe(e)})(r):r;var{is:kp,defineProperty:Dp,getOwnPropertyDescriptor:Mp,getOwnPropertyNames:Fp,getOwnPropertySymbols:Bp,getPrototypeOf:Up}=Object,di=globalThis,Sl=di.trustedTypes,Wp=Sl?Sl.emptyScript:"",Hp=di.reactiveElementPolyfillSupport,fo=(r,t)=>r,ci={toAttribute(r,t){switch(t){case Boolean:r=r?Wp:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},En=(r,t)=>!kp(r,t),Ol={attribute:!0,type:String,converter:ci,reflect:!1,hasChanged:En};Symbol.metadata??=Symbol("metadata"),di.litPropertyMetadata??=new WeakMap;var le=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ol){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,e);n!==void 0&&Dp(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){let{get:n,set:a}=Mp(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ol}static _$Ei(){if(this.hasOwnProperty(fo("elementProperties")))return;let t=Up(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(fo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(fo("properties"))){let e=this.properties,i=[...Fp(e),...Bp(e)];for(let n of i)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[i,n]of e)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[e,i]of this.elementProperties){let n=this._$Eu(e,i);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)e.unshift(uo(n))}else t!==void 0&&e.push(uo(t));return e}static _$Eu(t,e){let i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return li(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:ci).toAttribute(e,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let i=this.constructor,n=i._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=i.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:ci;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??En)(n?a:this[t],e))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};le.elementStyles=[],le.shadowRootOptions={mode:"open"},le[fo("elementProperties")]=new Map,le[fo("finalized")]=new Map,Hp?.({ReactiveElement:le}),(di.reactiveElementVersions??=[]).push("2.0.2");var An=globalThis,pi=An.trustedTypes,Cl=pi?pi.createPolicy("lit-html",{createHTML:r=>r}):void 0,Rn="$lit$",Se=`lit$${(Math.random()+"").slice(9)}$`,_n="?"+Se,zp=`<${_n}>`,dr=document,mo=()=>dr.createComment(""),yo=r=>r===null||typeof r!="object"&&typeof r!="function",Il=Array.isArray,Tl=r=>Il(r)||typeof r?.[Symbol.iterator]=="function",wn=`[
|
|
5
|
+
\f\r]`,ho=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,El=/-->/g,wl=/>/g,lr=RegExp(`>|${wn}(?:([^\\s"'>=/]+)(${wn}*=${wn}*(?:[^
|
|
6
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Al=/'/g,Rl=/"/g,Nl=/^(?:script|style|textarea|title)$/i,Pl=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),P=Pl(1),Vp=Pl(2),ke=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),_l=new WeakMap,cr=dr.createTreeWalker(dr,129);function $l(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Cl!==void 0?Cl.createHTML(t):t}var Ll=(r,t)=>{let e=r.length-1,i=[],n,a=t===2?"<svg>":"",s=ho;for(let l=0;l<e;l++){let d=r[l],p,f,h=-1,y=0;for(;y<d.length&&(s.lastIndex=y,f=s.exec(d),f!==null);)y=s.lastIndex,s===ho?f[1]==="!--"?s=El:f[1]!==void 0?s=wl:f[2]!==void 0?(Nl.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=lr):f[3]!==void 0&&(s=lr):s===lr?f[0]===">"?(s=n??ho,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,p=f[1],s=f[3]===void 0?lr:f[3]==='"'?Rl:Al):s===Rl||s===Al?s=lr:s===El||s===wl?s=ho:(s=lr,n=void 0);let v=s===lr&&r[l+1].startsWith("/>")?" ":"";a+=s===ho?d+zp:h>=0?(i.push(p),d.slice(0,h)+Rn+d.slice(h)+Se+v):d+Se+(h===-2?l:v)}return[$l(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),i]},go=class r{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,f]=Ll(t,e);if(this.el=r.createElement(p,i),cr.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=cr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(Rn)){let y=f[s++],v=n.getAttribute(h).split(Se),S=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?fi:S[1]==="?"?hi:S[1]==="@"?mi:ur}),n.removeAttribute(h)}else h.startsWith(Se)&&(d.push({type:6,index:a}),n.removeAttribute(h));if(Nl.test(n.tagName)){let h=n.textContent.split(Se),y=h.length-1;if(y>0){n.textContent=pi?pi.emptyScript:"";for(let v=0;v<y;v++)n.append(h[v],mo()),cr.nextNode(),d.push({type:2,index:++a});n.append(h[y],mo())}}}else if(n.nodeType===8)if(n.data===_n)d.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(Se,h+1))!==-1;)d.push({type:7,index:a}),h+=Se.length-1}a++}}static createElement(t,e){let i=dr.createElement("template");return i.innerHTML=t,i}};function pr(r,t,e=r,i){if(t===ke)return t;let n=i!==void 0?e._$Co?.[i]:e._$Cl,a=yo(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,i)),i!==void 0?(e._$Co??=[])[i]=n:e._$Cl=n),n!==void 0&&(t=pr(r,n._$AS(r,t.values),n,i)),t}var ui=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,n=(t?.creationScope??dr).importNode(e,!0);cr.currentNode=n;let a=cr.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new $r(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new yi(a,this,t)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=cr.nextNode(),s++)}return cr.currentNode=dr,n}p(t){let e=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},$r=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=pr(this,t,e),yo(t)?t===U||t==null||t===""?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==ke&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Tl(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!==U&&yo(this._$AH)?this._$AA.nextSibling.data=t:this.$(dr.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=go.createElement($l(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new ui(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=_l.get(t.strings);return e===void 0&&_l.set(t.strings,e=new go(t)),e}T(t){Il(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,n=0;for(let a of t)n===e.length?e.push(i=new r(this.k(mo()),this.k(mo()),this,this.options)):i=e[n],i._$AI(a),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},ur=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,a){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=U}_$AI(t,e=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=pr(this,t,e,0),s=!yo(t)||t!==this._$AH&&t!==ke,s&&(this._$AH=t);else{let l=t,d,p;for(t=a[0],d=0;d<a.length-1;d++)p=pr(this,l[i+d],e,d),p===ke&&(p=this._$AH[d]),s||=!yo(p)||p!==this._$AH[d],p===U?t=U:t!==U&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(t)}O(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},fi=class extends ur{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===U?void 0:t}},hi=class extends ur{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==U)}},mi=class extends ur{constructor(t,e,i,n,a){super(t,e,i,n,a),this.type=5}_$AI(t,e=this){if((t=pr(this,t,e,0)??U)===ke)return;let i=this._$AH,n=t===U&&i!==U||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==U&&(i===U||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},yi=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){pr(this,t)}},jp={j:Rn,P:Se,A:_n,C:1,M:Ll,L:ui,R:Tl,V:pr,D:$r,I:ur,H:hi,N:mi,U:fi,B:yi},Gp=An.litHtmlPolyfillSupport;Gp?.(go,$r),(An.litHtmlVersions??=[]).push("3.1.0");var In=(r,t,e)=>{let i=e?.renderBefore??t,n=i._$litPart$;if(n===void 0){let a=e?.renderBefore??null;i._$litPart$=n=new $r(t.insertBefore(mo(),a),a,void 0,e??{})}return n._$AI(r),n};var Oe=class extends le{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=In(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ke}};Oe._$litElement$=!0,Oe.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Oe});var Kp=globalThis.litElementPolyfillSupport;Kp?.({LitElement:Oe});var Zp={_$AK:(r,t,e)=>{r._$AK(t,e)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Lh=!1;var Pn={};rt(Pn,{customElement:()=>qp,eventOptions:()=>Ce,property:()=>g,query:()=>Y,queryAll:()=>Jp,queryAssignedElements:()=>Nn,queryAssignedNodes:()=>bo,queryAsync:()=>Qp,standardProperty:()=>kl,state:()=>W});var qp=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};var Yp={attribute:!0,type:String,converter:no,reflect:!1,hasChanged:Qo},kl=(r=Yp,t,e)=>{let{kind:i,metadata:n}=e,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(e.name,r),i==="accessor"){let{name:s}=e;return{set(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,d,r)},init(l){return l!==void 0&&this.C(s,void 0,r),l}}}if(i==="setter"){let{name:s}=e;return function(l){let d=this[s];t.call(this,l),this.requestUpdate(s,d,r)}}throw Error("Unsupported decorator location: "+i)};function g(r){return(t,e)=>typeof e=="object"?kl(r,t,e):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,s?{...i,wrapped:!0}:i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,t,e)}function W(r){return g({...r,state:!0,attribute:!1})}function Ce(r){return(t,e)=>{let i=typeof t=="function"?t:t[e];Object.assign(i,r)}}var Qt=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);function Y(r,t){return(e,i,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(t){let{get:s,set:l}=typeof i=="object"?e:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return Qt(e,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return Qt(e,i,{get(){return a(this)}})}}var Xp;function Jp(r){return(t,e)=>Qt(t,e,{get(){return(this.renderRoot??(Xp??=document.createDocumentFragment())).querySelectorAll(r)}})}function Qp(r){return(t,e)=>Qt(t,e,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function Nn(r){return(t,e)=>{let{slot:i,selector:n}=r??{},a="slot"+(i?`[name=${i}]`:":not([name])");return Qt(t,e,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function bo(r){return(t,e)=>{let{slot:i}=r??{},n="slot"+(i?`[name=${i}]`:":not([name])");return Qt(t,e,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var Ln={};rt(Ln,{repeat:()=>$n});var De={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Me=r=>(...t)=>({_$litDirective$:r,values:t}),ce=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{D:tu}=vl;var Dl=()=>document.createComment(""),Lr=(r,t,e)=>{let i=r._$AA.parentNode,n=t===void 0?r._$AB:t._$AA;if(e===void 0){let a=i.insertBefore(Dl(),n),s=i.insertBefore(Dl(),n);e=new tu(a,s,r,r.options)}else{let a=e._$AB.nextSibling,s=e._$AM,l=s!==r;if(l){let d;e._$AQ?.(r),e._$AM=r,e._$AP!==void 0&&(d=r._$AU)!==s._$AU&&e._$AP(d)}if(a!==n||l){let d=e._$AA;for(;d!==a;){let p=d.nextSibling;i.insertBefore(d,n),d=p}}}return e},Fe=(r,t,e=r)=>(r._$AI(t,e),r),eu={},Ml=(r,t=eu)=>r._$AH=t,Fl=r=>r._$AH,gi=r=>{r._$AP?.(!1,!0);let t=r._$AA,e=r._$AB.nextSibling;for(;t!==e;){let i=t.nextSibling;t.remove(),t=i}};var Bl=(r,t,e)=>{let i=new Map;for(let n=t;n<=e;n++)i.set(r[n],n);return i},$n=Me(class extends ce{constructor(r){if(super(r),r.type!==De.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,t,e){let i;e===void 0?e=t:t!==void 0&&(i=t);let n=[],a=[],s=0;for(let l of r)n[s]=i?i(l,s):s,a[s]=e(l,s),s++;return{values:a,keys:n}}render(r,t,e){return this.ht(r,t,e).values}update(r,[t,e,i]){let n=Fl(r),{values:a,keys:s}=this.ht(t,e,i);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],d=[],p,f,h=0,y=n.length-1,v=0,S=a.length-1;for(;h<=y&&v<=S;)if(n[h]===null)h++;else if(n[y]===null)y--;else if(l[h]===s[v])d[v]=Fe(n[h],a[v]),h++,v++;else if(l[y]===s[S])d[S]=Fe(n[y],a[S]),y--,S--;else if(l[h]===s[S])d[S]=Fe(n[h],a[S]),Lr(r,d[S+1],n[h]),h++,S--;else if(l[y]===s[v])d[v]=Fe(n[y],a[v]),Lr(r,n[h],n[y]),y--,v++;else if(p===void 0&&(p=Bl(s,v,S),f=Bl(l,h,y)),p.has(l[h]))if(p.has(l[y])){let E=f.get(s[v]),I=E!==void 0?n[E]:null;if(I===null){let N=Lr(r,n[h]);Fe(N,a[v]),d[v]=N}else d[v]=Fe(I,a[v]),Lr(r,n[h],I),n[E]=null;v++}else gi(n[y]),y--;else gi(n[h]),h++;for(;v<=S;){let E=Lr(r,d[S+1]);Fe(E,a[v]),d[v++]=E}for(;h<=y;){let E=n[h++];E!==null&&gi(E)}return this.dt=s,Ml(r,d),jt}});var kn={};rt(kn,{classMap:()=>Rt});var Rt=Me(class extends ce{constructor(r){if(super(r),r.type!==De.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in t)t[i]&&!this.st?.has(i)&&this.it.add(i);return this.render(t)}let e=r.element.classList;for(let i of this.it)i in t||(e.remove(i),this.it.delete(i));for(let i in t){let n=!!t[i];n===this.it.has(i)||this.st?.has(i)||(n?(e.add(i),this.it.add(i)):(e.remove(i),this.it.delete(i)))}return jt}});var Dn={};rt(Dn,{styleMap:()=>ou});var Ul="important",ru=" !"+Ul,ou=Me(class extends ce{constructor(r){if(super(r),r.type!==De.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((t,e)=>{let i=r[e];return i==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[t]){let{style:e}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(t)),this.render(t);for(let i of this.ut)t[i]==null&&(this.ut.delete(i),i.includes("-")?e.removeProperty(i):e[i]=null);for(let i in t){let n=t[i];if(n!=null){this.ut.add(i);let a=typeof n=="string"&&n.endsWith(ru);i.includes("-")||a?e.setProperty(i,a?n.slice(0,-11):n,a?Ul:""):e[i]=n}}return jt}});var Fn={};rt(Fn,{UnsafeHTMLDirective:()=>kr,unsafeHTML:()=>Mn});var kr=class extends ce{constructor(t){if(super(t),this.et=mt,t.type!==De.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===mt||t==null)return this.vt=void 0,this.et=t;if(t===jt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;let e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};kr.directiveName="unsafeHTML",kr.resultType=1;var Mn=Me(kr);var Vn={};rt(Vn,{CacheRegistry:()=>de,ClearCacheEvent:()=>vo});var Un={};rt(Un,{CancelablePromise:()=>Dr,CanceledPromiseError:()=>fr,cancelable:()=>Bn});var fr=class extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}},Dr=class extends Promise{constructor(t){super((e,i)=>t(n=>{this.isCanceled?i(new fr("Promise has been canceled",n)):e(n)},n=>{this.isCanceled?i(new fr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Bn=r=>new Dr((t,e)=>r.then(t).catch(e));var zn={};rt(zn,{FtNotificationEvent:()=>Mt,PostResizeEvent:()=>Hn,PreResizeEvent:()=>Wn,WithEventBus:()=>hr,withEventBus:()=>Wl});var Mt=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},Wn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Hn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function Wl(r,t){return class extends r{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(e,i,n){this.eventBus.addEventListener(e,i,n)}dispatchEvent(e){return this.eventBus.dispatchEvent(e)}removeEventListener(e,i,n){this.eventBus.removeEventListener(e,i,n)}}}var hr=class extends Wl(Object){};var vo=class extends CustomEvent{constructor(t){super("clear-cache",{detail:{clearedKeys:t}})}},de=class extends hr{constructor(){super(...arguments),this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(t=!0){let e=[];for(let i in this.content)this.clear(i,!1)!=null&&e.push(i);t&&e.length>0&&this.dispatchEvent(new vo(e))}clear(t,e=!0){if(!this.finalContent.has(t))return this.forceClear(t),e&&this.dispatchEvent(new vo([t])),t}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof Dr&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){this.clearTimeouts[t]!=null&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,async()=>e),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,async()=>e),this.content[t]=e}async get(t,e,i){if(this.content[t]===void 0){if(e=e??this.loaders[t],e==null)throw new Error("Unknown cache key "+t);let n=Bn(e());return this.content[t]=n,n.then(a=>(this.content[t]=a,i!=null&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout(()=>this.clear(t),i)),a))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return t!=null&&!(t instanceof Promise)&&!(t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return this.content[t]!=null}resolvedKeys(){return Object.keys(this.content).filter(t=>this.isResolvedValue(this.content[t]))}resolvedValues(){return Object.values(this.content).filter(t=>this.isResolvedValue(t))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var jn={};rt(jn,{ClusteringHelper:()=>xo});var xo=class r{constructor(t,e,i,n){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=i,this.metadataDescriptors=n}static extractResultMetadata(t,e){var i,n;let a=((n=(i=t?.map)!==null&&i!==void 0?i:t?.document)!==null&&n!==void 0?n:t?.topic).metadata;return e==null?r.flattenMetadata(a):r.flattenMetadata(a.find(s=>s.key===e))}static flattenMetadata(t){if(Array.isArray(t))return t.map(i=>r.flattenMetadata(i)).filter(i=>i!=null);let e=t?.hierarchicalValues!=null&&t.hierarchicalValues.length>0;if(!(t==null||t.values.length==0&&!e))if(e){let i=[],n=[];return t.hierarchicalValues.forEach(a=>{i.push(a.join(" > ")),a.length>2?n.push(`... > ${a[a.length-1]}`):n.push(a.join(" > "))}),{key:t.key,label:t.label,value:i.join(", "),displayValue:n.join(", ")}}else{let i=t.values.join(", ");return{key:t.key,label:t.label,value:i,displayValue:i}}}computeClustersItemsForMetadata(t,e,i="No value"){var n,a;let s=r.extractResultMetadata(this.selectedResult,t),l=(n=s?.label)!==null&&n!==void 0?n:(a=this.getMetadataDescriptor(t))===null||a===void 0?void 0:a.label;return this.allResults.map(p=>r.extractResultMetadata(p,t)).map(p=>p??{key:t,label:l,value:void 0,displayValue:i}).filter(p=>p.value!=s?.value).filter((p,f,h)=>h.findIndex(y=>y.value===p.value)===f).map(p=>({result:this.findBestResultForMetadataValue(t,p.value),metadata:p})).sort((p,f)=>this.compareMetadata(p.metadata.value,f.metadata.value,t,e))}compareMetadata(t,e,i,n){if(t==null)return-1;if(e==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=t.localeCompare(e,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(e=>t==e.key)}findBestResultForMetadataValue(t,e){let i=this.allResults.filter(d=>{var p;return((p=r.extractResultMetadata(d,t))===null||p===void 0?void 0:p.value)==e}),a=[...r.extractResultMetadata(this.selectedResult).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==t)],s,l=-1;for(let d of i){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(t,e){return r.extractResultMetadata(t).filter(i=>e.some(n=>n.key===i.key&&n.value===i.value)).length}};var Gn={};rt(Gn,{Debouncer:()=>st});var st=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((e,i)=>{this.resolvePromise=e,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,e;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(e=this.resolvePromise)!==null&&e!==void 0?e:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var qn={};rt(qn,{customElement:()=>X,isNumber:()=>zl,jsonProperty:()=>pe,optionalNumberProperty:()=>lu});var Zn={};rt(Zn,{dateReviver:()=>iu,deepEqual:()=>te,delay:()=>bi,eventPathContainsMatchingElement:()=>au,flatDeep:()=>Hl,hasChanged:()=>Oo,last:()=>su,minmax:()=>Co,parseDate:()=>vi,unslotText:()=>xi,waitFor:()=>So,waitUntil:()=>Kn});var bi=r=>new Promise(t=>setTimeout(t,r));async function Kn(r,t=10,e=2e4){await So(async()=>await r()||void 0,t,e)}async function So(r,t=10,e=2e4){let i=await r(),n,a;for(n=a=performance.now();i==null&&(!e||a-n<e);)await bi(t),i=await r(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function Hl(r,t){return r.flatMap(e=>[e,...Hl(t(e),t)])}function iu(...r){return function(t,e){return r.includes(t)?vi(e):e}}function vi(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,e,i,n)=>e+i+":"+n),new Date(r)}function nu(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var e,i,n;if(Array.isArray(r)){if(e=r.length,e!=t.length)return!1;for(i=e;i--!==0;)if(!te(r[i],t[i]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(i of r.entries())if(!t.has(i[0]))return!1;for(i of r.entries())if(!te(i[1],t.get(i[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(i of r.entries())if(!t.has(i[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(n=Object.keys(r),e=n.length,e!==Object.keys(t).length)return!1;for(i=e;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=e;i--!==0;){var a=n[i];if(!te(r[a],t[a]))return!1}return!0}return r!==r&&t!==t}function te(r,t){try{return nu(r,t)}catch{return!1}}function Oo(r,t){return!te(r,t)}function au(r,t,e=window.document.body){if(t.length>0){let i=r.composedPath();for(let n of i){if(n===e)return!1;if(n.matches&&t.some(a=>n.matches(a)))return!0}}return!1}function Co(r,t,e){return Math.min(Math.max(r,t),e)}function su(r){return r[r.length-1]}function xi(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(t=>xi(t)).join(""):r?.textContent||""}var X=r=>t=>{window.customElements.get(r)||window.customElements.define(r,t)};function pe(r,t){let e=()=>JSON.parse(JSON.stringify(r));return g({type:Object,converter:{fromAttribute:i=>{if(i==null)return e();try{return JSON.parse(i)}catch{return e()}},toAttribute:i=>JSON.stringify(i)},hasChanged:Oo,...t??{}})}function lu(r){return g({type:Object,converter:{fromAttribute:t=>{if(t!=null)return zl(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...r??{}})}function zl(r){return!isNaN(parseFloat(r))}var Ea={};rt(Ea,{designSystemVariables:()=>_});var Ca={};rt(Ca,{DesignSystemFamily:()=>mr,DesignSystemSize:()=>we,FtCssVariableFactory:()=>o,badge:()=>hu,banner:()=>fu,button:()=>b,chart:()=>Tu,checkbox:()=>$u,chip:()=>pu,chipChoice:()=>du,collapsible:()=>_u,comboboxMultiSelect:()=>Au,comboboxSingleSelect:()=>wu,drawer:()=>xu,floatingMenu:()=>Eu,foundation:()=>c,link:()=>uu,modal:()=>vu,notice:()=>Pu,notification:()=>Du,pageDesigner:()=>Nu,pageFooter:()=>gu,pageHeader:()=>yu,pageLayout:()=>bu,popover:()=>Ru,radio:()=>ku,reorderableList:()=>Fu,resolveFamilyClass:()=>Sa,resolveSizeClass:()=>Oa,semantic:()=>u,setVariable:()=>x,switch_:()=>Iu,tabs:()=>Su,textArea:()=>Cu,textInput:()=>Ou,titleBreadcrumb:()=>mu,toggle:()=>Lu,tooltip:()=>Mu,typographies:()=>Eo,typographyBody1Medium:()=>ea,typographyBody1Regular:()=>ta,typographyBody1Semibold:()=>ra,typographyBody2Medium:()=>ia,typographyBody2MediumUnderline:()=>Vl,typographyBody2Regular:()=>oa,typographyBody2Semibold:()=>na,typographyCaption1Bold:()=>ha,typographyCaption1Medium:()=>ua,typographyCaption1Semibold:()=>fa,typographyCaption2Bold:()=>ga,typographyCaption2Medium:()=>ma,typographyCaption2Semibold:()=>ya,typographyCaption3Bold:()=>xa,typographyCaption3Medium:()=>ba,typographyCaption3Semibold:()=>va,typographyDisplay:()=>Yn,typographyLabel1Bold:()=>la,typographyLabel1Medium:()=>aa,typographyLabel1Semibold:()=>sa,typographyLabel2Bold:()=>pa,typographyLabel2Medium:()=>ca,typographyLabel2Semibold:()=>da,typographyTitle1:()=>Xn,typographyTitle2:()=>Jn,typographyTitle3:()=>Qn,typographyVariants:()=>cu});var Ee=r=>typeof r=="string"?xe(r):r,o=class{static create(t,e,i,n){let a=l=>Ee(l??n),s=L`var(${Ee(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>L`var(${Ee(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,e,i,n){let a=l=>i.get(l??n),s=L`var(${Ee(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>L`var(${Ee(t)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(t,e){let i=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):Ee(a??t.lastResortDefaultValue()),n=L`var(${Ee(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=a=>L`var(${Ee(t.name)}, ${i(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};function x(r,t){return Ee(`${r.name}: ${t}`)}var c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Yn={fontFamily:o.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-textCase","","UNKNOWN","none")},Xn={fontFamily:o.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Jn={fontFamily:o.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Qn={fontFamily:o.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},ta={fontFamily:o.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},ea={fontFamily:o.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},ra={fontFamily:o.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},oa={fontFamily:o.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},ia={fontFamily:o.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Vl={fontFamily:o.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},na={fontFamily:o.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},aa={fontFamily:o.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},sa={fontFamily:o.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},la={fontFamily:o.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},ca={fontFamily:o.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},da={fontFamily:o.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},pa={fontFamily:o.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},ua={fontFamily:o.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},fa={fontFamily:o.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},ha={fontFamily:o.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},ma={fontFamily:o.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},ya={fontFamily:o.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},ga={fontFamily:o.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},ba={fontFamily:o.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},va={fontFamily:o.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},xa={fontFamily:o.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Eo={display:Yn,"title-1":Xn,"title-2":Jn,"title-3":Qn,"body-1-regular":ta,"body-1-medium":ea,"body-1-semibold":ra,"body-2-regular":oa,"body-2-medium":ia,"body-2-medium-underline":Vl,"body-2-semibold":na,"label-1-medium":aa,"label-1-semibold":sa,"label-1-bold":la,"label-2-medium":ca,"label-2-semibold":da,"label-2-bold":pa,"caption-1-medium":ua,"caption-1-semibold":fa,"caption-1-bold":ha,"caption-2-medium":ma,"caption-2-semibold":ya,"caption-2-bold":ga,"caption-3-medium":ba,"caption-3-semibold":va,"caption-3-bold":xa},cu=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var u={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
7
|
+
Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var b={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ft-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ft-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ft-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ft-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ft-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ft-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:o.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ft-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ft-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ft-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:o.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ft-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ft-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ft-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:o.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ft-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ft-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:o.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ft-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ft-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ft-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:o.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ft-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:o.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ft-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ft-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ft-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:o.extend("--ft-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ft-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:o.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ft-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ft-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ft-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ft-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ft-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:o.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ft-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ft-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ft-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ft-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ft-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:o.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ft-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ft-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ft-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:o.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ft-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ft-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ft-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ft-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ft-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:o.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ft-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var du={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",c.spacing1),largeBorderRadius:o.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:o.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-choice-medium-icon-size","",c.iconSize2)};var pu={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)};var uu={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",c.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",c.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",c.colorBrand100)};var fu={iconSize:o.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)};var hu={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",u.contentActionPrimary)};var mu={horizontalGap:o.extend("--ft-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:o.extend("--ft-title-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-title-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ft-title-breadcrumb-icon-color","",u.contentGlobalSubtle)};var yu={parentHorizontalPadding:o.extend("--ft-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:o.extend("--ft-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:o.extend("--ft-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:o.extend("--ft-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:o.extend("--ft-page-header-parent-title-color","",u.contentGlobalPrimary),parentSubtitleColor:o.extend("--ft-page-header-parent-subtitle-color","",u.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ft-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:o.extend("--ft-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:o.extend("--ft-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:o.extend("--ft-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:o.extend("--ft-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:o.extend("--ft-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:o.extend("--ft-page-header-child-top-padding","",c.spacing2),childBottomPadding:o.extend("--ft-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:o.extend("--ft-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:o.extend("--ft-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:o.extend("--ft-page-header-child-vertical-gap","",c.spacing2),childMinHeight:o.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ft-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:o.extend("--ft-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:o.extend("--ft-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:o.extend("--ft-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),bottomBorderWidth:o.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var gu={horizontalPadding:o.extend("--ft-page-footer-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-page-footer-vertical-padding","",c.spacing2),verticalGap:o.extend("--ft-page-footer-vertical-gap","",c.spacing2),minHeight:o.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ft-page-footer-background-color","",c.colorWhite),topBorderColor:o.extend("--ft-page-footer-top-border-color","",u.borderGlobalSubtle),topBorderWidth:o.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ft-page-footer-buttons-group-gap","",c.spacing4)};var bu={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var vu={smallContainerTargetWidth:o.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ft-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:o.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ft-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:o.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ft-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottomWidth:o.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",c.borderRadiusM)};var xu={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",c.colorGray700)};var Su={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)};var Ou={fieldHorizontalPadding:o.extend("--ft-text-input-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-input-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-input-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-text-input-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var Cu={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",c.borderRadiusM)};var Eu={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var wu={fieldHorizontalPadding:o.extend("--ft-combobox-single-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-single-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-single-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-single-select-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)};var Au={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusM)};var Ru={backgroundColor:o.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",u.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",u.contentActionPrimary),gap:o.extend("--ft-popover-gap","",c.spacing3),borderRadius:o.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-popover-max-width","","SIZE","440px")};var _u={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)};var Iu={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var Tu={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var Nu={color1IconColor:o.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Pu={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ft-notice-dense-gap","",c.spacing1),denseIconSize:o.extend("--ft-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:o.create("--ft-notice-dense-border-width","","SIZE","0")};var $u={color:o.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-checkbox-gap","",c.spacing3)};var Lu={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)};var ku={color:o.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-radio-gap","",c.spacing3)};var Du={iconSize:o.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",c.spacing8)};var Mu={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)};var Fu={verticalPadding:o.extend("--ft-reorderable-list-vertical-padding","",c.spacing4),gap:o.extend("--ft-reorderable-list-gap","",c.spacing1),borderRadius:o.extend("--ft-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:o.extend("--ft-reorderable-list-reorderable-item-title-color","",u.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:o.extend("--ft-reorderable-list-reorderable-item-users-count-color","",u.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:o.extend("--ft-reorderable-list-reorderable-item-background-color","",u.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",u.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",u.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ft-reorderable-list-reorderable-item-grip-color","",u.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:o.extend("--ft-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:o.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ft-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:o.extend("--ft-reorderable-list-left-padding","",c.spacing2),rightPadding:o.extend("--ft-reorderable-list-right-padding","",c.spacing6),borderColor:o.extend("--ft-reorderable-list-border-color","",u.borderGlobalPrimary),backgroundColor:o.extend("--ft-reorderable-list-background-color","",u.backgroundGlobalOnSurfaceDark)};var mr;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(mr||(mr={}));var we;(function(r){r.large="large",r.medium="medium",r.small="small"})(we||(we={}));function Sa(r){return`ftds--family-${r}`}function Oa(r){return`ftds--size-${r}`}var _={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:o.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:o.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:o.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:o.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:o.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:o.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:o.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:o.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:o.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:o.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Fa={};rt(Fa,{computeFlipOffsetPosition:()=>af,computeOffsetPosition:()=>$o});var Gl=["top","right","bottom","left"],jl=["start","end"],wa=Gl.reduce((r,t)=>r.concat(t,t+"-"+jl[0],t+"-"+jl[1]),[]),Ro=Math.min,Be=Math.max,_o=Math.round;var Ae=r=>({x:r,y:r}),Bu={left:"right",right:"left",bottom:"top",top:"bottom"},Uu={start:"end",end:"start"};function Aa(r,t,e){return Be(r,Ro(t,e))}function Mr(r,t){return typeof r=="function"?r(t):r}function ue(r){return r.split("-")[0]}function fe(r){return r.split("-")[1]}function Ra(r){return r==="x"?"y":"x"}function _a(r){return r==="y"?"height":"width"}function Io(r){return["top","bottom"].includes(ue(r))?"y":"x"}function Ia(r){return Ra(Io(r))}function Ta(r,t,e){e===void 0&&(e=!1);let i=fe(r),n=Ia(r),a=_a(n),s=n==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Ao(s)),[s,Ao(s)]}function Kl(r){let t=Ao(r);return[wo(r),t,wo(t)]}function wo(r){return r.replace(/start|end/g,t=>Uu[t])}function Wu(r,t,e){let i=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(r){case"top":case"bottom":return e?t?n:i:t?i:n;case"left":case"right":return t?a:s;default:return[]}}function Zl(r,t,e,i){let n=fe(r),a=Wu(ue(r),e==="start",i);return n&&(a=a.map(s=>s+"-"+n),t&&(a=a.concat(a.map(wo)))),a}function Ao(r){return r.replace(/left|right|bottom|top/g,t=>Bu[t])}function Hu(r){return{top:0,right:0,bottom:0,left:0,...r}}function ql(r){return typeof r!="number"?Hu(r):{top:r,right:r,bottom:r,left:r}}function yr(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function Yl(r,t,e){let{reference:i,floating:n}=r,a=Io(t),s=Ia(t),l=_a(s),d=ue(t),p=a==="y",f=i.x+i.width/2-n.width/2,h=i.y+i.height/2-n.height/2,y=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:f,y:i.y-n.height};break;case"bottom":v={x:f,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:h};break;case"left":v={x:i.x-n.width,y:h};break;default:v={x:i.x,y:i.y}}switch(fe(t)){case"start":v[s]-=y*(e&&p?-1:1);break;case"end":v[s]+=y*(e&&p?-1:1);break}return v}var Xl=async(r,t,e)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=e,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:r,floating:t,strategy:n}),{x:f,y:h}=Yl(p,i,d),y=i,v={},S=0;for(let E=0;E<l.length;E++){let{name:I,fn:N}=l[E],{x:$,y:w,data:C,reset:A}=await N({x:f,y:h,initialPlacement:i,placement:y,strategy:n,middlewareData:v,rects:p,platform:s,elements:{reference:r,floating:t}});if(f=$??f,h=w??h,v={...v,[I]:{...v[I],...C}},A&&S<=50){S++,typeof A=="object"&&(A.placement&&(y=A.placement),A.rects&&(p=A.rects===!0?await s.getElementRects({reference:r,floating:t,strategy:n}):A.rects),{x:f,y:h}=Yl(p,y,d)),E=-1;continue}}return{x:f,y:h,placement:y,strategy:n,middlewareData:v}};async function Si(r,t){var e;t===void 0&&(t={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:y=!1,padding:v=0}=Mr(t,r),S=ql(v),I=l[y?h==="floating"?"reference":"floating":h],N=yr(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(I)))==null||e?I:I.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:f,strategy:d})),$=h==="floating"?{...s.floating,x:i,y:n}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),C=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},A=yr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:$,offsetParent:w,strategy:d}):$);return{top:(N.top-A.top+S.top)/C.y,bottom:(A.bottom-N.bottom+S.bottom)/C.y,left:(N.left-A.left+S.left)/C.x,right:(A.right-N.right+S.right)/C.x}}function zu(r,t,e){return(r?[...e.filter(n=>fe(n)===r),...e.filter(n=>fe(n)!==r)]:e.filter(n=>ue(n)===n)).filter(n=>r?fe(n)===r||(t?wo(n)!==n:!1):!0)}var Na=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(t){var e,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=t,{crossAxis:f=!1,alignment:h,allowedPlacements:y=wa,autoAlignment:v=!0,...S}=Mr(r,t),E=h!==void 0||y===wa?zu(h||null,v,y):y,I=await Si(t,S),N=((e=s.autoPlacement)==null?void 0:e.index)||0,$=E[N];if($==null)return{};let w=Ta($,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==$)return{reset:{placement:E[0]}};let C=[I[ue($)],I[w[0]],I[w[1]]],A=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:$,overflows:C}],k=E[N+1];if(k)return{data:{index:N+1,overflows:A},reset:{placement:k}};let z=A.map(F=>{let m=fe(F.placement);return[F.placement,m&&f?F.overflows.slice(0,2).reduce((O,D)=>O+D,0):F.overflows[0],F.overflows]}).sort((F,m)=>F[1]-m[1]),q=((n=z.filter(F=>F[2].slice(0,fe(F[0])?2:3).every(m=>m<=0))[0])==null?void 0:n[0])||z[0][0];return q!==l?{data:{index:N+1,overflows:A},reset:{placement:q}}:{}}}},Pa=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(t){var e,i;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:p}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:y,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:E=!0,...I}=Mr(r,t);if((e=a.arrow)!=null&&e.alignmentOffset)return{};let N=ue(n),$=ue(l)===l,w=await(d.isRTL==null?void 0:d.isRTL(p.floating)),C=y||($||!E?[Ao(l)]:Kl(l));!y&&S!=="none"&&C.push(...Zl(l,E,S,w));let A=[l,...C],k=await Si(t,I),z=[],J=((i=a.flip)==null?void 0:i.overflows)||[];if(f&&z.push(k[N]),h){let O=Ta(n,s,w);z.push(k[O[0]],k[O[1]])}if(J=[...J,{placement:n,overflows:z}],!z.every(O=>O<=0)){var q,F;let O=(((q=a.flip)==null?void 0:q.index)||0)+1,D=A[O];if(D)return{data:{index:O,overflows:J},reset:{placement:D}};let K=(F=J.filter(Q=>Q.overflows[0]<=0).sort((Q,V)=>Q.overflows[1]-V.overflows[1])[0])==null?void 0:F.placement;if(!K)switch(v){case"bestFit":{var m;let Q=(m=J.map(V=>[V.placement,V.overflows.filter(se=>se>0).reduce((se,oo)=>se+oo,0)]).sort((V,se)=>V[1]-se[1])[0])==null?void 0:m[0];Q&&(K=Q);break}case"initialPlacement":K=l;break}if(n!==K)return{reset:{placement:K}}}return{}}}};async function Vu(r,t){let{placement:e,platform:i,elements:n}=r,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=ue(e),l=fe(e),d=Io(e)==="y",p=["left","top"].includes(s)?-1:1,f=a&&d?-1:1,h=Mr(t,r),{mainAxis:y,crossAxis:v,alignmentAxis:S}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return l&&typeof S=="number"&&(v=l==="end"?S*-1:S),d?{x:v*f,y:y*p}:{x:y*p,y:v*f}}var $a=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(t){var e,i;let{x:n,y:a,placement:s,middlewareData:l}=t,d=await Vu(t,r);return s===((e=l.offset)==null?void 0:e.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},La=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){let{x:e,y:i,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:I=>{let{x:N,y:$}=I;return{x:N,y:$}}},...d}=Mr(r,t),p={x:e,y:i},f=await Si(t,d),h=Io(ue(n)),y=Ra(h),v=p[y],S=p[h];if(a){let I=y==="y"?"top":"left",N=y==="y"?"bottom":"right",$=v+f[I],w=v-f[N];v=Aa($,v,w)}if(s){let I=h==="y"?"top":"left",N=h==="y"?"bottom":"right",$=S+f[I],w=S-f[N];S=Aa($,S,w)}let E=l.fn({...t,[y]:v,[h]:S});return{...E,data:{x:E.x-e,y:E.y-i}}}}};function Re(r){return Ql(r)?(r.nodeName||"").toLowerCase():"#document"}function Wt(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function _e(r){var t;return(t=(Ql(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function Ql(r){return r instanceof Node||r instanceof Wt(r).Node}function he(r){return r instanceof Element||r instanceof Wt(r).Element}function ee(r){return r instanceof HTMLElement||r instanceof Wt(r).HTMLElement}function Jl(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Wt(r).ShadowRoot}function Fr(r){let{overflow:t,overflowX:e,overflowY:i,display:n}=Gt(r);return/auto|scroll|overlay|hidden|clip/.test(t+i+e)&&!["inline","contents"].includes(n)}function tc(r){return["table","td","th"].includes(Re(r))}function Ci(r){let t=Ei(),e=Gt(r);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(e.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(e.contain||"").includes(i))}function ec(r){let t=gr(r);for(;ee(t)&&!To(t);){if(Ci(t))return t;t=gr(t)}return null}function Ei(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function To(r){return["html","body","#document"].includes(Re(r))}function Gt(r){return Wt(r).getComputedStyle(r)}function No(r){return he(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function gr(r){if(Re(r)==="html")return r;let t=r.assignedSlot||r.parentNode||Jl(r)&&r.host||_e(r);return Jl(t)?t.host:t}function rc(r){let t=gr(r);return To(t)?r.ownerDocument?r.ownerDocument.body:r.body:ee(t)&&Fr(t)?t:rc(t)}function Oi(r,t,e){var i;t===void 0&&(t=[]),e===void 0&&(e=!0);let n=rc(r),a=n===((i=r.ownerDocument)==null?void 0:i.body),s=Wt(n);return a?t.concat(s,s.visualViewport||[],Fr(n)?n:[],s.frameElement&&e?Oi(s.frameElement):[]):t.concat(n,Oi(n,[],e))}function nc(r){let t=Gt(r),e=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=ee(r),a=n?r.offsetWidth:e,s=n?r.offsetHeight:i,l=_o(e)!==a||_o(i)!==s;return l&&(e=a,i=s),{width:e,height:i,$:l}}function ac(r){return he(r)?r:r.contextElement}function Br(r){let t=ac(r);if(!ee(t))return Ae(1);let e=t.getBoundingClientRect(),{width:i,height:n,$:a}=nc(t),s=(a?_o(e.width):e.width)/i,l=(a?_o(e.height):e.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var ju=Ae(0);function sc(r){let t=Wt(r);return!Ei()||!t.visualViewport?ju:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Gu(r,t,e){return t===void 0&&(t=!1),!e||t&&e!==Wt(r)?!1:t}function Po(r,t,e,i){t===void 0&&(t=!1),e===void 0&&(e=!1);let n=r.getBoundingClientRect(),a=ac(r),s=Ae(1);t&&(i?he(i)&&(s=Br(i)):s=Br(r));let l=Gu(a,e,i)?sc(a):Ae(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,f=n.width/s.x,h=n.height/s.y;if(a){let y=Wt(a),v=i&&he(i)?Wt(i):i,S=y.frameElement;for(;S&&i&&v!==y;){let E=Br(S),I=S.getBoundingClientRect(),N=Gt(S),$=I.left+(S.clientLeft+parseFloat(N.paddingLeft))*E.x,w=I.top+(S.clientTop+parseFloat(N.paddingTop))*E.y;d*=E.x,p*=E.y,f*=E.x,h*=E.y,d+=$,p+=w,S=Wt(S).frameElement}}return yr({width:f,height:h,x:d,y:p})}function Ku(r){let{rect:t,offsetParent:e,strategy:i}=r,n=ee(e),a=_e(e);if(e===a)return t;let s={scrollLeft:0,scrollTop:0},l=Ae(1),d=Ae(0);if((n||!n&&i!=="fixed")&&((Re(e)!=="body"||Fr(a))&&(s=No(e)),ee(e))){let p=Po(e);l=Br(e),d.x=p.x+e.clientLeft,d.y=p.y+e.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+d.x,y:t.y*l.y-s.scrollTop*l.y+d.y}}function Zu(r){return Array.from(r.getClientRects())}function lc(r){return Po(_e(r)).left+No(r).scrollLeft}function qu(r){let t=_e(r),e=No(r),i=r.ownerDocument.body,n=Be(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=Be(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-e.scrollLeft+lc(r),l=-e.scrollTop;return Gt(i).direction==="rtl"&&(s+=Be(t.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Yu(r,t){let e=Wt(r),i=_e(r),n=e.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let p=Ei();(!p||p&&t==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function Xu(r,t){let e=Po(r,!0,t==="fixed"),i=e.top+r.clientTop,n=e.left+r.clientLeft,a=ee(r)?Br(r):Ae(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=n*a.x,p=i*a.y;return{width:s,height:l,x:d,y:p}}function oc(r,t,e){let i;if(t==="viewport")i=Yu(r,e);else if(t==="document")i=qu(_e(r));else if(he(t))i=Xu(t,e);else{let n=sc(r);i={...t,x:t.x-n.x,y:t.y-n.y}}return yr(i)}function cc(r,t){let e=gr(r);return e===t||!he(e)||To(e)?!1:Gt(e).position==="fixed"||cc(e,t)}function Ju(r,t){let e=t.get(r);if(e)return e;let i=Oi(r,[],!1).filter(l=>he(l)&&Re(l)!=="body"),n=null,a=Gt(r).position==="fixed",s=a?gr(r):r;for(;he(s)&&!To(s);){let l=Gt(s),d=Ci(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Fr(s)&&!d&&cc(r,s))?i=i.filter(f=>f!==s):n=l,s=gr(s)}return t.set(r,i),i}function Qu(r){let{element:t,boundary:e,rootBoundary:i,strategy:n}=r,s=[...e==="clippingAncestors"?Ju(t,this._c):[].concat(e),i],l=s[0],d=s.reduce((p,f)=>{let h=oc(t,f,n);return p.top=Be(h.top,p.top),p.right=Ro(h.right,p.right),p.bottom=Ro(h.bottom,p.bottom),p.left=Be(h.left,p.left),p},oc(t,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function tf(r){return nc(r)}function ef(r,t,e){let i=ee(t),n=_e(t),a=e==="fixed",s=Po(r,!0,a,t),l={scrollLeft:0,scrollTop:0},d=Ae(0);if(i||!i&&!a)if((Re(t)!=="body"||Fr(n))&&(l=No(t)),i){let p=Po(t,!0,a,t);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else n&&(d.x=lc(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function ic(r,t){return!ee(r)||Gt(r).position==="fixed"?null:t?t(r):r.offsetParent}function dc(r,t){let e=Wt(r);if(!ee(r))return e;let i=ic(r,t);for(;i&&tc(i)&&Gt(i).position==="static";)i=ic(i,t);return i&&(Re(i)==="html"||Re(i)==="body"&&Gt(i).position==="static"&&!Ci(i))?e:i||ec(r)||e}var rf=async function(r){let{reference:t,floating:e,strategy:i}=r,n=this.getOffsetParent||dc,a=this.getDimensions;return{reference:ef(t,await n(e),i),floating:{x:0,y:0,...await a(e)}}};function of(r){return Gt(r).direction==="rtl"}var Ur={convertOffsetParentRelativeRectToViewportRelativeRect:Ku,getDocumentElement:_e,getClippingRect:Qu,getOffsetParent:dc,getElementRects:rf,getClientRects:Zu,getDimensions:tf,getScale:Br,isElement:he,isRTL:of};var ka=(r,t,e)=>{let i=new Map,n={platform:Ur,...e},a={...n.platform,_c:i};return Xl(r,t,{...n,platform:a})};function Ma(r){return nf(r)}function Da(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function nf(r){for(let t=r;t;t=Da(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Da(r);t;t=Da(t)){if(!(t instanceof Element))continue;let e=getComputedStyle(t);if(e.display!=="contents"&&(e.position!=="static"||e.filter!=="none"||t.tagName==="BODY"))return t}return null}async function $o(r,t,e){return ka(r,t,{platform:{...Ur,getOffsetParent:i=>Ur.getOffsetParent(i,Ma)},middleware:[La({crossAxis:!0}),Na({allowedPlacements:[e]})]})}async function af(r,t,e,i,n){return ka(r,t,{placement:e,strategy:n,platform:{...Ur,getOffsetParent:a=>Ur.getOffsetParent(a,Ma)},middleware:[$a(4),Pa({fallbackPlacements:i})]})}var Ha={};rt(Ha,{FtdsBase:()=>Wa,toFtdsBase:()=>Ri});var Ua={};rt(Ua,{FtLitElement:()=>j});var Ba={};rt(Ba,{ScopedRegistryLitElement:()=>Lo});var wi=window,sf=wi.ShadowRoot&&(wi.ShadyCSS===void 0||wi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,sv=Symbol();var pc=(r,t)=>{sf?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let i=document.createElement("style"),n=wi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,r.appendChild(i)})};var Lo=class extends Oe{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,a])=>t.registry.define(n,a)));let e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return pc(i,t.elementStyles),i}};var Ai=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},mc,uc=Symbol("constructorPrototype"),fc=Symbol("constructorName"),yc=Symbol("exportpartsDebouncer"),hc=Symbol("dynamicDependenciesLoaded"),j=class extends Lo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[mc]=new st(5),this[fc]=this.constructor.name,this[uc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[fc]&&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(e){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",e)}let t=this.constructor;t[hc]||(t[hc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var e,i,n;if(((i=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var t,e,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(e=this.exportpartsPrefixes)===null||e===void 0?void 0:e.length)!==null&&i!==void 0&&i)&&this[yc].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var e,i,n,a,s,l;let d=y=>y!=null&&y.trim().length>0,p=t.filter(d).map(y=>y.trim());if(p.length===0){this.removeAttribute("exportparts");return}let f=new Set;for(let y of(i=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let v=(a=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...S).filter(d).map(E=>E.trim()).forEach(E=>f.add(E))}if(f.size===0){this.removeAttribute("exportparts");return}let h=[...f.values()].flatMap(y=>p.map(v=>`${y}:${v}--${y}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};mc=yc;Ai([g()],j.prototype,"exportpartsPrefix",void 0);Ai([pe([])],j.prototype,"exportpartsPrefixes",void 0);Ai([g()],j.prototype,"customStylesheet",void 0);Ai([W()],j.prototype,"useAdoptedStyleSheets",void 0);var gc=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a};function Ri(r){class t extends r{constructor(){super(...arguments),this.size=we.medium,this.family=mr.neutral}getDesignSystemBaseClasses(){return{[Sa(this.family)]:!0,[Oa(this.size)]:!0}}}return gc([g()],t.prototype,"size",void 0),gc([g()],t.prototype,"family",void 0),t}var Wa=class extends Ri(j){};var bc={};var ja={};rt(ja,{highlightHtml:()=>Va,highlightHtmlColorCssVariable:()=>vc,highlightHtmlStyles:()=>cf});var br=class r{constructor(t,e=!0,i=[],n=5e3){this.ctx=t,this.iframes=e,this.exclude=i,this.iframesTimeout=n}static matches(t,e){let i=typeof e=="string"?[e]:e,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(t,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let t,e=[];return typeof this.ctx>"u"||!this.ctx?t=[]:NodeList.prototype.isPrototypeOf(this.ctx)?t=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?t=this.ctx:typeof this.ctx=="string"?t=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):t=[this.ctx],t.forEach(i=>{let n=e.filter(a=>a.contains(i)).length>0;e.indexOf(i)===-1&&!n&&e.push(i)}),e}getIframeContents(t,e,i=()=>{}){let n;try{let a=t.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&e(n)}isIframeBlank(t){let e="about:blank",i=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&i!==e&&i}observeIframeLoad(t,e,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,e,i))}catch{i()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,e,i){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,e,i):this.getIframeContents(t,e,i):this.observeIframeLoad(t,e,i)}catch{i()}}waitForIframes(t,e){let i=0;this.forEachIframe(t,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||e()})},n=>{n||e()})}forEachIframe(t,e,i,n=()=>{}){let a=t.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(p=>{r.matches(p,this.exclude)?d():this.onIframeReady(p,f=>{e(p)&&(l++,i(f)),d()},d)})}createIterator(t,e,i){return document.createNodeIterator(t,e,i,!1)}createInstanceOnIframe(t){return new r(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,i){let n=t.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(e!==null){let s=e.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let e=t.previousNode(),i;return e===null?i=t.nextNode():i=t.nextNode()&&t.nextNode(),{prevNode:e,node:i}}checkIframeFilter(t,e,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(t,e,i)?(a===!1&&!s?n.push({val:i,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:i,handled:!1}),!1)}handleOpenIframes(t,e,i,n){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(e,i,n)})})}iterateThroughNodes(t,e,i,n,a){let s=this.createIterator(e,t,n),l=[],d=[],p,f,h=()=>({prevNode:f,node:p}=this.getIteratorNode(s),p);for(;h();)this.iframes&&this.forEachIframe(e,y=>this.checkIframeFilter(p,f,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(t,v=>d.push(v),n)}),d.push(p);d.forEach(y=>{i(y)}),this.iframes&&this.handleOpenIframes(l,t,i,n),a()}forEachNode(t,e,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(t,l,e,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var ko=class{constructor(t){this.ctx=t,this.ie=!1;let e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new br(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[e]=="function"&&i[e](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return this.opt.wildcards!=="disabled"&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),this.opt.wildcards!=="disabled"&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t),t}createSynonymsRegExp(t){let e=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in e)if(e.hasOwnProperty(a)){let s=e[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(t=t.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),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,e=>e.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,e=>e.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let e=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(e,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?e:e+"\0"})}createJoinersRegExp(t){let e=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&e.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){let e=this.opt.caseSensitive?"":"i",i=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return t.split("").forEach(a=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;t=t.replace(new RegExp(`[${s}]`,`gm${e}`),`[${s}]`),n.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let e="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",i=this.opt.accuracy,n=typeof i=="string"?i:i.value,a=typeof i=="string"?[]:i.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${t})`;case"complementary":return s="\\s"+(s||this.escapeStr(e)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let e=[];return t.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&e.indexOf(n)===-1&&e.push(n)}):i.trim()&&e.indexOf(i)===-1&&e.push(i)}),{keywords:e.sort((i,n)=>n.length-i.length),length:e.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||Object.prototype.toString.call(t[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];let e=[],i=0;return t.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,i);l&&(n.start=a,n.length=s-a,e.push(n),i=s)}),e}callNoMatchOnInvalidRanges(t,e){let i,n,a=!1;return t&&typeof t.start<"u"?(i=parseInt(t.start,10),n=i+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&n-e>0&&n-i>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:i,end:n,valid:a}}checkWhitespaceRanges(t,e,i){let n,a=!0,s=i.length,l=e-s,d=parseInt(t.start,10)-l;return d=d>s?s:d,n=d+parseInt(t.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):i.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:d,end:n,valid:a}}getTextNodes(t){let e="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:e.length,end:(e+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:e,nodes:i})})}matchesExclude(t){return br.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,i){let n=this.opt.element?this.opt.element:"mark",a=t.splitText(e),s=a.splitText(i-e),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(t,e,i,n,a){t.nodes.every((s,l)=>{let d=t.nodes[l+1];if(typeof d>"u"||d.start>e){if(!n(s.node))return!1;let p=e-s.start,f=(i>s.end?s.end:i)-s.start,h=t.value.substr(0,s.start),y=t.value.substr(f+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,f),t.value=h+y,t.nodes.forEach((v,S)=>{S>=l&&(t.nodes[S].start>0&&S!==l&&(t.nodes[S].start-=f),t.nodes[S].end-=f)}),i-=f,a(s.node.previousSibling,s.start),i>s.end)e=s.end;else return!1}return!0})}wrapMatches(t,e,i,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=t.exec(d.textContent))!==null&&p[s]!=="";){if(!i(p[s],d))continue;let f=p.index;if(s!==0)for(let h=1;h<s;h++)f+=p[h].length;d=this.wrapRangeInTextNode(d,f,f+p[s].length),n(d.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,e,i,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{let d;for(;(d=t.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let h=1;h<s;h++)p+=d[h].length;let f=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,f,h=>i(d[s],h),(h,y)=>{t.lastIndex=y,n(h)})}a()})}wrapRangeFromIndex(t,e,i,n){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,d)=>{let{start:p,end:f,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,p,f,y=>e(y,l,a.value.substring(p,f),d),y=>{i(y,l)})}),n()})}unwrapMatches(t){let e=t.parentNode,i=document.createDocumentFragment();for(;t.firstChild;)i.appendChild(t.removeChild(t.firstChild));e.replaceChild(i,t),this.ie?this.normalizeTextNode(e):e.normalize()}normalizeTextNode(t){if(t){if(t.nodeType===3)for(;t.nextSibling&&t.nextSibling.nodeType===3;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,e){this.opt=e,this.log(`Searching with expression "${t}"`);let i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](t,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(t),this.opt.done(i)})}mark(t,e){this.opt=e;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",d=p=>{let f=new RegExp(this.createRegExp(p),`gm${l}`),h=0;this.log(`Searching with expression "${f}"`),this[n](f,1,(y,v)=>this.opt.filter(v,p,i,h),y=>{h++,i++,this.opt.each(y)},()=>{h===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(i):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(t,e){this.opt=e;let i=0,n=this.checkRanges(t);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{i++,this.opt.each(a,s)},()=>{this.opt.done(i)})):this.opt.done(i)}unmark(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=br.matches(i,e),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function za(r){let t=new ko(r);return this.mark=(e,i)=>(t.mark(e,i),this),this.markRegExp=(e,i)=>(t.markRegExp(e,i),this),this.markRanges=(e,i)=>(t.markRanges(e,i),this),this.unmark=e=>(t.unmark(e),this),this}var lf=za,vc=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),cf=L`
|
|
8
8
|
.highlight-html-match {
|
|
9
9
|
background: ${vc};
|
|
10
10
|
}
|
|
11
|
-
`;function Va(r,t,e){var i,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(t??"")){let s=new
|
|
11
|
+
`;function Va(r,t,e){var i,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(t??"")){let s=new lf(r);if(s.unmark(),t&&t.trim()){let l={className:(i=e?.className)!==null&&i!==void 0?i:"highlight-html-match"};e?.attributes!=null&&(l.each=p=>{for(let f in e.attributes)p.setAttribute(f,e.attributes[f])}),s.mark(t.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=t.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",t??"")}var Ka={};rt(Ka,{noTextInputDefaultClearButton:()=>Ga,noTextSelect:()=>vr,safariEllipsisFix:()=>xr,wordWrap:()=>df});var vr=L`
|
|
12
12
|
.ft-no-text-select {
|
|
13
13
|
-webkit-touch-callout: none;
|
|
14
14
|
-webkit-user-select: none;
|
|
@@ -17,7 +17,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
17
17
|
-ms-user-select: none;
|
|
18
18
|
user-select: none;
|
|
19
19
|
}
|
|
20
|
-
`,
|
|
20
|
+
`,df=L`
|
|
21
21
|
.ft-word-wrap {
|
|
22
22
|
white-space: normal;
|
|
23
23
|
word-wrap: break-word;
|
|
@@ -47,7 +47,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
47
47
|
input::-webkit-search-results-decoration {
|
|
48
48
|
display: none;
|
|
49
49
|
}
|
|
50
|
-
`;var xc={};var Za={};rt(Za,{ParametrizedLabelResolver:()=>Do});var Do=class r{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let a=(n=(i=this.labels[t])!==null&&i!==void 0?i:this.defaultLabels[t])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...e)}static replaceParameters(t,...e){return e.forEach((i,n)=>t=t.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(i,s))),t}resolvePluralKey(t,e){for(let i of e)if(typeof i=="number"){let n=`${String(t)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return t}static formatValue(t,e){return t instanceof Date?r.formatDate(t,e):t??""}static formatDate(t,e){let i=n=>e?.includes("date")?t.toLocaleDateString(n):e?.includes("time")?t.toLocaleTimeString(n):t.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var xs={};rt(xs,{FtCommandQueue:()=>Fo,FtLitElementRedux:()=>Zt,FtReduxStore:()=>Ne,clearAllStores:()=>Kf,isFtReduxStore:()=>Sr,redux:()=>ct,reduxEventListener:()=>Mo,reduxReactive:()=>df});var df=()=>(r,t)=>{var e;let i=r.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(e=i.reduxReactiveProperties)===null||e===void 0||e.add(t)},ct=r=>{let t=r??{};return(e,i)=>{var n;let a={hasChanged:Oo,attribute:!1,...t};g(a)(e,i);let s=e.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=t.selector)!==null&&n!==void 0?n:l=>l[i],store:t.store})}},Mo=r=>(t,e)=>{let i=t.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(e,r)};var Fo=class{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter(i=>i.type!==t.type)),this.queue.push(t)}consume(t){let e=this.queue.find(i=>i.type===t);return e&&(this.queue=this.queue.filter(i=>i!==e)),e}};function Sr(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Sc,Oc,Cc,_i=Symbol("internalReduxEventsUnsubscribers"),Ue=Symbol("internalStoresUnsubscribers"),Or=Symbol("internalStores"),Zt=class extends j{constructor(){super(...arguments),this[Sc]=new Map,this[Oc]=new Map,this[Cc]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(e=>t.has(e))&&this.updateFromStores()}getUnnamedStore(){if(this[Or].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Or].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Or].get(t)}addStore(t,e){var i;e=(i=e??(Sr(t)?t.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){let e=typeof t=="string"?t:t.name;this.unsubscribeFromStore(e),this[Or].delete(e)}setupStore(t,e){this[Or].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Or].forEach((t,e)=>this.subscribeToStore(e,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,e)=>{let i=this.constructor.getPropertyOptions(e);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:e)){let n=this.getStore(t.store);n&&(t.store?this[Ue].has(t.store):this[Ue].size>0)&&(this[e]=t.selector(n.getState(),this))}})}subscribeToStore(t,e){var i;this[Ue].set(t,e.subscribe(()=>this.updateFromStores())),Sr(e)&&e.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||e.name===n.store)){let s=l=>this[a](l);e.addEventListener(n.eventName,s),this[_i].push(()=>e.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ue].forEach((t,e)=>this.unsubscribeFromStore(e)),this[_i].forEach(t=>t()),this[_i]=[]}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()}};Sc=Ue,Oc=Or,Cc=_i;Zt.reduxProperties=new Map;Zt.reduxReactiveProperties=new Set;Zt.reduxEventListeners=new Map;function qt(r){for(var t=arguments.length,e=Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(e.length?" "+e.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Te(r){return!!r&&!!r[dt]}function re(r){var t;return!!r&&(function(e){if(!e||typeof e!="object")return!1;var i=Object.getPrototypeOf(e);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===bf}(r)||Array.isArray(r)||!!r[Nc]||!!(!((t=r.constructor)===null||t===void 0)&&t[Nc])||os(r)||is(r))}function Cr(r,t,e){e===void 0&&(e=!1),zr(r)===0?(e?Object.keys:Hr)(r).forEach(function(i){e&&typeof i=="symbol"||t(i,r[i],r)}):r.forEach(function(i,n){return t(n,i,r)})}function zr(r){var t=r[dt];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:os(r)?2:is(r)?3:0}function Wr(r,t){return zr(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function pf(r,t){return zr(r)===2?r.get(t):r[t]}function Ic(r,t,e){var i=zr(r);i===2?r.set(t,e):i===3?r.add(e):r[t]=e}function $c(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function os(r){return yf&&r instanceof Map}function is(r){return gf&&r instanceof Set}function We(r){return r.o||r.t}function ns(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=kc(r);delete t[dt];for(var e=Hr(t),i=0;i<e.length;i++){var n=e[i],a=t[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),t)}function as(r,t){return t===void 0&&(t=!1),ss(r)||Te(r)||!re(r)||(zr(r)>1&&(r.set=r.add=r.clear=r.delete=uf),Object.freeze(r),t&&Cr(r,function(e,i){return as(i,!0)},!0)),r}function uf(){qt(2)}function ss(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function me(r){var t=rs[r];return t||qt(18,r),t}function ff(r,t){rs[r]||(rs[r]=t)}function Qa(){return Uo}function qa(r,t){t&&(me("Patches"),r.u=[],r.s=[],r.v=t)}function Ti(r){ts(r),r.p.forEach(hf),r.p=null}function ts(r){r===Uo&&(Uo=r.l)}function wc(r){return Uo={p:[],l:Uo,h:r,m:!0,_:0}}function hf(r){var t=r[dt];t.i===0||t.i===1?t.j():t.g=!0}function Ya(r,t){t._=t.p.length;var e=t.p[0],i=r!==void 0&&r!==e;return t.h.O||me("ES5").S(t,r,i),i?(e[dt].P&&(Ti(t),qt(4)),re(r)&&(r=Ni(t,r),t.l||Ii(t,r)),t.u&&me("Patches").M(e[dt].t,r,t.u,t.s)):r=Ni(t,e,[]),Ti(t),t.u&&t.v(t.u,t.s),r!==Lc?r:void 0}function Ni(r,t,e){if(ss(t))return t;var i=t[dt];if(!i)return Cr(t,function(l,d){return Ec(r,i,t,l,d,e)},!0),t;if(i.A!==r)return t;if(!i.P)return Ii(r,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=ns(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Cr(a,function(l,d){return Ec(r,i,n,l,d,e,s)}),Ii(r,n,!1),e&&r.u&&me("Patches").N(i,e,r.u,r.s)}return i.o}function Ec(r,t,e,i,n,a,s){if(Te(n)){var l=Ni(r,n,a&&t&&t.i!==3&&!Wr(t.R,i)?a.concat(i):void 0);if(Ic(e,i,l),!Te(l))return;r.m=!1}else s&&e.add(n);if(re(n)&&!ss(n)){if(!r.h.D&&r._<1)return;Ni(r,n),t&&t.A.l||Ii(r,n)}}function Ii(r,t,e){e===void 0&&(e=!1),!r.l&&r.h.D&&r.m&&as(t,e)}function Xa(r,t){var e=r[dt];return(e?We(e):r)[t]}function Ac(r,t){if(t in r)for(var e=Object.getPrototypeOf(r);e;){var i=Object.getOwnPropertyDescriptor(e,t);if(i)return i;e=Object.getPrototypeOf(e)}}function He(r){r.P||(r.P=!0,r.l&&He(r.l))}function Ja(r){r.o||(r.o=ns(r.t))}function es(r,t,e){var i=os(t)?me("MapSet").F(t,e):is(t)?me("MapSet").T(t,e):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Qa(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=Wo;s&&(d=[l],p=Bo);var f=Proxy.revocable(d,p),h=f.revoke,y=f.proxy;return l.k=y,l.j=h,y}(t,e):me("ES5").J(t,e);return(e?e.A:Qa()).p.push(i),i}function mf(r){return Te(r)||qt(22,r),function t(e){if(!re(e))return e;var i,n=e[dt],a=zr(e);if(n){if(!n.P&&(n.i<4||!me("ES5").K(n)))return n.t;n.I=!0,i=Rc(e,a),n.I=!1}else i=Rc(e,a);return Cr(i,function(s,l){n&&pf(n.t,s)===l||Ic(i,s,t(l))}),a===3?new Set(i):i}(r)}function Rc(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return ns(r)}function Pc(){function r(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[dt];return Wo.get(p,s)},set:function(p){var f=this[dt];Wo.set(f,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][dt];if(!d.P)switch(d.i){case 5:i(d)&&He(d);break;case 4:e(d)&&He(d)}}}function e(s){for(var l=s.t,d=s.k,p=Hr(d),f=p.length-1;f>=0;f--){var h=p[f];if(h!==dt){var y=l[h];if(y===void 0&&!Wr(l,h))return!0;var v=d[h],S=v&&v[dt];if(S?S.t!==y:!$c(v,y))return!0}}var w=!!l[dt];return p.length!==Hr(l).length+(w?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&qt(3,JSON.stringify(We(s)))}var a={};ff("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(h,y){if(h){for(var v=Array(y.length),S=0;S<y.length;S++)Object.defineProperty(v,""+S,r(S,!0));return v}var w=kc(y);delete w[dt];for(var T=Hr(w),I=0;I<T.length;I++){var P=T[I];w[P]=r(P,h||!!w[P].enumerable)}return Object.create(Object.getPrototypeOf(y),w)}(d,s),f={i:d?5:4,A:l?l.A:Qa(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,dt,{value:f,writable:!0}),p},S:function(s,l,d){d?Te(l)&&l[dt].A===s&&t(s.p):(s.u&&function p(f){if(f&&typeof f=="object"){var h=f[dt];if(h){var y=h.t,v=h.k,S=h.R,w=h.i;if(w===4)Cr(v,function(C){C!==dt&&(y[C]!==void 0||Wr(y,C)?S[C]||p(v[C]):(S[C]=!0,He(h)))}),Cr(y,function(C){v[C]!==void 0||Wr(v,C)||(S[C]=!1,He(h))});else if(w===5){if(i(h)&&(He(h),S.length=!0),v.length<y.length)for(var T=v.length;T<y.length;T++)S[T]=!1;else for(var I=y.length;I<v.length;I++)S[I]=!0;for(var P=Math.min(v.length,y.length),E=0;E<P;E++)v.hasOwnProperty(E)||(S[E]=!0),S[E]===void 0&&p(v[E])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?e(s):i(s)}})}var _c,Uo,ls=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",yf=typeof Map<"u",gf=typeof Set<"u",Tc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Lc=ls?Symbol.for("immer-nothing"):((_c={})["immer-nothing"]=!0,_c),Nc=ls?Symbol.for("immer-draftable"):"__$immer_draftable",dt=ls?Symbol.for("immer-state"):"__$immer_state";var bf=""+Object.prototype.constructor,Hr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,kc=Object.getOwnPropertyDescriptors||function(r){var t={};return Hr(r).forEach(function(e){t[e]=Object.getOwnPropertyDescriptor(r,e)}),t},rs={},Wo={get:function(r,t){if(t===dt)return r;var e=We(r);if(!Wr(e,t))return function(n,a,s){var l,d=Ac(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0}(r,e,t);var i=e[t];return r.I||!re(i)?i:i===Xa(r.t,t)?(Ja(r),r.o[t]=es(r.A.h,i,r)):i},has:function(r,t){return t in We(r)},ownKeys:function(r){return Reflect.ownKeys(We(r))},set:function(r,t,e){var i=Ac(We(r),t);if(i?.set)return i.set.call(r.k,e),!0;if(!r.P){var n=Xa(We(r),t),a=n?.[dt];if(a&&a.t===e)return r.o[t]=e,r.R[t]=!1,!0;if($c(e,n)&&(e!==void 0||Wr(r.t,t)))return!0;Ja(r),He(r)}return r.o[t]===e&&(e!==void 0||t in r.o)||Number.isNaN(e)&&Number.isNaN(r.o[t])||(r.o[t]=e,r.R[t]=!0),!0},deleteProperty:function(r,t){return Xa(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,Ja(r),He(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var e=We(r),i=Reflect.getOwnPropertyDescriptor(e,t);return i&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:i.enumerable,value:e[t]}},defineProperty:function(){qt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){qt(12)}},Bo={};Cr(Wo,function(r,t){Bo[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Bo.deleteProperty=function(r,t){return Bo.set.call(this,r,t,void 0)},Bo.set=function(r,t,e){return Wo.set.call(this,r[0],t,e,r[0])};var vf=function(){function r(e){var i=this;this.O=Tc,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=i;return function(w){var T=this;w===void 0&&(w=l);for(var I=arguments.length,P=Array(I>1?I-1:0),E=1;E<I;E++)P[E-1]=arguments[E];return d.produce(w,function(C){var A;return(A=a).call.apply(A,[T,C].concat(P))})}}var p;if(typeof a!="function"&&qt(6),s!==void 0&&typeof s!="function"&&qt(7),re(n)){var f=wc(i),h=es(i,n,void 0),y=!0;try{p=a(h),y=!1}finally{y?Ti(f):ts(f)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(w){return qa(f,s),Ya(w,f)},function(w){throw Ti(f),w}):(qa(f,s),Ya(p,f))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Lc&&(p=void 0),i.D&&as(p,!0),s){var v=[],S=[];me("Patches").M(n,p,v,S),s(v,S)}return p}qt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),y=1;y<f;y++)h[y-1]=arguments[y];return i.produceWithPatches(p,function(v){return n.apply(void 0,[v].concat(h))})};var s,l,d=i.produce(n,a,function(p,f){s=p,l=f});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof e?.useProxies=="boolean"&&this.setUseProxies(e.useProxies),typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze)}var t=r.prototype;return t.createDraft=function(e){re(e)||qt(8),Te(e)&&(e=mf(e));var i=wc(this),n=es(this,e,void 0);return n[dt].C=!0,ts(i),n},t.finishDraft=function(e,i){var n=e&&e[dt],a=n.A;return qa(a,i),Ya(void 0,a)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!Tc&&qt(20),this.O=e},t.applyPatches=function(e,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(i=i.slice(n+1));var s=me("Patches").$;return Te(e)?s(e,i):this.produce(e,function(l){return s(l,i)})},r}(),Kt=new vf,xf=Kt.produce,Tv=Kt.produceWithPatches.bind(Kt),Nv=Kt.setAutoFreeze.bind(Kt),Iv=Kt.setUseProxies.bind(Kt),$v=Kt.applyPatches.bind(Kt),Pv=Kt.createDraft.bind(Kt),Lv=Kt.finishDraft.bind(Kt),$i=xf;function ze(r){"@babel/helpers - typeof";return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ze(r)}function cs(r,t){if(ze(r)!=="object"||r===null)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var i=e.call(r,t||"default");if(ze(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function ds(r){var t=cs(r,"string");return ze(t)==="symbol"?t:String(t)}function ps(r,t,e){return t=ds(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function Dc(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,i)}return e}function Pi(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Dc(Object(e),!0).forEach(function(i){ps(r,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Dc(Object(e)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(e,i))})}return r}function Pt(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var Mc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),us=function(){return Math.random().toString(36).substring(7).split("").join(".")},Li={INIT:"@@redux/INIT"+us(),REPLACE:"@@redux/REPLACE"+us(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+us()}};function Sf(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function fs(r,t,e){var i;if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(Pt(0));if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(Pt(1));return e(fs)(r,t)}if(typeof r!="function")throw new Error(Pt(2));var n=r,a=t,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function f(){if(d)throw new Error(Pt(3));return a}function h(w){if(typeof w!="function")throw new Error(Pt(4));if(d)throw new Error(Pt(5));var T=!0;return p(),l.push(w),function(){if(T){if(d)throw new Error(Pt(6));T=!1,p();var P=l.indexOf(w);l.splice(P,1),s=null}}}function y(w){if(!Sf(w))throw new Error(Pt(7));if(typeof w.type>"u")throw new Error(Pt(8));if(d)throw new Error(Pt(9));try{d=!0,a=n(a,w)}finally{d=!1}for(var T=s=l,I=0;I<T.length;I++){var P=T[I];P()}return w}function v(w){if(typeof w!="function")throw new Error(Pt(10));n=w,y({type:Li.REPLACE})}function S(){var w,T=h;return w={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(Pt(11));function E(){P.next&&P.next(f())}E();var C=T(E);return{unsubscribe:C}}},w[Mc]=function(){return this},w}return y({type:Li.INIT}),i={dispatch:y,subscribe:h,getState:f,replaceReducer:v},i[Mc]=S,i}function Of(r){Object.keys(r).forEach(function(t){var e=r[t],i=e(void 0,{type:Li.INIT});if(typeof i>"u")throw new Error(Pt(12));if(typeof e(void 0,{type:Li.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Pt(13))})}function Fc(r){for(var t=Object.keys(r),e={},i=0;i<t.length;i++){var n=t[i];typeof r[n]=="function"&&(e[n]=r[n])}var a=Object.keys(e),s,l;try{Of(e)}catch(d){l=d}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var y=!1,v={},S=0;S<a.length;S++){var w=a[S],T=e[w],I=p[w],P=T(I,f);if(typeof P>"u"){var E=f&&f.type;throw new Error(Pt(14))}v[w]=P,y=y||P!==I}return y=y||a.length!==Object.keys(p).length,y?v:p}}function Vr(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Bc(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Pt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return a=Vr.apply(void 0,l)(n.dispatch),Pi(Pi({},n),{},{dispatch:a})}}}function Uc(r){var t=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return t}var Wc=Uc();Wc.withExtraArgument=Uc;var hs=Wc;var Gc=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Cf=function(r,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(f){return d([p,f])}}function d(p){if(i)throw new TypeError("Generator is already executing.");for(;e;)try{if(i=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return e.label++,{value:p[1],done:!1};case 5:e.label++,n=p[1],p=[0];continue;case 7:p=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){e=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){e.label=p[1];break}if(p[0]===6&&e.label<a[1]){e.label=a[1],a=p;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(p);break}a[2]&&e.ops.pop(),e.trys.pop();continue}p=t.call(r,e)}catch(f){p=[6,f],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},jr=function(r,t){for(var e=0,i=t.length,n=r.length;e<i;e++,n++)r[n]=t[e];return r},wf=Object.defineProperty,Ef=Object.defineProperties,Af=Object.getOwnPropertyDescriptors,Hc=Object.getOwnPropertySymbols,Rf=Object.prototype.hasOwnProperty,_f=Object.prototype.propertyIsEnumerable,zc=function(r,t,e){return t in r?wf(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e},Ve=function(r,t){for(var e in t||(t={}))Rf.call(t,e)&&zc(r,e,t[e]);if(Hc)for(var i=0,n=Hc(t);i<n.length;i++){var e=n[i];_f.call(t,e)&&zc(r,e,t[e])}return r},ms=function(r,t){return Ef(r,Af(t))},Tf=function(r,t,e){return new Promise(function(i,n){var a=function(d){try{l(e.next(d))}catch(p){n(p)}},s=function(d){try{l(e.throw(d))}catch(p){n(p)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((e=e.apply(r,t)).next())})};var Nf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Vr:Vr.apply(null,arguments)},Jv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function If(r){if(typeof r!="object"||r===null)return!1;var t=Object.getPrototypeOf(r);if(t===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return t===e}var $f=function(r){Gc(t,r);function t(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,jr([void 0],e[0].concat(this)))):new(t.bind.apply(t,jr([void 0],e.concat(this))))},t}(Array),Pf=function(r){Gc(t,r);function t(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,jr([void 0],e[0].concat(this)))):new(t.bind.apply(t,jr([void 0],e.concat(this))))},t}(Array);function bs(r){return re(r)?$i(r,function(){}):r}function Lf(r){return typeof r=="boolean"}function kf(){return function(t){return Df(t)}}function Df(r){r===void 0&&(r={});var t=r.thunk,e=t===void 0?!0:t,i=r.immutableCheck,n=i===void 0?!0:i,a=r.serializableCheck,s=a===void 0?!0:a,l=new $f;if(e&&(Lf(e)?l.push(hs):l.push(hs.withExtraArgument(e.extraArgument))),0){if(n)var d;if(s)var p}return l}var ys=!0;function Kc(r){var t=kf(),e=r||{},i=e.reducer,n=i===void 0?void 0:i,a=e.middleware,s=a===void 0?t():a,l=e.devTools,d=l===void 0?!0:l,p=e.preloadedState,f=p===void 0?void 0:p,h=e.enhancers,y=h===void 0?void 0:h,v;if(typeof n=="function")v=n;else if(If(n))v=Fc(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var S=s;if(typeof S=="function"&&(S=S(t),!ys&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ys&&S.some(function(C){return typeof C!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=Bc.apply(void 0,S),T=Vr;d&&(T=Nf(Ve({trace:!ys},typeof d=="object"&&d)));var I=new Pf(w),P=I;Array.isArray(y)?P=jr([w],y):typeof y=="function"&&(P=y(I));var E=T.apply(void 0,P);return fs(v,f,E)}function je(r,t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(t){var a=t.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return Ve(Ve({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:i[0]}}return e.toString=function(){return""+r},e.type=r,e.match=function(i){return i.type===r},e}function Zc(r){var t={},e=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,n},addMatcher:function(a,s){return e.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return r(n),[t,e,i]}function Mf(r){return typeof r=="function"}function Ff(r,t,e,i){e===void 0&&(e=[]);var n=typeof t=="function"?Zc(t):[t,e,i],a=n[0],s=n[1],l=n[2],d;if(Mf(r))d=function(){return bs(r())};else{var p=bs(r);d=function(){return p}}function f(h,y){h===void 0&&(h=d());var v=jr([a[y.type]],s.filter(function(S){var w=S.matcher;return w(y)}).map(function(S){var w=S.reducer;return w}));return v.filter(function(S){return!!S}).length===0&&(v=[l]),v.reduce(function(S,w){if(w)if(Te(S)){var T=S,I=w(T,y);return I===void 0?S:I}else{if(re(S))return $i(S,function(P){return w(P,y)});var I=w(S,y);if(I===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return S},h)}return f.getInitialState=d,f}function Bf(r,t){return r+"/"+t}function qc(r){var t=r.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var e=typeof r.initialState=="function"?r.initialState:bs(r.initialState),i=r.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(f){var h=i[f],y=Bf(t,f),v,S;"reducer"in h?(v=h.reducer,S=h.prepare):v=h,a[f]=v,s[y]=v,l[f]=S?je(y,S):je(y)});function d(){var f=typeof r.extraReducers=="function"?Zc(r.extraReducers):[r.extraReducers],h=f[0],y=h===void 0?{}:h,v=f[1],S=v===void 0?[]:v,w=f[2],T=w===void 0?void 0:w,I=Ve(Ve({},y),s);return Ff(e,function(P){for(var E in I)P.addCase(E,I[E]);for(var C=0,A=S;C<A.length;C++){var k=A[C];P.addMatcher(k.matcher,k.reducer)}T&&P.addDefaultCase(T)})}var p;return{name:t,reducer:function(f,h){return p||(p=d()),p(f,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Uf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wf=function(r){r===void 0&&(r=21);for(var t="",e=r;e--;)t+=Uf[Math.random()*64|0];return t},Hf=["name","message","stack","code"],gs=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),Vc=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),zf=function(r){if(typeof r=="object"&&r!==null){for(var t={},e=0,i=Hf;e<i.length;e++){var n=i[e];typeof r[n]=="string"&&(t[n]=r[n])}return t}return{message:String(r)}},rx=function(){function r(t,e,i){var n=je(t+"/fulfilled",function(f,h,y,v){return{payload:f,meta:ms(Ve({},v||{}),{arg:y,requestId:h,requestStatus:"fulfilled"})}}),a=je(t+"/pending",function(f,h,y){return{payload:void 0,meta:ms(Ve({},y||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=je(t+"/rejected",function(f,h,y,v,S){return{payload:v,error:(i&&i.serializeError||zf)(f||"Rejected"),meta:ms(Ve({},S||{}),{arg:y,requestId:h,rejectedWithValue:!!v,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function p(f){return function(h,y,v){var S=i?.idGenerator?i.idGenerator(f):Wf(),w=new d,T,I=!1;function P(C){T=C,w.abort()}var E=function(){return Tf(this,null,function(){var C,A,k,z,J,q,F;return Cf(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),z=(C=i?.condition)==null?void 0:C.call(i,f,{getState:y,extra:v}),jf(z)?[4,z]:[3,2];case 1:z=m.sent(),m.label=2;case 2:if(z===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,J=new Promise(function(O,D){return w.signal.addEventListener("abort",function(){return D({name:"AbortError",message:T||"Aborted"})})}),h(a(S,f,(A=i?.getPendingMeta)==null?void 0:A.call(i,{requestId:S,arg:f},{getState:y,extra:v}))),[4,Promise.race([J,Promise.resolve(e(f,{dispatch:h,getState:y,extra:v,requestId:S,signal:w.signal,abort:P,rejectWithValue:function(O,D){return new gs(O,D)},fulfillWithValue:function(O,D){return new Vc(O,D)}})).then(function(O){if(O instanceof gs)throw O;return O instanceof Vc?n(O.payload,S,f,O.meta):n(O,S,f)})])];case 3:return k=m.sent(),[3,5];case 4:return q=m.sent(),k=q instanceof gs?s(null,S,f,q.payload,q.meta):s(q,S,f),[3,5];case 5:return F=i&&!i.dispatchConditionRejection&&s.match(k)&&k.meta.condition,F||h(k),[2,k]}})})}();return Object.assign(E,{abort:P,requestId:S,arg:f,unwrap:function(){return E.then(Vf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return r.withTypes=function(){return r},r}();function Vf(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function jf(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Yc="listener",Xc="completed",Jc="cancelled",ox="task-"+Jc,ix="task-"+Xc,nx=Yc+"-"+Jc,ax=Yc+"-"+Xc;var vs="listenerMiddleware";var sx=je(vs+"/add"),lx=je(vs+"/removeAll"),cx=je(vs+"/remove");var jc,dx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(jc||(jc=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},Gf=function(r){return function(t){setTimeout(t,r)}},px=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Gf(10);Pc();window.ftReduxStores||(window.ftReduxStores={});var Ne=class r extends hr{static get(t){var e;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[i];if(Sr(a))return a;if(n==null)return;let s=qc({...n,reducers:(e=n.reducers)!==null&&e!==void 0?e:{}}),l=Kc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[n.name]=new r(s,l)}constructor(t,e){super(),this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.commands=new Fo,this.actions=new Proxy(this.reduxSlice.actions,{get:(i,n,a)=>{let s=n,l=i[s];return l?(...d)=>{let p=l(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]: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 Kf(){var r;for(let t of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))Sr(t)&&t.clear()}var Cs={};rt(Cs,{scrollHelper:()=>Zf});var Ss,ki=new Map,Os=class{lock(t,e){if(e){let i=ki.get(e);if(i==null||i===t)return ki.set(e,t),e}}release(t,e){e&&ki.get(e)===t&&ki.delete(e)}findFirstScrollableParent(t){let e,i=n=>{var a;n.stopPropagation();let s,l;for(let d of n.composedPath()){let p=d,f=this.elementCanScroll(p);if(f&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else f&&l==null&&(l=p)}e=(a=s??l)!==null&&a!==void 0?a:document.body};return t.addEventListener("find-scrollable-parent",i),t.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),t.removeEventListener("find-scrollable-parent",i),e}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,e){let i=0;for(;e&&e.offsetParent!==t.offsetParent;)i+=e.offsetTop,e=e.offsetParent;return i+e.offsetTop-t.offsetTop}computeTopOffsetRatio(t,e){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return e;default:return 0}}scrollIntoViewIfPossible(t,e){let i=this.findFirstScrollableParent(t);if(t&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,t),a=n-i.clientHeight+t.clientHeight,s=n,l=Co(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(e?.position,l)*(a-s)+s;i.scrollTo({behavior:e?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(Ss=window.FluidTopicsScrollHelper)!==null&&Ss!==void 0?Ss:new Os;var Zf=window.FluidTopicsScrollHelper;var ws={};rt(ws,{shadowQuerySelector:()=>qf,shadowQuerySelectorAll:()=>Yf});function qf(r,t,...e){var i;let n=r.querySelector(t);for(let a of e)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function Yf(r,t,...e){let i=[...r.querySelectorAll(t)];for(let n of e)i=i.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var Es={};rt(Es,{SearchPlaceConverter:()=>zo,SearchPlaceQueryParams:()=>ot,isSearchPlaceQueryParams:()=>Cd,serializeRequest:()=>th});var Jf=wp(td(),1);var ed;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(ed||(ed={}));var rd;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(rd||(rd={}));var od;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(od||(od={}));var id;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(id||(id={}));var nd;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(nd||(nd={}));var ad;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(ad||(ad={}));var sd;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(sd||(sd={}));var Ie;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Ie||(Ie={}));var ld;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(ld||(ld={}));var cd;(function(r){r.ASC="ASC",r.DESC="DESC"})(cd||(cd={}));var dd;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(dd||(dd={}));var pd;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(pd||(pd={}));var gd=r=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(r);var ud;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(ud||(ud={}));var fd;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(fd||(fd={}));var hd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(hd||(hd={}));var Ho;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Ho||(Ho={}));var bd=r=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(r);var md;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(md||(md={}));var yd;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(yd||(yd={}));var pt;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})(pt||(pt={}));var vd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(vd||(vd={}));var xd;(function(r){r.TEXT="TEXT",r.HTML="HTML"})(xd||(xd={}));var Xf={[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 Sd(r,t){return r===t||(Xf[r]??[]).some(e=>Sd(e,t))}function wr(r,t){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(i=>Sd(i,t))}function Qf(r){return`"${r}"`}function Od(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function th(r,t){return new zo(r).serialize(t)}var ot;(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page"})(ot||(ot={}));var eh=new Set(Object.values(ot));function Cd(r){return eh.has(r)}var zo=class{constructor(t,e={},i=20,n=!1,a="en-US"){this.baseUrl=t,this.predefinedSorts=e,this.defaultPerPage=i,this.allLanguagesAllowed=n,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(t,e){return this.serializeToCurrentPageIfPossible(t,e??"/search")}serializeToCurrentPageIfPossible(t,e){let i=this.toURLSearchParams(t).toString(),n=e==null||e.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${e}`);return a.search=i,a.toString()}toURLSearchParams(t,e=!1){var i,n,a,s,l,d,p,f,h,y,v,S;let w=new URLSearchParams;t.contentLocale?(!e||t.contentLocale!==this.defaultContentLocale)&&w.append(ot.LOCALE,t.contentLocale):w.append(ot.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=t.query)===null||i===void 0?void 0:i.length)>0&&w.append(ot.QUERY,t.query),t.scope&&t.scope!=="DEFAULT"&&w.append(ot.SCOPE,t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&w.append(ot.VIRTUAL_FIELD,t.virtualField.toLowerCase()),((n=t.sort)===null||n===void 0?void 0:n.length)>0&&t.sort[0].key==="ft:lastEdition"&&w.append(ot.SORT,"last_update");let T=(s=(a=t.metadataFilters)===null||a===void 0?void 0:a.filter(C=>C.valueFilter))!==null&&s!==void 0?s:[];if(T.length>0){let C=T.map(A=>{var k,z;let J=((z=(k=A.valueFilter)===null||k===void 0?void 0:k.values)!==null&&z!==void 0?z:[]).map(q=>this.escapeFilters(q)).map(q=>encodeURIComponent(Qf(Od(q)))).join("_");return`${A.key}~${J}`}).join("*");w.append(ot.VALUE_FILTERS,C)}let I=(d=(l=t.metadataFilters)===null||l===void 0?void 0:l.filter(C=>C.dateFilter))!==null&&d!==void 0?d:[];if(I.length>0){let C=I.map(A=>{var k;return`${A.key}~${(k=A.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");w.append(ot.DATE_FILTERS,C)}let P=(f=(p=t.metadataFilters)===null||p===void 0?void 0:p.filter(C=>C.rangeFilter))!==null&&f!==void 0?f:[];if(P.length>0){let C=P.map(A=>{var k,z;return`${A.key}~${(k=A.rangeFilter)===null||k===void 0?void 0:k.from}_${(z=A.rangeFilter)===null||z===void 0?void 0:z.to}`}).join("*");w.append(ot.RANGE_FILTERS,C)}let E=(h=t.otherQueryParams)!==null&&h!==void 0?h:{};for(let C in E)w.append(C,E[C]);return!((y=t.paging)===null||y===void 0)&&y.perPage&&((S=(v=t.paging)===null||v===void 0?void 0:v.perPage)!==null&&S!==void 0?S:this.defaultPerPage)!=this.defaultPerPage&&w.append(ot.PER_PAGE,String(t.paging.perPage)),w}parse(t){var e;let i=t.split("?"),n=this.fromURLSearchParams(new URLSearchParams(i.slice(1).join("?"))),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(e=this.scopeMapping[a])!==null&&e!==void 0?e:n.scope}}fromURLSearchParams(t){var e,i,n,a,s,l,d,p;let f=t.get(ot.LOCALE)==="all"?void 0:t.get(ot.LOCALE),h=((e=t.get(ot.VIRTUAL_FIELD))!==null&&e!==void 0?e:"EVERYWHERE").toUpperCase(),y=((i=t.get(ot.SORT))!==null&&i!==void 0?i:"DEFAULT").toUpperCase(),v=(n=t.get(ot.SCOPE))!==null&&n!==void 0?n:"default",S=+((a=t.get(ot.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),w={};for(let T of t.keys())Cd(T)||(w[T]=t.get(T));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=t.get(ot.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[v])!==null&&l!==void 0?l:"DEFAULT",virtualField:gd(h)?h:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[y])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(t),facets:[],paging:{page:1,perPage:Co(1,isNaN(S)?this.defaultPerPage:S,40)},otherQueryParams:w}}parseCompatFilters(t){var e,i,n,a,s,l;let d=[];return t.has(ot.FILTERS)&&(d=this.parseValueFilters((e=t.get(ot.FILTERS))!==null&&e!==void 0?e:"")),(i=t.has(ot.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=t.get(ot.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=t.get(ot.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=t.get(ot.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(ot.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(decodeURIComponent(t)).split("*").map(e=>e.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],valueFilter:{values:e[1].split("_").map(Od).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],dateFilter:{type:Ho[e[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],rangeFilter:{from:e[1].split("_")[0],to:e[1].split("_")[1]}}))}escapeFilters(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replaceAll(e,i);return t}superEscapeFilters(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replaceAll(i,n);return t}unescapeFilterValue(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replace(n,e);return t}parseLegacyPeriodFilter(t){if(bd(t))return[{key:"ft:lastEdition",dateFilter:{type:Ho[t]}}];if(t.startsWith("CUSTOM_")){let[e,i,n]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}};var As={};rt(As,{toFtFormComponent:()=>Er});var Fi=Symbol("elementInternals");function Er(r,t){class e extends r{static get formAssociated(){return!0}get form(){return this[Fi].form}constructor(...n){super(n),this[Fi]=this.attachInternals(),this[Fi].role=t}setFormValue(n){this[Fi].setFormValue(n)}}return e}var Rs={};rt(Rs,{DateFormatter:()=>Kr});var Kr=class{static format(t,e,i,n){return window.moment?window.moment(t).locale(e).format(this.getDateFormat(i,n)):t}static getDateFormat(t,e){return t?e?"lll":"ll":e?"L LT":"L"}};var _s,Ts,Ns,Is,Vo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ns=(Ts=(_s=window.safari)===null||_s===void 0?void 0:_s.pushNotification)===null||Ts===void 0?void 0:Ts.toString())!==null&&Ns!==void 0?Ns:"")==="[object SafariRemoteNotification]",rh="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Is=window.ftGlobals)!==null&&Is!==void 0?Is:{lit:Nn,litDecorators:$n,litRepeat:Ln,litClassMap:kn,litStyleMap:Dn,litUnsafeHTML:Fn,wcUtils:{...Vn,...Un,...jn,...Rs,...Gn,...qn,...wa,...zn,...Fa,...Ca,...Ha,...Ua,...bc,...Zn,...ja,...Ka,...xc,...Za,...xs,...Ba,...Cs,...ws,...Es,...As,isSafari:Vo,isTouchScreen:rh,setVariable:x}};var Yt;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Yt||(Yt={}));var oh=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ps=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},$s=Symbol("registerInterval");function ih(r){var t;class e extends r{constructor(){super(...arguments),this[t]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[$s]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[$s]):this.dispatchEvent(new Ps)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=$s,oh([W()],e.prototype,"stateManager",void 0),e}var Ke=class extends ih(Zt){};var wd=o.extend("--ft-ripple-color","",_.colorContent),R={color:wd,backgroundColor:o.extend("--ft-ripple-background-color","",wd),opacityContentOnSurfacePressed:o.external(_.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(_.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(_.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(_.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},Ed=o.extend("--ft-ripple-color","",_.colorPrimary),Ad={color:Ed,backgroundColor:o.extend("--ft-ripple-background-color","",Ed)},Rd=o.extend("--ft-ripple-color","",_.colorSecondary),_d={color:Rd,backgroundColor:o.extend("--ft-ripple-background-color","",Rd)},Td=L`
|
|
50
|
+
`;var xc={};var Za={};rt(Za,{ParametrizedLabelResolver:()=>Do});var Do=class r{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let a=(n=(i=this.labels[t])!==null&&i!==void 0?i:this.defaultLabels[t])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...e)}static replaceParameters(t,...e){return e.forEach((i,n)=>t=t.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(i,s))),t}resolvePluralKey(t,e){for(let i of e)if(typeof i=="number"){let n=`${String(t)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return t}static formatValue(t,e){return t instanceof Date?r.formatDate(t,e):t??""}static formatDate(t,e){let i=n=>e?.includes("date")?t.toLocaleDateString(n):e?.includes("time")?t.toLocaleTimeString(n):t.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var xs={};rt(xs,{FtCommandQueue:()=>Fo,FtLitElementRedux:()=>Zt,FtReduxStore:()=>Te,clearAllStores:()=>Zf,isFtReduxStore:()=>Sr,redux:()=>ct,reduxEventListener:()=>Mo,reduxReactive:()=>pf});var pf=()=>(r,t)=>{var e;let i=r.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(e=i.reduxReactiveProperties)===null||e===void 0||e.add(t)},ct=r=>{let t=r??{};return(e,i)=>{var n;let a={hasChanged:Oo,attribute:!1,...t};g(a)(e,i);let s=e.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=t.selector)!==null&&n!==void 0?n:l=>l[i],store:t.store})}},Mo=r=>(t,e)=>{let i=t.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(e,r)};var Fo=class{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter(i=>i.type!==t.type)),this.queue.push(t)}consume(t){let e=this.queue.find(i=>i.type===t);return e&&(this.queue=this.queue.filter(i=>i!==e)),e}};function Sr(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Sc,Oc,Cc,_i=Symbol("internalReduxEventsUnsubscribers"),Ue=Symbol("internalStoresUnsubscribers"),Or=Symbol("internalStores"),Zt=class extends j{constructor(){super(...arguments),this[Sc]=new Map,this[Oc]=new Map,this[Cc]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(e=>t.has(e))&&this.updateFromStores()}getUnnamedStore(){if(this[Or].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Or].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Or].get(t)}addStore(t,e){var i;e=(i=e??(Sr(t)?t.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){let e=typeof t=="string"?t:t.name;this.unsubscribeFromStore(e),this[Or].delete(e)}setupStore(t,e){this[Or].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Or].forEach((t,e)=>this.subscribeToStore(e,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,e)=>{let i=this.constructor.getPropertyOptions(e);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:e)){let n=this.getStore(t.store);n&&(t.store?this[Ue].has(t.store):this[Ue].size>0)&&(this[e]=t.selector(n.getState(),this))}})}subscribeToStore(t,e){var i;this[Ue].set(t,e.subscribe(()=>this.updateFromStores())),Sr(e)&&e.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||e.name===n.store)){let s=l=>this[a](l);e.addEventListener(n.eventName,s),this[_i].push(()=>e.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ue].forEach((t,e)=>this.unsubscribeFromStore(e)),this[_i].forEach(t=>t()),this[_i]=[]}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()}};Sc=Ue,Oc=Or,Cc=_i;Zt.reduxProperties=new Map;Zt.reduxReactiveProperties=new Set;Zt.reduxEventListeners=new Map;function qt(r){for(var t=arguments.length,e=Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(e.length?" "+e.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ie(r){return!!r&&!!r[dt]}function re(r){var t;return!!r&&(function(e){if(!e||typeof e!="object")return!1;var i=Object.getPrototypeOf(e);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===vf}(r)||Array.isArray(r)||!!r[Tc]||!!(!((t=r.constructor)===null||t===void 0)&&t[Tc])||os(r)||is(r))}function Cr(r,t,e){e===void 0&&(e=!1),zr(r)===0?(e?Object.keys:Hr)(r).forEach(function(i){e&&typeof i=="symbol"||t(i,r[i],r)}):r.forEach(function(i,n){return t(n,i,r)})}function zr(r){var t=r[dt];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:os(r)?2:is(r)?3:0}function Wr(r,t){return zr(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function uf(r,t){return zr(r)===2?r.get(t):r[t]}function Nc(r,t,e){var i=zr(r);i===2?r.set(t,e):i===3?r.add(e):r[t]=e}function Pc(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function os(r){return gf&&r instanceof Map}function is(r){return bf&&r instanceof Set}function We(r){return r.o||r.t}function ns(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=kc(r);delete t[dt];for(var e=Hr(t),i=0;i<e.length;i++){var n=e[i],a=t[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),t)}function as(r,t){return t===void 0&&(t=!1),ss(r)||Ie(r)||!re(r)||(zr(r)>1&&(r.set=r.add=r.clear=r.delete=ff),Object.freeze(r),t&&Cr(r,function(e,i){return as(i,!0)},!0)),r}function ff(){qt(2)}function ss(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function me(r){var t=rs[r];return t||qt(18,r),t}function hf(r,t){rs[r]||(rs[r]=t)}function Qa(){return Uo}function qa(r,t){t&&(me("Patches"),r.u=[],r.s=[],r.v=t)}function Ii(r){ts(r),r.p.forEach(mf),r.p=null}function ts(r){r===Uo&&(Uo=r.l)}function Ec(r){return Uo={p:[],l:Uo,h:r,m:!0,_:0}}function mf(r){var t=r[dt];t.i===0||t.i===1?t.j():t.g=!0}function Ya(r,t){t._=t.p.length;var e=t.p[0],i=r!==void 0&&r!==e;return t.h.O||me("ES5").S(t,r,i),i?(e[dt].P&&(Ii(t),qt(4)),re(r)&&(r=Ti(t,r),t.l||Ni(t,r)),t.u&&me("Patches").M(e[dt].t,r,t.u,t.s)):r=Ti(t,e,[]),Ii(t),t.u&&t.v(t.u,t.s),r!==Lc?r:void 0}function Ti(r,t,e){if(ss(t))return t;var i=t[dt];if(!i)return Cr(t,function(l,d){return wc(r,i,t,l,d,e)},!0),t;if(i.A!==r)return t;if(!i.P)return Ni(r,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=ns(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Cr(a,function(l,d){return wc(r,i,n,l,d,e,s)}),Ni(r,n,!1),e&&r.u&&me("Patches").N(i,e,r.u,r.s)}return i.o}function wc(r,t,e,i,n,a,s){if(Ie(n)){var l=Ti(r,n,a&&t&&t.i!==3&&!Wr(t.R,i)?a.concat(i):void 0);if(Nc(e,i,l),!Ie(l))return;r.m=!1}else s&&e.add(n);if(re(n)&&!ss(n)){if(!r.h.D&&r._<1)return;Ti(r,n),t&&t.A.l||Ni(r,n)}}function Ni(r,t,e){e===void 0&&(e=!1),!r.l&&r.h.D&&r.m&&as(t,e)}function Xa(r,t){var e=r[dt];return(e?We(e):r)[t]}function Ac(r,t){if(t in r)for(var e=Object.getPrototypeOf(r);e;){var i=Object.getOwnPropertyDescriptor(e,t);if(i)return i;e=Object.getPrototypeOf(e)}}function He(r){r.P||(r.P=!0,r.l&&He(r.l))}function Ja(r){r.o||(r.o=ns(r.t))}function es(r,t,e){var i=os(t)?me("MapSet").F(t,e):is(t)?me("MapSet").T(t,e):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Qa(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=Wo;s&&(d=[l],p=Bo);var f=Proxy.revocable(d,p),h=f.revoke,y=f.proxy;return l.k=y,l.j=h,y}(t,e):me("ES5").J(t,e);return(e?e.A:Qa()).p.push(i),i}function yf(r){return Ie(r)||qt(22,r),function t(e){if(!re(e))return e;var i,n=e[dt],a=zr(e);if(n){if(!n.P&&(n.i<4||!me("ES5").K(n)))return n.t;n.I=!0,i=Rc(e,a),n.I=!1}else i=Rc(e,a);return Cr(i,function(s,l){n&&uf(n.t,s)===l||Nc(i,s,t(l))}),a===3?new Set(i):i}(r)}function Rc(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return ns(r)}function $c(){function r(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[dt];return Wo.get(p,s)},set:function(p){var f=this[dt];Wo.set(f,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][dt];if(!d.P)switch(d.i){case 5:i(d)&&He(d);break;case 4:e(d)&&He(d)}}}function e(s){for(var l=s.t,d=s.k,p=Hr(d),f=p.length-1;f>=0;f--){var h=p[f];if(h!==dt){var y=l[h];if(y===void 0&&!Wr(l,h))return!0;var v=d[h],S=v&&v[dt];if(S?S.t!==y:!Pc(v,y))return!0}}var E=!!l[dt];return p.length!==Hr(l).length+(E?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&qt(3,JSON.stringify(We(s)))}var a={};hf("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(h,y){if(h){for(var v=Array(y.length),S=0;S<y.length;S++)Object.defineProperty(v,""+S,r(S,!0));return v}var E=kc(y);delete E[dt];for(var I=Hr(E),N=0;N<I.length;N++){var $=I[N];E[$]=r($,h||!!E[$].enumerable)}return Object.create(Object.getPrototypeOf(y),E)}(d,s),f={i:d?5:4,A:l?l.A:Qa(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,dt,{value:f,writable:!0}),p},S:function(s,l,d){d?Ie(l)&&l[dt].A===s&&t(s.p):(s.u&&function p(f){if(f&&typeof f=="object"){var h=f[dt];if(h){var y=h.t,v=h.k,S=h.R,E=h.i;if(E===4)Cr(v,function(C){C!==dt&&(y[C]!==void 0||Wr(y,C)?S[C]||p(v[C]):(S[C]=!0,He(h)))}),Cr(y,function(C){v[C]!==void 0||Wr(v,C)||(S[C]=!1,He(h))});else if(E===5){if(i(h)&&(He(h),S.length=!0),v.length<y.length)for(var I=v.length;I<y.length;I++)S[I]=!1;else for(var N=y.length;N<v.length;N++)S[N]=!0;for(var $=Math.min(v.length,y.length),w=0;w<$;w++)v.hasOwnProperty(w)||(S[w]=!0),S[w]===void 0&&p(v[w])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?e(s):i(s)}})}var _c,Uo,ls=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",gf=typeof Map<"u",bf=typeof Set<"u",Ic=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Lc=ls?Symbol.for("immer-nothing"):((_c={})["immer-nothing"]=!0,_c),Tc=ls?Symbol.for("immer-draftable"):"__$immer_draftable",dt=ls?Symbol.for("immer-state"):"__$immer_state";var vf=""+Object.prototype.constructor,Hr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,kc=Object.getOwnPropertyDescriptors||function(r){var t={};return Hr(r).forEach(function(e){t[e]=Object.getOwnPropertyDescriptor(r,e)}),t},rs={},Wo={get:function(r,t){if(t===dt)return r;var e=We(r);if(!Wr(e,t))return function(n,a,s){var l,d=Ac(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0}(r,e,t);var i=e[t];return r.I||!re(i)?i:i===Xa(r.t,t)?(Ja(r),r.o[t]=es(r.A.h,i,r)):i},has:function(r,t){return t in We(r)},ownKeys:function(r){return Reflect.ownKeys(We(r))},set:function(r,t,e){var i=Ac(We(r),t);if(i?.set)return i.set.call(r.k,e),!0;if(!r.P){var n=Xa(We(r),t),a=n?.[dt];if(a&&a.t===e)return r.o[t]=e,r.R[t]=!1,!0;if(Pc(e,n)&&(e!==void 0||Wr(r.t,t)))return!0;Ja(r),He(r)}return r.o[t]===e&&(e!==void 0||t in r.o)||Number.isNaN(e)&&Number.isNaN(r.o[t])||(r.o[t]=e,r.R[t]=!0),!0},deleteProperty:function(r,t){return Xa(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,Ja(r),He(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var e=We(r),i=Reflect.getOwnPropertyDescriptor(e,t);return i&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:i.enumerable,value:e[t]}},defineProperty:function(){qt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){qt(12)}},Bo={};Cr(Wo,function(r,t){Bo[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Bo.deleteProperty=function(r,t){return Bo.set.call(this,r,t,void 0)},Bo.set=function(r,t,e){return Wo.set.call(this,r[0],t,e,r[0])};var xf=function(){function r(e){var i=this;this.O=Ic,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=i;return function(E){var I=this;E===void 0&&(E=l);for(var N=arguments.length,$=Array(N>1?N-1:0),w=1;w<N;w++)$[w-1]=arguments[w];return d.produce(E,function(C){var A;return(A=a).call.apply(A,[I,C].concat($))})}}var p;if(typeof a!="function"&&qt(6),s!==void 0&&typeof s!="function"&&qt(7),re(n)){var f=Ec(i),h=es(i,n,void 0),y=!0;try{p=a(h),y=!1}finally{y?Ii(f):ts(f)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return qa(f,s),Ya(E,f)},function(E){throw Ii(f),E}):(qa(f,s),Ya(p,f))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Lc&&(p=void 0),i.D&&as(p,!0),s){var v=[],S=[];me("Patches").M(n,p,v,S),s(v,S)}return p}qt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),y=1;y<f;y++)h[y-1]=arguments[y];return i.produceWithPatches(p,function(v){return n.apply(void 0,[v].concat(h))})};var s,l,d=i.produce(n,a,function(p,f){s=p,l=f});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof e?.useProxies=="boolean"&&this.setUseProxies(e.useProxies),typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze)}var t=r.prototype;return t.createDraft=function(e){re(e)||qt(8),Ie(e)&&(e=yf(e));var i=Ec(this),n=es(this,e,void 0);return n[dt].C=!0,ts(i),n},t.finishDraft=function(e,i){var n=e&&e[dt],a=n.A;return qa(a,i),Ya(void 0,a)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!Ic&&qt(20),this.O=e},t.applyPatches=function(e,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(i=i.slice(n+1));var s=me("Patches").$;return Ie(e)?s(e,i):this.produce(e,function(l){return s(l,i)})},r}(),Kt=new xf,Sf=Kt.produce,kv=Kt.produceWithPatches.bind(Kt),Dv=Kt.setAutoFreeze.bind(Kt),Mv=Kt.setUseProxies.bind(Kt),Fv=Kt.applyPatches.bind(Kt),Bv=Kt.createDraft.bind(Kt),Uv=Kt.finishDraft.bind(Kt),Pi=Sf;function ze(r){"@babel/helpers - typeof";return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ze(r)}function cs(r,t){if(ze(r)!=="object"||r===null)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var i=e.call(r,t||"default");if(ze(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function ds(r){var t=cs(r,"string");return ze(t)==="symbol"?t:String(t)}function ps(r,t,e){return t=ds(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function Dc(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,i)}return e}function $i(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Dc(Object(e),!0).forEach(function(i){ps(r,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Dc(Object(e)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(e,i))})}return r}function $t(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var Mc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),us=function(){return Math.random().toString(36).substring(7).split("").join(".")},Li={INIT:"@@redux/INIT"+us(),REPLACE:"@@redux/REPLACE"+us(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+us()}};function Of(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function fs(r,t,e){var i;if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error($t(0));if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error($t(1));return e(fs)(r,t)}if(typeof r!="function")throw new Error($t(2));var n=r,a=t,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function f(){if(d)throw new Error($t(3));return a}function h(E){if(typeof E!="function")throw new Error($t(4));if(d)throw new Error($t(5));var I=!0;return p(),l.push(E),function(){if(I){if(d)throw new Error($t(6));I=!1,p();var $=l.indexOf(E);l.splice($,1),s=null}}}function y(E){if(!Of(E))throw new Error($t(7));if(typeof E.type>"u")throw new Error($t(8));if(d)throw new Error($t(9));try{d=!0,a=n(a,E)}finally{d=!1}for(var I=s=l,N=0;N<I.length;N++){var $=I[N];$()}return E}function v(E){if(typeof E!="function")throw new Error($t(10));n=E,y({type:Li.REPLACE})}function S(){var E,I=h;return E={subscribe:function($){if(typeof $!="object"||$===null)throw new Error($t(11));function w(){$.next&&$.next(f())}w();var C=I(w);return{unsubscribe:C}}},E[Mc]=function(){return this},E}return y({type:Li.INIT}),i={dispatch:y,subscribe:h,getState:f,replaceReducer:v},i[Mc]=S,i}function Cf(r){Object.keys(r).forEach(function(t){var e=r[t],i=e(void 0,{type:Li.INIT});if(typeof i>"u")throw new Error($t(12));if(typeof e(void 0,{type:Li.PROBE_UNKNOWN_ACTION()})>"u")throw new Error($t(13))})}function Fc(r){for(var t=Object.keys(r),e={},i=0;i<t.length;i++){var n=t[i];typeof r[n]=="function"&&(e[n]=r[n])}var a=Object.keys(e),s,l;try{Cf(e)}catch(d){l=d}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var y=!1,v={},S=0;S<a.length;S++){var E=a[S],I=e[E],N=p[E],$=I(N,f);if(typeof $>"u"){var w=f&&f.type;throw new Error($t(14))}v[E]=$,y=y||$!==N}return y=y||a.length!==Object.keys(p).length,y?v:p}}function Vr(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Bc(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error($t(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return a=Vr.apply(void 0,l)(n.dispatch),$i($i({},n),{},{dispatch:a})}}}function Uc(r){var t=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return t}var Wc=Uc();Wc.withExtraArgument=Uc;var hs=Wc;var Gc=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ef=function(r,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(f){return d([p,f])}}function d(p){if(i)throw new TypeError("Generator is already executing.");for(;e;)try{if(i=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return e.label++,{value:p[1],done:!1};case 5:e.label++,n=p[1],p=[0];continue;case 7:p=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){e=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){e.label=p[1];break}if(p[0]===6&&e.label<a[1]){e.label=a[1],a=p;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(p);break}a[2]&&e.ops.pop(),e.trys.pop();continue}p=t.call(r,e)}catch(f){p=[6,f],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},jr=function(r,t){for(var e=0,i=t.length,n=r.length;e<i;e++,n++)r[n]=t[e];return r},wf=Object.defineProperty,Af=Object.defineProperties,Rf=Object.getOwnPropertyDescriptors,Hc=Object.getOwnPropertySymbols,_f=Object.prototype.hasOwnProperty,If=Object.prototype.propertyIsEnumerable,zc=function(r,t,e){return t in r?wf(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e},Ve=function(r,t){for(var e in t||(t={}))_f.call(t,e)&&zc(r,e,t[e]);if(Hc)for(var i=0,n=Hc(t);i<n.length;i++){var e=n[i];If.call(t,e)&&zc(r,e,t[e])}return r},ms=function(r,t){return Af(r,Rf(t))},Tf=function(r,t,e){return new Promise(function(i,n){var a=function(d){try{l(e.next(d))}catch(p){n(p)}},s=function(d){try{l(e.throw(d))}catch(p){n(p)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((e=e.apply(r,t)).next())})};var Nf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Vr:Vr.apply(null,arguments)},ix=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function Pf(r){if(typeof r!="object"||r===null)return!1;var t=Object.getPrototypeOf(r);if(t===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return t===e}var $f=function(r){Gc(t,r);function t(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,jr([void 0],e[0].concat(this)))):new(t.bind.apply(t,jr([void 0],e.concat(this))))},t}(Array),Lf=function(r){Gc(t,r);function t(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,jr([void 0],e[0].concat(this)))):new(t.bind.apply(t,jr([void 0],e.concat(this))))},t}(Array);function bs(r){return re(r)?Pi(r,function(){}):r}function kf(r){return typeof r=="boolean"}function Df(){return function(t){return Mf(t)}}function Mf(r){r===void 0&&(r={});var t=r.thunk,e=t===void 0?!0:t,i=r.immutableCheck,n=i===void 0?!0:i,a=r.serializableCheck,s=a===void 0?!0:a,l=new $f;if(e&&(kf(e)?l.push(hs):l.push(hs.withExtraArgument(e.extraArgument))),0){if(n)var d;if(s)var p}return l}var ys=!0;function Kc(r){var t=Df(),e=r||{},i=e.reducer,n=i===void 0?void 0:i,a=e.middleware,s=a===void 0?t():a,l=e.devTools,d=l===void 0?!0:l,p=e.preloadedState,f=p===void 0?void 0:p,h=e.enhancers,y=h===void 0?void 0:h,v;if(typeof n=="function")v=n;else if(Pf(n))v=Fc(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var S=s;if(typeof S=="function"&&(S=S(t),!ys&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ys&&S.some(function(C){return typeof C!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=Bc.apply(void 0,S),I=Vr;d&&(I=Nf(Ve({trace:!ys},typeof d=="object"&&d)));var N=new Lf(E),$=N;Array.isArray(y)?$=jr([E],y):typeof y=="function"&&($=y(N));var w=I.apply(void 0,$);return fs(v,f,w)}function je(r,t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(t){var a=t.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return Ve(Ve({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:i[0]}}return e.toString=function(){return""+r},e.type=r,e.match=function(i){return i.type===r},e}function Zc(r){var t={},e=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,n},addMatcher:function(a,s){return e.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return r(n),[t,e,i]}function Ff(r){return typeof r=="function"}function Bf(r,t,e,i){e===void 0&&(e=[]);var n=typeof t=="function"?Zc(t):[t,e,i],a=n[0],s=n[1],l=n[2],d;if(Ff(r))d=function(){return bs(r())};else{var p=bs(r);d=function(){return p}}function f(h,y){h===void 0&&(h=d());var v=jr([a[y.type]],s.filter(function(S){var E=S.matcher;return E(y)}).map(function(S){var E=S.reducer;return E}));return v.filter(function(S){return!!S}).length===0&&(v=[l]),v.reduce(function(S,E){if(E)if(Ie(S)){var I=S,N=E(I,y);return N===void 0?S:N}else{if(re(S))return Pi(S,function($){return E($,y)});var N=E(S,y);if(N===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return S},h)}return f.getInitialState=d,f}function Uf(r,t){return r+"/"+t}function qc(r){var t=r.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var e=typeof r.initialState=="function"?r.initialState:bs(r.initialState),i=r.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(f){var h=i[f],y=Uf(t,f),v,S;"reducer"in h?(v=h.reducer,S=h.prepare):v=h,a[f]=v,s[y]=v,l[f]=S?je(y,S):je(y)});function d(){var f=typeof r.extraReducers=="function"?Zc(r.extraReducers):[r.extraReducers],h=f[0],y=h===void 0?{}:h,v=f[1],S=v===void 0?[]:v,E=f[2],I=E===void 0?void 0:E,N=Ve(Ve({},y),s);return Bf(e,function($){for(var w in N)$.addCase(w,N[w]);for(var C=0,A=S;C<A.length;C++){var k=A[C];$.addMatcher(k.matcher,k.reducer)}I&&$.addDefaultCase(I)})}var p;return{name:t,reducer:function(f,h){return p||(p=d()),p(f,h)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Wf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Hf=function(r){r===void 0&&(r=21);for(var t="",e=r;e--;)t+=Wf[Math.random()*64|0];return t},zf=["name","message","stack","code"],gs=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),Vc=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),Vf=function(r){if(typeof r=="object"&&r!==null){for(var t={},e=0,i=zf;e<i.length;e++){var n=i[e];typeof r[n]=="string"&&(t[n]=r[n])}return t}return{message:String(r)}},lx=function(){function r(t,e,i){var n=je(t+"/fulfilled",function(f,h,y,v){return{payload:f,meta:ms(Ve({},v||{}),{arg:y,requestId:h,requestStatus:"fulfilled"})}}),a=je(t+"/pending",function(f,h,y){return{payload:void 0,meta:ms(Ve({},y||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=je(t+"/rejected",function(f,h,y,v,S){return{payload:v,error:(i&&i.serializeError||Vf)(f||"Rejected"),meta:ms(Ve({},S||{}),{arg:y,requestId:h,rejectedWithValue:!!v,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function p(f){return function(h,y,v){var S=i?.idGenerator?i.idGenerator(f):Hf(),E=new d,I,N=!1;function $(C){I=C,E.abort()}var w=function(){return Tf(this,null,function(){var C,A,k,z,J,q,F;return Ef(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),z=(C=i?.condition)==null?void 0:C.call(i,f,{getState:y,extra:v}),Gf(z)?[4,z]:[3,2];case 1:z=m.sent(),m.label=2;case 2:if(z===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,J=new Promise(function(O,D){return E.signal.addEventListener("abort",function(){return D({name:"AbortError",message:I||"Aborted"})})}),h(a(S,f,(A=i?.getPendingMeta)==null?void 0:A.call(i,{requestId:S,arg:f},{getState:y,extra:v}))),[4,Promise.race([J,Promise.resolve(e(f,{dispatch:h,getState:y,extra:v,requestId:S,signal:E.signal,abort:$,rejectWithValue:function(O,D){return new gs(O,D)},fulfillWithValue:function(O,D){return new Vc(O,D)}})).then(function(O){if(O instanceof gs)throw O;return O instanceof Vc?n(O.payload,S,f,O.meta):n(O,S,f)})])];case 3:return k=m.sent(),[3,5];case 4:return q=m.sent(),k=q instanceof gs?s(null,S,f,q.payload,q.meta):s(q,S,f),[3,5];case 5:return F=i&&!i.dispatchConditionRejection&&s.match(k)&&k.meta.condition,F||h(k),[2,k]}})})}();return Object.assign(w,{abort:$,requestId:S,arg:f,unwrap:function(){return w.then(jf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return r.withTypes=function(){return r},r}();function jf(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Gf(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Yc="listener",Xc="completed",Jc="cancelled",cx="task-"+Jc,dx="task-"+Xc,px=Yc+"-"+Jc,ux=Yc+"-"+Xc;var vs="listenerMiddleware";var fx=je(vs+"/add"),hx=je(vs+"/removeAll"),mx=je(vs+"/remove");var jc,yx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(jc||(jc=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},Kf=function(r){return function(t){setTimeout(t,r)}},gx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Kf(10);$c();window.ftReduxStores||(window.ftReduxStores={});var Te=class r extends hr{static get(t){var e;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[i];if(Sr(a))return a;if(n==null)return;let s=qc({...n,reducers:(e=n.reducers)!==null&&e!==void 0?e:{}}),l=Kc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[n.name]=new r(s,l)}constructor(t,e){super(),this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.commands=new Fo,this.actions=new Proxy(this.reduxSlice.actions,{get:(i,n,a)=>{let s=n,l=i[s];return l?(...d)=>{let p=l(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]: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 Zf(){var r;for(let t of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))Sr(t)&&t.clear()}var Cs={};rt(Cs,{scrollHelper:()=>qf});var Ss,ki=new Map,Os=class{lock(t,e){if(e){let i=ki.get(e);if(i==null||i===t)return ki.set(e,t),e}}release(t,e){e&&ki.get(e)===t&&ki.delete(e)}findFirstScrollableParent(t){let e,i=n=>{var a;n.stopPropagation();let s,l;for(let d of n.composedPath()){let p=d,f=this.elementCanScroll(p);if(f&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else f&&l==null&&(l=p)}e=(a=s??l)!==null&&a!==void 0?a:document.body};return t.addEventListener("find-scrollable-parent",i),t.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),t.removeEventListener("find-scrollable-parent",i),e}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,e){let i=0;for(;e&&e.offsetParent!==t.offsetParent;)i+=e.offsetTop,e=e.offsetParent;return i+e.offsetTop-t.offsetTop}computeTopOffsetRatio(t,e){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return e;default:return 0}}scrollIntoViewIfPossible(t,e){let i=this.findFirstScrollableParent(t);if(t&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,t),a=n-i.clientHeight+t.clientHeight,s=n,l=Co(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(e?.position,l)*(a-s)+s;i.scrollTo({behavior:e?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(Ss=window.FluidTopicsScrollHelper)!==null&&Ss!==void 0?Ss:new Os;var qf=window.FluidTopicsScrollHelper;var Es={};rt(Es,{shadowQuerySelector:()=>Yf,shadowQuerySelectorAll:()=>Xf});function Yf(r,t,...e){var i;let n=r.querySelector(t);for(let a of e)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function Xf(r,t,...e){let i=[...r.querySelectorAll(t)];for(let n of e)i=i.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var ws={};rt(ws,{SearchPlaceConverter:()=>zo,SearchPlaceQueryParams:()=>ot,isSearchPlaceQueryParams:()=>Cd,serializeRequest:()=>eh});var Qf=Ep(td(),1);var ed;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(ed||(ed={}));var rd;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(rd||(rd={}));var od;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(od||(od={}));var id;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(id||(id={}));var nd;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(nd||(nd={}));var ad;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(ad||(ad={}));var sd;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(sd||(sd={}));var Ne;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Ne||(Ne={}));var ld;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(ld||(ld={}));var cd;(function(r){r.ASC="ASC",r.DESC="DESC"})(cd||(cd={}));var dd;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(dd||(dd={}));var pd;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(pd||(pd={}));var gd=r=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(r);var ud;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(ud||(ud={}));var fd;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(fd||(fd={}));var hd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(hd||(hd={}));var Ho;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Ho||(Ho={}));var bd=r=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(r);var md;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(md||(md={}));var yd;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(yd||(yd={}));var pt;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})(pt||(pt={}));var vd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(vd||(vd={}));var xd;(function(r){r.TEXT="TEXT",r.HTML="HTML"})(xd||(xd={}));var Jf={[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 Sd(r,t){return r===t||(Jf[r]??[]).some(e=>Sd(e,t))}function Er(r,t){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(i=>Sd(i,t))}function th(r){return`"${r}"`}function Od(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function eh(r,t){return new zo(r).serialize(t)}var ot;(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page"})(ot||(ot={}));var rh=new Set(Object.values(ot));function Cd(r){return rh.has(r)}var zo=class{constructor(t,e={},i=20,n=!1,a="en-US"){this.baseUrl=t,this.predefinedSorts=e,this.defaultPerPage=i,this.allLanguagesAllowed=n,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(t,e){return this.serializeToCurrentPageIfPossible(t,e??"/search")}serializeToCurrentPageIfPossible(t,e){let i=this.toURLSearchParams(t).toString(),n=e==null||e.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${e}`);return a.search=i,a.toString()}toURLSearchParams(t,e=!1){var i,n,a,s,l,d,p,f,h,y,v,S;let E=new URLSearchParams;t.contentLocale?(!e||t.contentLocale!==this.defaultContentLocale)&&E.append(ot.LOCALE,t.contentLocale):E.append(ot.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=t.query)===null||i===void 0?void 0:i.length)>0&&E.append(ot.QUERY,t.query),t.scope&&t.scope!=="DEFAULT"&&E.append(ot.SCOPE,t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&E.append(ot.VIRTUAL_FIELD,t.virtualField.toLowerCase()),((n=t.sort)===null||n===void 0?void 0:n.length)>0&&t.sort[0].key==="ft:lastEdition"&&E.append(ot.SORT,"last_update");let I=(s=(a=t.metadataFilters)===null||a===void 0?void 0:a.filter(C=>C.valueFilter))!==null&&s!==void 0?s:[];if(I.length>0){let C=I.map(A=>{var k,z;let J=((z=(k=A.valueFilter)===null||k===void 0?void 0:k.values)!==null&&z!==void 0?z:[]).map(q=>this.escapeFilters(q)).map(q=>encodeURIComponent(th(Od(q)))).join("_");return`${A.key}~${J}`}).join("*");E.append(ot.VALUE_FILTERS,C)}let N=(d=(l=t.metadataFilters)===null||l===void 0?void 0:l.filter(C=>C.dateFilter))!==null&&d!==void 0?d:[];if(N.length>0){let C=N.map(A=>{var k;return`${A.key}~${(k=A.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");E.append(ot.DATE_FILTERS,C)}let $=(f=(p=t.metadataFilters)===null||p===void 0?void 0:p.filter(C=>C.rangeFilter))!==null&&f!==void 0?f:[];if($.length>0){let C=$.map(A=>{var k,z;return`${A.key}~${(k=A.rangeFilter)===null||k===void 0?void 0:k.from}_${(z=A.rangeFilter)===null||z===void 0?void 0:z.to}`}).join("*");E.append(ot.RANGE_FILTERS,C)}let w=(h=t.otherQueryParams)!==null&&h!==void 0?h:{};for(let C in w)E.append(C,w[C]);return!((y=t.paging)===null||y===void 0)&&y.perPage&&((S=(v=t.paging)===null||v===void 0?void 0:v.perPage)!==null&&S!==void 0?S:this.defaultPerPage)!=this.defaultPerPage&&E.append(ot.PER_PAGE,String(t.paging.perPage)),E}parse(t){var e;let i=t.split("?"),n=this.fromURLSearchParams(new URLSearchParams(i.slice(1).join("?"))),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(e=this.scopeMapping[a])!==null&&e!==void 0?e:n.scope}}fromURLSearchParams(t){var e,i,n,a,s,l,d,p;let f=t.get(ot.LOCALE)==="all"?void 0:t.get(ot.LOCALE),h=((e=t.get(ot.VIRTUAL_FIELD))!==null&&e!==void 0?e:"EVERYWHERE").toUpperCase(),y=((i=t.get(ot.SORT))!==null&&i!==void 0?i:"DEFAULT").toUpperCase(),v=(n=t.get(ot.SCOPE))!==null&&n!==void 0?n:"default",S=+((a=t.get(ot.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),E={};for(let I of t.keys())Cd(I)||(E[I]=t.get(I));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=t.get(ot.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[v])!==null&&l!==void 0?l:"DEFAULT",virtualField:gd(h)?h:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[y])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(t),facets:[],paging:{page:1,perPage:Co(1,isNaN(S)?this.defaultPerPage:S,1e3)},otherQueryParams:E}}parseCompatFilters(t){var e,i,n,a,s,l;let d=[];return t.has(ot.FILTERS)&&(d=this.parseValueFilters((e=t.get(ot.FILTERS))!==null&&e!==void 0?e:"")),(i=t.has(ot.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=t.get(ot.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=t.get(ot.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=t.get(ot.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(ot.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(decodeURIComponent(t)).split("*").map(e=>e.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],valueFilter:{values:e[1].split("_").map(Od).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],dateFilter:{type:Ho[e[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(e=>({key:e[0],rangeFilter:{from:e[1].split("_")[0],to:e[1].split("_")[1]}}))}escapeFilters(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replaceAll(e,i);return t}superEscapeFilters(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replaceAll(i,n);return t}unescapeFilterValue(t){for(let[e,i,n]of this.filtersEscapeMapping)t=t.replace(n,e);return t}parseLegacyPeriodFilter(t){if(bd(t))return[{key:"ft:lastEdition",dateFilter:{type:Ho[t]}}];if(t.startsWith("CUSTOM_")){let[e,i,n]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}};var As={};rt(As,{toFtFormComponent:()=>wr});var Fi=Symbol("elementInternals");function wr(r,t){class e extends r{static get formAssociated(){return!0}get form(){return this[Fi].form}constructor(...n){super(n),this[Fi]=this.attachInternals(),this[Fi].role=t}setFormValue(n){this[Fi].setFormValue(n)}}return e}var Rs={};rt(Rs,{DateFormatter:()=>Kr});var Kr=class{static format(t,e,i,n){return window.moment?window.moment(t).locale(e).format(this.getDateFormat(i,n)):t}static getDateFormat(t,e){return t?e?"lll":"ll":e?"L LT":"L"}};var _s,Is,Ts,Ns,Vo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ts=(Is=(_s=window.safari)===null||_s===void 0?void 0:_s.pushNotification)===null||Is===void 0?void 0:Is.toString())!==null&&Ts!==void 0?Ts:"")==="[object SafariRemoteNotification]",oh="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ns=window.ftGlobals)!==null&&Ns!==void 0?Ns:{lit:Tn,litDecorators:Pn,litRepeat:Ln,litClassMap:kn,litStyleMap:Dn,litUnsafeHTML:Fn,wcUtils:{...Vn,...Un,...jn,...Rs,...Gn,...qn,...Ea,...zn,...Fa,...Ca,...Ha,...Ua,...bc,...Zn,...ja,...Ka,...xc,...Za,...xs,...Ba,...Cs,...Es,...ws,...As,isSafari:Vo,isTouchScreen:oh,setVariable:x}};var Yt;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Yt||(Yt={}));var ih=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},$s=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Ps=Symbol("registerInterval");function nh(r){var t;class e extends r{constructor(){super(...arguments),this[t]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[Ps]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ps]):this.dispatchEvent(new $s)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Ps,ih([W()],e.prototype,"stateManager",void 0),e}var Ke=class extends nh(Zt){};var Ed=o.extend("--ft-ripple-color","",_.colorContent),R={color:Ed,backgroundColor:o.extend("--ft-ripple-background-color","",Ed),opacityContentOnSurfacePressed:o.external(_.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(_.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(_.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(_.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},wd=o.extend("--ft-ripple-color","",_.colorPrimary),Ad={color:wd,backgroundColor:o.extend("--ft-ripple-background-color","",wd)},Rd=o.extend("--ft-ripple-color","",_.colorSecondary),_d={color:Rd,backgroundColor:o.extend("--ft-ripple-background-color","",Rd)},Id=L`
|
|
51
51
|
:host {
|
|
52
52
|
display: contents;
|
|
53
53
|
}
|
|
@@ -159,7 +159,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
159
159
|
opacity: ${R.opacityContentOnSurfacePressed};
|
|
160
160
|
transform: translate(-50%, -50%) scale(1);
|
|
161
161
|
}
|
|
162
|
-
`;function
|
|
162
|
+
`;function Td(r){let t=Eo[r];return L`
|
|
163
163
|
.ft-typography--${xe(r)} {
|
|
164
164
|
font-family: ${t.fontFamily};
|
|
165
165
|
font-size: ${t.fontSize};
|
|
@@ -168,7 +168,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
168
168
|
line-height: ${t.lineHeight};
|
|
169
169
|
text-transform: ${t.textCase};
|
|
170
170
|
}
|
|
171
|
-
`}var
|
|
171
|
+
`}var Nd=o.extend("--ft-typography-font-family","",_.titleFont),Pe=o.extend("--ft-typography-font-family","",_.contentFont),B={fontFamily:Pe,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ze={fontFamily:o.extend("--ft-typography-title-font-family","",Nd),fontSize:o.extend("--ft-typography-title-font-size","",B.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",B.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",B.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",B.textTransform,"inherit")},qe={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Nd),fontSize:o.extend("--ft-typography-title-dense-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",B.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",B.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",B.textTransform,"inherit")},Zr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Pe),fontSize:o.extend("--ft-typography-subtitle1-font-size","",B.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",B.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",B.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",B.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",B.textTransform,"inherit")},qr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Pe),fontSize:o.extend("--ft-typography-subtitle2-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",B.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",B.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",B.textTransform,"inherit")},Xt={fontFamily:o.extend("--ft-typography-body1-font-family","",Pe),fontSize:o.extend("--ft-typography-body1-font-size","",B.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",B.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",B.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",B.textTransform,"inherit")},Yr={fontFamily:o.extend("--ft-typography-body2-font-family","",Pe),fontSize:o.extend("--ft-typography-body2-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",B.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",B.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",B.textTransform,"inherit")},oe={fontFamily:o.extend("--ft-typography-caption-font-family","",Pe),fontSize:o.extend("--ft-typography-caption-font-size","",B.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",B.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",B.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",B.textTransform,"inherit")},Xr={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Pe),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",B.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",B.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",B.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",B.textTransform,"inherit")},Jr={fontFamily:o.extend("--ft-typography-overline-font-family","",Pe),fontSize:o.extend("--ft-typography-overline-font-size","",B.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",B.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",B.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",B.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",B.textTransform,"uppercase")},Ft={fontFamily:o.extend("--ft-typography-button-font-family","",Pe),fontSize:o.extend("--ft-typography-button-font-size","",B.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",B.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",B.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",B.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",B.textTransform,"uppercase")},Pd=L`
|
|
172
172
|
.ft-typography--title {
|
|
173
173
|
font-family: ${Ze.fontFamily};
|
|
174
174
|
font-size: ${Ze.fontSize};
|
|
@@ -177,7 +177,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
177
177
|
line-height: ${Ze.lineHeight};
|
|
178
178
|
text-transform: ${Ze.textTransform};
|
|
179
179
|
}
|
|
180
|
-
|
|
180
|
+
`,$d=L`
|
|
181
181
|
.ft-typography--title-dense {
|
|
182
182
|
font-family: ${qe.fontFamily};
|
|
183
183
|
font-size: ${qe.fontSize};
|
|
@@ -263,7 +263,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
263
263
|
.ft-typography {
|
|
264
264
|
vertical-align: inherit;
|
|
265
265
|
}
|
|
266
|
-
`,Wd=[Object.keys(
|
|
266
|
+
`,Wd=[Object.keys(Eo).map(r=>Td(r))];var ut={color:o.extend("--ft-loader-color","",_.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},Hd=L`
|
|
267
267
|
:host {
|
|
268
268
|
line-height: 0;
|
|
269
269
|
}
|
|
@@ -573,7 +573,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
573
573
|
[part="buttons-container"] {
|
|
574
574
|
align-self: flex-end;
|
|
575
575
|
}
|
|
576
|
-
`;var qd=Symbol.for(""),
|
|
576
|
+
`;var qd=Symbol.for(""),ah=r=>{if(r?.r===qd)return r?._$litStatic$},ks=r=>({_$litStatic$:r,r:qd});var Zd=new Map,Yd=r=>(t,...e)=>{let i=e.length,n,a,s=[],l=[],d,p=0,f=!1;for(;p<i;){for(d=t[p];p<i&&(a=e[p],(n=ah(a))!==void 0);)d+=n+t[++p],f=!0;p!==i&&l.push(a),s.push(d),p++}if(p===i&&s.push(t[i]),f){let h=s.join("$$lit$$");(t=Zd.get(h))===void 0&&(s.raw=s,Zd.set(h,t=s)),e=l}return r(t,...e)},Ds=Yd(ml),TS=Yd(yl);var Ye;(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button",r.display="display",r.title1="title-1",r.title2="title-2",r.title3="title-3",r.body1regular="body-1-regular",r.body1medium="body-1-medium",r.body1semibold="body-1-semibold",r.body2regular="body-2-regular",r.body2medium="body-2-medium",r.body2semibold="body-2-semibold",r.label1medium="label-1-medium",r.label1semibold="label-1-semibold",r.label1bold="label-1-bold",r.label2medium="label-2-medium",r.label2semibold="label-2-semibold",r.label2bold="label-2-bold",r.caption1medium="caption-1-medium",r.caption1semibold="caption-1-semibold",r.caption1bold="caption-1-bold",r.caption2medium="caption-2-medium",r.caption2semibold="caption-2-semibold",r.caption2bold="caption-2-bold"})(Ye||(Ye={}));var Xd=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},xt=class extends j{constructor(){super(...arguments),this.variant=Ye.body1}render(){return this.element?Ds`
|
|
577
577
|
<${ks(this.element)}
|
|
578
578
|
part="text"
|
|
579
579
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -581,7 +581,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
581
581
|
</${ks(this.element)}>
|
|
582
582
|
`:Ds`
|
|
583
583
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
584
|
-
`}};xt.styles=[
|
|
584
|
+
`}};xt.styles=[Pd,$d,Ld,kd,Qr,Dd,Bi,Md,Fd,Bd,Ud,...Wd];Xd([g()],xt.prototype,"element",void 0);Xd([g()],xt.prototype,"variant",void 0);X("ft-typography")(xt);var Ht=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},et=class extends j{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new st(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 st(10),this.moveRipple=t=>{var e,i;let{x:n,y:a}=this.getCoordinates(t),s=(i=(e=this.ripple)===null||e===void 0?void 0:e.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return P`
|
|
585
585
|
<style>
|
|
586
586
|
.ft-ripple .ft-ripple--effect {
|
|
587
587
|
left: ${this.originX}px;
|
|
@@ -592,7 +592,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
592
592
|
<div class="ft-ripple--background"></div>
|
|
593
593
|
<div class="ft-ripple--effect"></div>
|
|
594
594
|
</div>
|
|
595
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(e=this.target)===null||e===void 0||e.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,e;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((e=this.target)!==null&&e!==void 0?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let e=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},i=e("mouseup","contextmenu"),n=e("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&e("keyup")(l)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",i,s),t.addEventListener("touchstart",n,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",a,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",i,s),t.removeEventListener("touchstart",n,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",a,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let e=t,i=t,n,a;return e.x!=null?{x:n,y:a}=e:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};et.elementDefinitions={};et.styles=
|
|
595
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(e=this.target)===null||e===void 0||e.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,e;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((e=this.target)!==null&&e!==void 0?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let e=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},i=e("mouseup","contextmenu"),n=e("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&e("keyup")(l)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",i,s),t.addEventListener("touchstart",n,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",a,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",i,s),t.removeEventListener("touchstart",n,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",a,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let e=t,i=t,n,a;return e.x!=null?{x:n,y:a}=e:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};et.elementDefinitions={};et.styles=Id;Ht([g({type:Boolean})],et.prototype,"primary",void 0);Ht([g({type:Boolean})],et.prototype,"secondary",void 0);Ht([g({type:Boolean})],et.prototype,"unbounded",void 0);Ht([g({type:Boolean})],et.prototype,"activated",void 0);Ht([g({type:Boolean})],et.prototype,"selected",void 0);Ht([g({type:Boolean})],et.prototype,"disabled",void 0);Ht([W()],et.prototype,"hovered",void 0);Ht([W()],et.prototype,"focused",void 0);Ht([W()],et.prototype,"pressed",void 0);Ht([W()],et.prototype,"rippling",void 0);Ht([W()],et.prototype,"originX",void 0);Ht([W()],et.prototype,"originY",void 0);Ht([Y(".ft-ripple")],et.prototype,"ripple",void 0);Ht([Y(".ft-ripple--effect")],et.prototype,"rippleEffect",void 0);X("ft-ripple")(et);var to={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.external(_.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},Jd=L`
|
|
596
596
|
.ft-tooltip--container {
|
|
597
597
|
display: block;
|
|
598
598
|
}
|
|
@@ -621,7 +621,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
621
621
|
position: relative;
|
|
622
622
|
word-break: break-word;
|
|
623
623
|
}
|
|
624
|
-
`;var zt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ft=class extends j{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new st,this.revealDebouncer=new st}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return
|
|
624
|
+
`;var zt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ft=class extends j{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new st,this.revealDebouncer=new st}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return P`
|
|
625
625
|
<div part="container"
|
|
626
626
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
627
627
|
@mouseenter=${this.onHover}
|
|
@@ -639,12 +639,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
639
639
|
</div>
|
|
640
640
|
</div>
|
|
641
641
|
</div>
|
|
642
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(e=>t.has(e))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(e=>e.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Po(this.slottedElement,this.tooltip,this.position).then(({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}};ft.elementDefinitions={"ft-typography":xt};ft.styles=Jd;zt([g()],ft.prototype,"text",void 0);zt([g({type:Boolean})],ft.prototype,"manual",void 0);zt([g({type:Boolean})],ft.prototype,"inline",void 0);zt([g({type:Number})],ft.prototype,"delay",void 0);zt([g()],ft.prototype,"position",void 0);zt([bo()],ft.prototype,"slotNodes",void 0);zt([Y(".ft-tooltip--container")],ft.prototype,"container",void 0);zt([Y(".ft-tooltip")],ft.prototype,"tooltip",void 0);zt([Y(".ft-tooltip--content")],ft.prototype,"tooltipContent",void 0);zt([W()],ft.prototype,"visible",void 0);zt([Ce({passive:!0})],ft.prototype,"onTouch",null);zt([Ce({passive:!0})],ft.prototype,"onHover",null);zt([Ce({passive:!0})],ft.prototype,"onOut",null);zt([Ce({passive:!0})],ft.prototype,"onClick",null);X("ft-tooltip")(ft);var Ar;(function(r){r.ADD_TO_PBK="",r.ALERT="",r.ADD_ALERT="",r.BACK_TO_SEARCH="",r.ADD_BOOKMARK="",r.BOOKMARK="",r.BOOKS="",r.MENU="",r.DOWNLOAD="",r.EDIT="",r.FEEDBACK="",r.HOME="",r.MODIFY_PBK="",r.SCHEDULED="",r.SEARCH="",r.EXPORT="",r.TOC="",r.WRITE_UGC="",r.TRASH="",r.USER="",r.EXTLINK="",r.CALENDAR="",r.OFFLINE="",r.BOOK="",r.DOWNLOAD_PLAIN="",r.CHECK="",r.STAR_PLAIN="",r.TOPICS="",r.DISC="",r.CIRCLE="",r.SHARED="",r.SORT_UNSORTED="",r.SORT_UP="",r.SORT_DOWN="",r.WORKING="",r.CLOSE="",r.ZOOM_OUT="",r.ZOOM_IN="",r.ZOOM_REALSIZE="",r.ZOOM_FULLSCREEN="",r.ADMIN_RESTRICTED="",r.ADMIN="",r.ADMIN_KHUB="",r.ADMIN_THEME="",r.ADMIN_USERS="",r.WARNING="",r.CONTEXT="",r.SEARCH_HOME="",r.STEPS="",r.ICON_EXPAND="",r.ICON_COLLAPSE="",r.INFO="",r.MINUS_PLAIN="",r.PLUS_PLAIN="",r.FACET_HAS_DESCENDANT="",r.TRIANGLE_BOTTOM="",r.TRIANGLE_LEFT="",r.TRIANGLE_RIGHT="",r.TRIANGLE_TOP="",r.THIN_ARROW="",r.SIGN_IN="",r.LOGOUT="",r.TRANSLATE="",r.CLOSE_PLAIN="",r.CHECK_PLAIN="",r.ARTICLE="",r.COLUMNS="",r.ANALYTICS="",r.COLLECTIONS="",r.ARROW_DOWN="",r.ARROW_LEFT="",r.ARROW_RIGHT="",r.ARROW_UP="",r.SEARCH_IN_PUBLICATION="",r.COPY_TO_CLIPBOARD="",r.SHARED_PBK="",r.ATTACHMENTS="",r.STRIPE_ARROW_LEFT="",r.STRIPE_ARROW_RIGHT="",r.FILTERS="",r.DOT="",r.MINUS="",r.PLUS="",r.MAILS_AND_NOTIFICATIONS="",r.SAVE="",r.LOCKER="",r.ADMIN_INTEGRATION="",r.SYNC="",r.TAG="",r.BOOK_PLAIN="",r.UPLOAD="",r.ONLINE="",r.TAG_PLAIN="",r.ACCOUNT_SETTINGS="",r.PRINT="",r.DEFAULT_ROLES="",r.SHORTCUT_MENU="",r.RELATIVES_PLAIN="",r.RELATIVES="",r.PAUSE="",r.PLAY="",r.ADMIN_PORTAL="",r.STAR="",r.THUMBS_DOWN="",r.THUMBS_DOWN_PLAIN="",r.THUMBS_UP="",r.THUMBS_UP_PLAIN="",r.FEEDBACK_PLAIN="",r.RATE_PLAIN="",r.RATE="",r.OFFLINE_SETTINGS="",r.MY_COLLECTIONS="",r.THIN_ARROW_LEFT="",r.THIN_ARROW_RIGHT="",r.RESET="",r.MY_LIBRARY="",r.UNSTRUCTURED_DOC="",r.CONTEXTUAL="",r.THIN_ARROW_UP="",r.ARROW_RIGHT_TO_LINE="",r.DESKTOP="",r.TABLET_LANDSCAPE="",r.TABLET_PORTRAIT="",r.MOBILE_LANDSCAPE="",r.MOBILE_PORTRAIT="",r.DIAGRAM_SUNBURST="",r.DIAGRAM_SANKEY="",r.COMMENT_QUESTION="",r.COMMENT_QUESTION_PLAIN="",r.MESSAGE_BOT="",r.CHART_SIMPLE="",r.BARS_PROGRESS="",r.BOOK_OPEN_GEAR="",r.BOOK_OPEN_GEAR_SLASH="",r.LINE_CHART="",r.STACKED_CHART="",r.CHART_BAR_STACKED="",r.CHART_BAR_GROUPED="",r.EYE_SLASH="",r.X_MARK="",r.EXPAND_WIDE="",r.PIP="",r.PIP_WIDE="",r.LIFE_RING="",r.GLOBE="",r.PIGGY_BANK="",r.EXTLINK_LIGHT="",r.CLONE="",r.CLONE_LINK_SIMPLE="",r.CHART_BAR_NORMALIZED="",r.CONSUMER="",r.OCTAGON_XMARK="",r.HOURGLASS_HALF="",r.CLOCK="",r.CLOCK_THREE="",r.CALENDAR_DAY="",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="",r.WAND_MAGIC_SPARKLES="",r.PAPER_PLANE="",r.CIRCLE_STOP="",r.ARROW_ROTATE_RIGHT="",r.ARROWS_ROTATE="",r.ALIGN_RIGHT="",r.FORMAT_CLEAR="",r.ALIGN_CENTER="",r.ALIGN_LEFT="",r.PALETTE="",r.BOLD="",r.ITALIC="",r.UNDERLINE="",r.STRIKETHROUGH="",r.LINK_SIMPLE_SLASH="",r.LINK_SIMPLE="",r.ROUTE="",r.CIRCLE_USER_SLASH="",r.CIRCLE_USER_CHECK="",r.LIST_MAGNIFYING_GLASS="",r.MEDAL="",r.THUMBS_UP_THUMBS_DOWN_SOLID="",r.ARROW_TURN_DOWN_RIGHT="",r.FLASK="",r.LOCK_KEYHOLE_OPEN_SOLID="",r.HOURGLASS_END="",r.CIRCLE_QUESTION="",r.EYE="",r.SHARE="󨃱",r.GRIP_LINES_SOLID="",r.TRANSLATE_SPARKLE_SOLID="",r.CODE=""})(Ar||(Ar={}));var N;(function(r){r.UNKNOWN="",r.ABW="",r.AUDIO="",r.AVI="",r.CHM="",r.CODE="",r.CSV="",r.DITA="",r.EPUB="",r.EXCEL="",r.FLAC="",r.GIF="",r.GZIP="",r.HTML="",r.IMAGE="",r.JPEG="",r.JSON="",r.M4A="",r.MOV="",r.MP3="",r.MP4="",r.OGG="",r.PDF="",r.PNG="",r.POWERPOINT="",r.RAR="",r.STP="",r.TEXT="",r.VIDEO="",r.WAV="",r.WMA="",r.WORD="",r.XML="",r.YAML="",r.ZIP=""})(N||(N={}));var mO=new Map([...["abw"].map(r=>[r,N.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(r=>[r,N.AUDIO]),...["avi"].map(r=>[r,N.AVI]),...["chm","xhs"].map(r=>[r,N.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(r=>[r,N.CODE]),...["csv"].map(r=>[r,N.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,N.DITA]),...["epub"].map(r=>[r,N.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,N.EXCEL]),...["flac"].map(r=>[r,N.FLAC]),...["gif"].map(r=>[r,N.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,N.GZIP]),...["html","htm","xhtml"].map(r=>[r,N.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(r=>[r,N.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,N.JPEG]),...["json"].map(r=>[r,N.JSON]),...["m4a","m4p"].map(r=>[r,N.M4A]),...["mov","qt"].map(r=>[r,N.MOV]),...["mp3"].map(r=>[r,N.MP3]),...["mp4","m4v"].map(r=>[r,N.MP4]),...["ogg","oga"].map(r=>[r,N.OGG]),...["pdf","ps"].map(r=>[r,N.PDF]),...["png"].map(r=>[r,N.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,N.POWERPOINT]),...["rar"].map(r=>[r,N.RAR]),...["stp"].map(r=>[r,N.STP]),...["txt","rtf","md","mdown"].map(r=>[r,N.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(r=>[r,N.VIDEO]),...["wav"].map(r=>[r,N.WAV]),...["wma"].map(r=>[r,N.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,N.WORD]),...["xml","xsl","rdf"].map(r=>[r,N.XML]),...["yaml","yml","x-yaml"].map(r=>[r,N.YAML]),...["zip"].map(r=>[r,N.ZIP])]);var yO={[N.ABW]:"#91ABC6",[N.AUDIO]:"#1795E3",[N.AVI]:"#E63324",[N.CHM]:"#71C3EB",[N.CODE]:"#71C3EB",[N.CSV]:"#1F7345",[N.DITA]:"#71C3EB",[N.EPUB]:"#85B926",[N.EXCEL]:"#1F7345",[N.FLAC]:"#1795E3",[N.GIF]:"#59B031",[N.GZIP]:"#F8AB36",[N.HTML]:"#71C3EB",[N.IMAGE]:"#59B031",[N.JPEG]:"#59B031",[N.JSON]:"#71C3EB",[N.M4A]:"#1795E3",[N.MOV]:"#E63324",[N.MP3]:"#1795E3",[N.MP4]:"#E63324",[N.OGG]:"#1795E3",[N.PDF]:"#E44948",[N.PNG]:"#59B031",[N.POWERPOINT]:"#B54A2B",[N.RAR]:"#F8AB36",[N.STP]:"#3764B1",[N.TEXT]:"#3162AB",[N.UNKNOWN]:"#999999",[N.VIDEO]:"#E63324",[N.WAV]:"#1795E3",[N.WMA]:"#1795E3",[N.WORD]:"#3162AB",[N.XML]:"#71C3EB",[N.YAML]:"#71C3EB",[N.ZIP]:"#F8AB36"};var Lt;(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(Lt||(Lt={}));var Ui=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ot=class extends j{constructor(){super(...arguments),this.resolvedIcon=U}render(){let t=this.variant&&Object.values(Lt).includes(this.variant)?this.variant:Lt.fluid_topics,e=t!==Lt.material||!!this.value;return $`
|
|
642
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(e=>t.has(e))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(e=>e.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",$o(this.slottedElement,this.tooltip,this.position).then(({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}};ft.elementDefinitions={"ft-typography":xt};ft.styles=Jd;zt([g()],ft.prototype,"text",void 0);zt([g({type:Boolean})],ft.prototype,"manual",void 0);zt([g({type:Boolean})],ft.prototype,"inline",void 0);zt([g({type:Number})],ft.prototype,"delay",void 0);zt([g()],ft.prototype,"position",void 0);zt([bo()],ft.prototype,"slotNodes",void 0);zt([Y(".ft-tooltip--container")],ft.prototype,"container",void 0);zt([Y(".ft-tooltip")],ft.prototype,"tooltip",void 0);zt([Y(".ft-tooltip--content")],ft.prototype,"tooltipContent",void 0);zt([W()],ft.prototype,"visible",void 0);zt([Ce({passive:!0})],ft.prototype,"onTouch",null);zt([Ce({passive:!0})],ft.prototype,"onHover",null);zt([Ce({passive:!0})],ft.prototype,"onOut",null);zt([Ce({passive:!0})],ft.prototype,"onClick",null);X("ft-tooltip")(ft);var Ar;(function(r){r.ADD_TO_PBK="",r.ALERT="",r.ADD_ALERT="",r.BACK_TO_SEARCH="",r.ADD_BOOKMARK="",r.BOOKMARK="",r.BOOKS="",r.MENU="",r.DOWNLOAD="",r.EDIT="",r.FEEDBACK="",r.HOME="",r.MODIFY_PBK="",r.SCHEDULED="",r.SEARCH="",r.EXPORT="",r.TOC="",r.WRITE_UGC="",r.TRASH="",r.USER="",r.EXTLINK="",r.CALENDAR="",r.OFFLINE="",r.BOOK="",r.DOWNLOAD_PLAIN="",r.CHECK="",r.STAR_PLAIN="",r.TOPICS="",r.DISC="",r.CIRCLE="",r.SHARED="",r.SORT_UNSORTED="",r.SORT_UP="",r.SORT_DOWN="",r.WORKING="",r.CLOSE="",r.ZOOM_OUT="",r.ZOOM_IN="",r.ZOOM_REALSIZE="",r.ZOOM_FULLSCREEN="",r.ADMIN_RESTRICTED="",r.ADMIN="",r.ADMIN_KHUB="",r.ADMIN_THEME="",r.ADMIN_USERS="",r.WARNING="",r.CONTEXT="",r.SEARCH_HOME="",r.STEPS="",r.ICON_EXPAND="",r.ICON_COLLAPSE="",r.INFO="",r.MINUS_PLAIN="",r.PLUS_PLAIN="",r.FACET_HAS_DESCENDANT="",r.TRIANGLE_BOTTOM="",r.TRIANGLE_LEFT="",r.TRIANGLE_RIGHT="",r.TRIANGLE_TOP="",r.THIN_ARROW="",r.SIGN_IN="",r.LOGOUT="",r.TRANSLATE="",r.CLOSE_PLAIN="",r.CHECK_PLAIN="",r.ARTICLE="",r.COLUMNS="",r.ANALYTICS="",r.COLLECTIONS="",r.ARROW_DOWN="",r.ARROW_LEFT="",r.ARROW_RIGHT="",r.ARROW_UP="",r.SEARCH_IN_PUBLICATION="",r.COPY_TO_CLIPBOARD="",r.SHARED_PBK="",r.ATTACHMENTS="",r.STRIPE_ARROW_LEFT="",r.STRIPE_ARROW_RIGHT="",r.FILTERS="",r.DOT="",r.MINUS="",r.PLUS="",r.MAILS_AND_NOTIFICATIONS="",r.SAVE="",r.LOCKER="",r.ADMIN_INTEGRATION="",r.SYNC="",r.TAG="",r.BOOK_PLAIN="",r.UPLOAD="",r.ONLINE="",r.TAG_PLAIN="",r.ACCOUNT_SETTINGS="",r.PRINT="",r.DEFAULT_ROLES="",r.SHORTCUT_MENU="",r.RELATIVES_PLAIN="",r.RELATIVES="",r.PAUSE="",r.PLAY="",r.ADMIN_PORTAL="",r.STAR="",r.THUMBS_DOWN="",r.THUMBS_DOWN_PLAIN="",r.THUMBS_UP="",r.THUMBS_UP_PLAIN="",r.FEEDBACK_PLAIN="",r.RATE_PLAIN="",r.RATE="",r.OFFLINE_SETTINGS="",r.MY_COLLECTIONS="",r.THIN_ARROW_LEFT="",r.THIN_ARROW_RIGHT="",r.RESET="",r.MY_LIBRARY="",r.UNSTRUCTURED_DOC="",r.CONTEXTUAL="",r.THIN_ARROW_UP="",r.ARROW_RIGHT_TO_LINE="",r.DESKTOP="",r.TABLET_LANDSCAPE="",r.TABLET_PORTRAIT="",r.MOBILE_LANDSCAPE="",r.MOBILE_PORTRAIT="",r.DIAGRAM_SUNBURST="",r.DIAGRAM_SANKEY="",r.COMMENT_QUESTION="",r.COMMENT_QUESTION_PLAIN="",r.MESSAGE_BOT="",r.CHART_SIMPLE="",r.BARS_PROGRESS="",r.BOOK_OPEN_GEAR="",r.BOOK_OPEN_GEAR_SLASH="",r.LINE_CHART="",r.STACKED_CHART="",r.CHART_BAR_STACKED="",r.CHART_BAR_GROUPED="",r.EYE_SLASH="",r.X_MARK="",r.EXPAND_WIDE="",r.PIP="",r.PIP_WIDE="",r.LIFE_RING="",r.GLOBE="",r.PIGGY_BANK="",r.EXTLINK_LIGHT="",r.CLONE="",r.CLONE_LINK_SIMPLE="",r.CHART_BAR_NORMALIZED="",r.CONSUMER="",r.OCTAGON_XMARK="",r.HOURGLASS_HALF="",r.CLOCK="",r.CLOCK_THREE="",r.CALENDAR_DAY="",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="",r.WAND_MAGIC_SPARKLES="",r.PAPER_PLANE="",r.CIRCLE_STOP="",r.ARROW_ROTATE_RIGHT="",r.ARROWS_ROTATE="",r.ALIGN_RIGHT="",r.FORMAT_CLEAR="",r.ALIGN_CENTER="",r.ALIGN_LEFT="",r.PALETTE="",r.BOLD="",r.ITALIC="",r.UNDERLINE="",r.STRIKETHROUGH="",r.LINK_SIMPLE_SLASH="",r.LINK_SIMPLE="",r.ROUTE="",r.CIRCLE_USER_SLASH="",r.CIRCLE_USER_CHECK="",r.LIST_MAGNIFYING_GLASS="",r.MEDAL="",r.THUMBS_UP_THUMBS_DOWN_SOLID="",r.ARROW_TURN_DOWN_RIGHT="",r.FLASK="",r.LOCK_KEYHOLE_OPEN_SOLID="",r.HOURGLASS_END="",r.CIRCLE_QUESTION="",r.EYE="",r.SHARE="󨃱",r.GRIP_LINES_SOLID="",r.TRANSLATE_SPARKLE_SOLID="",r.CODE=""})(Ar||(Ar={}));var T;(function(r){r.UNKNOWN="",r.ABW="",r.AUDIO="",r.AVI="",r.CHM="",r.CODE="",r.CSV="",r.DITA="",r.EPUB="",r.EXCEL="",r.FLAC="",r.GIF="",r.GZIP="",r.HTML="",r.IMAGE="",r.JPEG="",r.JSON="",r.M4A="",r.MOV="",r.MP3="",r.MP4="",r.OGG="",r.PDF="",r.PNG="",r.POWERPOINT="",r.RAR="",r.STP="",r.TEXT="",r.VIDEO="",r.WAV="",r.WMA="",r.WORD="",r.XML="",r.YAML="",r.ZIP=""})(T||(T={}));var SO=new Map([...["abw"].map(r=>[r,T.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(r=>[r,T.AUDIO]),...["avi"].map(r=>[r,T.AVI]),...["chm","xhs"].map(r=>[r,T.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(r=>[r,T.CODE]),...["csv"].map(r=>[r,T.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,T.DITA]),...["epub"].map(r=>[r,T.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,T.EXCEL]),...["flac"].map(r=>[r,T.FLAC]),...["gif"].map(r=>[r,T.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,T.GZIP]),...["html","htm","xhtml"].map(r=>[r,T.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(r=>[r,T.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,T.JPEG]),...["json"].map(r=>[r,T.JSON]),...["m4a","m4p"].map(r=>[r,T.M4A]),...["mov","qt"].map(r=>[r,T.MOV]),...["mp3"].map(r=>[r,T.MP3]),...["mp4","m4v"].map(r=>[r,T.MP4]),...["ogg","oga"].map(r=>[r,T.OGG]),...["pdf","ps"].map(r=>[r,T.PDF]),...["png"].map(r=>[r,T.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,T.POWERPOINT]),...["rar"].map(r=>[r,T.RAR]),...["stp"].map(r=>[r,T.STP]),...["txt","rtf","md","mdown"].map(r=>[r,T.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(r=>[r,T.VIDEO]),...["wav"].map(r=>[r,T.WAV]),...["wma"].map(r=>[r,T.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,T.WORD]),...["xml","xsl","rdf"].map(r=>[r,T.XML]),...["yaml","yml","x-yaml"].map(r=>[r,T.YAML]),...["zip"].map(r=>[r,T.ZIP])]);var OO={[T.ABW]:"#91ABC6",[T.AUDIO]:"#1795E3",[T.AVI]:"#E63324",[T.CHM]:"#71C3EB",[T.CODE]:"#71C3EB",[T.CSV]:"#1F7345",[T.DITA]:"#71C3EB",[T.EPUB]:"#85B926",[T.EXCEL]:"#1F7345",[T.FLAC]:"#1795E3",[T.GIF]:"#59B031",[T.GZIP]:"#F8AB36",[T.HTML]:"#71C3EB",[T.IMAGE]:"#59B031",[T.JPEG]:"#59B031",[T.JSON]:"#71C3EB",[T.M4A]:"#1795E3",[T.MOV]:"#E63324",[T.MP3]:"#1795E3",[T.MP4]:"#E63324",[T.OGG]:"#1795E3",[T.PDF]:"#E44948",[T.PNG]:"#59B031",[T.POWERPOINT]:"#B54A2B",[T.RAR]:"#F8AB36",[T.STP]:"#3764B1",[T.TEXT]:"#3162AB",[T.UNKNOWN]:"#999999",[T.VIDEO]:"#E63324",[T.WAV]:"#1795E3",[T.WMA]:"#1795E3",[T.WORD]:"#3162AB",[T.XML]:"#71C3EB",[T.YAML]:"#71C3EB",[T.ZIP]:"#F8AB36"};var Lt;(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(Lt||(Lt={}));var Ui=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ot=class extends j{constructor(){super(...arguments),this.resolvedIcon=U}render(){let t=this.variant&&Object.values(Lt).includes(this.variant)?this.variant:Lt.fluid_topics,e=t!==Lt.material||!!this.value;return P`
|
|
643
643
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
644
644
|
${Mn(this.resolvedIcon)}
|
|
645
645
|
<slot ?hidden=${e}></slot>
|
|
646
646
|
</i>
|
|
647
|
-
`}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&e!==void 0?e:""}update(t){super.update(t),["value","variant"].some(e=>t.has(e))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Lt.file_format:this.resolvedIcon=(t=
|
|
647
|
+
`}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&e!==void 0?e:""}update(t){super.update(t),["value","variant"].some(e=>t.has(e))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Lt.file_format:this.resolvedIcon=(t=T[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case Lt.material:this.resolvedIcon=this.value||U;break;default:this.resolvedIcon=(e=Ar[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};Ot.elementDefinitions={};Ot.styles=zd;Ui([g()],Ot.prototype,"variant",void 0);Ui([g()],Ot.prototype,"value",void 0);Ui([W()],Ot.prototype,"resolvedIcon",void 0);Ui([Y("slot")],Ot.prototype,"slottedContent",void 0);X("ft-icon")(Ot);var Et={borderRadiusLeft:o.extend("--ft-switch-option-border-radius-left","",_.borderRadiusL),borderRadiusRight:o.extend("--ft-switch-option-border-radius-right","",_.borderRadiusL),borderWidthLeft:o.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:o.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:o.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Qd=L`
|
|
648
648
|
.ft-switch-option {
|
|
649
649
|
position: relative;
|
|
650
650
|
display: inline-block;
|
|
@@ -663,8 +663,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
663
663
|
|
|
664
664
|
border-style: solid;
|
|
665
665
|
border-color: ${yt.borderColor};
|
|
666
|
-
border-width: ${
|
|
667
|
-
border-radius: ${
|
|
666
|
+
border-width: ${Et.borderWidthVertical} ${Et.borderWidthRight} ${Et.borderWidthVertical} ${Et.borderWidthLeft};
|
|
667
|
+
border-radius: ${Et.borderRadiusLeft} ${Et.borderRadiusRight} ${Et.borderRadiusRight} ${Et.borderRadiusLeft};
|
|
668
668
|
display: flex;
|
|
669
669
|
align-items: center;
|
|
670
670
|
justify-content: center;
|
|
@@ -681,7 +681,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
681
681
|
|
|
682
682
|
.ft-switch-option--selected .ft-switch-option--content:before {
|
|
683
683
|
background-color: ${yt.selectedBackgroundColor};
|
|
684
|
-
border-radius: ${
|
|
684
|
+
border-radius: ${Et.borderRadiusLeft} ${Et.borderRadiusRight} ${Et.borderRadiusRight} ${Et.borderRadiusLeft};
|
|
685
685
|
position: absolute;
|
|
686
686
|
inset: 0;
|
|
687
687
|
content: "";
|
|
@@ -732,7 +732,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
732
732
|
.ft-switch-option--selected ft-icon {
|
|
733
733
|
color: ${yt.selectedTextColor};
|
|
734
734
|
}
|
|
735
|
-
`;var ie=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ms=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},Fs=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},St=class extends j{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Fs(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(
|
|
735
|
+
`;var ie=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ms=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},Fs=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},St=class extends j{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Fs(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(P`
|
|
736
736
|
<label part="label" for="input" class=${Rt(t)}
|
|
737
737
|
@click=${this.onChange}>
|
|
738
738
|
<div class="ft-switch-option--content">
|
|
@@ -748,15 +748,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
748
748
|
</label>
|
|
749
749
|
<input id="input" type="radio" class="ft-switch-option--input"
|
|
750
750
|
.checked=${this.selected}>
|
|
751
|
-
`)}addTooltip(t){return this.hasTextContent()||this.getLabel().trim().length===0?t
|
|
751
|
+
`)}addTooltip(t){return this.hasTextContent()||this.getLabel().trim().length===0?t:P`
|
|
752
752
|
<ft-tooltip part="tooltip"
|
|
753
753
|
text="${this.getLabel()}"
|
|
754
754
|
position="${this.tooltipPosition}">
|
|
755
755
|
${t}
|
|
756
756
|
</ft-tooltip>
|
|
757
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(t){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new Ms(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon
|
|
757
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(t){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new Ms(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?P`
|
|
758
758
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
759
|
-
`:U}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&e!==void 0?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};St.elementDefinitions={"ft-ripple":et,"ft-typography":xt,"ft-tooltip":ft,"ft-icon":Ot};St.styles=[xr,Qd];ie([g()],St.prototype,"value",void 0);ie([g()],St.prototype,"icon",void 0);ie([g()],St.prototype,"iconVariant",void 0);ie([g()],St.prototype,"label",void 0);ie([g()],St.prototype,"tooltipPosition",void 0);ie([g({type:Boolean,reflect:!0})],St.prototype,"selected",void 0);ie([g({type:Boolean})],St.prototype,"trailingIcon",void 0);ie([g({type:Boolean})],St.prototype,"unselectable",void 0);ie([Y(".ft-switch-option--content slot")],St.prototype,"slottedContent",void 0);ie([Y(".ft-switch-option--input")],St.prototype,"input",void 0);ie([W()],St.prototype,"isFocused",void 0);var Rr=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Bs=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Bt=class extends j{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(e=>e.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return
|
|
759
|
+
`:U}get textContent(){var t,e;return(e=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&e!==void 0?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};St.elementDefinitions={"ft-ripple":et,"ft-typography":xt,"ft-tooltip":ft,"ft-icon":Ot};St.styles=[xr,Qd];ie([g()],St.prototype,"value",void 0);ie([g()],St.prototype,"icon",void 0);ie([g()],St.prototype,"iconVariant",void 0);ie([g()],St.prototype,"label",void 0);ie([g()],St.prototype,"tooltipPosition",void 0);ie([g({type:Boolean,reflect:!0})],St.prototype,"selected",void 0);ie([g({type:Boolean})],St.prototype,"trailingIcon",void 0);ie([g({type:Boolean})],St.prototype,"unselectable",void 0);ie([Y(".ft-switch-option--content slot")],St.prototype,"slottedContent",void 0);ie([Y(".ft-switch-option--input")],St.prototype,"input",void 0);ie([W()],St.prototype,"isFocused",void 0);var Rr=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Bs=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Bt=class extends j{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(e=>e.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return P`
|
|
760
760
|
<div @keydown=${this.onKeyDown} tabindex="-1" class="${Rt(t)}" role="radiogroup" aria-label=${this.label}>
|
|
761
761
|
<slot @slotchange=${this.onSlotchange}
|
|
762
762
|
@option-change=${this.onOptionChangeByScript}
|
|
@@ -779,18 +779,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
779
779
|
}
|
|
780
780
|
|
|
781
781
|
.ft-switch slot::slotted(ft-switch-option) {
|
|
782
|
-
${x(
|
|
783
|
-
${x(
|
|
784
|
-
${x(
|
|
782
|
+
${x(Et.borderRadiusLeft,"0")};
|
|
783
|
+
${x(Et.borderRadiusRight,"0")};
|
|
784
|
+
${x(Et.borderWidthLeft,"0")};
|
|
785
785
|
}
|
|
786
786
|
|
|
787
787
|
.ft-switch slot::slotted(ft-switch-option:first-child) {
|
|
788
|
-
${x(
|
|
789
|
-
${x(
|
|
788
|
+
${x(Et.borderRadiusLeft,yt.borderRadius)};
|
|
789
|
+
${x(Et.borderWidthLeft,"1px")};
|
|
790
790
|
}
|
|
791
791
|
|
|
792
792
|
.ft-switch slot::slotted(ft-switch-option:last-child) {
|
|
793
|
-
${x(
|
|
793
|
+
${x(Et.borderRadiusRight,yt.borderRadius)};
|
|
794
794
|
}
|
|
795
795
|
|
|
796
796
|
.ft-switch--dense slot::slotted(ft-switch-option) {
|
|
@@ -815,7 +815,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
815
815
|
.ft-resizer:hover ft-icon {
|
|
816
816
|
color: ${tp.colorOnSurfaceMedium};
|
|
817
817
|
}
|
|
818
|
-
`;var Xe=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Us=class extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}},kt=class extends j{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Lt.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
|
|
818
|
+
`;var Xe=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Us=class extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}},kt=class extends j{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Lt.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 P`
|
|
819
819
|
<style>
|
|
820
820
|
.ft-resizer {
|
|
821
821
|
cursor: ${xe(this.cursor)}
|
|
@@ -948,9 +948,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
948
948
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
949
949
|
border-top: none;
|
|
950
950
|
}
|
|
951
|
-
`;var jo=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ut=class extends j{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
|
|
951
|
+
`;var jo=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ut=class extends j{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 P`
|
|
952
952
|
<div class="${Rt(t)}">
|
|
953
|
-
${this.text
|
|
953
|
+
${this.text?P`
|
|
954
954
|
<div class="ft-input-label--text ft-typography--caption">
|
|
955
955
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
956
956
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
@@ -1057,7 +1057,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1057
1057
|
position: absolute;
|
|
1058
1058
|
bottom: 0;
|
|
1059
1059
|
}
|
|
1060
|
-
`;var
|
|
1060
|
+
`;var $e=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},It=class extends wr(j,"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 P`
|
|
1061
1061
|
<style>
|
|
1062
1062
|
.ft-text-area--main-panel {
|
|
1063
1063
|
height: calc(4 * ${nt.verticalSpacing} + ${nt.labelSize} + ${nt.fontSize} + ${this.height}px);
|
|
@@ -1077,7 +1077,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1077
1077
|
></ft-input-label>
|
|
1078
1078
|
<div class="ft-text-area--input-panel"
|
|
1079
1079
|
aria-label="${this.label}">
|
|
1080
|
-
${this.outlined?null
|
|
1080
|
+
${this.outlined?null:P`
|
|
1081
1081
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1082
1082
|
`}
|
|
1083
1083
|
<textarea class="ft-typography--body1 ft-text-area--input"
|
|
@@ -1094,19 +1094,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1094
1094
|
initialHeight="${this.height}"
|
|
1095
1095
|
cursor="ns-resize"></ft-resizer>
|
|
1096
1096
|
</div>
|
|
1097
|
-
${this.helper
|
|
1097
|
+
${this.helper?P`
|
|
1098
1098
|
<ft-typography class="ft-text-area--helper-text" variant="caption">
|
|
1099
1099
|
${this.helper}
|
|
1100
1100
|
</ft-typography>`:void 0}
|
|
1101
1101
|
</div>
|
|
1102
|
-
`}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){(t.key==="Enter"||t.key===" ")&&t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}};
|
|
1102
|
+
`}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){(t.key==="Enter"||t.key===" ")&&t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}};It.elementDefinitions={"ft-input-label":Ut,"ft-resizer":kt,"ft-ripple":et,"ft-typography":xt};It.styles=[Qr,op];$e([g({type:String})],It.prototype,"label",void 0);$e([g({reflect:!0})],It.prototype,"value",void 0);$e([g({type:String})],It.prototype,"helper",void 0);$e([g({type:Boolean})],It.prototype,"outlined",void 0);$e([g({type:Boolean})],It.prototype,"disabled",void 0);$e([g({type:Boolean})],It.prototype,"error",void 0);$e([g({type:Number,reflect:!0})],It.prototype,"height",void 0);$e([Y("textarea")],It.prototype,"textarea",void 0);$e([W()],It.prototype,"focused",void 0);X("ft-text-area")(It);var _r=class extends j{render(){return P`
|
|
1103
1103
|
<div class="ft-loader">
|
|
1104
1104
|
<div></div>
|
|
1105
1105
|
<div></div>
|
|
1106
1106
|
<div></div>
|
|
1107
1107
|
<div></div>
|
|
1108
1108
|
</div>
|
|
1109
|
-
`}};_r.styles=Hd;X("ft-loader")(_r);var
|
|
1109
|
+
`}};_r.styles=Hd;X("ft-loader")(_r);var Tt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ht=class extends wr(j,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((e=this.form)===null||e===void 0||e.requestSubmit())})}render(){var t,e,i;let n=P`
|
|
1110
1110
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
1111
1111
|
<ft-typography part="label"
|
|
1112
1112
|
variant=${this.typographyVariant}
|
|
@@ -1116,7 +1116,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1116
1116
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
1117
1117
|
</ft-typography>
|
|
1118
1118
|
${this.resolveIcon()}
|
|
1119
|
-
`,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a
|
|
1119
|
+
`,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?P`
|
|
1120
1120
|
<a href="${a}"
|
|
1121
1121
|
target="${(t=this.target)!==null&&t!==void 0?t:"_self"}"
|
|
1122
1122
|
part="button"
|
|
@@ -1125,25 +1125,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1125
1125
|
?disabled=${this.isDisabled()}>
|
|
1126
1126
|
${n}
|
|
1127
1127
|
</a>
|
|
1128
|
-
|
|
1128
|
+
`:P`
|
|
1129
1129
|
<button part="button"
|
|
1130
1130
|
class="${Rt(this.buttonClasses)}"
|
|
1131
1131
|
aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
|
|
1132
1132
|
?disabled=${this.isDisabled()}>
|
|
1133
1133
|
${n}
|
|
1134
1134
|
</button>
|
|
1135
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)
|
|
1135
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?P`
|
|
1136
1136
|
<ft-tooltip part="tooltip"
|
|
1137
1137
|
text="${this.getLabel()}"
|
|
1138
1138
|
position="${this.tooltipPosition}">
|
|
1139
1139
|
${t}
|
|
1140
1140
|
</ft-tooltip>
|
|
1141
|
-
`:t}resolveIcon(){return this.loading
|
|
1142
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon
|
|
1141
|
+
`:t}resolveIcon(){return this.loading?P`
|
|
1142
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?P`
|
|
1143
1143
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
1144
|
-
|
|
1144
|
+
`:P`
|
|
1145
1145
|
<slot part="icon" name="icon"></slot>
|
|
1146
|
-
`}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}focusWithoutTooltip(){var t;this.setTooltipManual(!0),(t=this.button)===null||t===void 0||t.focus(),this.setTooltipManual(!1)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.textContent}get textContent(){return xi(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ht.elementDefinitions={"ft-ripple":et,"ft-tooltip":ft,"ft-typography":xt,"ft-icon":Ot,"ft-loader":_r};
|
|
1146
|
+
`}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}focusWithoutTooltip(){var t;this.setTooltipManual(!0),(t=this.button)===null||t===void 0||t.focus(),this.setTooltipManual(!1)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.textContent}get textContent(){return xi(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ht.elementDefinitions={"ft-ripple":et,"ft-tooltip":ft,"ft-typography":xt,"ft-icon":Ot,"ft-loader":_r};Tt([g()],ht.prototype,"href",void 0);Tt([g()],ht.prototype,"target",void 0);Tt([g({type:String,reflect:!0})],ht.prototype,"role",void 0);Tt([g()],ht.prototype,"type",void 0);Tt([g({type:Boolean})],ht.prototype,"disabled",void 0);Tt([g()],ht.prototype,"label",void 0);Tt([g()],ht.prototype,"icon",void 0);Tt([g()],ht.prototype,"iconVariant",void 0);Tt([g({type:Boolean})],ht.prototype,"trailingIcon",void 0);Tt([g({type:Boolean})],ht.prototype,"loading",void 0);Tt([g({attribute:"aria-label"})],ht.prototype,"ariaLabel",void 0);Tt([g()],ht.prototype,"tooltipPosition",void 0);Tt([g({type:Boolean})],ht.prototype,"hideTooltip",void 0);Tt([g({type:Boolean})],ht.prototype,"forceTooltip",void 0);Tt([Y(".ft-button")],ht.prototype,"button",void 0);Tt([Y(".ft-button--label slot")],ht.prototype,"slottedContent",void 0);Tt([Y("[part=tooltip]")],ht.prototype,"tooltip",void 0);var Wi=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ne=class extends ht{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"}};ne.styles=[xr,Gd];Wi([g({type:Boolean})],ne.prototype,"primary",void 0);Wi([g({type:Boolean})],ne.prototype,"outlined",void 0);Wi([g({type:Boolean})],ne.prototype,"dense",void 0);Wi([g({type:Boolean})],ne.prototype,"round",void 0);var ip=[L`
|
|
1147
1147
|
:host {
|
|
1148
1148
|
display: inline-block;
|
|
1149
1149
|
max-width: 100%;
|
|
@@ -1609,15 +1609,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1609
1609
|
.ftds--size-small.ft-button--icon-only {
|
|
1610
1610
|
width: ${b.smallIconOnlyWidth};
|
|
1611
1611
|
}
|
|
1612
|
-
`,vr];var Hi=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Le=class extends Ri(ht){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=mr.brand,this.iconVariant=Lt.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case
|
|
1612
|
+
`,vr];var Hi=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Le=class extends Ri(ht){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=mr.brand,this.iconVariant=Lt.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case we.large:return Ye.body2medium;case we.medium:return Ye.caption1medium;case we.small:return Ye.caption2medium}}};Le.styles=[xr,ip];Hi([g({type:Boolean})],Le.prototype,"primary",void 0);Hi([g({type:Boolean})],Le.prototype,"secondary",void 0);Hi([g({type:Boolean})],Le.prototype,"tertiary",void 0);Hi([g({type:Boolean})],Le.prototype,"round",void 0);X("ft-button")(ne);X("ftds-button")(Le);var np=L`
|
|
1613
1613
|
`;var ap=L`
|
|
1614
|
-
`;var
|
|
1614
|
+
`;var sh="ft-app-info",Ws=class extends CustomEvent{constructor(t){super("authentication-change",{detail:t})}},lh={session:(r,t)=>{te(r.session,t.payload)||(r.session=t.payload,setTimeout(()=>M.dispatchEvent(new Ws(t.payload)),0))}},M=Te.get({name:sh,reducers:lh,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Ir=class r{static get(t){let{baseUrl:e,apiIntegrationIdentifier:i}=M.getState(),n=t??i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static await(t){return new Promise(e=>{let i=r.get(t);if(i)e(i);else{let n=M.subscribe(()=>{i=r.get(t),i&&(n(),e(i))})}})}};var be=class{constructor(t=!0,e){var i;this.overrideApi=e;let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new de,this.cache=t?n.commonCache:new de}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:Ir.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ir.await()}clearCache(){this.cache.clearAll()}};var sp,ch=Symbol("clearAfterUnitTest"),zi=class extends be{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[sp]=()=>{this.defaultMessages={},this.cache=new de,this.listeners={}},this.currentUiLocale=M.getState().uiLocale,M.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=M.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...e};te(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveContext(t){var e,i;return this.fetchContext(t),(i=(e=this.cache.getNow(t))===null||e===void 0?void 0:e.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,e){let i=t.toLowerCase();return this.resolveContext(i)[e]}resolveMessage(t,e,...i){var n;let a=t.toLowerCase(),s=this.resolveContext(a);return new Do((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(e){console.error(e)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(e),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(e=>bi(0).then(()=>e()).catch(()=>null)))}};sp=ch;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends zi{constructor(){super(async(r,t)=>(await this.awaitApi).getFluidTopicsMessageContext(r,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends zi{constructor(){super(async(r,t)=>(await this.awaitApi).getCustomMessageContext(r,t))}});var Tr=window.FluidTopicsI18nService,lp=window.FluidTopicsCustomI18nService;var Dt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},gt=class extends j{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Ir.get(),this.messageContexts=[],this.cache=new de,this.cleanSessionDebouncer=new st}render(){return P`
|
|
1615
1615
|
<slot></slot>
|
|
1616
|
-
`}update(t){var e,i,n,a,s;super.update(t),t.has("baseUrl")&&(M.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&M.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&M.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&M.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&M.actions.noCustom(this.noCustom),t.has("editorMode")&&M.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&M.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&M.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>
|
|
1616
|
+
`}update(t){var e,i,n,a,s;super.update(t),t.has("baseUrl")&&(M.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&M.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&M.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&M.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&M.actions.noCustom(this.noCustom),t.has("editorMode")&&M.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&M.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&M.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Tr.addContext(l)),t.has("openExternalDocumentInNewTab")&&M.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&M.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&M.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(M.actions.defaultLocales((e=this.localesConfiguration)===null||e===void 0?void 0:e.defaultLocales),M.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),M.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};gt.elementDefinitions={};gt.styles=ap;Dt([g()],gt.prototype,"baseUrl",void 0);Dt([g()],gt.prototype,"apiIntegrationIdentifier",void 0);Dt([g()],gt.prototype,"uiLocale",void 0);Dt([pe(null)],gt.prototype,"availableUiLocales",void 0);Dt([pe(null)],gt.prototype,"metadataConfiguration",void 0);Dt([g({type:Boolean})],gt.prototype,"editorMode",void 0);Dt([g({type:Boolean})],gt.prototype,"noCustom",void 0);Dt([g({type:Boolean})],gt.prototype,"openExternalDocumentInNewTab",void 0);Dt([g({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],gt.prototype,"noCustomComponent",void 0);Dt([g({type:Boolean})],gt.prototype,"withManualResources",void 0);Dt([g({type:Boolean})],gt.prototype,"navigatorOnline",void 0);Dt([g({type:Boolean})],gt.prototype,"forcedOffline",void 0);Dt([g({type:Object})],gt.prototype,"apiProvider",void 0);Dt([pe([])],gt.prototype,"messageContexts",void 0);Dt([pe(void 0)],gt.prototype,"session",void 0);Dt([W()],gt.prototype,"localesConfiguration",void 0);var Vi=class extends be{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 ji=class extends be{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 dh="ft-user-assets",Gi=Te.get({name:dh,initialState:{savedSearches:void 0,bookmarks:void 0}}),Hs=class{constructor(){this.currentSession=M.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ji,this.savedSearchesService=new Vi,M.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:e}=M.getState();te((t=this.currentSession)===null||t===void 0?void 0:t.profile,e?.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Gi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Gi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Gi.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let e=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Gi.actions.bookmarks(e)}}},cp=new Hs;var zs=class{addCommand(t,e=!1){M.commands.add(t,e)}consumeCommand(t){return M.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new zs;var Vs=class{highlightHtml(t,e,i){Va(t,e,i)}};window.FluidTopicsHighlightHtmlService=new Vs;var js=class{isDate(t){var e,i,n,a;return(a=(n=((i=(e=M.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===t))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(t,e){var i,n,a;return Kr.format(t,(i=e?.locale)!==null&&i!==void 0?i:M.getState().uiLocale,(n=e?.longFormat)!==null&&n!==void 0?n:!1,(a=e?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new js;X("ft-app-context")(gt);var ph=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Gs=Symbol("i18nAttributes"),Ks=Symbol("i18nListAttributes"),Nr=Symbol("i18nProperties"),Go=Symbol("i18nUnsubs");function Je(r){var t;class e extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map}get i18nService(){return this.useCustomMessageContexts?lp:Tr}i18n(n,a,...s){var l;if(typeof n=="string")return this.i18nService.resolveMessage(n,a,...s);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 a,s,l;(a=this[Gs])===null||a===void 0||a.forEach((d,p)=>{let f=this.getI18nAttributeValue(p);f&&(this[p]=this.getI18nAttributeMessage(f,d,n))}),(s=this[Ks])===null||s===void 0||s.forEach((d,p)=>{let f=this.getI18nListAttributeValues(p);this[p]=f?.map(h=>this.getI18nAttributeMessage(h,d,n))}),(l=this[Nr])===null||l===void 0||l.forEach((d,p)=>{d.context.toLowerCase()===n.toLowerCase()&&(this[p]=this.i18n(d))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(n,a){return{...n,message:this.i18n({context:n.context,key:n.key,...a})}}getI18nAttributeMessage(n,a,s){var l;let d=!s||((l=n.context)===null||l===void 0?void 0:l.toLowerCase())===s.toLowerCase();return n.context&&n.key&&d?this.buildI18nAttributeMessage(n,a):n}update(n){var a,s,l;super.update(n),(a=this[Gs])===null||a===void 0||a.forEach((d,p)=>{let f=this.getI18nAttributeValue(p);f?.context&&f.key&&(n.has(p)||d.argsProvider!=null)&&(this.addI18nContextIfNeeded(f,n,p),this[p]=this.getI18nAttributeMessage(f,d))}),(s=this[Ks])===null||s===void 0||s.forEach((d,p)=>{let f=this.getI18nListAttributeValues(p);(n.has(p)||d.argsProvider!=null)&&(this[p]=f?.map(h=>(this.addI18nContextIfNeeded(h,n,p),this.getI18nAttributeMessage(h,d))))}),(l=this[Nr])===null||l===void 0||l.forEach((d,p)=>{d.argsProvider!=null&&(this[p]=this.i18n(d))})}getI18nAttributeValue(n){return this[n]}getI18nListAttributeValues(n){return this[n]}addI18nContextIfNeeded(n,a,s){n.context&&n.key&&a.has(s)&&this.addI18nContext(n.context)}connectedCallback(){var n,a,s,l,d,p;super.connectedCallback(),new Set([...(a=(n=this[Nr])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[Gs])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(f=>this.getI18nAttributeValue(f)),...[...(p=(d=this[Ks])===null||d===void 0?void 0:d.keys())!==null&&p!==void 0?p:[]].flatMap(f=>this.getI18nListAttributeValues(f))].map(f=>f?.context)).forEach(f=>f&&this.addI18nMessages(f))}addI18nMessages(n,a){n=n.toLowerCase(),this[Go].has(n)||this[Go].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[Go].forEach(n=>n()),this[Go].clear()}}return t=Go,ph([g({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}var dp=class extends Je(j){},Ki=class extends Je(Zt){};var Ko=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ae=class extends Ki{constructor(){super(),this.editorMode=!1,this.addStore(M)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":U:P`
|
|
1617
1617
|
<span class="ft-i18n">
|
|
1618
1618
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1619
1619
|
</span>
|
|
1620
|
-
`}update(t){var e;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(e=this.defaultMessage)!==null&&e!==void 0?e:""})}};ae.elementDefinitions={};ae.styles=np;Ko([ct()],ae.prototype,"editorMode",void 0);Ko([g()],ae.prototype,"context",void 0);Ko([g()],ae.prototype,"key",void 0);Ko([pe([])],ae.prototype,"args",void 0);Ko([g()],ae.prototype,"defaultMessage",void 0);var Qe=class r{static build(t){return new r(t)}static fromGwt(t){return new r(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(e,i)=>{let n=i;return a=>({context:this.name,key:n,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(e,i)=>(...n)=>
|
|
1620
|
+
`}update(t){var e;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(e=this.defaultMessage)!==null&&e!==void 0?e:""})}};ae.elementDefinitions={};ae.styles=np;Ko([ct()],ae.prototype,"editorMode",void 0);Ko([g()],ae.prototype,"context",void 0);Ko([g()],ae.prototype,"key",void 0);Ko([pe([])],ae.prototype,"args",void 0);Ko([g()],ae.prototype,"defaultMessage",void 0);var Qe=class r{static build(t){return new r(t)}static fromGwt(t){return new r(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(e,i)=>{let n=i;return a=>({context:this.name,key:n,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(e,i)=>(...n)=>Tr.resolveMessage(this.name,i,...n)}),this.rawMessages=new Proxy({},{get:(e,i)=>Tr.resolveRawMessage(this.name,i)})}};var Zi=(r,t)=>(e,i)=>{var n,a;e.constructor.createProperty(i,t??{attribute:!1,type:String});let s={...r,key:(n=r.key)!==null&&n!==void 0?n:i};e[Nr]=(a=e[Nr])!==null&&a!==void 0?a:new Map,e[Nr].set(i,s)};X("ft-i18n")(ae);var tt=Qe.build("integratedFeedbackComponent"),pp={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 Zs=r=>r??mt;var G={fontSize:o.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-field-helper-color","",_.colorOnSurfaceMedium),colorPrimary:o.external(_.colorPrimary,"Design system"),colorOnSurface:o.external(_.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(_.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(_.borderRadiusS,"Design system"),colorError:o.external(_.colorError,"Design system"),prefixColor:o.extend("--ft-text-field-prefix-color","",_.colorOnSurfaceMedium),iconColor:o.extend("--ft-text-field-icon-color","",_.colorOnSurfaceMedium),floatingZIndex:o.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:o.extend("--ft-text-field-background-color","",_.colorSurface),colorOutline:o.external(_.colorOutline,"Design system"),elevation02:o.external(_.elevation02,"Design system"),suggestSize:o.create("--ft-text-field-suggest-size","","SIZE","300px")},up=L`
|
|
1621
1621
|
*:focus {
|
|
1622
1622
|
outline: none;
|
|
1623
1623
|
}
|
|
@@ -1804,13 +1804,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1804
1804
|
slot {
|
|
1805
1805
|
pointer-events: none;
|
|
1806
1806
|
}
|
|
1807
|
-
`;var qi=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},qs=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},Jt=class extends j{render(){let t={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return
|
|
1807
|
+
`;var qi=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},qs=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},Jt=class extends j{render(){let t={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return P`
|
|
1808
1808
|
<div class=${Rt(t)}
|
|
1809
1809
|
tabindex="-1"
|
|
1810
1810
|
@keydown=${this.onKeyDown}
|
|
1811
1811
|
@click=${this.confirmSuggestion}>
|
|
1812
1812
|
<ft-ripple></ft-ripple>
|
|
1813
|
-
${this.helper
|
|
1813
|
+
${this.helper?P`
|
|
1814
1814
|
<ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
|
|
1815
1815
|
${this.helper}
|
|
1816
1816
|
</ft-typography>`:U}
|
|
@@ -1820,7 +1820,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1820
1820
|
<slot></slot>
|
|
1821
1821
|
</ft-typography>
|
|
1822
1822
|
</div>
|
|
1823
|
-
`}focus(t){var e;(e=this.container)===null||e===void 0||e.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new qs(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())}};Jt.elementDefinitions={"ft-ripple":et,"ft-typography":xt,"ft-icon":Ot};Jt.styles=fp;qi([g()],Jt.prototype,"value",void 0);qi([g()],Jt.prototype,"helper",void 0);qi([Y(".ft-text-field-suggestion")],Jt.prototype,"container",void 0);qi([bo()],Jt.prototype,"assignedNodes",void 0);var it=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Z=class extends
|
|
1823
|
+
`}focus(t){var e;(e=this.container)===null||e===void 0||e.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new qs(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())}};Jt.elementDefinitions={"ft-ripple":et,"ft-typography":xt,"ft-icon":Ot};Jt.styles=fp;qi([g()],Jt.prototype,"value",void 0);qi([g()],Jt.prototype,"helper",void 0);qi([Y(".ft-text-field-suggestion")],Jt.prototype,"container",void 0);qi([bo()],Jt.prototype,"assignedNodes",void 0);var it=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Z=class extends wr(j,"textbox"){get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}constructor(){super(),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Ar.EYE_SLASH,this.passwordRevealedIcon=Ar.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}render(){var t;let e={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":this.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 P`
|
|
1824
1824
|
<div class="${Rt(e)}">
|
|
1825
1825
|
<div class="ft-text-field--main-panel"
|
|
1826
1826
|
@keydown=${this.handleKeyboardNavigation}
|
|
@@ -1831,10 +1831,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1831
1831
|
?raised=${this.focused||this.value!=""}
|
|
1832
1832
|
?error=${this.error}></ft-input-label>
|
|
1833
1833
|
<div class="ft-text-field--input-panel">
|
|
1834
|
-
${this.outlined?U
|
|
1834
|
+
${this.outlined?U:P`
|
|
1835
1835
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1836
1836
|
`}
|
|
1837
|
-
${this.prefix
|
|
1837
|
+
${this.prefix?P`
|
|
1838
1838
|
<ft-typography class="ft-text-field--prefix" variant="body1">
|
|
1839
1839
|
${this.prefix}
|
|
1840
1840
|
</ft-typography>
|
|
@@ -1855,40 +1855,40 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1855
1855
|
<div class="ft-text-field--suggestions"
|
|
1856
1856
|
@suggestion-selected=${this.onSuggestionSelected}>
|
|
1857
1857
|
<slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
|
|
1858
|
-
${this.filterSuggestions&&this.value
|
|
1858
|
+
${this.filterSuggestions&&this.value?P`
|
|
1859
1859
|
<ft-text-field-suggestion class="ft-text-field-suggestion--new-value" helper="${this.suggestionsHelper}">
|
|
1860
1860
|
${this.value}
|
|
1861
1861
|
</ft-text-field-suggestion>
|
|
1862
1862
|
`:U}
|
|
1863
1863
|
</div>
|
|
1864
1864
|
</div>
|
|
1865
|
-
${this.helper
|
|
1865
|
+
${this.helper?P`
|
|
1866
1866
|
<ft-typography class="ft-text-field--helper-text" variant="caption">
|
|
1867
1867
|
${this.helper}
|
|
1868
1868
|
</ft-typography>
|
|
1869
1869
|
`:U}
|
|
1870
1870
|
</div>
|
|
1871
|
-
`}renderPasswordIcon(){return
|
|
1871
|
+
`}renderPasswordIcon(){return P`
|
|
1872
1872
|
<ft-icon class="ft-text-field--icon"
|
|
1873
1873
|
.variant=${this.iconVariant}
|
|
1874
1874
|
.value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
|
|
1875
1875
|
@click=${()=>this.togglePasswordVisibility()}></ft-icon>
|
|
1876
|
-
`}renderIcon(){return this.password?this.renderPasswordIcon():this.icon
|
|
1876
|
+
`}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?P`
|
|
1877
1877
|
<ft-icon class="ft-text-field--icon"
|
|
1878
1878
|
.variant=${this.iconVariant}
|
|
1879
1879
|
.value=${this.icon}
|
|
1880
1880
|
@click=${()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.focus()}}></ft-icon>
|
|
1881
|
-
`:U}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,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion])}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",Po(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:e,y:i})=>{this.suggestionsContainer.style.left=`${e}px`,this.suggestionsContainer.style.top=`${i}px`}))}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;let i=((e=this.input)===null||e===void 0?void 0:e.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;t.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(e=this.visibleSuggestions[n])===null||e===void 0||e.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}};Z.elementDefinitions={"ft-input-label":Ut,"ft-ripple":et,"ft-typography":xt,"ft-icon":Ot,"ft-text-field-suggestion":Jt};Z.styles=[Qr,Ga,up];it([g()],Z.prototype,"label",void 0);it([g({noAccessor:!0})],Z.prototype,"value",null);it([W()],Z.prototype,"dispatchedValue",void 0);it([g()],Z.prototype,"helper",void 0);it([g()],Z.prototype,"suggestionsHelper",void 0);it([g({type:Boolean})],Z.prototype,"outlined",void 0);it([g({type:Boolean})],Z.prototype,"disabled",void 0);it([g({type:Boolean})],Z.prototype,"error",void 0);it([g({type:Boolean})],Z.prototype,"fixedMenuPosition",void 0);it([g()],Z.prototype,"prefix",void 0);it([g()],Z.prototype,"icon",void 0);it([g()],Z.prototype,"name",void 0);it([g()],Z.prototype,"type",void 0);it([g()],Z.prototype,"passwordHiddenIcon",void 0);it([g()],Z.prototype,"passwordRevealedIcon",void 0);it([g()],Z.prototype,"iconVariant",void 0);it([g({type:Boolean})],Z.prototype,"filterSuggestions",void 0);it([g({type:Number})],Z.prototype,"maxLength",void 0);it([g({type:Boolean})],Z.prototype,"password",void 0);it([W()],Z.prototype,"focused",void 0);it([W()],Z.prototype,"hidePassword",void 0);it([W()],Z.prototype,"hideSuggestions",void 0);it([W()],Z.prototype,"visibleSuggestions",void 0);it([Y(".ft-text-field--main-panel")],Z.prototype,"mainPanel",void 0);it([Y(".ft-text-field--input")],Z.prototype,"input",void 0);it([Y(".ft-text-field-suggestion--new-value")],Z.prototype,"newValueSuggestion",void 0);it([Y(".ft-text-field--suggestions")],Z.prototype,"suggestionsContainer",void 0);it([In({selector:"ft-text-field-suggestion"})],Z.prototype,"suggestions",void 0);X("ft-text-field")(Z);X("ft-text-field-suggestion")(Jt);var hp=r=>Ne.get({name:"ft-reader-"+r,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var Ys=class{constructor(t,e){this.mapId=t,this.paginatedToc=e,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,i){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,e,i):[{tocId:n.tocId,title:n.title,depth:e,children:this.extractPagesToc(n.children,e+1,n.tocId)}]))}convertNodes(t,e,i){return t.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],e,n.tocId),...this.convertNodes(n.children,e,n.tocId)];let d=(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:d,depth:e,parentTocId:i,children:[]};this.register(p);let f=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],e+1,n.tocId),h=this.convertNodes(n.children,e+1,p.tocId);return p.children=[...f,...h],[p]})}convertSectionNodes(t,e,i){return t.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:e,parentTocId:i,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,e+1,n.tocId),[l]})}buildPage(t,e){var i,n,a,s,l,d;let p={number:this.pages.length+1,title:(i=t.title)!==null&&i!==void 0?i:"",rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},f=(y,v)=>(v?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,v)=>{f(y,h[v])}),t.tocId&&f(t.tocId,t.pageConfiguration.isVisible),p.topics.push(...this.tocIds((d=t.pageToc)!==null&&d!==void 0?d:[])),p}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap(e=>[e.tocId,...this.tocIds(e.children)])}buildBreadcrumb(t){let e=[t.tocId];for(;t?.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.nodeByUrl[t.prettyUrl]==null?this.nodeByUrl[t.prettyUrl]=t:this.duplicatedPrettyUrls.add(t.prettyUrl)),this.nodeByUrl[`${this.mapId}/${t.tocId}`]=t,this.nodeByTocId[t.tocId]=t}},Yi=class{convertPaginatedToc(t,e){return new Ys(t,e).build()}};var Xi=class extends be{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i){super(!1,e),this.converter=t,this._mapId=i,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(e=>this.converter.convertPaginatedToc(t,e)))),this.cache.register("ratingSummary",()=>{var t,e;return wr((e=(t=M.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&e!==void 0?e:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return(e=this.enrichedToc)===null||e===void 0?void 0:e.nodeByTocId[t]}getTocNodeNowByUrl(t){var e,i;let n=this.getMapNow();return n?.prettyUrl==t||`${n?.id}/root`===t?(e=this.enrichedToc)===null||e===void 0?void 0:e.toc[0]:(i=this.enrichedToc)===null||i===void 0?void 0:i.nodeByUrl[t]}async getPage(t){let e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){let e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),()=>this.fetchRelativesForDocument(t,e))}getRelativesForTopicInMap(t,e,i){return this.cache.get("topic-relatives-"+[t,e,...i].join("-"),()=>this.fetchRelativesForTopicInMap(t,e,i))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,i){let n=this.getNavigationData(t,e,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(t,e,i){var n,a;t=t||"root";let s=this.enrichedToc,l=s?.pageByTocId[t],d=s?.nodeByTocId[t],p=d?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(n=d?.title)!==null&&n!==void 0?n:"",page:e&&l&&l.number!==e?e:void 0,prettyUrl:p?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(p??""))!==null&&a!==void 0?a:!1,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(e=>{var i;return e?{type:e.topics.type,rating:(i=e.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,e){return this.makeRateMapRequest(t,e).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=M.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],n=this.getTocNodeNow(e.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case Yt.FEEDBACK:return wr(e??[],pt.FEEDBACK_USER);case Yt.RATING:return wr(e??[],pt.RATING_USER)&&i!=null&&i!==Ie.NO_RATING;case Yt.PRINT:return wr(e??[],pt.PRINT_USER);case Yt.BOOKMARK:return!!e?.sessionAuthenticated;case Yt.COLLECTIONS:return wr(e??[],pt.COLLECTION_USER);case Yt.PERSONAL_BOOKS:return wr(e??[],pt.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var Ji=class r extends Xi{static async build(t){return new r(new Yi,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,e){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:e}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(t,e,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[t]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var Qi=class r{static build(t,e){return new r(hp(t.trim()||"context"),e??Ji.build)}loaded(){return Kn(()=>this._loaded)}constructor(t,e,i){this.store=t,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new st(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return So(()=>this.service)}async navigateToTopic(t,e,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i):n.getPageByTocId(t??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,a),section:e})}resolveValidNonRootTocId(t,e){var i,n,a;let s=(i=t==="root"?void 0:t)!==null&&i!==void 0?i:e.rootTocId;return e.topics.includes(s)?s:(a=(n=e.topics[0])!==null&&n!==void 0?n:e.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){await this.loaded();let i=await(await this.awaitService()).getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var t;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,e,i,n,a;try{await Promise.all([(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(s=>this.store.actions.configuration(s)),(e=this.service)===null||e===void 0?void 0:e.getMap().then(s=>this.store.actions.map(s)),(i=this.service)===null||i===void 0?void 0:i.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof fr)&&this.errorHandler(s)}}fetchRelatives(){var t,e,i;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(e=this.service)===null||e===void 0||e.getRelativesForDocument((i=this.store.getState().configuration)===null||i===void 0?void 0:i.relativePivotMetadata,n).then(a=>{let s=a.results.flatMap(l=>l.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,e;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(e=(t=M.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&e!==void 0?e:[];return new xo(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var e,i,n;await this.loaded();let a=await So(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(i=(e=d?.results)===null||e===void 0?void 0:e[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let p=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}};var mp=L`
|
|
1882
|
-
`;var tn=class extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}},en=class extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}},rn=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},on=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},nn=class extends Event{constructor(){super("ft-reader-map-not-found")}},an=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},sn=class extends Event{constructor(){super("ft-reader-map-forbidden")}},ln=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var cn=class{constructor(t){this.stateManager=t}searchInDocument(t){this.stateManager.setSearchInDocumentQuery(t??"")}};var Vt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},
|
|
1881
|
+
`:U}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,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion])}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",$o(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:e,y:i})=>{this.suggestionsContainer.style.left=`${e}px`,this.suggestionsContainer.style.top=`${i}px`}))}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;let i=((e=this.input)===null||e===void 0?void 0:e.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;t.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(e=this.visibleSuggestions[n])===null||e===void 0||e.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}};Z.elementDefinitions={"ft-input-label":Ut,"ft-ripple":et,"ft-typography":xt,"ft-icon":Ot,"ft-text-field-suggestion":Jt};Z.styles=[Qr,Ga,up];it([g()],Z.prototype,"label",void 0);it([g({noAccessor:!0})],Z.prototype,"value",null);it([W()],Z.prototype,"dispatchedValue",void 0);it([g()],Z.prototype,"helper",void 0);it([g()],Z.prototype,"suggestionsHelper",void 0);it([g({type:Boolean})],Z.prototype,"outlined",void 0);it([g({type:Boolean})],Z.prototype,"disabled",void 0);it([g({type:Boolean})],Z.prototype,"error",void 0);it([g({type:Boolean})],Z.prototype,"fixedMenuPosition",void 0);it([g()],Z.prototype,"prefix",void 0);it([g()],Z.prototype,"icon",void 0);it([g()],Z.prototype,"name",void 0);it([g()],Z.prototype,"type",void 0);it([g()],Z.prototype,"passwordHiddenIcon",void 0);it([g()],Z.prototype,"passwordRevealedIcon",void 0);it([g()],Z.prototype,"iconVariant",void 0);it([g({type:Boolean})],Z.prototype,"filterSuggestions",void 0);it([g({type:Number})],Z.prototype,"maxLength",void 0);it([g({type:Boolean})],Z.prototype,"password",void 0);it([W()],Z.prototype,"focused",void 0);it([W()],Z.prototype,"hidePassword",void 0);it([W()],Z.prototype,"hideSuggestions",void 0);it([W()],Z.prototype,"visibleSuggestions",void 0);it([Y(".ft-text-field--main-panel")],Z.prototype,"mainPanel",void 0);it([Y(".ft-text-field--input")],Z.prototype,"input",void 0);it([Y(".ft-text-field-suggestion--new-value")],Z.prototype,"newValueSuggestion",void 0);it([Y(".ft-text-field--suggestions")],Z.prototype,"suggestionsContainer",void 0);it([Nn({selector:"ft-text-field-suggestion"})],Z.prototype,"suggestions",void 0);X("ft-text-field")(Z);X("ft-text-field-suggestion")(Jt);var hp=r=>Te.get({name:"ft-reader-"+r,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var Ys=class{constructor(t,e){this.mapId=t,this.paginatedToc=e,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,i){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,e,i):[{tocId:n.tocId,title:n.title,depth:e,children:this.extractPagesToc(n.children,e+1,n.tocId)}]))}convertNodes(t,e,i){return t.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],e,n.tocId),...this.convertNodes(n.children,e,n.tocId)];let d=(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:d,depth:e,parentTocId:i,children:[]};this.register(p);let f=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],e+1,n.tocId),h=this.convertNodes(n.children,e+1,p.tocId);return p.children=[...f,...h],[p]})}convertSectionNodes(t,e,i){return t.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:e,parentTocId:i,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,e+1,n.tocId),[l]})}buildPage(t,e){var i,n,a,s,l,d;let p={number:this.pages.length+1,title:(i=t.title)!==null&&i!==void 0?i:"",rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},f=(y,v)=>(v?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,v)=>{f(y,h[v])}),t.tocId&&f(t.tocId,t.pageConfiguration.isVisible),p.topics.push(...this.tocIds((d=t.pageToc)!==null&&d!==void 0?d:[])),p}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap(e=>[e.tocId,...this.tocIds(e.children)])}buildBreadcrumb(t){let e=[t.tocId];for(;t?.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.nodeByUrl[t.prettyUrl]==null?this.nodeByUrl[t.prettyUrl]=t:this.duplicatedPrettyUrls.add(t.prettyUrl)),this.nodeByUrl[`${this.mapId}/${t.tocId}`]=t,this.nodeByTocId[t.tocId]=t}},Yi=class{convertPaginatedToc(t,e){return new Ys(t,e).build()}};var Xi=class extends be{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i){super(!1,e),this.converter=t,this._mapId=i,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(e=>this.converter.convertPaginatedToc(t,e)))),this.cache.register("ratingSummary",()=>{var t,e;return Er((e=(t=M.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&e!==void 0?e:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return(e=this.enrichedToc)===null||e===void 0?void 0:e.nodeByTocId[t]}getTocNodeNowByUrl(t){var e,i;let n=this.getMapNow();return n?.prettyUrl==t||`${n?.id}/root`===t?(e=this.enrichedToc)===null||e===void 0?void 0:e.toc[0]:(i=this.enrichedToc)===null||i===void 0?void 0:i.nodeByUrl[t]}async getPage(t){let e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){let e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),()=>this.fetchRelativesForDocument(t,e))}getRelativesForTopicInMap(t,e,i){return this.cache.get("topic-relatives-"+[t,e,...i].join("-"),()=>this.fetchRelativesForTopicInMap(t,e,i))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,i){let n=this.getNavigationData(t,e,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(t,e,i){var n,a;t=t||"root";let s=this.enrichedToc,l=s?.pageByTocId[t],d=s?.nodeByTocId[t],p=d?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(n=d?.title)!==null&&n!==void 0?n:"",page:e&&l&&l.number!==e?e:void 0,prettyUrl:p?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(p??""))!==null&&a!==void 0?a:!1,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(e=>{var i;return e?{type:e.topics.type,rating:(i=e.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,e){return this.makeRateMapRequest(t,e).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=M.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],n=this.getTocNodeNow(e.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case Yt.FEEDBACK:return Er(e??[],pt.FEEDBACK_USER);case Yt.RATING:return Er(e??[],pt.RATING_USER)&&i!=null&&i!==Ne.NO_RATING;case Yt.PRINT:return Er(e??[],pt.PRINT_USER);case Yt.BOOKMARK:return!!e?.sessionAuthenticated;case Yt.COLLECTIONS:return Er(e??[],pt.COLLECTION_USER);case Yt.PERSONAL_BOOKS:return Er(e??[],pt.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var Ji=class r extends Xi{static async build(t){return new r(new Yi,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,e){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:e}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(t,e,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[t]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var Qi=class r{static build(t,e){return new r(hp(t.trim()||"context"),e??Ji.build)}loaded(){return Kn(()=>this._loaded)}constructor(t,e,i){this.store=t,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new st(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return So(()=>this.service)}async navigateToTopic(t,e,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i):n.getPageByTocId(t??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,a),section:e})}resolveValidNonRootTocId(t,e){var i,n,a;let s=(i=t==="root"?void 0:t)!==null&&i!==void 0?i:e.rootTocId;return e.topics.includes(s)?s:(a=(n=e.topics[0])!==null&&n!==void 0?n:e.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){await this.loaded();let i=await(await this.awaitService()).getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var t;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,e,i,n,a;try{await Promise.all([(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(s=>this.store.actions.configuration(s)),(e=this.service)===null||e===void 0?void 0:e.getMap().then(s=>this.store.actions.map(s)),(i=this.service)===null||i===void 0?void 0:i.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof fr)&&this.errorHandler(s)}}fetchRelatives(){var t,e,i;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(e=this.service)===null||e===void 0||e.getRelativesForDocument((i=this.store.getState().configuration)===null||i===void 0?void 0:i.relativePivotMetadata,n).then(a=>{let s=a.results.flatMap(l=>l.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,e;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(e=(t=M.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&e!==void 0?e:[];return new xo(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var e,i,n;await this.loaded();let a=await So(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(i=(e=d?.results)===null||e===void 0?void 0:e[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let p=d.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}};var mp=L`
|
|
1882
|
+
`;var tn=class extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}},en=class extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}},rn=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},on=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},nn=class extends Event{constructor(){super("ft-reader-map-not-found")}},an=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},sn=class extends Event{constructor(){super("ft-reader-map-forbidden")}},ln=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var cn=class{constructor(t){this.stateManager=t}searchInDocument(t){this.stateManager.setSearchInDocumentQuery(t??"")}};var Vt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},uh=r=>t=>+(t??"NaN")>0?+t:r,wt=class extends Zt{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new st(5),this.navigationDebouncer=new st(10),this.mapLoadedEventDebouncer=new st(50),this.addStore(M)}render(){return P`
|
|
1883
1883
|
${this.importStyleIfNeeded()}
|
|
1884
1884
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
1885
|
-
`}importStyleIfNeeded(){var t,e;let i=(t=this.stateManager.service)===null||t===void 0?void 0:t.themeStylesheet();return!i||window.location.href.startsWith((e=this.baseUrl)!==null&&e!==void 0?e:"")?U
|
|
1885
|
+
`}importStyleIfNeeded(){var t,e;let i=(t=this.stateManager.service)===null||t===void 0?void 0:t.themeStylesheet();return!i||window.location.href.startsWith((e=this.baseUrl)!==null&&e!==void 0?e:"")?U:P`
|
|
1886
1886
|
<style>
|
|
1887
1887
|
@import "${i}"
|
|
1888
1888
|
</style>
|
|
1889
|
-
`}get stateManager(){return this._stateManager==null&&(this._stateManager=Qi.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",e),document.head.append(i)}window.FluidTopicsReaderService=new cn(this.stateManager)})}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(e=>t.has(e))&&this.mapId&&this.navigateToTarget(),t.has("session")&&this.reload()}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((e=this.scrollTarget)===null||e===void 0?void 0:e.tocId)==null){let n=t.get("scrollTarget");n?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var a;return this.stateManager.service.getAccurateNavigationData(n.tocId,(a=this.currentPage)===null||a===void 0?void 0:a.number,n.section).then(s=>this.dispatchEvent(new rn(s)))})}(t.has("visibleTopics")||t.has("scrollTarget"))&&((i=this.scrollTarget)===null||i===void 0?void 0:i.tocId)==null&&Promise.all(this.visibleTopics.map(n=>{var a;return this.stateManager.service.getAccurateNavigationData(n,(a=this.currentPage)===null||a===void 0?void 0:a.number)})).then(n=>{let a=n.filter(s=>s!=null&&s.topicTitle!=="").map(s=>{var l;return{tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:(l=this.stateManager.service)===null||l===void 0?void 0:l.buildBreadcrumb(s.tocId)}});this.dispatchEvent(new en(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new ln),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(t){t.stopPropagation();let e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let e=t;e.status===401?this.dispatchEvent(new an):e.status===403?this.dispatchEvent(new sn):e.status===404?this.dispatchEvent(new nn):this.dispatchEvent(new on(t))}reloadBookmarks(){cp.reloadBookmarks()}async reloadRating(){var t,e;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(e=this.stateManager.store)===null||e===void 0||e.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new tn(this.map,this.toc))})}};
|
|
1889
|
+
`}get stateManager(){return this._stateManager==null&&(this._stateManager=Qi.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",e),document.head.append(i)}window.FluidTopicsReaderService=new cn(this.stateManager)})}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(e=>t.has(e))&&this.mapId&&this.navigateToTarget(),t.has("session")&&this.reload()}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((e=this.scrollTarget)===null||e===void 0?void 0:e.tocId)==null){let n=t.get("scrollTarget");n?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var a;return this.stateManager.service.getAccurateNavigationData(n.tocId,(a=this.currentPage)===null||a===void 0?void 0:a.number,n.section).then(s=>this.dispatchEvent(new rn(s)))})}(t.has("visibleTopics")||t.has("scrollTarget"))&&((i=this.scrollTarget)===null||i===void 0?void 0:i.tocId)==null&&Promise.all(this.visibleTopics.map(n=>{var a;return this.stateManager.service.getAccurateNavigationData(n,(a=this.currentPage)===null||a===void 0?void 0:a.number)})).then(n=>{let a=n.filter(s=>s!=null&&s.topicTitle!=="").map(s=>{var l;return{tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:(l=this.stateManager.service)===null||l===void 0?void 0:l.buildBreadcrumb(s.tocId)}});this.dispatchEvent(new en(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new ln),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(t){t.stopPropagation();let e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let e=t;e.status===401?this.dispatchEvent(new an):e.status===403?this.dispatchEvent(new sn):e.status===404?this.dispatchEvent(new nn):this.dispatchEvent(new on(t))}reloadBookmarks(){cp.reloadBookmarks()}async reloadRating(){var t,e;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(e=this.stateManager.store)===null||e===void 0||e.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new tn(this.map,this.toc))})}};wt.styles=mp;Vt([ct({store:M.name})],wt.prototype,"baseUrl",void 0);Vt([ct({store:M.name})],wt.prototype,"session",void 0);Vt([g()],wt.prototype,"mapId",void 0);Vt([g()],wt.prototype,"tocId",void 0);Vt([g()],wt.prototype,"section",void 0);Vt([g()],wt.prototype,"topicPivot",void 0);Vt([g()],wt.prototype,"searchInDocumentQuery",void 0);Vt([g({type:Number,converter:{fromAttribute:uh()}})],wt.prototype,"page",void 0);Vt([ct({store:"reader"})],wt.prototype,"map",void 0);Vt([ct({store:"reader"})],wt.prototype,"toc",void 0);Vt([ct({store:"reader"})],wt.prototype,"visibleTopics",void 0);Vt([ct({store:"reader"})],wt.prototype,"currentPage",void 0);Vt([ct({store:"reader"})],wt.prototype,"scrollTarget",void 0);Vt([g({attribute:!1})],wt.prototype,"readerServiceProvider",void 0);X("ft-reader-context")(wt);var dn=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},pn=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},un=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},fn=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},hn=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var At=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},at=class extends Je(Ke){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(tt,pp)}get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Yt.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Yt.RATING,{session:this.session,ratingType:(e=this.ratingSummary)===null||e===void 0?void 0:e.type})}get configuredRatingType(){var t,e;return(e=this.ratingAllowed?(t=this.ratingSummary)===null||t===void 0?void 0:t.type:"NO_RATING")!==null&&e!==void 0?e:"NO_RATING"}get ratingType(){var t,e,i;return(i=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.type)!==null&&i!==void 0?i:"NO_RATING"}get ratingValue(){var t,e,i;return(i=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.value)!==null&&i!==void 0?i:-1}get ratingDate(){var t,e;let i=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.date;return typeof i=="string"?vi(i):i}render(){return!this.canAccessFeedback&&!this.canAccessRating?U:P`
|
|
1890
1890
|
<div class="ft-reader-feedback">
|
|
1891
|
-
${this.hideTitle?U
|
|
1891
|
+
${this.hideTitle?U:P`
|
|
1892
1892
|
<ft-typography variant="title" part="main-title">
|
|
1893
1893
|
${this.i18n(this.i18nProperties.feedbackMainTitle)}
|
|
1894
1894
|
</ft-typography>
|
|
@@ -1896,7 +1896,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1896
1896
|
${this.renderRatingSection()}
|
|
1897
1897
|
${this.renderFeedbackSection()}
|
|
1898
1898
|
</div>
|
|
1899
|
-
`}renderRatingSection(){return this.canAccessRating
|
|
1899
|
+
`}renderRatingSection(){return this.canAccessRating?P`
|
|
1900
1900
|
<div class="ft-reader-feedback--rating" part="rating-container">
|
|
1901
1901
|
<ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
|
|
1902
1902
|
${this.i18n(this.ratingSummary.type==="DICHOTOMOUS"?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
|
|
@@ -1906,9 +1906,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1906
1906
|
${this.renderRatingDate()}
|
|
1907
1907
|
</ft-typography>
|
|
1908
1908
|
</div>
|
|
1909
|
-
`:U}renderRatingDate(){let t=this.ratingDate;if(t==null)return tt.messages.notRated();if(t.getTime()>new Date().getTime()-6e4)return tt.messages.ratedNow();let e=new Date().toLocaleDateString(),i=t.toLocaleDateString();return e===i?tt.messages.ratedToday():tt.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return
|
|
1909
|
+
`:U}renderRatingDate(){let t=this.ratingDate;if(t==null)return tt.messages.notRated();if(t.getTime()>new Date().getTime()-6e4)return tt.messages.ratedNow();let e=new Date().toLocaleDateString(),i=t.toLocaleDateString();return e===i?tt.messages.ratedToday():tt.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return P`
|
|
1910
1910
|
<div class="ft-reader-feedback--stars" part="rating rating-stars">
|
|
1911
|
-
${
|
|
1911
|
+
${$n(new Array(5),(a,s)=>s,(a,s)=>{let l=this.ratingType==="STARS"&&this.ratingValue>s,d=s+1;return P`
|
|
1912
1912
|
<ft-button round part="rating-stars-${d}"
|
|
1913
1913
|
label="${tt.messages.starsRating(d)}"
|
|
1914
1914
|
tooltipPosition="top"
|
|
@@ -1919,7 +1919,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1919
1919
|
></ft-button>
|
|
1920
1920
|
`})}
|
|
1921
1921
|
</div>
|
|
1922
|
-
`;case"LIKE":let t=this.ratingType==="LIKE"&&this.ratingValue===0,e=this.ratingType==="LIKE"&&this.ratingValue===1;return
|
|
1922
|
+
`;case"LIKE":let t=this.ratingType==="LIKE"&&this.ratingValue===0,e=this.ratingType==="LIKE"&&this.ratingValue===1;return P`
|
|
1923
1923
|
<ft-switch unselectable
|
|
1924
1924
|
@change=${a=>this.rate(a.detail)}
|
|
1925
1925
|
part="rating rating-like"
|
|
@@ -1939,7 +1939,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1939
1939
|
${tt.messages.dislike()}
|
|
1940
1940
|
</ft-switch-option>
|
|
1941
1941
|
</ft-switch>
|
|
1942
|
-
`;case"DICHOTOMOUS":let i=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===0,n=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===1;return
|
|
1942
|
+
`;case"DICHOTOMOUS":let i=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===0,n=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===1;return P`
|
|
1943
1943
|
<ft-switch unselectable
|
|
1944
1944
|
@change=${a=>this.rate(a.detail)}
|
|
1945
1945
|
part="rating rating-dichotomous">
|
|
@@ -1952,7 +1952,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1952
1952
|
${tt.messages.dichotomousNo()}
|
|
1953
1953
|
</ft-switch-option>
|
|
1954
1954
|
</ft-switch>
|
|
1955
|
-
`}return U}rate(t){(t??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,i,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l
|
|
1955
|
+
`}return U}rate(t){(t??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,i,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=P`
|
|
1956
1956
|
<ft-button primary
|
|
1957
1957
|
type="submit" name="submit"
|
|
1958
1958
|
class="ft-reader-feedback--send-feedback"
|
|
@@ -1960,11 +1960,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1960
1960
|
part="send-feedback">
|
|
1961
1961
|
${tt.messages.okButton()}
|
|
1962
1962
|
</ft-button>
|
|
1963
|
-
`;s&&(l
|
|
1963
|
+
`;s&&(l=P`
|
|
1964
1964
|
<a class="ft-reader-feedback--feedback-link" href="${s}">
|
|
1965
1965
|
${l}
|
|
1966
1966
|
</a>
|
|
1967
|
-
`);let d=this.withMoreOptionsButton&&(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics||!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopicsForUnauthenticatedUsers)
|
|
1967
|
+
`);let d=this.withMoreOptionsButton&&(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics||!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopicsForUnauthenticatedUsers)?P`
|
|
1968
1968
|
<ft-button outlined
|
|
1969
1969
|
type="button" name="more-options"
|
|
1970
1970
|
class="ft-reader-feedback--more-options"
|
|
@@ -1972,13 +1972,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1972
1972
|
part="more-options">
|
|
1973
1973
|
${tt.messages.moreOptionsButton()}
|
|
1974
1974
|
</ft-button>
|
|
1975
|
-
`:U;return
|
|
1975
|
+
`:U;return P`
|
|
1976
1976
|
<form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
|
|
1977
1977
|
@submit="${p=>this.onFormSubmitEvent(p,!!s)}">
|
|
1978
1978
|
<ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
|
|
1979
1979
|
${this.i18n(this.i18nProperties.feedbackSectionTitle)}
|
|
1980
1980
|
</ft-typography>
|
|
1981
|
-
${((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)
|
|
1981
|
+
${((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?P`
|
|
1982
1982
|
<ft-text-field outlined name="email" type="email" autocomplete="email"
|
|
1983
1983
|
class="ft-reader-feedback--from-input"
|
|
1984
1984
|
label=${tt.messages.feedbackfromEmail()}
|
|
@@ -1997,7 +1997,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1997
1997
|
${l}
|
|
1998
1998
|
</div>
|
|
1999
1999
|
</form>
|
|
2000
|
-
`}return U}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0?void 0:e.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new dn({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)}};at.elementDefinitions={"ft-button":ne,"ft-typography":xt,"ft-switch":Bt,"ft-switch-option":St,"ft-text-area":
|
|
2000
|
+
`}return U}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0?void 0:e.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new dn({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)}};at.elementDefinitions={"ft-button":ne,"ft-typography":xt,"ft-switch":Bt,"ft-switch-option":St,"ft-text-area":It,"ft-text-field":Z};at.styles=Kd;At([g({type:Boolean})],at.prototype,"editorMode",void 0);At([g({type:Boolean})],at.prototype,"hideTitle",void 0);At([g({type:Boolean})],at.prototype,"withMoreOptionsButton",void 0);At([g({type:Boolean})],at.prototype,"ratingAllowed",void 0);At([g({attribute:!1})],at.prototype,"i18nProperties",void 0);At([g({attribute:!1})],at.prototype,"ratingSummary",void 0);At([g({attribute:!1})],at.prototype,"session",void 0);At([Y(".ft-reader-feedback--feedback-input")],at.prototype,"feedbackInput",void 0);At([W()],at.prototype,"from",void 0);At([W()],at.prototype,"feedbackMessage",void 0);At([g()],at.prototype,"iconVariant",void 0);At([g()],at.prototype,"emptyStarIcon",void 0);At([g()],at.prototype,"filledStarIcon",void 0);At([g()],at.prototype,"emptyLikeIcon",void 0);At([g()],at.prototype,"filledLikeIcon",void 0);At([g()],at.prototype,"emptyDislikeIcon",void 0);At([g()],at.prototype,"filledDislikeIcon",void 0);At([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],at.prototype,"configuration",void 0);At([g()],at.prototype,"feedbackMailLinkBuilder",void 0);var eo=Qe.fromGwt("server");var ro=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,n,a){var s;this.subject=t,this.url=e,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(t,e){return e.map(i=>t.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var t,e;let i=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(t){var e;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
|
|
2001
2001
|
${this.bodyMetadata}
|
|
2002
2002
|
${this.url}
|
|
2003
2003
|
_________________________________________________________________
|
|
@@ -2005,7 +2005,7 @@ _________________________________________________________________
|
|
|
2005
2005
|
${t??""}
|
|
2006
2006
|
|
|
2007
2007
|
_________________________________________________________________
|
|
2008
|
-
${eo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(e=this.configuration)===null||e===void 0?void 0:e.recipients.join(",")}?subject=${i}&body=${n}`}};var tr=Qe.build("inDesignerFeedbackComponent"),mn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var
|
|
2008
|
+
${eo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(e=this.configuration)===null||e===void 0?void 0:e.recipients.join(",")}?subject=${i}&body=${n}`}};var tr=Qe.build("inDesignerFeedbackComponent"),mn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Nt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},bt=class extends Je(Ke){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Lt.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 ro,this.i18nProperties={feedbackMainTitle:tt.properties.mapFeedbackMainTitle(),ratingSectionTitle:tt.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:tt.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:tt.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new st(100),this.sendRatingDebouncer=new st(500),this.addStore(M)}render(){return P`
|
|
2009
2009
|
<ft-reader-feedback
|
|
2010
2010
|
ratingAllowed
|
|
2011
2011
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -2027,7 +2027,7 @@ ${eo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(e=this.configura
|
|
|
2027
2027
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
2028
2028
|
@open-more-options=${this.openMoreOptions}
|
|
2029
2029
|
></ft-reader-feedback>
|
|
2030
|
-
`}update(t){var e,i,n,a;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tr,mn),["map","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(e=this.service)===null||e===void 0?void 0:e.getLink())!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,e;this.map&&(!((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0)&&e.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var e,i,n;if(!this.editorMode&&this.ratingSummary){try{t==null?await((e=this.service)===null||e===void 0?void 0:e.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()})):(await((e=this.service)===null||e===void 0?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Mt({type:"info",message:tt.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new hn)}openMoreOptions(){var t,e,i;this.dispatchEvent(new un({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((e=this.ratingSummary)===null||e===void 0?void 0:e.type)||
|
|
2030
|
+
`}update(t){var e,i,n,a;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tr,mn),["map","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(e=this.service)===null||e===void 0?void 0:e.getLink())!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,e;this.map&&(!((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0)&&e.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var e,i,n;if(!this.editorMode&&this.ratingSummary){try{t==null?await((e=this.service)===null||e===void 0?void 0:e.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()})):(await((e=this.service)===null||e===void 0?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Mt({type:"info",message:tt.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new hn)}openMoreOptions(){var t,e,i;this.dispatchEvent(new un({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((e=this.ratingSummary)===null||e===void 0?void 0:e.type)||Ne.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};bt.elementDefinitions={"ft-reader-feedback":at};Nt([ct({store:M.name})],bt.prototype,"session",void 0);Nt([ct({store:"reader"})],bt.prototype,"map",void 0);Nt([ct({store:M.name})],bt.prototype,"editorMode",void 0);Nt([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],bt.prototype,"configuration",void 0);Nt([W()],bt.prototype,"ratingSummary",void 0);Nt([g({type:Boolean})],bt.prototype,"hideTitle",void 0);Nt([g({type:Boolean})],bt.prototype,"withMoreOptionsButton",void 0);Nt([g()],bt.prototype,"iconVariant",void 0);Nt([g()],bt.prototype,"emptyStarIcon",void 0);Nt([g()],bt.prototype,"filledStarIcon",void 0);Nt([g()],bt.prototype,"emptyLikeIcon",void 0);Nt([g()],bt.prototype,"filledLikeIcon",void 0);Nt([g()],bt.prototype,"emptyDislikeIcon",void 0);Nt([g()],bt.prototype,"filledDislikeIcon",void 0);Nt([Y("ft-reader-feedback")],bt.prototype,"readerFeedback",void 0);Nt([Zi(eo.properties["mail.map_feedback.subject"](r=>{var t;return[(t=r.map)===null||t===void 0?void 0:t.title]}))],bt.prototype,"mailSubject",void 0);Nt([Mo({eventName:"rating-changed"})],bt.prototype,"fetchRatingSummary",null);var yp=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Js=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Xs=Symbol("registerInterval");function fh(r){var t;class e extends r{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[Xs]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Xs]):this.dispatchEvent(new Js)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=Xs,yp([W()],e.prototype,"tocNode",void 0),yp([W()],e.prototype,"disableContextInteractions",void 0),e}var yn=class extends fh(Ke){};var Pt=function(r,t,e,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},vt=class extends Je(yn){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Lt.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 ro,this.i18nProperties={feedbackMainTitle:tt.properties.topicFeedbackMainTitle(),ratingSectionTitle:tt.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:tt.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:tt.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new st(100),this.sendRatingDebouncer=new st(500),this.addStore(M)}render(){var t;return P`
|
|
2031
2031
|
<ft-reader-feedback
|
|
2032
2032
|
.i18nProperties=${this.i18nProperties}
|
|
2033
2033
|
?ratingAllowed=${(t=this.tocNode)===null||t===void 0?void 0:t.hasRating}
|
|
@@ -2049,7 +2049,7 @@ ${eo.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(e=this.configura
|
|
|
2049
2049
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
2050
2050
|
@open-more-options=${this.openMoreOptions}
|
|
2051
2051
|
></ft-reader-feedback>
|
|
2052
|
-
`}update(t){var e,i,n,a;super.update(t),["tocNode","user"].some(s=>t.has(s))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tr,mn),["map","tocNode","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,e;this.tocNode&&(!((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0)&&e.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var e,i,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{t==null?await((e=this.service)===null||e===void 0?void 0:e.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await((e=this.service)===null||e===void 0?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new Mt({type:"info",message:tt.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let t=this.tocNode;this.dispatchEvent(new fn(t))}openMoreOptions(){var t,e,i,n,a,s,l,d;this.dispatchEvent(new pn({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(e=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&e!==void 0?e:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(l=this.ratingSummary)===null||l===void 0?void 0:l.type:
|
|
2052
|
+
`}update(t){var e,i,n,a;super.update(t),["tocNode","user"].some(s=>t.has(s))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tr,mn),["map","tocNode","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,e;this.tocNode&&(!((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0)&&e.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var e,i,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{t==null?await((e=this.service)===null||e===void 0?void 0:e.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await((e=this.service)===null||e===void 0?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new Mt({type:"info",message:tt.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Mt({type:"info",message:tr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Mt({type:"error",message:tt.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let t=this.tocNode;this.dispatchEvent(new fn(t))}openMoreOptions(){var t,e,i,n,a,s,l,d;this.dispatchEvent(new pn({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(e=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&e!==void 0?e:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(l=this.ratingSummary)===null||l===void 0?void 0:l.type:Ne.NO_RATING)||Ne.NO_RATING,ratingValue:(d=this.ratingSummary)===null||d===void 0?void 0:d.rating}))}};vt.elementDefinitions={"ft-reader-feedback":at};Pt([ct({store:M.name})],vt.prototype,"session",void 0);Pt([ct({store:"reader"})],vt.prototype,"map",void 0);Pt([ct({store:M.name})],vt.prototype,"editorMode",void 0);Pt([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],vt.prototype,"configuration",void 0);Pt([W()],vt.prototype,"ratingSummary",void 0);Pt([g({type:Boolean})],vt.prototype,"hideTitle",void 0);Pt([g({type:Boolean})],vt.prototype,"withMoreOptionsButton",void 0);Pt([g()],vt.prototype,"iconVariant",void 0);Pt([g()],vt.prototype,"emptyStarIcon",void 0);Pt([g()],vt.prototype,"filledStarIcon",void 0);Pt([g()],vt.prototype,"emptyLikeIcon",void 0);Pt([g()],vt.prototype,"filledLikeIcon",void 0);Pt([g()],vt.prototype,"emptyDislikeIcon",void 0);Pt([g()],vt.prototype,"filledDislikeIcon",void 0);Pt([Y("ft-reader-feedback")],vt.prototype,"readerFeedback",void 0);Pt([Zi(eo.properties["mail.feedback.subject"](r=>{var t,e;return[(t=r.tocNode)===null||t===void 0?void 0:t.title,(e=r.map)===null||e===void 0?void 0:e.title]}))],vt.prototype,"mailSubject",void 0);Pt([Mo({eventName:"rating-changed"})],vt.prototype,"fetchRatingSummary",null);X("ft-reader-map-feedback")(bt);X("ft-reader-topic-feedback")(vt);})();
|
|
2053
2053
|
/*! Bundled license information:
|
|
2054
2054
|
|
|
2055
2055
|
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|