@fluid-topics/ft-reader-feedback 1.2.29 → 1.2.31
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,12 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
`)===0?Y.substr(1,Y.length):Y}).forEach(function(Y){var Q=Y.split(":"),V=Q.shift().trim();if(V){var pe=Q.join(":").trim();try{C.append(V,pe)}catch(so){console.warn("Response "+so.message)}}}),C}L.call(A.prototype);function q(y,C){if(!(this instanceof q))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(C||(C={}),this.type="default",this.status=C.status===void 0?200:C.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=C.statusText===void 0?"":""+C.statusText,this.headers=new f(C.headers),this.url=C.url||"",this._initBody(y)}L.call(q.prototype),q.prototype.clone=function(){return new q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},q.error=function(){var y=new q(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var Z=[301,302,303,307,308];q.redirect=function(y,C){if(Z.indexOf(C)===-1)throw new RangeError("Invalid status code");return new q(null,{status:C,headers:{location:y}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(C,D){this.message=C,this.name=D;var Y=Error(C);this.stack=Y.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function U(y,C){return new Promise(function(D,Y){var Q=new A(y,C);if(Q.signal&&Q.signal.aborted)return Y(new r.DOMException("Aborted","AbortError"));var V=new XMLHttpRequest;function pe(){V.abort()}V.onload=function(){var Tt={statusText:V.statusText,headers:F(V.getAllResponseHeaders()||"")};Q.url.indexOf("file://")===0&&(V.status<200||V.status>599)?Tt.status=200:Tt.status=V.status,Tt.url="responseURL"in V?V.responseURL:Tt.headers.get("X-Request-URL");var er="response"in V?V.response:V.responseText;setTimeout(function(){D(new q(er,Tt))},0)},V.onerror=function(){setTimeout(function(){Y(new TypeError("Network request failed"))},0)},V.ontimeout=function(){setTimeout(function(){Y(new TypeError("Network request timed out"))},0)},V.onabort=function(){setTimeout(function(){Y(new r.DOMException("Aborted","AbortError"))},0)};function so(Tt){try{return Tt===""&&i.location.href?i.location.href:Tt}catch{return Tt}}if(V.open(Q.method,so(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")),C&&typeof C.headers=="object"&&!(C.headers instanceof f||i.Headers&&C.headers instanceof i.Headers)){var al=[];Object.getOwnPropertyNames(C.headers).forEach(function(Tt){al.push(d(Tt)),V.setRequestHeader(Tt,p(C.headers[Tt]))}),Q.headers.forEach(function(Tt,er){al.indexOf(er)===-1&&V.setRequestHeader(er,Tt)})}else Q.headers.forEach(function(Tt,er){V.setRequestHeader(er,Tt)});Q.signal&&(Q.signal.addEventListener("abort",pe),V.onreadystatechange=function(){V.readyState===4&&Q.signal.removeEventListener("abort",pe)}),V.send(typeof Q._bodyInit>"u"?null:Q._bodyInit)})}return U.polyfill=!0,i.fetch||(i.fetch=U,i.Headers=f,i.Request=A,i.Response=q),r.Headers=f,r.Request=A,r.Response=q,r.fetch=U,r}({})})(Ui);Ui.fetch.ponyfill=!0;delete Ui.fetch.polyfill;var qr=Mi.fetch?Mi:Ui;Ke=qr.fetch;Ke.default=qr.fetch;Ke.fetch=qr.fetch;Ke.Headers=qr.Headers;Ke.Request=qr.Request;Ke.Response=qr.Response;ad.exports=Ke});if(!ShadowRoot.prototype.createElement){let e=window.HTMLElement,t=window.customElements.define,r=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,O){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(O)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let A=O.prototype.attributeChangedCallback,k=new Set(O.observedAttributes||[]);m(O,k,A);let F={elementClass:O,connectedCallback:O.prototype.connectedCallback,disconnectedCallback:O.prototype.disconnectedCallback,adoptedCallback:O.prototype.adoptedCallback,attributeChangedCallback:A,formAssociated:O.formAssociated,formAssociatedCallback:O.prototype.formAssociatedCallback,formDisabledCallback:O.prototype.formDisabledCallback,formResetCallback:O.prototype.formResetCallback,formStateRestoreCallback:O.prototype.formStateRestoreCallback,observedAttributes:k};this._definitionsByTag.set(w,F),this._definitionsByClass.set(O,F);let q=r.call(i,w);q||(q=f(w),t.call(i,w,q)),this===window.customElements&&(s.set(O,F),F.standInClass=q);let Z=this._awaitingUpgrade.get(w);if(Z){this._awaitingUpgrade.delete(w);for(let y of Z)a.delete(y),x(y,F,!0)}let U=this._whenDefinedPromises.get(w);return U!==void 0&&(U.resolve(O),this._whenDefinedPromises.delete(w)),O}upgrade(){R.push(this),i.upgrade.apply(i,arguments),R.pop()}get(w){return this._definitionsByTag.get(w)?.elementClass}_getDefinition(w){return this._definitionsByTag.get(w)}whenDefined(w){let O=this._getDefinition(w);if(O!==void 0)return Promise.resolve(O.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,O,A){let k=this._awaitingUpgrade.get(O);k||this._awaitingUpgrade.set(O,k=new Set),A?k.add(w):k.delete(w)}};let d;window.HTMLElement=function(){let O=d;if(O)return d=void 0,O;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 O=Reflect.construct(e,[],A.standInClass),Object.setPrototypeOf(O,this.constructor.prototype),n.set(O,A),O},window.HTMLElement.prototype=e.prototype;let p=w=>w===document||w instanceof ShadowRoot,h=w=>{let O=w.getRootNode();if(!p(O)){let A=R[R.length-1];if(A instanceof CustomElementRegistry)return A;O=A.getRootNode(),p(O)||(O=l.get(O)?.getRootNode()||document)}return O.customElements},f=w=>class{static get formAssociated(){return!0}constructor(){let A=Reflect.construct(e,[],this.constructor);Object.setPrototypeOf(A,HTMLElement.prototype);let k=h(A)||window.customElements,F=k._getDefinition(w);return F?x(A,F):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)}},m=(w,O,A)=>{if(O.size===0||A===void 0)return;let k=w.prototype.setAttribute;k&&(w.prototype.setAttribute=function(Z,U){let y=Z.toLowerCase();if(O.has(y)){let C=this.getAttribute(y);k.call(this,y,U),A.call(this,y,C,U)}else k.call(this,y,U)});let F=w.prototype.removeAttribute;F&&(w.prototype.removeAttribute=function(Z){let U=Z.toLowerCase();if(O.has(U)){let y=this.getAttribute(U);F.call(this,U),A.call(this,U,y,null)}else F.call(this,U)});let q=w.prototype.toggleAttribute;q&&(w.prototype.toggleAttribute=function(Z,U){let y=Z.toLowerCase();if(O.has(y)){let C=this.getAttribute(y);q.call(this,y,U);let D=this.getAttribute(y);A.call(this,y,C,D)}else q.call(this,y,U)})},v=w=>{let O=Object.getPrototypeOf(w);if(O!==window.HTMLElement)return O===e?Object.setPrototypeOf(w,window.HTMLElement):v(O)},x=(w,O,A=!1)=>{Object.setPrototypeOf(w,O.elementClass.prototype),n.set(w,O),d=w;try{new O.elementClass}catch{v(O.elementClass),new O.elementClass}O.attributeChangedCallback&&O.observedAttributes.forEach(k=>{w.hasAttribute(k)&&O.attributeChangedCallback.call(w,k,null,w.getAttribute(k))}),A&&O.connectedCallback&&w.isConnected&&O.connectedCallback.call(w)},E=Element.prototype.attachShadow;Element.prototype.attachShadow=function(w){let O=E.apply(this,arguments);return w.customElements&&(O.customElements=w.customElements),O};let R=[document],I=(w,O,A=void 0)=>{let k=(A?Object.getPrototypeOf(A):w.prototype)[O];w.prototype[O]=function(){R.push(this);let F=k.apply(A||this,arguments);return F!==void 0&&l.set(F,this),R.pop(),F}};I(ShadowRoot,"createElement",document),I(ShadowRoot,"importNode",document),I(Element,"insertAdjacentHTML");let L=(w,O)=>{let A=Object.getOwnPropertyDescriptor(w.prototype,O);Object.defineProperty(w.prototype,O,{...A,set(k){R.push(this),A.set.call(this,k),R.pop()}})};if(L(Element,"innerHTML"),L(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let w=new WeakMap,O=HTMLElement.prototype.attachInternals,A=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...Z){let U=O.call(this,...Z);return w.set(U,this),U},A.forEach(Z=>{let U=window.ElementInternals.prototype,y=U[Z];U[Z]=function(...C){let D=w.get(this);if(n.get(D).formAssociated===!0)return y?.call(this,...C);throw new DOMException(`Failed to execute ${y} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class k extends Array{constructor(U){super(...U),this._elements=U}get value(){return this._elements.find(U=>U.checked===!0)?.value||""}}class F{constructor(U){let y=new Map;U.forEach((C,D)=>{let Y=C.getAttribute("name"),Q=y.get(Y)||[];this[+D]=C,Q.push(C),y.set(Y,Q)}),this.length=U.length,y.forEach((C,D)=>{C&&(C.length===1?this[D]=C[0]:this[D]=new k(C))})}namedItem(U){return this[U]}}let q=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let Z=q.get.call(this,[]),U=[];for(let y of Z){let C=n.get(y);(!C||C.formAssociated===!0)&&U.push(y)}return new F(U)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(r,i,n)=>{if(i!==null)try{t.bind(window.customElements)(r,i,n)}catch(a){console.info(r,i,n,a)}}}var Ln={};ot(Ln,{CSSResult:()=>$r,LitElement:()=>Ee,ReactiveElement:()=>ue,_$LE:()=>iu,_$LH:()=>eu,adoptStyles:()=>di,css:()=>$,defaultConverter:()=>pi,getCompatibleStyle:()=>yo,html:()=>P,isServer:()=>zh,noChange:()=>Me,notEqual:()=>_n,nothing:()=>W,render:()=>Pn,supportsAdoptingStyleSheets:()=>mo,svg:()=>tu,unsafeCSS:()=>Oe});var Yo=globalThis,Jo=Yo.ShadowRoot&&(Yo.ShadyCSS===void 0||Yo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ll=Symbol(),sl=new WeakMap,Xo=class{constructor(t,r,i){if(this._$cssResult$=!0,i!==ll)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Jo&&t===void 0){let i=r!==void 0&&r.length===1;i&&(t=sl.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&sl.set(r,t))}return t}toString(){return this.cssText}},cl=e=>new Xo(typeof e=="string"?e:e+"",void 0,ll);var Sn=(e,t)=>{if(Jo)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let i=document.createElement("style"),n=Yo.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,e.appendChild(i)}},Qo=Jo?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let i of t.cssRules)r+=i.cssText;return cl(r)})(e):e;var{is:$p,defineProperty:Dp,getOwnPropertyDescriptor:Mp,getOwnPropertyNames:Up,getOwnPropertySymbols:Bp,getPrototypeOf:Fp}=Object,ti=globalThis,dl=ti.trustedTypes,Wp=dl?dl.emptyScript:"",Hp=ti.reactiveElementPolyfillSupport,lo=(e,t)=>e,co={toAttribute(e,t){switch(t){case Boolean:e=e?Wp:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},ei=(e,t)=>!$p(e,t),pl={attribute:!0,type:String,converter:co,reflect:!1,hasChanged:ei};Symbol.metadata??=Symbol("metadata"),ti.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,r=pl){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,r);n!==void 0&&Dp(this.prototype,t,n)}}static getPropertyDescriptor(t,r,i){let{get:n,set:a}=Mp(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??pl}static _$Ei(){if(this.hasOwnProperty(lo("elementProperties")))return;let t=Fp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(lo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(lo("properties"))){let r=this.properties,i=[...Up(r),...Bp(r)];for(let n of i)this.createProperty(n,r[n])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)r.unshift(Qo(n))}else t!==void 0&&r.push(Qo(t));return r}static _$Eu(t,r){let i=r.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,r=this.constructor.elementProperties;for(let i of r.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 Sn(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,i){this._$AK(t,i)}_$EO(t,r){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:co).toAttribute(r,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,r){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:co;this._$Em=n,this[n]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(t,r,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??ei)(n?a:this[t],r))return;this.C(t,r,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,r,i){this._$AL.has(t)||this._$AL.set(t,r),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let 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,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(t){}firstUpdated(t){}};rr.elementStyles=[],rr.shadowRootOptions={mode:"open"},rr[lo("elementProperties")]=new Map,rr[lo("finalized")]=new Map,Hp?.({ReactiveElement:rr}),(ti.reactiveElementVersions??=[]).push("2.0.2");var Cn=globalThis,ri=Cn.trustedTypes,ul=ri?ri.createPolicy("lit-html",{createHTML:e=>e}):void 0,En="$lit$",Se=`lit$${(Math.random()+"").slice(9)}$`,wn="?"+Se,zp=`<${wn}>`,nr=document,oi=()=>nr.createComment(""),uo=e=>e===null||typeof e!="object"&&typeof e!="function",bl=Array.isArray,vl=e=>bl(e)||typeof e?.[Symbol.iterator]=="function",On=`[
|
|
3
|
-
\f\r]`,
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ml=/'/g,yl=/"/g,xl=/^(?:script|style|textarea|title)$/i,Sl=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Ol=Sl(1),Cl=Sl(2),Kt=Symbol.for("lit-noChange"),mt=Symbol.for("lit-nothing"),gl=new WeakMap,ir=nr.createTreeWalker(nr,129);function El(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ul!==void 0?ul.createHTML(t):t}var wl=(e,t)=>{let r=e.length-1,i=[],n,a=t===2?"<svg>":"",s=po;for(let l=0;l<r;l++){let d=e[l],p,h,f=-1,m=0;for(;m<d.length&&(s.lastIndex=m,h=s.exec(d),h!==null);)m=s.lastIndex,s===po?h[1]==="!--"?s=fl:h[1]!==void 0?s=hl:h[2]!==void 0?(xl.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=or):h[3]!==void 0&&(s=or):s===or?h[0]===">"?(s=n??po,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?or:h[3]==='"'?yl:ml):s===yl||s===ml?s=or:s===fl||s===hl?s=po:(s=or,n=void 0);let v=s===or&&e[l+1].startsWith("/>")?" ":"";a+=s===po?d+zp:f>=0?(i.push(p),d.slice(0,f)+En+d.slice(f)+Se+v):d+Se+(f===-2?l:v)}return[El(e,a+(e[r]||"<?>")+(t===2?"</svg>":"")),i]},fo=class e{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,h]=wl(t,r);if(this.el=e.createElement(p,i),ir.currentNode=this.el.content,r===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=ir.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(En)){let m=h[s++],v=n.getAttribute(f).split(Se),x=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:x[2],strings:v,ctor:x[1]==="."?ni:x[1]==="?"?ai:x[1]==="@"?si:sr}),n.removeAttribute(f)}else f.startsWith(Se)&&(d.push({type:6,index:a}),n.removeAttribute(f));if(xl.test(n.tagName)){let f=n.textContent.split(Se),m=f.length-1;if(m>0){n.textContent=ri?ri.emptyScript:"";for(let v=0;v<m;v++)n.append(f[v],oi()),ir.nextNode(),d.push({type:2,index:++a});n.append(f[m],oi())}}}else if(n.nodeType===8)if(n.data===wn)d.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(Se,f+1))!==-1;)d.push({type:7,index:a}),f+=Se.length-1}a++}}static createElement(t,r){let i=nr.createElement("template");return i.innerHTML=t,i}};function ar(e,t,r=e,i){if(t===Kt)return t;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=uo(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(e),n._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(t=ar(e,n._$AS(e,t.values),n,i)),t}var ii=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:i}=this._$AD,n=(t?.creationScope??nr).importNode(r,!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 ho(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new li(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 r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},ho=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,n){this.type=2,this._$AH=mt,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=ar(this,t,r),uo(t)?t===mt||t==null||t===""?(this._$AH!==mt&&this._$AR(),this._$AH=mt):t!==this._$AH&&t!==Kt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):vl(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&&uo(this._$AH)?this._$AA.nextSibling.data=t:this.$(nr.createTextNode(t)),this._$AH=t}g(t){let{values:r,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=fo.createElement(El(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new ii(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(t){let r=gl.get(t.strings);return r===void 0&&gl.set(t.strings,r=new fo(t)),r}T(t){bl(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of t)n===r.length?r.push(i=new e(this.k(oi()),this.k(oi()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);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,r,i,n,a){this.type=1,this._$AH=mt,this._$AN=void 0,this.element=t,this.name=r,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,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=ar(this,t,r,0),s=!uo(t)||t!==this._$AH&&t!==Kt,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],r,d),p===Kt&&(p=this._$AH[d]),s||=!uo(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??"")}},ni=class extends sr{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===mt?void 0:t}},ai=class extends sr{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==mt)}},si=class extends sr{constructor(t,r,i,n,a){super(t,r,i,n,a),this.type=5}_$AI(t,r=this){if((t=ar(this,t,r,0)??mt)===Kt)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)}},li=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ar(this,t)}},Al={j:En,P:Se,A:wn,C:1,M:wl,L:ii,R:vl,V:ar,D:ho,I:sr,H:ai,N:si,U:ni,B:li},Vp=Cn.litHtmlPolyfillSupport;Vp?.(fo,ho),(Cn.litHtmlVersions??=[]).push("3.1.0");var ci=globalThis,mo=ci.ShadowRoot&&(ci.ShadyCSS===void 0||ci.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,An=Symbol(),_l=new WeakMap,$r=class{constructor(t,r,i){if(this._$cssResult$=!0,i!==An)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(mo&&t===void 0){let i=r!==void 0&&r.length===1;i&&(t=_l.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&_l.set(r,t))}return t}toString(){return this.cssText}},Oe=e=>new $r(typeof e=="string"?e:e+"",void 0,An),$=(e,...t)=>{let r=e.length===1?e[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)+e[a+1],e[0]);return new $r(r,e,An)},di=(e,t)=>{if(mo)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let i=document.createElement("style"),n=ci.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,e.appendChild(i)}},yo=mo?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let i of t.cssRules)r+=i.cssText;return Oe(r)})(e):e;var{is:jp,defineProperty:Gp,getOwnPropertyDescriptor:Kp,getOwnPropertyNames:Zp,getOwnPropertySymbols:qp,getPrototypeOf:Yp}=Object,ui=globalThis,Rl=ui.trustedTypes,Xp=Rl?Rl.emptyScript:"",Jp=ui.reactiveElementPolyfillSupport,go=(e,t)=>e,pi={toAttribute(e,t){switch(t){case Boolean:e=e?Xp:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},_n=(e,t)=>!jp(e,t),Tl={attribute:!0,type:String,converter:pi,reflect:!1,hasChanged:_n};Symbol.metadata??=Symbol("metadata"),ui.litPropertyMetadata??=new WeakMap;var ue=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Tl){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,r);n!==void 0&&Gp(this.prototype,t,n)}}static getPropertyDescriptor(t,r,i){let{get:n,set:a}=Kp(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Tl}static _$Ei(){if(this.hasOwnProperty(go("elementProperties")))return;let t=Yp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(go("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(go("properties"))){let r=this.properties,i=[...Zp(r),...qp(r)];for(let n of i)this.createProperty(n,r[n])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let n of i)r.unshift(yo(n))}else t!==void 0&&r.push(yo(t));return r}static _$Eu(t,r){let i=r.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,r=this.constructor.elementProperties;for(let i of r.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 di(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,i){this._$AK(t,i)}_$EO(t,r){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:pi).toAttribute(r,i.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,r){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:pi;this._$Em=n,this[n]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(t,r,i,n=!1,a){if(t!==void 0){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??_n)(n?a:this[t],r))return;this.C(t,r,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,r,i){this._$AL.has(t)||this._$AL.set(t,r),i.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let 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,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(t){}firstUpdated(t){}};ue.elementStyles=[],ue.shadowRootOptions={mode:"open"},ue[go("elementProperties")]=new Map,ue[go("finalized")]=new Map,Jp?.({ReactiveElement:ue}),(ui.reactiveElementVersions??=[]).push("2.0.2");var Tn=globalThis,fi=Tn.trustedTypes,Il=fi?fi.createPolicy("lit-html",{createHTML:e=>e}):void 0,In="$lit$",Ce=`lit$${(Math.random()+"").slice(9)}$`,Nn="?"+Ce,Qp=`<${Nn}>`,dr=document,vo=()=>dr.createComment(""),xo=e=>e===null||typeof e!="object"&&typeof e!="function",Dl=Array.isArray,Ml=e=>Dl(e)||typeof e?.[Symbol.iterator]=="function",Rn=`[
|
|
5
|
-
\f\r]`,bo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Nl=/-->/g,Pl=/>/g,lr=RegExp(`>|${Rn}(?:([^\\s"'>=/]+)(${Rn}*=${Rn}*(?:[^
|
|
6
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ll=/'/g,kl=/"/g,Ul=/^(?:script|style|textarea|title)$/i,Bl=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),P=Bl(1),tu=Bl(2),Me=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),$l=new WeakMap,cr=dr.createTreeWalker(dr,129);function Fl(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Il!==void 0?Il.createHTML(t):t}var Wl=(e,t)=>{let r=e.length-1,i=[],n,a=t===2?"<svg>":"",s=bo;for(let l=0;l<r;l++){let d=e[l],p,h,f=-1,m=0;for(;m<d.length&&(s.lastIndex=m,h=s.exec(d),h!==null);)m=s.lastIndex,s===bo?h[1]==="!--"?s=Nl:h[1]!==void 0?s=Pl:h[2]!==void 0?(Ul.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=lr):h[3]!==void 0&&(s=lr):s===lr?h[0]===">"?(s=n??bo,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?lr:h[3]==='"'?kl:Ll):s===kl||s===Ll?s=lr:s===Nl||s===Pl?s=bo:(s=lr,n=void 0);let v=s===lr&&e[l+1].startsWith("/>")?" ":"";a+=s===bo?d+Qp:f>=0?(i.push(p),d.slice(0,f)+In+d.slice(f)+Ce+v):d+Ce+(f===-2?l:v)}return[Fl(e,a+(e[r]||"<?>")+(t===2?"</svg>":"")),i]},So=class e{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=t.length-1,d=this.parts,[p,h]=Wl(t,r);if(this.el=e.createElement(p,i),cr.currentNode=this.el.content,r===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=cr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(In)){let m=h[s++],v=n.getAttribute(f).split(Ce),x=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:x[2],strings:v,ctor:x[1]==="."?mi:x[1]==="?"?yi:x[1]==="@"?gi:ur}),n.removeAttribute(f)}else f.startsWith(Ce)&&(d.push({type:6,index:a}),n.removeAttribute(f));if(Ul.test(n.tagName)){let f=n.textContent.split(Ce),m=f.length-1;if(m>0){n.textContent=fi?fi.emptyScript:"";for(let v=0;v<m;v++)n.append(f[v],vo()),cr.nextNode(),d.push({type:2,index:++a});n.append(f[m],vo())}}}else if(n.nodeType===8)if(n.data===Nn)d.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(Ce,f+1))!==-1;)d.push({type:7,index:a}),f+=Ce.length-1}a++}}static createElement(t,r){let i=dr.createElement("template");return i.innerHTML=t,i}};function pr(e,t,r=e,i){if(t===Me)return t;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=xo(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(e),n._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(t=pr(e,n._$AS(e,t.values),n,i)),t}var hi=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:i}=this._$AD,n=(t?.creationScope??dr).importNode(r,!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 Dr(a,a.nextSibling,this,t):d.type===1?p=new d.ctor(a,d.name,d.strings,this,t):d.type===6&&(p=new bi(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 r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},Dr=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,n){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=pr(this,t,r),xo(t)?t===W||t==null||t===""?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==Me&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Ml(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!==W&&xo(this._$AH)?this._$AA.nextSibling.data=t:this.$(dr.createTextNode(t)),this._$AH=t}g(t){let{values:r,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=So.createElement(Fl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new hi(n,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(t){let r=$l.get(t.strings);return r===void 0&&$l.set(t.strings,r=new So(t)),r}T(t){Dl(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of t)n===r.length?r.push(i=new e(this.k(vo()),this.k(vo()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);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,r,i,n,a){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=r,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=W}_$AI(t,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)t=pr(this,t,r,0),s=!xo(t)||t!==this._$AH&&t!==Me,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],r,d),p===Me&&(p=this._$AH[d]),s||=!xo(p)||p!==this._$AH[d],p===W?t=W:t!==W&&(t+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.O(t)}O(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},mi=class extends ur{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===W?void 0:t}},yi=class extends ur{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==W)}},gi=class extends ur{constructor(t,r,i,n,a){super(t,r,i,n,a),this.type=5}_$AI(t,r=this){if((t=pr(this,t,r,0)??W)===Me)return;let i=this._$AH,n=t===W&&i!==W||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==W&&(i===W||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)}},bi=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){pr(this,t)}},eu={j:In,P:Ce,A:Nn,C:1,M:Wl,L:hi,R:Ml,V:pr,D:Dr,I:ur,H:yi,N:gi,U:mi,B:bi},ru=Tn.litHtmlPolyfillSupport;ru?.(So,Dr),(Tn.litHtmlVersions??=[]).push("3.1.0");var Pn=(e,t,r)=>{let i=r?.renderBefore??t,n=i._$litPart$;if(n===void 0){let a=r?.renderBefore??null;i._$litPart$=n=new Dr(t.insertBefore(vo(),a),a,void 0,r??{})}return n._$AI(e),n};var Ee=class extends ue{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Pn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Me}};Ee._$litElement$=!0,Ee.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ee});var ou=globalThis.litElementPolyfillSupport;ou?.({LitElement:Ee});var iu={_$AK:(e,t,r)=>{e._$AK(t,r)},_$AL:e=>e._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var zh=!1;var Dn={};ot(Dn,{customElement:()=>nu,eventOptions:()=>we,property:()=>g,query:()=>X,queryAll:()=>kn,queryAssignedElements:()=>$n,queryAssignedNodes:()=>Oo,queryAsync:()=>lu,standardProperty:()=>Hl,state:()=>H});var nu=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var au={attribute:!0,type:String,converter:co,reflect:!1,hasChanged:ei},Hl=(e=au,t,r)=>{let{kind:i,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(r.name,e),i==="accessor"){let{name:s}=r;return{set(l){let d=t.get.call(this);t.set.call(this,l),this.requestUpdate(s,d,e)},init(l){return l!==void 0&&this.C(s,void 0,e),l}}}if(i==="setter"){let{name:s}=r;return function(l){let d=this[s];t.call(this,l),this.requestUpdate(s,d,e)}}throw Error("Unsupported decorator location: "+i)};function g(e){return(t,r)=>typeof r=="object"?Hl(e,t,r):((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})(e,t,r)}function H(e){return g({...e,state:!0,attribute:!1})}function we(e){return(t,r)=>{let i=typeof t=="function"?t:t[r];Object.assign(i,e)}}var ee=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r);function X(e,t){return(r,i,n)=>{let a=s=>s.renderRoot?.querySelector(e)??null;if(t){let{get:s,set:l}=typeof i=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return ee(r,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return ee(r,i,{get(){return a(this)}})}}var su;function kn(e){return(t,r)=>ee(t,r,{get(){return(this.renderRoot??(su??=document.createDocumentFragment())).querySelectorAll(e)}})}function lu(e){return(t,r)=>ee(t,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}function $n(e){return(t,r)=>{let{slot:i,selector:n}=e??{},a="slot"+(i?`[name=${i}]`:":not([name])");return ee(t,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(e)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function Oo(e){return(t,r)=>{let{slot:i}=e??{},n="slot"+(i?`[name=${i}]`:":not([name])");return ee(t,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(e)??[]}})}}var Mn={};ot(Mn,{repeat:()=>Co});var Ue={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Be=e=>(...t)=>({_$litDirective$:e,values:t}),fe=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,i){this._$Ct=t,this._$AM=r,this._$Ci=i}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var{D:cu}=Al;var zl=()=>document.createComment(""),Mr=(e,t,r)=>{let i=e._$AA.parentNode,n=t===void 0?e._$AB:t._$AA;if(r===void 0){let a=i.insertBefore(zl(),n),s=i.insertBefore(zl(),n);r=new cu(a,s,e,e.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==e;if(l){let d;r._$AQ?.(e),r._$AM=e,r._$AP!==void 0&&(d=e._$AU)!==s._$AU&&r._$AP(d)}if(a!==n||l){let d=r._$AA;for(;d!==a;){let p=d.nextSibling;i.insertBefore(d,n),d=p}}}return r},Fe=(e,t,r=e)=>(e._$AI(t,r),e),du={},Vl=(e,t=du)=>e._$AH=t,jl=e=>e._$AH,vi=e=>{e._$AP?.(!1,!0);let t=e._$AA,r=e._$AB.nextSibling;for(;t!==r;){let i=t.nextSibling;t.remove(),t=i}};var Gl=(e,t,r)=>{let i=new Map;for(let n=t;n<=r;n++)i.set(e[n],n);return i},Co=Be(class extends fe{constructor(e){if(super(e),e.type!==Ue.CHILD)throw Error("repeat() can only be used in text expressions")}ht(e,t,r){let i;r===void 0?r=t:t!==void 0&&(i=t);let n=[],a=[],s=0;for(let l of e)n[s]=i?i(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(e,t,r){return this.ht(e,t,r).values}update(e,[t,r,i]){let n=jl(e),{values:a,keys:s}=this.ht(t,r,i);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],d=[],p,h,f=0,m=n.length-1,v=0,x=a.length-1;for(;f<=m&&v<=x;)if(n[f]===null)f++;else if(n[m]===null)m--;else if(l[f]===s[v])d[v]=Fe(n[f],a[v]),f++,v++;else if(l[m]===s[x])d[x]=Fe(n[m],a[x]),m--,x--;else if(l[f]===s[x])d[x]=Fe(n[f],a[x]),Mr(e,d[x+1],n[f]),f++,x--;else if(l[m]===s[v])d[v]=Fe(n[m],a[v]),Mr(e,n[f],n[m]),m--,v++;else if(p===void 0&&(p=Gl(s,v,x),h=Gl(l,f,m)),p.has(l[f]))if(p.has(l[m])){let E=h.get(s[v]),R=E!==void 0?n[E]:null;if(R===null){let I=Mr(e,n[f]);Fe(I,a[v]),d[v]=I}else d[v]=Fe(R,a[v]),Mr(e,n[f],R),n[E]=null;v++}else vi(n[m]),m--;else vi(n[f]),f++;for(;v<=x;){let E=Mr(e,d[x+1]);Fe(E,a[v]),d[v++]=E}for(;f<=m;){let E=n[f++];E!==null&&vi(E)}return this.dt=s,Vl(e,d),Kt}});var Un={};ot(Un,{classMap:()=>Rt});var Rt=Be(class extends fe{constructor(e){if(super(e),e.type!==Ue.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.it===void 0){this.it=new Set,e.strings!==void 0&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in t)t[i]&&!this.st?.has(i)&&this.it.add(i);return this.render(t)}let r=e.element.classList;for(let i of this.it)i in t||(r.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?(r.add(i),this.it.add(i)):(r.remove(i),this.it.delete(i)))}return Kt}});var Bn={};ot(Bn,{styleMap:()=>uu});var Kl="important",pu=" !"+Kl,uu=Be(class extends fe{constructor(e){if(super(e),e.type!==Ue.ATTRIBUTE||e.name!=="style"||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,r)=>{let i=e[r];return i==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(e,[t]){let{style:r}=e.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(t)),this.render(t);for(let i of this.ut)t[i]==null&&(this.ut.delete(i),i.includes("-")?r.removeProperty(i):r[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(pu);i.includes("-")||a?r.setProperty(i,a?n.slice(0,-11):n,a?Kl:""):r[i]=n}}return Kt}});var Wn={};ot(Wn,{UnsafeHTMLDirective:()=>Ur,unsafeHTML:()=>Fn});var Ur=class extends fe{constructor(t){if(super(t),this.et=mt,t.type!==Ue.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===Kt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;let r=[t];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Ur.directiveName="unsafeHTML",Ur.resultType=1;var Fn=Be(Ur);var Kn={};ot(Kn,{CacheRegistry:()=>he,ClearCacheEvent:()=>Eo});var zn={};ot(zn,{CancelablePromise:()=>Br,CanceledPromiseError:()=>fr,cancelable:()=>Hn});var fr=class extends Error{constructor(t,r,i){super(t),this.canceledPromiseResult=r,this.canceledPromiseError=i}},Br=class extends Promise{constructor(t){super((r,i)=>t(n=>{this.isCanceled?i(new fr("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?i(new fr("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Hn=e=>new Br((t,r)=>e.then(t).catch(r));var Gn={};ot(Gn,{FtNotificationEvent:()=>Ut,PostResizeEvent:()=>jn,PreResizeEvent:()=>Vn,WithEventBus:()=>hr,withEventBus:()=>Zl});var Ut=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},Vn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},jn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function Zl(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}var hr=class extends Zl(Object){};var Eo=class extends CustomEvent{constructor(t){super("clear-cache",{detail:{clearedKeys:t}})}},he=class extends hr{constructor(){super(...arguments),this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,r){this.loaders[t]=r,this.finalContent.delete(t)}registerFinal(t,r){this.loaders[t]=r,this.finalContent.add(t)}clearAll(t=!0){let r=[];for(let i in this.content)this.clear(i,!1)!=null&&r.push(i);t&&r.length>0&&this.dispatchEvent(new Eo(r))}clear(t,r=!0){if(!this.finalContent.has(t))return this.forceClear(t),r&&this.dispatchEvent(new Eo([t])),t}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof Br&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){this.clearTimeouts[t]!=null&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,r){this.forceClear(t),this.register(t,async()=>r),this.content[t]=r}setFinal(t,r){this.forceClear(t),this.registerFinal(t,async()=>r),this.content[t]=r}async get(t,r,i){if(this.content[t]===void 0){if(r=r??this.loaders[t],r==null)throw new Error("Unknown cache key "+t);let n=Hn(r());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 Zn={};ot(Zn,{ClusteringHelper:()=>wo});var wo=class e{constructor(t,r,i,n){this.allResults=t,this.selectedResult=r,this.clusteringMetadata=i,this.metadataDescriptors=n}static extractResultMetadata(t){var r,i,n,a,s;let l=((a=(i=(r=t.result)===null||r===void 0?void 0:r.map)!==null&&i!==void 0?i:(n=t.result)===null||n===void 0?void 0:n.document)!==null&&a!==void 0?a:(s=t.result)===null||s===void 0?void 0:s.topic).metadata;return t.key==null?e.flattenMetadata(l,t.hierarchicalValueTruncatingLevel,t.dateFormatter):e.flattenMetadata(l.find(d=>d.key===t.key),t.hierarchicalValueTruncatingLevel,t.dateFormatter)}static flattenMetadata(t,r,i){if(Array.isArray(t))return t.map(a=>e.flattenMetadata(a,r,i)).filter(a=>a!=null);let n=t?.hierarchicalValues!=null&&t.hierarchicalValues.length>0;if(!(t==null||t.values.length==0&&!n))if(n){let a=[],s=[];return t.hierarchicalValues.forEach(l=>{a.push(l.join(" > ")),r&&r>1&&l.length>=r?s.push(`... > ${l[l.length-1]}`):s.push(l.join(" > "))}),{key:t.key,label:t.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=t.values.join(", "),s=t.values.map(l=>i?i(l):l).join(", ");return{key:t.key,label:t.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(t,r,i="No value",n,a){var s,l;let d=e.extractResultMetadata({result:this.selectedResult,key:t,dateFormatter:a}),p=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(t))===null||l===void 0?void 0:l.label;return this.allResults.map(f=>e.extractResultMetadata({result:f,key:t,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(f=>f??{key:t,label:p,value:void 0,displayValue:i}).filter(f=>f.value!=d?.value).filter((f,m,v)=>v.findIndex(x=>x.value===f.value)===m).map(f=>({result:this.findBestResultForMetadataValue(t,f.value),metadata:f})).sort((f,m)=>this.compareMetadata(f.metadata.value,m.metadata.value,t,r))}compareMetadata(t,r,i,n){if(t==null)return-1;if(r==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(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(r=>t==r.key)}findBestResultForMetadataValue(t,r){let i=this.allResults.filter(d=>{var p;return((p=e.extractResultMetadata({result:d,key:t}))===null||p===void 0?void 0:p.value)==r}),a=[...e.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==t)],s,l=-1;for(let d of i){let p=this.countMatchingMetadata(d,a);if(p>l&&(l=p,s=d,p===a.length))break}return s}countMatchingMetadata(t,r){return e.extractResultMetadata({result:t}).filter(i=>r.some(n=>n.key===i.key&&n.value===i.value)).length}};var qn={};ot(qn,{Debouncer:()=>lt});var lt=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of 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={};ot(Qn,{customElement:()=>J,isNumber:()=>Yl,jsonProperty:()=>me,optionalNumberProperty:()=>gu});var Jn={};ot(Jn,{dateReviver:()=>fu,deepEqual:()=>re,delay:()=>xi,eventPathContainsMatchingElement:()=>mu,flatDeep:()=>ql,getComposedPathTo:()=>Xn,hasChanged:()=>mr,last:()=>yu,minmax:()=>_o,parseDate:()=>Si,unslotText:()=>Oi,waitFor:()=>Ao,waitUntil:()=>Yn});var xi=e=>new Promise(t=>setTimeout(t,e));async function Yn(e,t=10,r=2e4){await Ao(async()=>await e()||void 0,t,r)}async function Ao(e,t=10,r=2e4){let i=await e(),n,a;for(n=a=performance.now();i==null&&(!r||a-n<r);)await xi(t),i=await e(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function ql(e,t){return e.flatMap(r=>[r,...ql(t(r),t)])}function fu(...e){return function(t,r){return e.includes(t)?Si(r):r}}function Si(e){return e.match(/^\d{4}-\d{2}-\d{2}$/)&&(e=e.replace(/-/g,"/")),e=e.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,r,i,n)=>r+i+":"+n),new Date(e)}function hu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,i,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!re(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!re(i[1],t.get(i[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let a=s=>Object.keys(s).filter(l=>s[l]!=null);if(n=a(e),r=n.length,r!==a(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!re(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function re(e,t){try{return hu(e,t)}catch{return!1}}function mr(e,t){return!re(e,t)}function mu(e,t,r=window.document.body){if(t.length>0){let i=e.composedPath();for(let n of i){if(n===r)return!1;if(n.matches&&t.some(a=>n.matches(a)))return!0}}return!1}function _o(e,t,r){return Math.min(Math.max(e,t),r)}function yu(e){return e[e.length-1]}function Oi(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(t=>Oi(t)).join(""):e?.textContent||""}function Xn(e){let t=[],r=i=>{i.stopPropagation(),t=i.composedPath()};return e.addEventListener("get-composed-path",r),e.dispatchEvent(new Event("get-composed-path",{composed:!0})),e.removeEventListener("get-composed-path",r),t}var J=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function me(e,t){let r=()=>JSON.parse(JSON.stringify(e));return g({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:mr,...t??{}})}function gu(e){return g({type:Object,converter:{fromAttribute:t=>{if(t!=null)return Yl(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...e??{}})}function Yl(e){return!isNaN(parseFloat(e))}var Ra={};ot(Ra,{designSystemVariables:()=>T});var _a={};ot(_a,{DesignSystemFamily:()=>yr,DesignSystemSize:()=>_e,FtCssVariableFactory:()=>o,badge:()=>Cu,banner:()=>Ou,button:()=>b,chart:()=>Bu,checkbox:()=>Hu,chip:()=>xu,chipChoice:()=>vu,collapsible:()=>Mu,comboboxMultiSelect:()=>$u,comboboxSingleSelect:()=>ku,drawer:()=>Tu,floatingMenu:()=>Lu,foundation:()=>c,link:()=>Su,modal:()=>Ru,notice:()=>Wu,notification:()=>ju,pageDesigner:()=>Fu,pageFooter:()=>Au,pageHeader:()=>wu,pageLayout:()=>_u,popover:()=>Du,radio:()=>Vu,reorderableList:()=>Ku,resolveFamilyClass:()=>wa,resolveSizeClass:()=>Aa,semantic:()=>u,setVariable:()=>S,switch_:()=>Uu,tabs:()=>Iu,textArea:()=>Pu,textInput:()=>Nu,titleBreadcrumb:()=>Eu,toggle:()=>zu,tooltip:()=>Gu,typographies:()=>Ro,typographyBody1Medium:()=>na,typographyBody1Regular:()=>ia,typographyBody1Semibold:()=>aa,typographyBody2Medium:()=>la,typographyBody2MediumUnderline:()=>Xl,typographyBody2Regular:()=>sa,typographyBody2Semibold:()=>ca,typographyCaption1Bold:()=>ba,typographyCaption1Medium:()=>ya,typographyCaption1Semibold:()=>ga,typographyCaption2Bold:()=>Sa,typographyCaption2Medium:()=>va,typographyCaption2Semibold:()=>xa,typographyCaption3Bold:()=>Ea,typographyCaption3Medium:()=>Oa,typographyCaption3Semibold:()=>Ca,typographyDisplay:()=>ta,typographyLabel1Bold:()=>ua,typographyLabel1Medium:()=>da,typographyLabel1Semibold:()=>pa,typographyLabel2Bold:()=>ma,typographyLabel2Medium:()=>fa,typographyLabel2Semibold:()=>ha,typographyTitle1:()=>ea,typographyTitle2:()=>ra,typographyTitle3:()=>oa,typographyVariants:()=>bu});var Ae=e=>typeof e=="string"?Oe(e):e,o=class{static create(t,r,i,n){let a=l=>Ae(l??n),s=$`var(${Ae(t)}, ${a(n)})`;return s.name=t,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>$`var(${Ae(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,r,i,n){let a=l=>i.get(l??n),s=$`var(${Ae(t)}, ${a(n)})`;return s.name=t,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>$`var(${Ae(t)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(t,r){let i=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):Ae(a??t.lastResortDefaultValue()),n=$`var(${Ae(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=r,n.defaultCssValue=i,n.get=a=>$`var(${Ae(t.name)}, ${i(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};function S(e,t){return Ae(`${e.name}: ${t}`)}var c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),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)")},ta={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")},ea={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")},ra={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")},oa={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")},ia={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")},na={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")},aa={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")},sa={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")},la={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")},Xl={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")},ca={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")},da={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")},pa={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")},ua={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")},fa={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")},ha={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")},ma={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")},ya={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")},ga={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")},ba={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")},va={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")},xa={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")},Sa={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")},Oa={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")},Ca={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")},Ea={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")},Ro={display:ta,"title-1":ea,"title-2":ra,"title-3":oa,"body-1-regular":ia,"body-1-medium":na,"body-1-semibold":aa,"body-2-regular":sa,"body-2-medium":la,"body-2-medium-underline":Xl,"body-2-semibold":ca,"label-1-medium":da,"label-1-semibold":pa,"label-1-bold":ua,"label-2-medium":fa,"label-2-semibold":ha,"label-2-bold":ma,"caption-1-medium":ya,"caption-1-semibold":ga,"caption-1-bold":ba,"caption-2-medium":va,"caption-2-semibold":xa,"caption-2-bold":Sa,"caption-3-medium":Oa,"caption-3-semibold":Ca,"caption-3-bold":Ea},bu=["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 vu={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 xu={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 Su={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 Ou={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 Cu={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 Eu={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 wu={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 Au={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 _u={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var Ru={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 Tu={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 Iu={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 Nu={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 Pu={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 Lu={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 ku={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 $u={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 Du={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 Mu={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 Uu={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 Bu={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 Fu={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 Wu={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 Hu={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 zu={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 Vu={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 ju={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 Gu={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 Ku={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 yr;(function(e){e.brand="brand",e.neutral="neutral",e.info="info",e.success="success",e.warning="warning",e.error="error"})(yr||(yr={}));var _e;(function(e){e.large="large",e.medium="medium",e.small="small"})(_e||(_e={}));function wa(e){return`ftds--family-${e}`}function Aa(e){return`ftds--size-${e}`}var T={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 ja={};ot(ja,{computeFlipOffsetPosition:()=>Va,computeOffsetPosition:()=>za});var Ql=["top","right","bottom","left"],Jl=["start","end"],Ta=Ql.reduce((e,t)=>e.concat(t,t+"-"+Jl[0],t+"-"+Jl[1]),[]),gr=Math.min,Ht=Math.max,No=Math.round;var Re=e=>({x:e,y:e}),Zu={left:"right",right:"left",bottom:"top",top:"bottom"},qu={start:"end",end:"start"};function Ia(e,t,r){return Ht(e,gr(t,r))}function br(e,t){return typeof e=="function"?e(t):e}function oe(e){return e.split("-")[0]}function ie(e){return e.split("-")[1]}function Na(e){return e==="x"?"y":"x"}function Pa(e){return e==="y"?"height":"width"}function Fr(e){return["top","bottom"].includes(oe(e))?"y":"x"}function La(e){return Na(Fr(e))}function ka(e,t,r){r===void 0&&(r=!1);let i=ie(e),n=La(e),a=Pa(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Io(s)),[s,Io(s)]}function tc(e){let t=Io(e);return[To(e),t,To(t)]}function To(e){return e.replace(/start|end/g,t=>qu[t])}function Yu(e,t,r){let i=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?n:i:t?i:n;case"left":case"right":return t?a:s;default:return[]}}function ec(e,t,r,i){let n=ie(e),a=Yu(oe(e),r==="start",i);return n&&(a=a.map(s=>s+"-"+n),t&&(a=a.concat(a.map(To)))),a}function Io(e){return e.replace(/left|right|bottom|top/g,t=>Zu[t])}function Xu(e){return{top:0,right:0,bottom:0,left:0,...e}}function rc(e){return typeof e!="number"?Xu(e):{top:e,right:e,bottom:e,left:e}}function vr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function oc(e,t,r){let{reference:i,floating:n}=e,a=Fr(t),s=La(t),l=Pa(s),d=oe(t),p=a==="y",h=i.x+i.width/2-n.width/2,f=i.y+i.height/2-n.height/2,m=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:h,y:i.y-n.height};break;case"bottom":v={x:h,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:f};break;case"left":v={x:i.x-n.width,y:f};break;default:v={x:i.x,y:i.y}}switch(ie(t)){case"start":v[s]-=m*(r&&p?-1:1);break;case"end":v[s]+=m*(r&&p?-1:1);break}return v}var ic=async(e,t,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:h,y:f}=oc(p,i,d),m=i,v={},x=0;for(let E=0;E<l.length;E++){let{name:R,fn:I}=l[E],{x:L,y:w,data:O,reset:A}=await I({x:h,y:f,initialPlacement:i,placement:m,strategy:n,middlewareData:v,rects:p,platform:s,elements:{reference:e,floating:t}});if(h=L??h,f=w??f,v={...v,[R]:{...v[R],...O}},A&&x<=50){x++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(p=A.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):A.rects),{x:h,y:f}=oc(p,m,d)),E=-1;continue}}return{x:h,y:f,placement:m,strategy:n,middlewareData:v}};async function Po(e,t){var r;t===void 0&&(t={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=e,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:m=!1,padding:v=0}=br(t,e),x=rc(v),R=l[m?f==="floating"?"reference":"floating":f],I=vr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(R)))==null||r?R:R.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),L=f==="floating"?{...s.floating,x:i,y:n}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),O=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=vr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:L,offsetParent:w,strategy:d}):L);return{top:(I.top-A.top+x.top)/O.y,bottom:(A.bottom-I.bottom+x.bottom)/O.y,left:(I.left-A.left+x.left)/O.x,right:(A.right-I.right+x.right)/O.x}}function Ju(e,t,r){return(e?[...r.filter(n=>ie(n)===e),...r.filter(n=>ie(n)!==e)]:r.filter(n=>oe(n)===n)).filter(n=>e?ie(n)===e||(t?To(n)!==n:!1):!0)}var $a=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=t,{crossAxis:h=!1,alignment:f,allowedPlacements:m=Ta,autoAlignment:v=!0,...x}=br(e,t),E=f!==void 0||m===Ta?Ju(f||null,v,m):m,R=await Po(t,x),I=((r=s.autoPlacement)==null?void 0:r.index)||0,L=E[I];if(L==null)return{};let w=ka(L,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==L)return{reset:{placement:E[0]}};let O=[R[oe(L)],R[w[0]],R[w[1]]],A=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:L,overflows:O}],k=E[I+1];if(k)return{data:{index:I+1,overflows:A},reset:{placement:k}};let F=A.map(U=>{let y=ie(U.placement);return[U.placement,y&&h?U.overflows.slice(0,2).reduce((C,D)=>C+D,0):U.overflows[0],U.overflows]}).sort((U,y)=>U[1]-y[1]),Z=((n=F.filter(U=>U[2].slice(0,ie(U[0])?2:3).every(y=>y<=0))[0])==null?void 0:n[0])||F[0][0];return Z!==l?{data:{index:I+1,overflows:A},reset:{placement:Z}}:{}}}},Da=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,i;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:E=!0,...R}=br(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};let I=oe(n),L=oe(l)===l,w=await(d.isRTL==null?void 0:d.isRTL(p.floating)),O=m||(L||!E?[Io(l)]:tc(l));!m&&x!=="none"&&O.push(...ec(l,E,x,w));let A=[l,...O],k=await Po(t,R),F=[],q=((i=a.flip)==null?void 0:i.overflows)||[];if(h&&F.push(k[I]),f){let C=ka(n,s,w);F.push(k[C[0]],k[C[1]])}if(q=[...q,{placement:n,overflows:F}],!F.every(C=>C<=0)){var Z,U;let C=(((Z=a.flip)==null?void 0:Z.index)||0)+1,D=A[C];if(D)return{data:{index:C,overflows:q},reset:{placement:D}};let Y=(U=q.filter(Q=>Q.overflows[0]<=0).sort((Q,V)=>Q.overflows[1]-V.overflows[1])[0])==null?void 0:U.placement;if(!Y)switch(v){case"bestFit":{var y;let Q=(y=q.map(V=>[V.placement,V.overflows.filter(pe=>pe>0).reduce((pe,so)=>pe+so,0)]).sort((V,pe)=>V[1]-pe[1])[0])==null?void 0:y[0];Q&&(Y=Q);break}case"initialPlacement":Y=l;break}if(n!==Y)return{reset:{placement:Y}}}return{}}}};async function Qu(e,t){let{placement:r,platform:i,elements:n}=e,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=oe(r),l=ie(r),d=Fr(r)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,f=br(t,e),{mainAxis:m,crossAxis:v,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof x=="number"&&(v=l==="end"?x*-1:x),d?{x:v*h,y:m*p}:{x:m*p,y:v*h}}var Ma=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,i;let{x:n,y:a,placement:s,middlewareData:l}=t,d=await Qu(t,e);return s===((r=l.offset)==null?void 0:r.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},Ua=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:R=>{let{x:I,y:L}=R;return{x:I,y:L}}},...d}=br(e,t),p={x:r,y:i},h=await Po(t,d),f=Fr(oe(n)),m=Na(f),v=p[m],x=p[f];if(a){let R=m==="y"?"top":"left",I=m==="y"?"bottom":"right",L=v+h[R],w=v-h[I];v=Ia(L,v,w)}if(s){let R=f==="y"?"top":"left",I=f==="y"?"bottom":"right",L=x+h[R],w=x-h[I];x=Ia(L,x,w)}let E=l.fn({...t,[m]:v,[f]:x});return{...E,data:{x:E.x-r,y:E.y-i}}}}};var Ba=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:r,rects:i,platform:n,elements:a}=t,{apply:s=()=>{},...l}=br(e,t),d=await Po(t,l),p=oe(r),h=ie(r),f=Fr(r)==="y",{width:m,height:v}=i.floating,x,E;p==="top"||p==="bottom"?(x=p,E=h===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(E=p,x=h==="end"?"top":"bottom");let R=v-d[x],I=m-d[E],L=!t.middlewareData.shift,w=R,O=I;if(f){let k=m-d.left-d.right;O=h||L?gr(I,k):k}else{let k=v-d.top-d.bottom;w=h||L?gr(R,k):k}if(L&&!h){let k=Ht(d.left,0),F=Ht(d.right,0),q=Ht(d.top,0),Z=Ht(d.bottom,0);f?O=m-2*(k!==0||F!==0?k+F:Ht(d.left,d.right)):w=v-2*(q!==0||Z!==0?q+Z:Ht(d.top,d.bottom))}await s({...t,availableWidth:O,availableHeight:w});let A=await n.getDimensions(a.floating);return m!==A.width||v!==A.height?{reset:{rects:!0}}:{}}}};function Te(e){return ac(e)?(e.nodeName||"").toLowerCase():"#document"}function zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(e){var t;return(t=(ac(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ac(e){return e instanceof Node||e instanceof zt(e).Node}function ye(e){return e instanceof Element||e instanceof zt(e).Element}function ne(e){return e instanceof HTMLElement||e instanceof zt(e).HTMLElement}function nc(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof zt(e).ShadowRoot}function Wr(e){let{overflow:t,overflowX:r,overflowY:i,display:n}=Zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!["inline","contents"].includes(n)}function sc(e){return["table","td","th"].includes(Te(e))}function Ei(e){let t=wi(),r=Zt(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function lc(e){let t=xr(e);for(;ne(t)&&!Lo(t);){if(Ei(t))return t;t=xr(t)}return null}function wi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Lo(e){return["html","body","#document"].includes(Te(e))}function Zt(e){return zt(e).getComputedStyle(e)}function ko(e){return ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function xr(e){if(Te(e)==="html")return e;let t=e.assignedSlot||e.parentNode||nc(e)&&e.host||Ie(e);return nc(t)?t.host:t}function cc(e){let t=xr(e);return Lo(t)?e.ownerDocument?e.ownerDocument.body:e.body:ne(t)&&Wr(t)?t:cc(t)}function Ci(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=cc(e),a=n===((i=e.ownerDocument)==null?void 0:i.body),s=zt(n);return a?t.concat(s,s.visualViewport||[],Wr(n)?n:[],s.frameElement&&r?Ci(s.frameElement):[]):t.concat(n,Ci(n,[],r))}function uc(e){let t=Zt(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=ne(e),a=n?e.offsetWidth:r,s=n?e.offsetHeight:i,l=No(r)!==a||No(i)!==s;return l&&(r=a,i=s),{width:r,height:i,$:l}}function fc(e){return ye(e)?e:e.contextElement}function Hr(e){let t=fc(e);if(!ne(t))return Re(1);let r=t.getBoundingClientRect(),{width:i,height:n,$:a}=uc(t),s=(a?No(r.width):r.width)/i,l=(a?No(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var tf=Re(0);function hc(e){let t=zt(e);return!wi()||!t.visualViewport?tf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ef(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==zt(e)?!1:t}function $o(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),a=fc(e),s=Re(1);t&&(i?ye(i)&&(s=Hr(i)):s=Hr(e));let l=ef(a,r,i)?hc(a):Re(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,h=n.width/s.x,f=n.height/s.y;if(a){let m=zt(a),v=i&&ye(i)?zt(i):i,x=m.frameElement;for(;x&&i&&v!==m;){let E=Hr(x),R=x.getBoundingClientRect(),I=Zt(x),L=R.left+(x.clientLeft+parseFloat(I.paddingLeft))*E.x,w=R.top+(x.clientTop+parseFloat(I.paddingTop))*E.y;d*=E.x,p*=E.y,h*=E.x,f*=E.y,d+=L,p+=w,x=zt(x).frameElement}}return vr({width:h,height:f,x:d,y:p})}function rf(e){let{rect:t,offsetParent:r,strategy:i}=e,n=ne(r),a=Ie(r);if(r===a)return t;let s={scrollLeft:0,scrollTop:0},l=Re(1),d=Re(0);if((n||!n&&i!=="fixed")&&((Te(r)!=="body"||Wr(a))&&(s=ko(r)),ne(r))){let p=$o(r);l=Hr(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+d.x,y:t.y*l.y-s.scrollTop*l.y+d.y}}function of(e){return Array.from(e.getClientRects())}function mc(e){return $o(Ie(e)).left+ko(e).scrollLeft}function nf(e){let t=Ie(e),r=ko(e),i=e.ownerDocument.body,n=Ht(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=Ht(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+mc(e),l=-r.scrollTop;return Zt(i).direction==="rtl"&&(s+=Ht(t.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function af(e,t){let r=zt(e),i=Ie(e),n=r.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 sf(e,t){let r=$o(e,!0,t==="fixed"),i=r.top+e.clientTop,n=r.left+e.clientLeft,a=ne(e)?Hr(e):Re(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y,d=n*a.x,p=i*a.y;return{width:s,height:l,x:d,y:p}}function dc(e,t,r){let i;if(t==="viewport")i=af(e,r);else if(t==="document")i=nf(Ie(e));else if(ye(t))i=sf(t,r);else{let n=hc(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return vr(i)}function yc(e,t){let r=xr(e);return r===t||!ye(r)||Lo(r)?!1:Zt(r).position==="fixed"||yc(r,t)}function lf(e,t){let r=t.get(e);if(r)return r;let i=Ci(e,[],!1).filter(l=>ye(l)&&Te(l)!=="body"),n=null,a=Zt(e).position==="fixed",s=a?xr(e):e;for(;ye(s)&&!Lo(s);){let l=Zt(s),d=Ei(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Wr(s)&&!d&&yc(e,s))?i=i.filter(h=>h!==s):n=l,s=xr(s)}return t.set(e,i),i}function cf(e){let{element:t,boundary:r,rootBoundary:i,strategy:n}=e,s=[...r==="clippingAncestors"?lf(t,this._c):[].concat(r),i],l=s[0],d=s.reduce((p,h)=>{let f=dc(t,h,n);return p.top=Ht(f.top,p.top),p.right=gr(f.right,p.right),p.bottom=gr(f.bottom,p.bottom),p.left=Ht(f.left,p.left),p},dc(t,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function df(e){return uc(e)}function pf(e,t,r){let i=ne(t),n=Ie(t),a=r==="fixed",s=$o(e,!0,a,t),l={scrollLeft:0,scrollTop:0},d=Re(0);if(i||!i&&!a)if((Te(t)!=="body"||Wr(n))&&(l=ko(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=mc(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function pc(e,t){return!ne(e)||Zt(e).position==="fixed"?null:t?t(e):e.offsetParent}function gc(e,t){let r=zt(e);if(!ne(e))return r;let i=pc(e,t);for(;i&&sc(i)&&Zt(i).position==="static";)i=pc(i,t);return i&&(Te(i)==="html"||Te(i)==="body"&&Zt(i).position==="static"&&!Ei(i))?r:i||lc(e)||r}var uf=async function(e){let{reference:t,floating:r,strategy:i}=e,n=this.getOffsetParent||gc,a=this.getDimensions;return{reference:pf(t,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function ff(e){return Zt(e).direction==="rtl"}var zr={convertOffsetParentRelativeRectToViewportRelativeRect:rf,getDocumentElement:Ie,getClippingRect:cf,getOffsetParent:gc,getElementRects:uf,getClientRects:of,getDimensions:df,getScale:Hr,isElement:ye,isRTL:ff};var Fa=(e,t,r)=>{let i=new Map,n={platform:zr,...r},a={...n.platform,_c:i};return ic(e,t,{...n,platform:a})};function Ha(e){return hf(e)}function Wa(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function hf(e){for(let t=e;t;t=Wa(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Wa(e);t;t=Wa(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||t.tagName==="BODY"))return t}return null}async function za(e,t,r){return Fa(e,t,{platform:{...zr,getOffsetParent:i=>zr.getOffsetParent(i,Ha)},middleware:[Ua({crossAxis:!0}),$a({allowedPlacements:[r]})]})}async function Va(e,t,r,i,n,a,s=4){return Fa(e,t,{placement:r,strategy:n,platform:{...zr,getOffsetParent:l=>zr.getOffsetParent(l,Ha)},middleware:[Ma(s),Da({fallbackPlacements:i}),Ba({apply({availableHeight:l,elements:d}){a?d.floating.style.maxHeight=`min(${Math.max(0,l)}px, var(${a}))`:d.floating.style.maxHeight=`${Math.max(0,l)}px`}})]})}var qa={};ot(qa,{FtdsBase:()=>Za,toFtdsBase:()=>Ri});var Ka={};ot(Ka,{FtLitElement:()=>j});var Ga={};ot(Ga,{ScopedRegistryLitElement:()=>Do});var Ai=window,mf=Ai.ShadowRoot&&(Ai.ShadyCSS===void 0||Ai.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mv=Symbol();var bc=(e,t)=>{mf?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let i=document.createElement("style"),n=Ai.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,e.appendChild(i)})};var Do=class extends Ee{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,a])=>t.registry.define(n,a)));let r={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return bc(i,t.elementStyles),i}};var _i=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Oc,vc=Symbol("constructorPrototype"),xc=Symbol("constructorName"),Cc=Symbol("exportpartsDebouncer"),Sc=Symbol("dynamicDependenciesLoaded"),j=class extends Do{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Oc]=new lt(5),this[xc]=this.constructor.name,this[vc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[xc]&&Object.setPrototypeOf(this,this[vc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let t=this.constructor;t[Sc]||(t[Sc]=!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 r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.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,r,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Cc].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var r,i,n,a,s,l;let d=m=>m!=null&&m.trim().length>0,p=t.filter(d).map(m=>m.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let m of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let v=(a=(n=m.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],x=(l=(s=m.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(E=>E.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...x).filter(d).map(E=>E.trim()).forEach(E=>h.add(E))}if(h.size===0){this.removeAttribute("exportparts");return}let f=[...h.values()].flatMap(m=>p.map(v=>`${m}:${v}--${m}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};Oc=Cc;_i([g()],j.prototype,"exportpartsPrefix",void 0);_i([me([])],j.prototype,"exportpartsPrefixes",void 0);_i([g()],j.prototype,"customStylesheet",void 0);_i([H()],j.prototype,"useAdoptedStyleSheets",void 0);var Ec=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};function Ri(e){class t extends e{constructor(){super(...arguments),this.size=_e.medium,this.family=yr.neutral}getDesignSystemBaseClasses(){return{[wa(this.family)]:!0,[Aa(this.size)]:!0}}}return Ec([g()],t.prototype,"size",void 0),Ec([g()],t.prototype,"family",void 0),t}var Za=class extends Ri(j){};var wc={};var Ja={};ot(Ja,{highlightHtml:()=>Xa,highlightHtmlColorCssVariable:()=>Ac,highlightHtmlStyles:()=>gf});var Sr=class e{constructor(t,r=!0,i=[],n=5e3){this.ctx=t,this.iframes=r,this.exclude=i,this.iframesTimeout=n}static matches(t,r){let i=typeof r=="string"?[r]:r,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,r=[];return typeof this.ctx>"u"||!this.ctx?t=[]:NodeList.prototype.isPrototypeOf(this.ctx)?t=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?t=this.ctx:typeof this.ctx=="string"?t=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):t=[this.ctx],t.forEach(i=>{let n=r.filter(a=>a.contains(i)).length>0;r.indexOf(i)===-1&&!n&&r.push(i)}),r}getIframeContents(t,r,i=()=>{}){let n;try{let a=t.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&r(n)}isIframeBlank(t){let r="about:blank",i=t.getAttribute("src").trim();return t.contentWindow.location.href===r&&i!==r&&i}observeIframeLoad(t,r,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,r,i))}catch{i()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,r,i){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,r,i):this.getIframeContents(t,r,i):this.observeIframeLoad(t,r,i)}catch{i()}}waitForIframes(t,r){let i=0;this.forEachIframe(t,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||r()})},n=>{n||r()})}forEachIframe(t,r,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=>{e.matches(p,this.exclude)?d():this.onIframeReady(p,h=>{r(p)&&(l++,i(h)),d()},d)})}createIterator(t,r,i){return document.createNodeIterator(t,r,i,!1)}createInstanceOnIframe(t){return new e(t.querySelector("html"),this.iframes)}compareNodeIframe(t,r,i){let n=t.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let r=t.previousNode(),i;return r===null?i=t.nextNode():i=t.nextNode()&&t.nextNode(),{prevNode:r,node:i}}checkIframeFilter(t,r,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(t,r,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,r,i,n){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,i,n)})})}iterateThroughNodes(t,r,i,n,a){let s=this.createIterator(r,t,n),l=[],d=[],p,h,f=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;f();)this.iframes&&this.forEachIframe(r,m=>this.checkIframeFilter(p,h,m,l),m=>{this.createInstanceOnIframe(m).forEachNode(t,v=>d.push(v),n)}),d.push(p);d.forEach(m=>{i(m)}),this.iframes&&this.handleOpenIframes(l,t,i,n),a()}forEachNode(t,r,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(t,l,r,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var Mo=class{constructor(t){this.ctx=t,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new Sr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,r="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[r]=="function"&&i[r](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return this.opt.wildcards!=="disabled"&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),this.opt.wildcards!=="disabled"&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t),t}createSynonymsRegExp(t){let r=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),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,r=>r.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let r=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(r,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(t){let r=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&r.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?t.split(/\u0000+/).join(`[${r.join("")}]*`):t}createDiacriticsRegExp(t){let r=this.opt.caseSensitive?"":"i",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${r}`),`[${s}]`),n.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\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(r)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let r=[];return t.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):i.trim()&&r.indexOf(i)===-1&&r.push(i)}),{keywords:r.sort((i,n)=>n.length-i.length),length:r.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||Object.prototype.toString.call(t[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];let r=[],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,r.push(n),i=s)}),r}callNoMatchOnInvalidRanges(t,r){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-r>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,r,i){let n,a=!0,s=i.length,l=r-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 r="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:r,nodes:i})})}matchesExclude(t){return Sr.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,r,i){let n=this.opt.element?this.opt.element:"mark",a=t.splitText(r),s=a.splitText(i-r),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(t,r,i,n,a){t.nodes.every((s,l)=>{let d=t.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(s.node))return!1;let p=r-s.start,h=(i>s.end?s.end:i)-s.start,f=t.value.substr(0,s.start),m=t.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,h),t.value=f+m,t.nodes.forEach((v,x)=>{x>=l&&(t.nodes[x].start>0&&x!==l&&(t.nodes[x].start-=h),t.nodes[x].end-=h)}),i-=h,a(s.node.previousSibling,s.start),i>s.end)r=s.end;else return!1}return!0})}wrapMatches(t,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=t.exec(d.textContent))!==null&&p[s]!=="";){if(!i(p[s],d))continue;let h=p.index;if(s!==0)for(let f=1;f<s;f++)h+=p[f].length;d=this.wrapRangeInTextNode(d,h,h+p[s].length),n(d.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=t.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let f=1;f<s;f++)p+=d[f].length;let h=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,h,f=>i(d[s],f),(f,m)=>{t.lastIndex=m,n(f)})}a()})}wrapRangeFromIndex(t,r,i,n){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,d)=>{let{start:p,end:h,valid:f}=this.checkWhitespaceRanges(l,s,a.value);f&&this.wrapRangeInMappedTextNode(a,p,h,m=>r(m,l,a.value.substring(p,h),d),m=>{i(m,l)})}),n()})}unwrapMatches(t){let r=t.parentNode,i=document.createDocumentFragment();for(;t.firstChild;)i.appendChild(t.removeChild(t.firstChild));r.replaceChild(i,t),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(t){if(t){if(t.nodeType===3)for(;t.nextSibling&&t.nextSibling.nodeType===3;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,r){this.opt=r,this.log(`Searching with expression "${t}"`);let 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,r){this.opt=r;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",d=p=>{let h=new RegExp(this.createRegExp(p),`gm${l}`),f=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(m,v)=>this.opt.filter(v,p,i,f),m=>{f++,i++,this.opt.each(m)},()=>{f===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(i):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(i):d(a[0])}markRanges(t,r){this.opt=r;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 r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=Sr.matches(i,r),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ya(e){let t=new Mo(e);return this.mark=(r,i)=>(t.mark(r,i),this),this.markRegExp=(r,i)=>(t.markRegExp(r,i),this),this.markRanges=(r,i)=>(t.markRanges(r,i),this),this.unmark=r=>(t.unmark(r),this),this}var yf=Ya,Ac=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),gf=$`
|
|
1
|
+
"use strict";(()=>{var Ld=Object.create;var Ki=Object.defineProperty;var kd=Object.getOwnPropertyDescriptor;var Dd=Object.getOwnPropertyNames;var $d=Object.getPrototypeOf,Md=Object.prototype.hasOwnProperty;var Bd=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),oe=(t,e)=>{for(var r in e)Ki(t,r,{get:e[r],enumerable:!0})},Fd=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Dd(e))!Md.call(t,n)&&n!==r&&Ki(t,n,{get:()=>e[n],enumerable:!(i=kd(e,n))||i.enumerable});return t};var Ud=(t,e,r)=>(r=t!=null?Ld($d(t)):{},Fd(e||!t||!t.__esModule?Ki(r,"default",{value:t,enumerable:!0}):r,t));var hc=Bd((Gt,fc)=>{var pi=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,ui=function(){function t(){this.fetch=!1,this.DOMException=pi.DOMException}return t.prototype=pi,new t}();(function(t){var e=function(r){var i=typeof t<"u"&&t||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 h(m){var C={next:function(){var $=m.shift();return{done:$===void 0,value:$}}};return n.iterable&&(C[Symbol.iterator]=function(){return C}),C}function f(m){this.map={},m instanceof f?m.forEach(function(C,$){this.append($,C)},this):Array.isArray(m)?m.forEach(function(C){if(C.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+C.length);this.append(C[0],C[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(C){this.append(C,m[C])},this)}f.prototype.append=function(m,C){m=d(m),C=p(C);var $=this.map[m];this.map[m]=$?$+", "+C:C},f.prototype.delete=function(m){delete this.map[d(m)]},f.prototype.get=function(m){return m=d(m),this.has(m)?this.map[m]:null},f.prototype.has=function(m){return this.map.hasOwnProperty(d(m))},f.prototype.set=function(m,C){this.map[d(m)]=p(C)},f.prototype.forEach=function(m,C){for(var $ in this.map)this.map.hasOwnProperty($)&&m.call(C,this.map[$],$,this)},f.prototype.keys=function(){var m=[];return this.forEach(function(C,$){m.push($)}),h(m)},f.prototype.values=function(){var m=[];return this.forEach(function(C){m.push(C)}),h(m)},f.prototype.entries=function(){var m=[];return this.forEach(function(C,$){m.push([$,C])}),h(m)},n.iterable&&(f.prototype[Symbol.iterator]=f.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(C,$){m.onload=function(){C(m.result)},m.onerror=function(){$(m.error)}})}function S(m){var C=new FileReader,$=v(C);return C.readAsArrayBuffer(m),$}function E(m){var C=new FileReader,$=v(C),q=/charset=([A-Za-z0-9_-]+)/.exec(m.type),te=q?q[1]:"utf-8";return C.readAsText(m,te),$}function _(m){for(var C=new Uint8Array(m),$=new Array(C.length),q=0;q<C.length;q++)$[q]=String.fromCharCode(C[q]);return $.join("")}function T(m){if(m.slice)return m.slice(0);var C=new Uint8Array(m.byteLength);return C.set(new Uint8Array(m)),C.buffer}function L(){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=T(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||l(m))?this._bodyArrayBuffer=T(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(_(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(M)}),this.json=function(){return this.text().then(JSON.parse)},this}var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function O(m){var C=m.toUpperCase();return w.indexOf(C)>-1?C:m}function A(m,C){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');C=C||{};var $=C.body;if(m instanceof A){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,C.headers||(this.headers=new f(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!$&&m._bodyInit!=null&&($=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=C.credentials||this.credentials||"same-origin",(C.headers||!this.headers)&&(this.headers=new f(C.headers)),this.method=O(C.method||this.method||"GET"),this.mode=C.mode||this.mode||null,this.signal=C.signal||this.signal||function(){if("AbortController"in i){var K=new AbortController;return K.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&$)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody($),(this.method==="GET"||this.method==="HEAD")&&(C.cache==="no-store"||C.cache==="no-cache")){var q=/([?&])_=[^&]*/;if(q.test(this.url))this.url=this.url.replace(q,"$1_="+new Date().getTime());else{var te=/\?/;this.url+=(te.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})};function M(m){var C=new FormData;return m.trim().split("&").forEach(function($){if($){var q=$.split("="),te=q.shift().replace(/\+/g," "),K=q.join("=").replace(/\+/g," ");C.append(decodeURIComponent(te),decodeURIComponent(K))}}),C}function z(m){var C=new f,$=m.replace(/\r?\n[\t ]+/g," ");return $.split("\r").map(function(q){return q.indexOf(`
|
|
2
|
+
`)===0?q.substr(1,q.length):q}).forEach(function(q){var te=q.split(":"),K=te.shift().trim();if(K){var qe=te.join(":").trim();try{C.append(K,qe)}catch(Be){console.warn("Response "+Be.message)}}}),C}L.call(A.prototype);function Y(m,C){if(!(this instanceof Y))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(C||(C={}),this.type="default",this.status=C.status===void 0?200:C.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=C.statusText===void 0?"":""+C.statusText,this.headers=new f(C.headers),this.url=C.url||"",this._initBody(m)}L.call(Y.prototype),Y.prototype.clone=function(){return new Y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},Y.error=function(){var m=new Y(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var G=[301,302,303,307,308];Y.redirect=function(m,C){if(G.indexOf(C)===-1)throw new RangeError("Invalid status code");return new Y(null,{status:C,headers:{location:m}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(C,$){this.message=C,this.name=$;var q=Error(C);this.stack=q.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function D(m,C){return new Promise(function($,q){var te=new A(m,C);if(te.signal&&te.signal.aborted)return q(new r.DOMException("Aborted","AbortError"));var K=new XMLHttpRequest;function qe(){K.abort()}K.onload=function(){var Ce={statusText:K.statusText,headers:z(K.getAllResponseHeaders()||"")};te.url.indexOf("file://")===0&&(K.status<200||K.status>599)?Ce.status=200:Ce.status=K.status,Ce.url="responseURL"in K?K.responseURL:Ce.headers.get("X-Request-URL");var er="response"in K?K.response:K.responseText;setTimeout(function(){$(new Y(er,Ce))},0)},K.onerror=function(){setTimeout(function(){q(new TypeError("Network request failed"))},0)},K.ontimeout=function(){setTimeout(function(){q(new TypeError("Network request timed out"))},0)},K.onabort=function(){setTimeout(function(){q(new r.DOMException("Aborted","AbortError"))},0)};function Be(Ce){try{return Ce===""&&i.location.href?i.location.href:Ce}catch{return Ce}}if(K.open(te.method,Be(te.url),!0),te.credentials==="include"?K.withCredentials=!0:te.credentials==="omit"&&(K.withCredentials=!1),"responseType"in K&&(n.blob?K.responseType="blob":n.arrayBuffer&&(K.responseType="arraybuffer")),C&&typeof C.headers=="object"&&!(C.headers instanceof f||i.Headers&&C.headers instanceof i.Headers)){var tt=[];Object.getOwnPropertyNames(C.headers).forEach(function(Ce){tt.push(d(Ce)),K.setRequestHeader(Ce,p(C.headers[Ce]))}),te.headers.forEach(function(Ce,er){tt.indexOf(er)===-1&&K.setRequestHeader(er,Ce)})}else te.headers.forEach(function(Ce,er){K.setRequestHeader(er,Ce)});te.signal&&(te.signal.addEventListener("abort",qe),K.onreadystatechange=function(){K.readyState===4&&te.signal.removeEventListener("abort",qe)}),K.send(typeof te._bodyInit>"u"?null:te._bodyInit)})}return D.polyfill=!0,i.fetch||(i.fetch=D,i.Headers=f,i.Request=A,i.Response=Y),r.Headers=f,r.Request=A,r.Response=Y,r.fetch=D,r}({})})(ui);ui.fetch.ponyfill=!0;delete ui.fetch.polyfill;var Hr=pi.fetch?pi:ui;Gt=Hr.fetch;Gt.default=Hr.fetch;Gt.fetch=Hr.fetch;Gt.Headers=Hr.Headers;Gt.Request=Hr.Request;Gt.Response=Hr.Response;fc.exports=Gt});if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=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,O){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(O)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let A=O.prototype.attributeChangedCallback,M=new Set(O.observedAttributes||[]);y(O,M,A);let z={elementClass:O,connectedCallback:O.prototype.connectedCallback,disconnectedCallback:O.prototype.disconnectedCallback,adoptedCallback:O.prototype.adoptedCallback,attributeChangedCallback:A,formAssociated:O.formAssociated,formAssociatedCallback:O.prototype.formAssociatedCallback,formDisabledCallback:O.prototype.formDisabledCallback,formResetCallback:O.prototype.formResetCallback,formStateRestoreCallback:O.prototype.formStateRestoreCallback,observedAttributes:M};this._definitionsByTag.set(w,z),this._definitionsByClass.set(O,z);let Y=r.call(i,w);Y||(Y=f(w),e.call(i,w,Y)),this===window.customElements&&(s.set(O,z),z.standInClass=Y);let G=this._awaitingUpgrade.get(w);if(G){this._awaitingUpgrade.delete(w);for(let m of G)a.delete(m),S(m,z,!0)}let D=this._whenDefinedPromises.get(w);return D!==void 0&&(D.resolve(O),this._whenDefinedPromises.delete(w)),O}upgrade(){_.push(this),i.upgrade.apply(i,arguments),_.pop()}get(w){return this._definitionsByTag.get(w)?.elementClass}_getDefinition(w){return this._definitionsByTag.get(w)}whenDefined(w){let O=this._getDefinition(w);if(O!==void 0)return Promise.resolve(O.elementClass);let A=this._whenDefinedPromises.get(w);return A===void 0&&(A={},A.promise=new Promise(M=>A.resolve=M),this._whenDefinedPromises.set(w,A)),A.promise}_upgradeWhenDefined(w,O,A){let M=this._awaitingUpgrade.get(O);M||this._awaitingUpgrade.set(O,M=new Set),A?M.add(w):M.delete(w)}};let d;window.HTMLElement=function(){let O=d;if(O)return d=void 0,O;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 O=Reflect.construct(t,[],A.standInClass),Object.setPrototypeOf(O,this.constructor.prototype),n.set(O,A),O},window.HTMLElement.prototype=t.prototype;let p=w=>w===document||w instanceof ShadowRoot,h=w=>{let O=w.getRootNode();if(!p(O)){let A=_[_.length-1];if(A instanceof CustomElementRegistry)return A;O=A.getRootNode(),p(O)||(O=l.get(O)?.getRootNode()||document)}return O.customElements},f=w=>class{static get formAssociated(){return!0}constructor(){let A=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(A,HTMLElement.prototype);let M=h(A)||window.customElements,z=M._getDefinition(w);return z?S(A,z):a.set(A,M),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,O,A)=>{if(O.size===0||A===void 0)return;let M=w.prototype.setAttribute;M&&(w.prototype.setAttribute=function(G,D){let m=G.toLowerCase();if(O.has(m)){let C=this.getAttribute(m);M.call(this,m,D),A.call(this,m,C,D)}else M.call(this,m,D)});let z=w.prototype.removeAttribute;z&&(w.prototype.removeAttribute=function(G){let D=G.toLowerCase();if(O.has(D)){let m=this.getAttribute(D);z.call(this,D),A.call(this,D,m,null)}else z.call(this,D)});let Y=w.prototype.toggleAttribute;Y&&(w.prototype.toggleAttribute=function(G,D){let m=G.toLowerCase();if(O.has(m)){let C=this.getAttribute(m);Y.call(this,m,D);let $=this.getAttribute(m);A.call(this,m,C,$)}else Y.call(this,m,D)})},v=w=>{let O=Object.getPrototypeOf(w);if(O!==window.HTMLElement)return O===t?Object.setPrototypeOf(w,window.HTMLElement):v(O)},S=(w,O,A=!1)=>{Object.setPrototypeOf(w,O.elementClass.prototype),n.set(w,O),d=w;try{new O.elementClass}catch{v(O.elementClass),new O.elementClass}O.attributeChangedCallback&&O.observedAttributes.forEach(M=>{w.hasAttribute(M)&&O.attributeChangedCallback.call(w,M,null,w.getAttribute(M))}),A&&O.connectedCallback&&w.isConnected&&O.connectedCallback.call(w)},E=Element.prototype.attachShadow;Element.prototype.attachShadow=function(w){let O=E.apply(this,arguments);return w.customElements&&(O.customElements=w.customElements),O};let _=[document],T=(w,O,A=void 0)=>{let M=(A?Object.getPrototypeOf(A):w.prototype)[O];w.prototype[O]=function(){_.push(this);let z=M.apply(A||this,arguments);return z!==void 0&&l.set(z,this),_.pop(),z}};T(ShadowRoot,"createElement",document),T(ShadowRoot,"importNode",document),T(Element,"insertAdjacentHTML");let L=(w,O)=>{let A=Object.getOwnPropertyDescriptor(w.prototype,O);Object.defineProperty(w.prototype,O,{...A,set(M){_.push(this),A.set.call(this,M),_.pop()}})};if(L(Element,"innerHTML"),L(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let w=new WeakMap,O=HTMLElement.prototype.attachInternals,A=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...G){let D=O.call(this,...G);return w.set(D,this),D},A.forEach(G=>{let D=window.ElementInternals.prototype,m=D[G];D[G]=function(...C){let $=w.get(this);if(n.get($).formAssociated===!0)return m?.call(this,...C);throw new DOMException(`Failed to execute ${m} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class M extends Array{constructor(D){super(...D),this._elements=D}get value(){return this._elements.find(D=>D.checked===!0)?.value||""}}class z{constructor(D){let m=new Map;D.forEach((C,$)=>{let q=C.getAttribute("name"),te=m.get(q)||[];this[+$]=C,te.push(C),m.set(q,te)}),this.length=D.length,m.forEach((C,$)=>{C&&(C.length===1?this[$]=C[0]:this[$]=new M(C))})}namedItem(D){return this[D]}}let Y=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let G=Y.get.call(this,[]),D=[];for(let m of G){let C=n.get(m);(!C||C.formAssociated===!0)&&D.push(m)}return new z(D)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,i,n)=>{if(i!==null)try{e.bind(window.customElements)(r,i,n)}catch(a){console.info(r,i,n,a)}}}var sn={};oe(sn,{CSSResult:()=>_r,LitElement:()=>Et,ReactiveElement:()=>ut,_$LE:()=>Qd,_$LH:()=>on,adoptStyles:()=>ro,css:()=>k,defaultConverter:()=>Tr,getCompatibleStyle:()=>Uo,html:()=>N,isServer:()=>Nf,mathml:()=>rn,noChange:()=>ke,notEqual:()=>io,nothing:()=>F,render:()=>nn,supportsAdoptingStyleSheets:()=>to,svg:()=>tn,unsafeCSS:()=>Ot});var Fo=globalThis,to=Fo.ShadowRoot&&(Fo.ShadyCSS===void 0||Fo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Zi=Symbol(),ks=new WeakMap,_r=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Zi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(to&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=ks.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&ks.set(r,e))}return e}toString(){return this.cssText}},Ot=t=>new _r(typeof t=="string"?t:t+"",void 0,Zi),k=(t,...e)=>{let r=t.length===1?t[0]:e.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)+t[a+1],t[0]);return new _r(r,t,Zi)},ro=(t,e)=>{if(to)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Fo.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},Uo=to?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return Ot(r)})(t):t;var{is:Wd,defineProperty:zd,getOwnPropertyDescriptor:Hd,getOwnPropertyNames:Vd,getOwnPropertySymbols:jd,getPrototypeOf:Gd}=Object,Wo=globalThis,Ds=Wo.trustedTypes,Kd=Ds?Ds.emptyScript:"",Zd=Wo.reactiveElementPolyfillSupport,oo=(t,e)=>t,Tr={toAttribute(t,e){switch(e){case Boolean:t=t?Kd:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},io=(t,e)=>!Wd(t,e),$s={attribute:!0,type:String,converter:Tr,reflect:!1,useDefault:!1,hasChanged:io};Symbol.metadata??=Symbol("metadata"),Wo.litPropertyMetadata??=new WeakMap;var ut=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=$s){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&zd(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:a}=Hd(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??$s}static _$Ei(){if(this.hasOwnProperty(oo("elementProperties")))return;let e=Gd(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(oo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(oo("properties"))){let r=this.properties,i=[...Vd(r),...jd(r)];for(let n of i)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(Uo(n))}else e!==void 0&&r.push(Uo(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ro(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$ET(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let a=(i.converter?.toAttribute!==void 0?i.converter:Tr).toAttribute(r,i.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);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:Tr;this._$Em=n,this[n]=s.fromAttribute(r,a.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(e,r,i){if(e!==void 0){let n=this.constructor,a=this[e];if(i??=n.getPropertyOptions(e),!((i.hasChanged??io)(a,r)||i.useDefault&&i.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,i))))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:i,reflect:n,wrapped:a},s){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??r??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(r=void 0),this._$AL.set(e,r)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,a]of i){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};ut.elementStyles=[],ut.shadowRootOptions={mode:"open"},ut[oo("elementProperties")]=new Map,ut[oo("finalized")]=new Map,Zd?.({ReactiveElement:ut}),(Wo.reactiveElementVersions??=[]).push("2.1.0");var Yi=globalThis,zo=Yi.trustedTypes,Ms=zo?zo.createPolicy("lit-html",{createHTML:t=>t}):void 0,Xi="$lit$",Ct=`lit$${Math.random().toFixed(9).slice(2)}$`,Qi="?"+Ct,qd=`<${Qi}>`,or=document,ao=()=>or.createComment(""),so=t=>t===null||typeof t!="object"&&typeof t!="function",Ji=Array.isArray,Hs=t=>Ji(t)||typeof t?.[Symbol.iterator]=="function",qi=`[
|
|
3
|
+
\f\r]`,no=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bs=/-->/g,Fs=/>/g,tr=RegExp(`>|${qi}(?:([^\\s"'>=/]+)(${qi}*=${qi}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Us=/'/g,Ws=/"/g,Vs=/^(?:script|style|textarea|title)$/i,en=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),N=en(1),tn=en(2),rn=en(3),ke=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),zs=new WeakMap,rr=or.createTreeWalker(or,129);function js(t,e){if(!Ji(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ms!==void 0?Ms.createHTML(e):e}var Gs=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=no;for(let l=0;l<r;l++){let d=t[l],p,h,f=-1,y=0;for(;y<d.length&&(s.lastIndex=y,h=s.exec(d),h!==null);)y=s.lastIndex,s===no?h[1]==="!--"?s=Bs:h[1]!==void 0?s=Fs:h[2]!==void 0?(Vs.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=tr):h[3]!==void 0&&(s=tr):s===tr?h[0]===">"?(s=n??no,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?tr:h[3]==='"'?Ws:Us):s===Ws||s===Us?s=tr:s===Bs||s===Fs?s=no:(s=tr,n=void 0);let v=s===tr&&t[l+1].startsWith("/>")?" ":"";a+=s===no?d+qd:f>=0?(i.push(p),d.slice(0,f)+Xi+d.slice(f)+Ct+v):d+Ct+(f===-2?l:v)}return[js(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},lo=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[p,h]=Gs(e,r);if(this.el=t.createElement(p,i),rr.currentNode=this.el.content,r===2||r===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=rr.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(Xi)){let y=h[s++],v=n.getAttribute(f).split(Ct),S=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:S[2],strings:v,ctor:S[1]==="."?Vo:S[1]==="?"?jo:S[1]==="@"?Go:nr}),n.removeAttribute(f)}else f.startsWith(Ct)&&(d.push({type:6,index:a}),n.removeAttribute(f));if(Vs.test(n.tagName)){let f=n.textContent.split(Ct),y=f.length-1;if(y>0){n.textContent=zo?zo.emptyScript:"";for(let v=0;v<y;v++)n.append(f[v],ao()),rr.nextNode(),d.push({type:2,index:++a});n.append(f[y],ao())}}}else if(n.nodeType===8)if(n.data===Qi)d.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(Ct,f+1))!==-1;)d.push({type:7,index:a}),f+=Ct.length-1}a++}}static createElement(e,r){let i=or.createElement("template");return i.innerHTML=e,i}};function ir(t,e,r=t,i){if(e===ke)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=so(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=ir(t,n._$AS(t,e.values),n,i)),e}var Ho=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??or).importNode(r,!0);rr.currentNode=n;let a=rr.nextNode(),s=0,l=0,d=i[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new Ir(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new Ko(a,this,e)),this._$AV.push(p),d=i[++l]}s!==d?.index&&(a=rr.nextNode(),s++)}return rr.currentNode=or,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Ir=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=ir(this,e,r),so(e)?e===F||e==null||e===""?(this._$AH!==F&&this._$AR(),this._$AH=F):e!==this._$AH&&e!==ke&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Hs(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==F&&so(this._$AH)?this._$AA.nextSibling.data=e:this.T(or.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=lo.createElement(js(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Ho(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=zs.get(e.strings);return r===void 0&&zs.set(e.strings,r=new lo(e)),r}k(e){Ji(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.O(ao()),this.O(ao()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},nr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=F,this._$AN=void 0,this.element=e,this.name=r,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=F}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=ir(this,e,r,0),s=!so(e)||e!==this._$AH&&e!==ke,s&&(this._$AH=e);else{let l=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=ir(this,l[i+d],r,d),p===ke&&(p=this._$AH[d]),s||=!so(p)||p!==this._$AH[d],p===F?e=F:e!==F&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!n&&this.j(e)}j(e){e===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Vo=class extends nr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===F?void 0:e}},jo=class extends nr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==F)}},Go=class extends nr{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=ir(this,e,r,0)??F)===ke)return;let i=this._$AH,n=e===F&&i!==F||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==F&&(i===F||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ko=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){ir(this,e)}},on={M:Xi,P:Ct,A:Qi,C:1,L:Gs,R:Ho,D:Hs,V:ir,I:Ir,H:nr,N:jo,U:Go,B:Vo,F:Ko},Yd=Yi.litHtmlPolyfillSupport;Yd?.(lo,Ir),(Yi.litHtmlVersions??=[]).push("3.3.0");var nn=(t,e,r)=>{let i=r?.renderBefore??e,n=i._$litPart$;if(n===void 0){let a=r?.renderBefore??null;i._$litPart$=n=new Ir(e.insertBefore(ao(),a),a,void 0,r??{})}return n._$AI(t),n};var an=globalThis,Et=class extends ut{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=nn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ke}};Et._$litElement$=!0,Et.finalized=!0,an.litElementHydrateSupport?.({LitElement:Et});var Xd=an.litElementPolyfillSupport;Xd?.({LitElement:Et});var Qd={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(an.litElementVersions??=[]).push("4.2.0");var Nf=!1;var dn={};oe(dn,{customElement:()=>Jd,eventOptions:()=>wt,property:()=>g,query:()=>X,queryAll:()=>ln,queryAssignedElements:()=>cn,queryAssignedNodes:()=>co,queryAsync:()=>rp,standardProperty:()=>Ks,state:()=>W});var Jd=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var ep={attribute:!0,type:String,converter:Tr,reflect:!1,hasChanged:io},Ks=(t=ep,e,r)=>{let{kind:i,metadata:n}=r,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),i==="setter"&&((t=Object.create(t)).wrapped=!0),a.set(r.name,t),i==="accessor"){let{name:s}=r;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,t)},init(l){return l!==void 0&&this.C(s,void 0,t,l),l}}}if(i==="setter"){let{name:s}=r;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,t)}}throw Error("Unsupported decorator location: "+i)};function g(t){return(e,r)=>typeof r=="object"?Ks(t,e,r):((i,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,i),s?Object.getOwnPropertyDescriptor(n,a):void 0})(t,e,r)}function W(t){return g({...t,state:!0,attribute:!1})}function wt(t){return(e,r)=>{let i=typeof e=="function"?e:e[r];Object.assign(i,t)}}var rt=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function X(t,e){return(r,i,n)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:l}=typeof i=="object"?r:n??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return rt(r,i,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return rt(r,i,{get(){return a(this)}})}}var tp;function ln(t){return(e,r)=>rt(e,r,{get(){return(this.renderRoot??(tp??=document.createDocumentFragment())).querySelectorAll(t)}})}function rp(t){return(e,r)=>rt(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function cn(t){return(e,r)=>{let{slot:i,selector:n}=t??{},a="slot"+(i?`[name=${i}]`:":not([name])");return rt(e,r,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(t)??[];return n===void 0?l:l.filter(d=>d.matches(n))}})}}function co(t){return(e,r)=>{let{slot:i}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return rt(e,r,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(t)??[]}})}}var pn={};oe(pn,{repeat:()=>po});var Mt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Bt=t=>(...e)=>({_$litDirective$:t,values:e}),ft=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:op}=on;var Zs=()=>document.createComment(""),Nr=(t,e,r)=>{let i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=i.insertBefore(Zs(),n),s=i.insertBefore(Zs(),n);r=new op(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,l=s!==t;if(l){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==s._$AU&&r._$AP(d)}if(a!==n||l){let d=r._$AA;for(;d!==a;){let p=d.nextSibling;i.insertBefore(d,n),d=p}}}return r},Ft=(t,e,r=t)=>(t._$AI(e,r),t),ip={},qs=(t,e=ip)=>t._$AH=e,Ys=t=>t._$AH,Zo=t=>{t._$AP?.(!1,!0);let e=t._$AA,r=t._$AB.nextSibling;for(;e!==r;){let i=e.nextSibling;e.remove(),e=i}};var Xs=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},po=Bt(class extends ft{constructor(t){if(super(t),t.type!==Mt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],a=[],s=0;for(let l of t)n[s]=i?i(l,s):s,a[s]=r(l,s),s++;return{values:a,keys:n}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,i]){let n=Ys(t),{values:a,keys:s}=this.dt(e,r,i);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],p,h,f=0,y=n.length-1,v=0,S=a.length-1;for(;f<=y&&v<=S;)if(n[f]===null)f++;else if(n[y]===null)y--;else if(l[f]===s[v])d[v]=Ft(n[f],a[v]),f++,v++;else if(l[y]===s[S])d[S]=Ft(n[y],a[S]),y--,S--;else if(l[f]===s[S])d[S]=Ft(n[f],a[S]),Nr(t,d[S+1],n[f]),f++,S--;else if(l[y]===s[v])d[v]=Ft(n[y],a[v]),Nr(t,n[f],n[y]),y--,v++;else if(p===void 0&&(p=Xs(s,v,S),h=Xs(l,f,y)),p.has(l[f]))if(p.has(l[y])){let E=h.get(s[v]),_=E!==void 0?n[E]:null;if(_===null){let T=Nr(t,n[f]);Ft(T,a[v]),d[v]=T}else d[v]=Ft(_,a[v]),Nr(t,n[f],_),n[E]=null;v++}else Zo(n[y]),y--;else Zo(n[f]),f++;for(;v<=S;){let E=Nr(t,d[S+1]);Ft(E,a[v]),d[v++]=E}for(;f<=y;){let E=n[f++];E!==null&&Zo(E)}return this.ut=s,qs(t,d),ke}});var un={};oe(un,{classMap:()=>_e});var _e=Bt(class extends ft{constructor(t){if(super(t),t.type!==Mt.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(e)}let r=t.element.classList;for(let i of this.st)i in e||(r.remove(i),this.st.delete(i));for(let i in e){let n=!!e[i];n===this.st.has(i)||this.nt?.has(i)||(n?(r.add(i),this.st.add(i)):(r.remove(i),this.st.delete(i)))}return ke}});var fn={};oe(fn,{styleMap:()=>ap});var Qs="important",np=" !"+Qs,ap=Bt(class extends ft{constructor(t){if(super(t),t.type!==Mt.ATTRIBUTE||t.name!=="style"||t.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(t){return Object.keys(t).reduce((e,r)=>{let i=t[r];return i==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(let i in e){let n=e[i];if(n!=null){this.ft.add(i);let a=typeof n=="string"&&n.endsWith(np);i.includes("-")||a?r.setProperty(i,a?n.slice(0,-11):n,a?Qs:""):r[i]=n}}return ke}});var mn={};oe(mn,{UnsafeHTMLDirective:()=>Pr,unsafeHTML:()=>hn});var Pr=class extends ft{constructor(e){if(super(e),this.it=F,e.type!==Mt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===F||e==null)return this._t=void 0,this.it=e;if(e===ke)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Pr.directiveName="unsafeHTML",Pr.resultType=1;var hn=Bt(Pr);var Sn={};oe(Sn,{CacheRegistry:()=>ht,ClearCacheEvent:()=>uo});var gn={};oe(gn,{CancelablePromise:()=>Lr,CanceledPromiseError:()=>ar,cancelable:()=>yn});var ar=class extends Error{constructor(e,r,i){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=i}},Lr=class extends Promise{constructor(e){super((r,i)=>e(n=>{this.isCanceled?i(new ar("Promise has been canceled",n)):r(n)},n=>{this.isCanceled?i(new ar("Promise has been canceled",void 0,n)):i(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},yn=t=>new Lr((e,r)=>t.then(e).catch(r));var vn={};oe(vn,{FtNotificationEvent:()=>Fe,PostResizeEvent:()=>xn,PreResizeEvent:()=>bn,WithEventBus:()=>sr,withEventBus:()=>Js});var Fe=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},bn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},xn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};function Js(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}var sr=class extends Js(Object){};var uo=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},ht=class extends sr{constructor(){super(...arguments),this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(e,r){this.loaders[e]=r,this.finalContent.delete(e)}registerFinal(e,r){this.loaders[e]=r,this.finalContent.add(e)}clearAll(e=!0){let r=[];for(let i in this.content)this.clear(i,!1)!=null&&r.push(i);e&&r.length>0&&this.dispatchEvent(new uo(r))}clear(e,r=!0){if(!this.finalContent.has(e))return this.forceClear(e),r&&this.dispatchEvent(new uo([e])),e}forceClear(e){this.clearClearTimeout(e),this.content[e]instanceof Lr&&this.content[e].cancel(),delete this.content[e]}clearClearTimeout(e){this.clearTimeouts[e]!=null&&(window.clearTimeout(this.clearTimeouts[e]),delete this.clearTimeouts[e])}set(e,r){this.forceClear(e),this.register(e,async()=>r),this.content[e]=r}setFinal(e,r){this.forceClear(e),this.registerFinal(e,async()=>r),this.content[e]=r}async get(e,r,i){if(this.content[e]===void 0){if(r=r??this.loaders[e],r==null)throw new Error("Unknown cache key "+e);let n=yn(r());return this.content[e]=n,n.then(a=>(this.content[e]=a,i!=null&&(this.clearClearTimeout(e),this.clearTimeouts[e]=window.setTimeout(()=>this.clear(e),i)),a))}if(this.content[e]instanceof Error)throw this.content[e];return this.content[e]}isResolvedValue(e){return e!=null&&!(e instanceof Promise)&&!(e instanceof Error)}getNow(e){if(this.isResolvedValue(this.content[e]))return this.content[e]}has(e){return this.content[e]!=null}resolvedKeys(){return Object.keys(this.content).filter(e=>this.isResolvedValue(this.content[e]))}resolvedValues(){return Object.values(this.content).filter(e=>this.isResolvedValue(e))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var On={};oe(On,{ClusteringHelper:()=>fo});var fo=class t{constructor(e,r,i,n){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=i,this.metadataDescriptors=n}static extractResultMetadata(e){var r,i,n,a,s;let l=((a=(i=(r=e.result)===null||r===void 0?void 0:r.map)!==null&&i!==void 0?i:(n=e.result)===null||n===void 0?void 0:n.document)!==null&&a!==void 0?a:(s=e.result)===null||s===void 0?void 0:s.topic).metadata;return e.key==null?t.flattenMetadata(l,e.hierarchicalValueTruncatingLevel,e.dateFormatter):t.flattenMetadata(l.find(d=>d.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,r,i){if(Array.isArray(e))return e.map(a=>t.flattenMetadata(a,r,i)).filter(a=>a!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(l.join(" > ")),r&&r>1&&l.length>=r?s.push(`... > ${l[l.length-1]}`):s.push(l.join(" > "))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>i?i(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,r,i="No value",n,a){var s,l;let d=t.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),p=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(f=>t.extractResultMetadata({result:f,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(f=>f??{key:e,label:p,value:void 0,displayValue:i}).filter(f=>f.value!=d?.value).filter((f,y,v)=>v.findIndex(S=>S.value===f.value)===y).map(f=>({result:this.findBestResultForMetadataValue(e,f.value),metadata:f})).sort((f,y)=>this.compareMetadata(f.metadata.value,y.metadata.value,e,r))}compareMetadata(e,r,i,n){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(i),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(r,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let i=this.allResults.filter(d=>{var p;return((p=t.extractResultMetadata({result:d,key:e}))===null||p===void 0?void 0:p.value)==r}),a=[...t.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],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(e,r){return t.extractResultMetadata({result:e}).filter(i=>r.some(n=>n.key===i.key&&n.value===i.value)).length}};var Cn={};oe(Cn,{Debouncer:()=>le});var le=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>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 Rn={};oe(Rn,{customElement:()=>Q,isNumber:()=>tl,jsonProperty:()=>mt,optionalNumberProperty:()=>pp});var An={};oe(An,{dateReviver:()=>sp,deepEqual:()=>ot,delay:()=>qo,eventPathContainsMatchingElement:()=>cp,flatDeep:()=>el,getComposedPathTo:()=>wn,hasChanged:()=>lr,last:()=>dp,minmax:()=>mo,parseDate:()=>Yo,unslotText:()=>Xo,waitFor:()=>ho,waitUntil:()=>En});var qo=t=>new Promise(e=>setTimeout(e,t));async function En(t,e=10,r=2e4){await ho(async()=>await t()||void 0,e,r)}async function ho(t,e=10,r=2e4){let i=await t(),n,a;for(n=a=performance.now();i==null&&(!r||a-n<r);)await qo(e),i=await t(),a=performance.now();if(i==null)throw new Error("Timeout exceeded");return i}function el(t,e){return t.flatMap(r=>[r,...el(e(r),e)])}function sp(...t){return function(e,r){return t.includes(e)?Yo(r):r}}function Yo(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,i,n)=>r+i+":"+n),new Date(t)}function lp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,i,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!ot(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!ot(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let a=s=>Object.keys(s).filter(l=>s[l]!=null);if(n=a(t),r=n.length,r!==a(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!ot(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ot(t,e){try{return lp(t,e)}catch{return!1}}function lr(t,e){return!ot(t,e)}function cp(t,e,r=window.document.body){if(e.length>0){let i=t.composedPath();for(let n of i){if(n===r)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function mo(t,e,r){return Math.min(Math.max(t,e),r)}function dp(t){return t[t.length-1]}function Xo(t){return t instanceof HTMLSlotElement?t.assignedNodes().map(e=>Xo(e)).join(""):t?.textContent||""}function wn(t){let e=[],r=i=>{i.stopPropagation(),e=i.composedPath()};return t.addEventListener("get-composed-path",r),t.dispatchEvent(new Event("get-composed-path",{composed:!0})),t.removeEventListener("get-composed-path",r),e}var Q=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function mt(t,e){let r=()=>JSON.parse(JSON.stringify(t));return g({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:lr,...e??{}})}function pp(t){return g({type:Object,converter:{fromAttribute:e=>{if(e!=null)return tl(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...t??{}})}function tl(t){return!isNaN(parseFloat(t))}var ra={};oe(ra,{designSystemVariables:()=>I});var ta={};oe(ta,{DesignSystemFamily:()=>cr,DesignSystemSize:()=>Rt,FtCssVariableFactory:()=>o,badge:()=>xp,banner:()=>bp,button:()=>b,chart:()=>Dp,checkbox:()=>fp,chip:()=>yp,chipChoice:()=>mp,collapsible:()=>Lp,comboboxMultiSelect:()=>Np,comboboxSingleSelect:()=>Ip,drawer:()=>wp,floatingMenu:()=>Tp,foundation:()=>c,link:()=>gp,modal:()=>Ep,notice:()=>Mp,notification:()=>Up,pageDesigner:()=>$p,pageFooter:()=>Op,pageHeader:()=>Sp,pageLayout:()=>Cp,popover:()=>Pp,radio:()=>Fp,reorderableList:()=>zp,resolveFamilyClass:()=>Jn,resolveSizeClass:()=>ea,semantic:()=>u,setVariable:()=>x,switch_:()=>kp,table:()=>hp,tabs:()=>Ap,textArea:()=>_p,textInput:()=>Rp,titleBreadcrumb:()=>vp,toggle:()=>Bp,tooltip:()=>Wp,typographies:()=>yo,typographyBody1Medium:()=>Ln,typographyBody1Regular:()=>Pn,typographyBody1Semibold:()=>kn,typographyBody2Medium:()=>$n,typographyBody2MediumUnderline:()=>rl,typographyBody2Regular:()=>Dn,typographyBody2Semibold:()=>Mn,typographyCaption1Bold:()=>Gn,typographyCaption1Medium:()=>Vn,typographyCaption1Semibold:()=>jn,typographyCaption2Bold:()=>qn,typographyCaption2Medium:()=>Kn,typographyCaption2Semibold:()=>Zn,typographyCaption3Bold:()=>Qn,typographyCaption3Medium:()=>Yn,typographyCaption3Semibold:()=>Xn,typographyDisplay:()=>_n,typographyLabel1Bold:()=>Un,typographyLabel1Medium:()=>Bn,typographyLabel1Semibold:()=>Fn,typographyLabel2Bold:()=>Hn,typographyLabel2Medium:()=>Wn,typographyLabel2Semibold:()=>zn,typographyTitle1:()=>Tn,typographyTitle2:()=>In,typographyTitle3:()=>Nn,typographyVariants:()=>up});var At=t=>typeof t=="string"?Ot(t):t,o=class{static create(e,r,i,n){let a=l=>At(l??n),s=k`var(${At(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>k`var(${At(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=l=>i.get(l??n),s=k`var(${At(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>k`var(${At(e)}, ${a(l)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):At(a??e.lastResortDefaultValue()),n=k`var(${At(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.get=a=>k`var(${At(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function x(t,e){return At(`${t.name}: ${e}`)}var c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ft-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},_n={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")},Tn={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")},In={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")},Nn={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")},Pn={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")},Ln={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")},kn={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")},Dn={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")},$n={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")},rl={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")},Mn={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")},Bn={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")},Fn={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")},Un={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")},Wn={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")},zn={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")},Hn={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")},Vn={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")},jn={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")},Gn={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")},Kn={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")},Zn={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")},qn={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")},Yn={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")},Xn={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")},Qn={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")},yo={display:_n,"title-1":Tn,"title-2":In,"title-3":Nn,"body-1-regular":Pn,"body-1-medium":Ln,"body-1-semibold":kn,"body-2-regular":Dn,"body-2-medium":$n,"body-2-medium-underline":rl,"body-2-semibold":Mn,"label-1-medium":Bn,"label-1-semibold":Fn,"label-1-bold":Un,"label-2-medium":Wn,"label-2-semibold":zn,"label-2-bold":Hn,"caption-1-medium":Vn,"caption-1-semibold":jn,"caption-1-bold":Gn,"caption-2-medium":Kn,"caption-2-semibold":Zn,"caption-2-bold":qn,"caption-3-medium":Yn,"caption-3-semibold":Xn,"caption-3-bold":Qn},up=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var u={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
5
|
+
Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:o.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)};var 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 fp={iconSize:o.extend("--ft-checkbox-icon-size","",c.iconSize2),boxSize:o.create("--ft-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ft-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ft-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ft-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ft-checkbox-horizontal-gap","",c.spacing3),leftPadding:o.extend("--ft-checkbox-left-padding","",c.spacing2)};var hp={headerRowBorderWidth:o.create("--ft-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ft-table-header-row-background-color","",u.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ft-table-header-row-border-color","",u.borderGlobalPrimary),headerRowColor:o.extend("--ft-table-header-row-color","",u.contentGlobalPrimary),dataRowBorderWidth:o.create("--ft-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ft-table-data-row-background-color","",u.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ft-table-data-row-border-color","",u.borderGlobalSubtle),dataRowColor:o.extend("--ft-table-data-row-color","",u.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ft-table-data-row-default-hover-background-color","",c.colorGray20),dataRowDefaultHoverStateLayerOpacity:o.extend("--ft-table-data-row-default-hover-state-layer-opacity","",c.opacity8),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverStateLayerOpacity:o.extend("--ft-table-data-row-selectable-unselected-hover-state-layer-opacity","",c.opacity8),dataRowSelectableSelectedDefaultStateLayerOpacity:o.extend("--ft-table-data-row-selectable-selected-default-state-layer-opacity","",c.opacity8),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ft-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverStateLayerOpacity:o.extend("--ft-table-data-row-selectable-selected-hover-state-layer-opacity","",c.opacity16),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ft-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ft-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ft-table-data-row-selectable-selected-color","",u.contentActionPrimary),dataRowClickableHoverStateLayerOpacity:o.extend("--ft-table-data-row-clickable-hover-state-layer-opacity","",c.opacity12),dataRowClickableHoverBackgroundColor:o.extend("--ft-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusStateLayerOpacity:o.extend("--ft-table-data-row-clickable-focus-state-layer-opacity","",c.opacity12),dataRowClickableFocusBorderColor:o.extend("--ft-table-data-row-clickable-focus-border-color","",u.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ft-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveStateLayerOpacity:o.extend("--ft-table-data-row-clickable-active-state-layer-opacity","",c.opacity24),dataRowClickableActiveBackgroundColor:o.extend("--ft-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:o.extend("--ft-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:o.extend("--ft-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:o.extend("--ft-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:o.extend("--ft-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:o.extend("--ft-table-data-cell-horizontal-padding","",c.spacing3)};var mp={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 yp={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 gp={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 bp={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 xp={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 vp={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 Sp={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 Op={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 Cp={contentHorizontalPadding:o.extend("--ft-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:o.extend("--ft-page-layout-content-vertical-padding","",c.spacing6)};var Ep={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 wp={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 Ap={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 Rp={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 _p={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 Tp={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 Ip={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 Np={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 Pp={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 Lp={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 kp={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 Dp={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)};var $p={color1IconColor:o.extend("--ft-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:o.extend("--ft-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:o.extend("--ft-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:o.extend("--ft-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:o.extend("--ft-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:o.extend("--ft-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:o.extend("--ft-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:o.extend("--ft-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:o.extend("--ft-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:o.extend("--ft-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:o.extend("--ft-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:o.extend("--ft-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:o.extend("--ft-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:o.extend("--ft-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:o.extend("--ft-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:o.extend("--ft-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)};var Mp={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 Bp={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 Fp={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 Up={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 Wp={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 zp={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 cr;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(cr||(cr={}));var Rt;(function(t){t.large="large",t.medium="medium",t.small="small"})(Rt||(Rt={}));function Jn(t){return`ftds--family-${t}`}function ea(t){return`ftds--size-${t}`}var I={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:o.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:o.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:o.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:o.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:o.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:o.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:o.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:o.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:o.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:o.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var va={};oe(va,{computeFlipOffsetPosition:()=>xa,computeOffsetPosition:()=>ba});var il=["top","right","bottom","left"],ol=["start","end"],oa=il.reduce((t,e)=>t.concat(e,e+"-"+ol[0],e+"-"+ol[1]),[]),Qo=Math.min,Ut=Math.max;var Hp={left:"right",right:"left",bottom:"top",top:"bottom"},Vp={start:"end",end:"start"};function ia(t,e,r){return Ut(t,Qo(e,r))}function dr(t,e){return typeof t=="function"?t(e):t}function it(t){return t.split("-")[0]}function nt(t){return t.split("-")[1]}function na(t){return t==="x"?"y":"x"}function aa(t){return t==="y"?"height":"width"}function yt(t){return["top","bottom"].includes(it(t))?"y":"x"}function sa(t){return na(yt(t))}function la(t,e,r){r===void 0&&(r=!1);let i=nt(t),n=sa(t),a=aa(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=bo(s)),[s,bo(s)]}function nl(t){let e=bo(t);return[go(t),e,go(e)]}function go(t){return t.replace(/start|end/g,e=>Vp[e])}function jp(t,e,r){let i=["left","right"],n=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return r?e?n:i:e?i:n;case"left":case"right":return e?a:s;default:return[]}}function al(t,e,r,i){let n=nt(t),a=jp(it(t),r==="start",i);return n&&(a=a.map(s=>s+"-"+n),e&&(a=a.concat(a.map(go)))),a}function bo(t){return t.replace(/left|right|bottom|top/g,e=>Hp[e])}function Gp(t){return{top:0,right:0,bottom:0,left:0,...t}}function sl(t){return typeof t!="number"?Gp(t):{top:t,right:t,bottom:t,left:t}}function pr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function ll(t,e,r){let{reference:i,floating:n}=t,a=yt(e),s=sa(e),l=aa(s),d=it(e),p=a==="y",h=i.x+i.width/2-n.width/2,f=i.y+i.height/2-n.height/2,y=i[l]/2-n[l]/2,v;switch(d){case"top":v={x:h,y:i.y-n.height};break;case"bottom":v={x:h,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:f};break;case"left":v={x:i.x-n.width,y:f};break;default:v={x:i.x,y:i.y}}switch(nt(e)){case"start":v[s]-=y*(r&&p?-1:1);break;case"end":v[s]+=y*(r&&p?-1:1);break}return v}var cl=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:h,y:f}=ll(p,i,d),y=i,v={},S=0;for(let E=0;E<l.length;E++){let{name:_,fn:T}=l[E],{x:L,y:w,data:O,reset:A}=await T({x:h,y:f,initialPlacement:i,placement:y,strategy:n,middlewareData:v,rects:p,platform:s,elements:{reference:t,floating:e}});h=L??h,f=w??f,v={...v,[_]:{...v[_],...O}},A&&S<=50&&(S++,typeof A=="object"&&(A.placement&&(y=A.placement),A.rects&&(p=A.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):A.rects),{x:h,y:f}=ll(p,y,d)),E=-1)}return{x:h,y:f,placement:y,strategy:n,middlewareData:v}};async function xo(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:l,strategy:d}=t,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:y=!1,padding:v=0}=dr(e,t),S=sl(v),_=l[y?f==="floating"?"reference":"floating":f],T=pr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(_)))==null||r?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:p,rootBoundary:h,strategy:d})),L=f==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),O=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=pr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:L,offsetParent:w,strategy:d}):L);return{top:(T.top-A.top+S.top)/O.y,bottom:(A.bottom-T.bottom+S.bottom)/O.y,left:(T.left-A.left+S.left)/O.x,right:(A.right-T.right+S.right)/O.x}}function Kp(t,e,r){return(t?[...r.filter(n=>nt(n)===t),...r.filter(n=>nt(n)!==t)]:r.filter(n=>it(n)===n)).filter(n=>t?nt(n)===t||(e?go(n)!==n:!1):!0)}var ca=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:p}=e,{crossAxis:h=!1,alignment:f,allowedPlacements:y=oa,autoAlignment:v=!0,...S}=dr(t,e),E=f!==void 0||y===oa?Kp(f||null,v,y):y,_=await xo(e,S),T=((r=s.autoPlacement)==null?void 0:r.index)||0,L=E[T];if(L==null)return{};let w=la(L,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(l!==L)return{reset:{placement:E[0]}};let O=[_[it(L)],_[w[0]],_[w[1]]],A=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:L,overflows:O}],M=E[T+1];if(M)return{data:{index:T+1,overflows:A},reset:{placement:M}};let z=A.map(D=>{let m=nt(D.placement);return[D.placement,m&&h?D.overflows.slice(0,2).reduce((C,$)=>C+$,0):D.overflows[0],D.overflows]}).sort((D,m)=>D[1]-m[1]),G=((n=z.filter(D=>D[2].slice(0,nt(D[0])?2:3).every(m=>m<=0))[0])==null?void 0:n[0])||z[0][0];return G!==l?{data:{index:T+1,overflows:A},reset:{placement:G}}:{}}}},da=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,i;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:p}=e,{mainAxis:h=!0,crossAxis:f=!0,fallbackPlacements:y,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:E=!0,..._}=dr(t,e);if((r=a.arrow)!=null&&r.alignmentOffset)return{};let T=it(n),L=yt(l),w=it(l)===l,O=await(d.isRTL==null?void 0:d.isRTL(p.floating)),A=y||(w||!E?[bo(l)]:nl(l)),M=S!=="none";!y&&M&&A.push(...al(l,E,S,O));let z=[l,...A],Y=await xo(e,_),G=[],D=((i=a.flip)==null?void 0:i.overflows)||[];if(h&&G.push(Y[T]),f){let q=la(n,s,O);G.push(Y[q[0]],Y[q[1]])}if(D=[...D,{placement:n,overflows:G}],!G.every(q=>q<=0)){var m,C;let q=(((m=a.flip)==null?void 0:m.index)||0)+1,te=z[q];if(te&&(!(f==="alignment"?L!==yt(te):!1)||D.every(Be=>Be.overflows[0]>0&&yt(Be.placement)===L)))return{data:{index:q,overflows:D},reset:{placement:te}};let K=(C=D.filter(qe=>qe.overflows[0]<=0).sort((qe,Be)=>qe.overflows[1]-Be.overflows[1])[0])==null?void 0:C.placement;if(!K)switch(v){case"bestFit":{var $;let qe=($=D.filter(Be=>{if(M){let tt=yt(Be.placement);return tt===L||tt==="y"}return!0}).map(Be=>[Be.placement,Be.overflows.filter(tt=>tt>0).reduce((tt,Ce)=>tt+Ce,0)]).sort((Be,tt)=>Be[1]-tt[1])[0])==null?void 0:$[0];qe&&(K=qe);break}case"initialPlacement":K=l;break}if(n!==K)return{reset:{placement:K}}}return{}}}};async function Zp(t,e){let{placement:r,platform:i,elements:n}=t,a=await(i.isRTL==null?void 0:i.isRTL(n.floating)),s=it(r),l=nt(r),d=yt(r)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,f=dr(e,t),{mainAxis:y,crossAxis:v,alignmentAxis:S}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof S=="number"&&(v=l==="end"?S*-1:S),d?{x:v*h,y:y*p}:{x:y*p,y:v*h}}var pa=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,i;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await Zp(e,t);return s===((r=l.offset)==null?void 0:r.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},ua=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:_=>{let{x:T,y:L}=_;return{x:T,y:L}}},...d}=dr(t,e),p={x:r,y:i},h=await xo(e,d),f=yt(it(n)),y=na(f),v=p[y],S=p[f];if(a){let _=y==="y"?"top":"left",T=y==="y"?"bottom":"right",L=v+h[_],w=v-h[T];v=ia(L,v,w)}if(s){let _=f==="y"?"top":"left",T=f==="y"?"bottom":"right",L=S+h[_],w=S-h[T];S=ia(L,S,w)}let E=l.fn({...e,[y]:v,[f]:S});return{...E,data:{x:E.x-r,y:E.y-i,enabled:{[y]:a,[f]:s}}}}}};var fa=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,i;let{placement:n,rects:a,platform:s,elements:l}=e,{apply:d=()=>{},...p}=dr(t,e),h=await xo(e,p),f=it(n),y=nt(n),v=yt(n)==="y",{width:S,height:E}=a.floating,_,T;f==="top"||f==="bottom"?(_=f,T=y===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(T=f,_=y==="end"?"top":"bottom");let L=E-h.top-h.bottom,w=S-h.left-h.right,O=Qo(E-h[_],L),A=Qo(S-h[T],w),M=!e.middlewareData.shift,z=O,Y=A;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(Y=w),(i=e.middlewareData.shift)!=null&&i.enabled.y&&(z=L),M&&!y){let D=Ut(h.left,0),m=Ut(h.right,0),C=Ut(h.top,0),$=Ut(h.bottom,0);v?Y=S-2*(D!==0||m!==0?D+m:Ut(h.left,h.right)):z=E-2*(C!==0||$!==0?C+$:Ut(h.top,h.bottom))}await d({...e,availableWidth:Y,availableHeight:z});let G=await s.getDimensions(l.floating);return S!==G.width||E!==G.height?{reset:{rects:!0}}:{}}}};var ha=Math.min,kr=Math.max,vo=Math.round;var _t=t=>({x:t,y:t});function Tt(t){return pl(t)?(t.nodeName||"").toLowerCase():"#document"}function He(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function It(t){var e;return(e=(pl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function pl(t){return t instanceof Node||t instanceof He(t).Node}function gt(t){return t instanceof Element||t instanceof He(t).Element}function at(t){return t instanceof HTMLElement||t instanceof He(t).HTMLElement}function dl(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof He(t).ShadowRoot}function Dr(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Ke(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function ul(t){return["table","td","th"].includes(Tt(t))}function ei(t){let e=ti(),r=Ke(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function fl(t){let e=ur(t);for(;at(e)&&!So(e);){if(ei(e))return e;e=ur(e)}return null}function ti(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function So(t){return["html","body","#document"].includes(Tt(t))}function Ke(t){return He(t).getComputedStyle(t)}function Oo(t){return gt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ur(t){if(Tt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||dl(t)&&t.host||It(t);return dl(e)?e.host:e}function hl(t){let e=ur(t);return So(e)?t.ownerDocument?t.ownerDocument.body:t.body:at(e)&&Dr(e)?e:hl(e)}function Jo(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=hl(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=He(n);return a?e.concat(s,s.visualViewport||[],Dr(n)?n:[],s.frameElement&&r?Jo(s.frameElement):[]):e.concat(n,Jo(n,[],r))}function gl(t){let e=Ke(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=at(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,l=vo(r)!==a||vo(i)!==s;return l&&(r=a,i=s),{width:r,height:i,$:l}}function bl(t){return gt(t)?t:t.contextElement}function $r(t){let e=bl(t);if(!at(e))return _t(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=gl(e),s=(a?vo(r.width):r.width)/i,l=(a?vo(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var qp=_t(0);function xl(t){let e=He(t);return!ti()||!e.visualViewport?qp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Yp(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==He(t)?!1:e}function Co(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=bl(t),s=_t(1);e&&(i?gt(i)&&(s=$r(i)):s=$r(t));let l=Yp(a,r,i)?xl(a):_t(0),d=(n.left+l.x)/s.x,p=(n.top+l.y)/s.y,h=n.width/s.x,f=n.height/s.y;if(a){let y=He(a),v=i&>(i)?He(i):i,S=y.frameElement;for(;S&&i&&v!==y;){let E=$r(S),_=S.getBoundingClientRect(),T=Ke(S),L=_.left+(S.clientLeft+parseFloat(T.paddingLeft))*E.x,w=_.top+(S.clientTop+parseFloat(T.paddingTop))*E.y;d*=E.x,p*=E.y,h*=E.x,f*=E.y,d+=L,p+=w,S=He(S).frameElement}}return pr({width:h,height:f,x:d,y:p})}function Xp(t){let{rect:e,offsetParent:r,strategy:i}=t,n=at(r),a=It(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},l=_t(1),d=_t(0);if((n||!n&&i!=="fixed")&&((Tt(r)!=="body"||Dr(a))&&(s=Oo(r)),at(r))){let p=Co(r);l=$r(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+d.x,y:e.y*l.y-s.scrollTop*l.y+d.y}}function Qp(t){return Array.from(t.getClientRects())}function vl(t){return Co(It(t)).left+Oo(t).scrollLeft}function Jp(t){let e=It(t),r=Oo(t),i=t.ownerDocument.body,n=kr(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=kr(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+vl(t),l=-r.scrollTop;return Ke(i).direction==="rtl"&&(s+=kr(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:l}}function eu(t,e){let r=He(t),i=It(t),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let p=ti();(!p||p&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}return{width:a,height:s,x:l,y:d}}function tu(t,e){let r=Co(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=at(t)?$r(t):_t(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,d=n*a.x,p=i*a.y;return{width:s,height:l,x:d,y:p}}function ml(t,e,r){let i;if(e==="viewport")i=eu(t,r);else if(e==="document")i=Jp(It(t));else if(gt(e))i=tu(e,r);else{let n=xl(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return pr(i)}function Sl(t,e){let r=ur(t);return r===e||!gt(r)||So(r)?!1:Ke(r).position==="fixed"||Sl(r,e)}function ru(t,e){let r=e.get(t);if(r)return r;let i=Jo(t,[],!1).filter(l=>gt(l)&&Tt(l)!=="body"),n=null,a=Ke(t).position==="fixed",s=a?ur(t):t;for(;gt(s)&&!So(s);){let l=Ke(s),d=ei(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Dr(s)&&!d&&Sl(t,s))?i=i.filter(h=>h!==s):n=l,s=ur(s)}return e.set(t,i),i}function ou(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?ru(e,this._c):[].concat(r),i],l=s[0],d=s.reduce((p,h)=>{let f=ml(e,h,n);return p.top=kr(f.top,p.top),p.right=ha(f.right,p.right),p.bottom=ha(f.bottom,p.bottom),p.left=kr(f.left,p.left),p},ml(e,l,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function iu(t){return gl(t)}function nu(t,e,r){let i=at(e),n=It(e),a=r==="fixed",s=Co(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=_t(0);if(i||!i&&!a)if((Tt(e)!=="body"||Dr(n))&&(l=Oo(e)),i){let p=Co(e,!0,a,e);d.x=p.x+e.clientLeft,d.y=p.y+e.clientTop}else n&&(d.x=vl(n));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function yl(t,e){return!at(t)||Ke(t).position==="fixed"?null:e?e(t):t.offsetParent}function Ol(t,e){let r=He(t);if(!at(t))return r;let i=yl(t,e);for(;i&&ul(i)&&Ke(i).position==="static";)i=yl(i,e);return i&&(Tt(i)==="html"||Tt(i)==="body"&&Ke(i).position==="static"&&!ei(i))?r:i||fl(t)||r}var au=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||Ol,a=this.getDimensions;return{reference:nu(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function su(t){return Ke(t).direction==="rtl"}var Mr={convertOffsetParentRelativeRectToViewportRelativeRect:Xp,getDocumentElement:It,getClippingRect:ou,getOffsetParent:Ol,getElementRects:au,getClientRects:Qp,getDimensions:iu,getScale:$r,isElement:gt,isRTL:su};var ma=(t,e,r)=>{let i=new Map,n={platform:Mr,...r},a={...n.platform,_c:i};return cl(t,e,{...n,platform:a})};function ga(t){return lu(t)}function ya(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function lu(t){for(let e=t;e;e=ya(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ya(t);e;e=ya(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function ba(t,e,r){return ma(t,e,{platform:{...Mr,getOffsetParent:i=>Mr.getOffsetParent(i,ga)},middleware:[ua({crossAxis:!0}),ca({allowedPlacements:[r]})]})}async function xa(t,e,r,i,n,a,s=4){return ma(t,e,{placement:r,strategy:n,platform:{...Mr,getOffsetParent:l=>Mr.getOffsetParent(l,ga)},middleware:[pa(s),da({fallbackPlacements:i}),fa({apply({availableHeight:l,elements:d}){a?d.floating.style.maxHeight=`min(${Math.max(0,l)}px, var(${a}))`:d.floating.style.maxHeight=`${Math.max(0,l)}px`}})]})}var Ea={};oe(Ea,{FtdsBase:()=>Ca,toFtdsBase:()=>oi});var Oa={};oe(Oa,{FtLitElement:()=>V});var Sa={};oe(Sa,{ScopedRegistryLitElement:()=>Eo});var Eo=class extends Et{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return ro(i,e.elementStyles),i}};var ri=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Al,Cl=Symbol("constructorPrototype"),El=Symbol("constructorName"),Rl=Symbol("exportpartsDebouncer"),wl=Symbol("dynamicDependenciesLoaded"),V=class extends Eo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Al]=new le(5),this[El]=this.constructor.name,this[Cl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[El]&&Object.setPrototypeOf(this,this[Cl])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[wl]||(e[wl]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Rl].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var r,i,n,a,s,l;let d=y=>y!=null&&y.trim().length>0,p=e.filter(d).map(y=>y.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let y of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.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=>h.add(E))}if(h.size===0){this.removeAttribute("exportparts");return}let f=[...h.values()].flatMap(y=>p.map(v=>`${y}:${v}--${y}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};Al=Rl;ri([g()],V.prototype,"exportpartsPrefix",void 0);ri([mt([])],V.prototype,"exportpartsPrefixes",void 0);ri([g()],V.prototype,"customStylesheet",void 0);ri([W()],V.prototype,"useAdoptedStyleSheets",void 0);var _l=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};function oi(t){class e extends t{constructor(){super(...arguments),this.size=Rt.medium,this.family=cr.neutral}getDesignSystemBaseClasses(){return{[Jn(this.family)]:!0,[ea(this.size)]:!0}}}return _l([g()],e.prototype,"size",void 0),_l([g()],e.prototype,"family",void 0),e}var Ca=class extends oi(V){};var Tl={};var Ra={};oe(Ra,{highlightHtml:()=>Aa,highlightHtmlColorCssVariable:()=>Il,highlightHtmlStyles:()=>du});var fr=class t{constructor(e,r=!0,i=[],n=5e3){this.ctx=e,this.iframes=r,this.exclude=i,this.iframesTimeout=n}static matches(e,r){let i=typeof r=="string"?[r]:r,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return i.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,r=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(i=>{let n=r.filter(a=>a.contains(i)).length>0;r.indexOf(i)===-1&&!n&&r.push(i)}),r}getIframeContents(e,r,i=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{i()}n&&r(n)}isIframeBlank(e){let r="about:blank",i=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&i!==r&&i}observeIframeLoad(e,r,i){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,i))}catch{i()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,i){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,i):this.getIframeContents(e,r,i):this.observeIframeLoad(e,r,i)}catch{i()}}waitForIframes(e,r){let i=0;this.forEachIframe(e,()=>!0,n=>{i++,this.waitForIframes(n.querySelector("html"),()=>{--i||r()})},n=>{n||r()})}forEachIframe(e,r,i,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(p=>{t.matches(p,this.exclude)?d():this.onIframeReady(p,h=>{r(p)&&(l++,i(h)),d()},d)})}createIterator(e,r,i){return document.createNodeIterator(e,r,i,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,i){let n=e.compareDocumentPosition(i),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(r!==null){let s=r.compareDocumentPosition(i),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),i;return r===null?i=e.nextNode():i=e.nextNode()&&e.nextNode(),{prevNode:r,node:i}}checkIframeFilter(e,r,i,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===i&&(a=d,s=l.handled)}),this.compareNodeIframe(e,r,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(e,r,i,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,i,n)})})}iterateThroughNodes(e,r,i,n,a){let s=this.createIterator(r,e,n),l=[],d=[],p,h,f=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;f();)this.iframes&&this.forEachIframe(r,y=>this.checkIframeFilter(p,h,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(e,v=>d.push(v),n)}),d.push(p);d.forEach(y=>{i(y)}),this.iframes&&this.handleOpenIframes(l,e,i,n),a()}forEachNode(e,r,i,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,r,i,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}};var wo=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new fr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let i=this.opt.log;this.opt.debug&&typeof i=="object"&&typeof i[r]=="function"&&i[r](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let r=this.opt.synonyms,i=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${i}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,i,n)=>{let a=n.charAt(i+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],i=this.opt.ignorePunctuation;return Array.isArray(i)&&i.length&&r.push(this.escapeStr(i.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=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 e.split("").forEach(a=>{i.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\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`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(i=>{this.opt.separateWordSearch?i.split(" ").forEach(n=>{n.trim()&&r.indexOf(n)===-1&&r.push(n)}):i.trim()&&r.indexOf(i)===-1&&r.push(i)}),{keywords:r.sort((i,n)=>n.length-i.length),length:r.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let r=[],i=0;return e.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,r.push(n),i=s)}),r}callNoMatchOnInvalidRanges(e,r){let i,n,a=!1;return e&&typeof e.start<"u"?(i=parseInt(e.start,10),n=i+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-r>0&&n-i>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:i,end:n,valid:a}}checkWhitespaceRanges(e,r,i){let n,a=!0,s=i.length,l=r-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,n=d+parseInt(e.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(e)}`),this.opt.noMatch(e)):i.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:a}}getTextNodes(e){let r="",i=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{i.push({start:r.length,end:(r+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:i})})}matchesExclude(e){return fr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,i){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(i-r),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,r,i,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>r){if(!n(s.node))return!1;let p=r-s.start,h=(i>s.end?s.end:i)-s.start,f=e.value.substr(0,s.start),y=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,h),e.value=f+y,e.nodes.forEach((v,S)=>{S>=l&&(e.nodes[S].start>0&&S!==l&&(e.nodes[S].start-=h),e.nodes[S].end-=h)}),i-=h,a(s.node.previousSibling,s.start),i>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let p;for(;(p=e.exec(d.textContent))!==null&&p[s]!=="";){if(!i(p[s],d))continue;let h=p.index;if(s!==0)for(let f=1;f<s;f++)h+=p[f].length;d=this.wrapRangeInTextNode(d,h,h+p[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,i,n,a){let s=r===0?0:r+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let f=1;f<s;f++)p+=d[f].length;let h=p+d[s].length;this.wrapRangeInMappedTextNode(l,p,h,f=>i(d[s],f),(f,y)=>{e.lastIndex=y,n(f)})}a()})}wrapRangeFromIndex(e,r,i,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:p,end:h,valid:f}=this.checkWhitespaceRanges(l,s,a.value);f&&this.wrapRangeInMappedTextNode(a,p,h,y=>r(y,l,a.value.substring(p,h),d),y=>{i(y,l)})}),n()})}unwrapMatches(e){let r=e.parentNode,i=document.createDocumentFragment();for(;e.firstChild;)i.appendChild(e.removeChild(e.firstChild));r.replaceChild(i,e),this.ie?this.normalizeTextNode(r):r.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,r){this.opt=r,this.log(`Searching with expression "${e}"`);let i=0,n="wrapMatches",a=s=>{i++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,i),a,()=>{i===0&&this.opt.noMatch(e),this.opt.done(i)})}mark(e,r){this.opt=r;let i=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=p=>{let h=new RegExp(this.createRegExp(p),`gm${l}`),f=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(y,v)=>this.opt.filter(v,p,i,f),y=>{f++,i++,this.opt.each(y)},()=>{f===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(e,r){this.opt=r;let i=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,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(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,i=>{this.unwrapMatches(i)},i=>{let n=fr.matches(i,r),a=this.matchesExclude(i);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function wa(t){let e=new wo(t);return this.mark=(r,i)=>(e.mark(r,i),this),this.markRegExp=(r,i)=>(e.markRegExp(r,i),this),this.markRanges=(r,i)=>(e.markRanges(r,i),this),this.unmark=r=>(e.unmark(r),this),this}var cu=wa,Il=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),du=k`
|
|
8
6
|
.highlight-html-match {
|
|
9
|
-
background: ${
|
|
7
|
+
background: ${Il};
|
|
10
8
|
}
|
|
11
|
-
`;function
|
|
9
|
+
`;function Aa(t,e,r){var i,n;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new cu(t);if(s.unmark(),e&&e.trim()){let l={className:(i=r?.className)!==null&&i!==void 0?i:"highlight-html-match"};r?.attributes!=null&&(l.each=p=>{for(let h in r.attributes)p.setAttribute(h,r.attributes[h])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...l,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var Ta={};oe(Ta,{noTextInputDefaultClearButton:()=>_a,noTextSelect:()=>hr,safariEllipsisFix:()=>mr,wordWrap:()=>pu});var hr=k`
|
|
12
10
|
.ft-no-text-select {
|
|
13
11
|
-webkit-touch-callout: none;
|
|
14
12
|
-webkit-user-select: none;
|
|
@@ -17,7 +15,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
17
15
|
-ms-user-select: none;
|
|
18
16
|
user-select: none;
|
|
19
17
|
}
|
|
20
|
-
`,
|
|
18
|
+
`,pu=k`
|
|
21
19
|
.ft-word-wrap {
|
|
22
20
|
white-space: normal;
|
|
23
21
|
word-wrap: break-word;
|
|
@@ -29,7 +27,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
29
27
|
-webkit-hyphens: auto;
|
|
30
28
|
hyphens: auto
|
|
31
29
|
}
|
|
32
|
-
`,
|
|
30
|
+
`,mr=k`
|
|
33
31
|
.ft-safari-ellipsis-fix {
|
|
34
32
|
margin-right: 0;
|
|
35
33
|
|
|
@@ -40,14 +38,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
40
38
|
display: inline-block;
|
|
41
39
|
width: 0;
|
|
42
40
|
}
|
|
43
|
-
`,
|
|
41
|
+
`,_a=k`
|
|
44
42
|
input::-webkit-search-cancel-button,
|
|
45
43
|
input::-webkit-search-decoration,
|
|
46
44
|
input::-webkit-search-results-button,
|
|
47
45
|
input::-webkit-search-results-decoration {
|
|
48
46
|
display: none;
|
|
49
47
|
}
|
|
50
|
-
`;var _c={};var es={};ot(es,{ParametrizedLabelResolver:()=>Uo});var Uo=class e{constructor(t,r){this.defaultLabels=t,this.labels=r}resolve(t,...r){var i,n;t=this.resolvePluralKey(t,r);let a=(n=(i=this.labels[t])!==null&&i!==void 0?i:this.defaultLabels[t])!==null&&n!==void 0?n:"";return e.replaceParameters(a,...r)}static replaceParameters(t,...r){return r.forEach((i,n)=>t=t.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>e.formatValue(i,s))),t}resolvePluralKey(t,r){for(let i of r)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,r){return t instanceof Date?e.formatDate(t,r):t??""}static formatDate(t,r){let i=n=>r?.includes("date")?t.toLocaleDateString(n):r?.includes("time")?t.toLocaleTimeString(n):t.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var _s={};ot(_s,{FtCommandQueue:()=>Fo,FtLitElementRedux:()=>Yt,FtReduxStore:()=>Pe,ReduxWatcher:()=>$i,clearAllStores:()=>rh,isFtReduxStore:()=>Er,redux:()=>dt,reduxEventListener:()=>Bo,reduxReactive:()=>vf,watch:()=>oh});var vf=()=>(e,t)=>{var r;let i=e.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(r=i.reduxReactiveProperties)===null||r===void 0||r.add(t)},dt=e=>{let t=e??{};return(r,i)=>{var n;let a={hasChanged:mr,attribute:!1,...t};g(a)(r,i);let s=r.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})}},Bo=e=>(t,r)=>{let i=t.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(r,e)};var Fo=class{constructor(){this.queue=[]}add(t,r=!1){r&&(this.queue=this.queue.filter(i=>i.type!==t.type)),this.queue.push(t)}consume(t){let r=this.queue.find(i=>i.type===t);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}};function Er(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Rc,Tc,Ic,Wo=Symbol("internalReduxEventsUnsubscribers"),We=Symbol("internalStoresUnsubscribers"),wr=Symbol("internalStores"),Yt=class extends j{constructor(){super(...arguments),this[Rc]=new Map,this[Tc]=new Map,this[Ic]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(r=>t.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[wr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[wr].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[wr].get(t)}addStore(t,r){var i;r=(i=r??(Er(t)?t.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(r),this[wr].set(r,t),this.subscribeToStore(r,t),this.updateFromStores()}removeStore(t){let r=typeof t=="string"?t:t.name;this.unsubscribeFromStore(r),this[wr].delete(r)}setupStores(){this.unsubscribeFromStores(),this[wr].forEach((t,r)=>this.subscribeToStore(r,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,r)=>{let i=this.constructor.getPropertyOptions(r);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:r)){let n=this.getStore(t.store);n&&(t.store?this[We].has(t.store):this[We].size>0)&&(this[r]=t.selector(n.getState(),this))}})}subscribeToStore(t,r){var i;this[We].set(t,r.subscribe(()=>this.updateFromStores())),this[Wo].set(t,[]),Er(r)&&r.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||r.name===n.store)){let s=l=>this[a](l);r.addEventListener(n.eventName,s),this[Wo].get(t).push(()=>r.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[We].forEach((t,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(t){var r;this[We].has(t)&&this[We].get(t)(),this[We].delete(t),(r=this[Wo].get(t))===null||r===void 0||r.forEach(i=>i()),this[Wo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Rc=We,Tc=wr,Ic=Wo;Yt.reduxProperties=new Map;Yt.reduxReactiveProperties=new Set;Yt.reduxEventListeners=new Map;function Xt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ne(e){return!!e&&!!e[pt]}function ae(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===_f}(e)||Array.isArray(e)||!!e[Mc]||!!(!((t=e.constructor)===null||t===void 0)&&t[Mc])||ds(e)||ps(e))}function Ar(e,t,r){r===void 0&&(r=!1),Gr(e)===0?(r?Object.keys:jr)(e).forEach(function(i){r&&typeof i=="symbol"||t(i,e[i],e)}):e.forEach(function(i,n){return t(n,i,e)})}function Gr(e){var t=e[pt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:ds(e)?2:ps(e)?3:0}function Vr(e,t){return Gr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function xf(e,t){return Gr(e)===2?e.get(t):e[t]}function Uc(e,t,r){var i=Gr(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function Bc(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ds(e){return wf&&e instanceof Map}function ps(e){return Af&&e instanceof Set}function He(e){return e.o||e.t}function us(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Hc(e);delete t[pt];for(var r=jr(t),i=0;i<r.length;i++){var n=r[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:e[n]})}return Object.create(Object.getPrototypeOf(e),t)}function fs(e,t){return t===void 0&&(t=!1),hs(e)||Ne(e)||!ae(e)||(Gr(e)>1&&(e.set=e.add=e.clear=e.delete=Sf),Object.freeze(e),t&&Ar(e,function(r,i){return fs(i,!0)},!0)),e}function Sf(){Xt(2)}function hs(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ge(e){var t=cs[e];return t||Xt(18,e),t}function Of(e,t){cs[e]||(cs[e]=t)}function as(){return zo}function rs(e,t){t&&(ge("Patches"),e.u=[],e.s=[],e.v=t)}function Ti(e){ss(e),e.p.forEach(Cf),e.p=null}function ss(e){e===zo&&(zo=e.l)}function Nc(e){return zo={p:[],l:zo,h:e,m:!0,_:0}}function Cf(e){var t=e[pt];t.i===0||t.i===1?t.j():t.g=!0}function os(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||ge("ES5").S(t,e,i),i?(r[pt].P&&(Ti(t),Xt(4)),ae(e)&&(e=Ii(t,e),t.l||Ni(t,e)),t.u&&ge("Patches").M(r[pt].t,e,t.u,t.s)):e=Ii(t,r,[]),Ti(t),t.u&&t.v(t.u,t.s),e!==Wc?e:void 0}function Ii(e,t,r){if(hs(t))return t;var i=t[pt];if(!i)return Ar(t,function(l,d){return Pc(e,i,t,l,d,r)},!0),t;if(i.A!==e)return t;if(!i.P)return Ni(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=us(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Ar(a,function(l,d){return Pc(e,i,n,l,d,r,s)}),Ni(e,n,!1),r&&e.u&&ge("Patches").N(i,r,e.u,e.s)}return i.o}function Pc(e,t,r,i,n,a,s){if(Ne(n)){var l=Ii(e,n,a&&t&&t.i!==3&&!Vr(t.R,i)?a.concat(i):void 0);if(Uc(r,i,l),!Ne(l))return;e.m=!1}else s&&r.add(n);if(ae(n)&&!hs(n)){if(!e.h.D&&e._<1)return;Ii(e,n),t&&t.A.l||Ni(e,n)}}function Ni(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&fs(t,r)}function is(e,t){var r=e[pt];return(r?He(r):e)[t]}function Lc(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Object.getPrototypeOf(r)}}function ze(e){e.P||(e.P=!0,e.l&&ze(e.l))}function ns(e){e.o||(e.o=us(e.t))}function ls(e,t,r){var i=ds(t)?ge("MapSet").F(t,r):ps(t)?ge("MapSet").T(t,r):e.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:as(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=Vo;s&&(d=[l],p=Ho);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(t,r):ge("ES5").J(t,r);return(r?r.A:as()).p.push(i),i}function Ef(e){return Ne(e)||Xt(22,e),function t(r){if(!ae(r))return r;var i,n=r[pt],a=Gr(r);if(n){if(!n.P&&(n.i<4||!ge("ES5").K(n)))return n.t;n.I=!0,i=kc(r,a),n.I=!1}else i=kc(r,a);return Ar(i,function(s,l){n&&xf(n.t,s)===l||Uc(i,s,t(l))}),a===3?new Set(i):i}(e)}function kc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return us(e)}function Fc(){function e(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[pt];return Vo.get(p,s)},set:function(p){var h=this[pt];Vo.set(h,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][pt];if(!d.P)switch(d.i){case 5:i(d)&&ze(d);break;case 4:r(d)&&ze(d)}}}function r(s){for(var l=s.t,d=s.k,p=jr(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==pt){var m=l[f];if(m===void 0&&!Vr(l,f))return!0;var v=d[f],x=v&&v[pt];if(x?x.t!==m:!Bc(v,m))return!0}}var E=!!l[pt];return p.length!==jr(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&&Xt(3,JSON.stringify(He(s)))}var a={};Of("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,m){if(f){for(var v=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(v,""+x,e(x,!0));return v}var E=Hc(m);delete E[pt];for(var R=jr(E),I=0;I<R.length;I++){var L=R[I];E[L]=e(L,f||!!E[L].enumerable)}return Object.create(Object.getPrototypeOf(m),E)}(d,s),h={i:d?5:4,A:l?l.A:as(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,pt,{value:h,writable:!0}),p},S:function(s,l,d){d?Ne(l)&&l[pt].A===s&&t(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[pt];if(f){var m=f.t,v=f.k,x=f.R,E=f.i;if(E===4)Ar(v,function(O){O!==pt&&(m[O]!==void 0||Vr(m,O)?x[O]||p(v[O]):(x[O]=!0,ze(f)))}),Ar(m,function(O){v[O]!==void 0||Vr(v,O)||(x[O]=!1,ze(f))});else if(E===5){if(i(f)&&(ze(f),x.length=!0),v.length<m.length)for(var R=v.length;R<m.length;R++)x[R]=!1;else for(var I=m.length;I<v.length;I++)x[I]=!0;for(var L=Math.min(v.length,m.length),w=0;w<L;w++)v.hasOwnProperty(w)||(x[w]=!0),x[w]===void 0&&p(v[w])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var $c,zo,ms=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wf=typeof Map<"u",Af=typeof Set<"u",Dc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Wc=ms?Symbol.for("immer-nothing"):(($c={})["immer-nothing"]=!0,$c),Mc=ms?Symbol.for("immer-draftable"):"__$immer_draftable",pt=ms?Symbol.for("immer-state"):"__$immer_state";var _f=""+Object.prototype.constructor,jr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Hc=Object.getOwnPropertyDescriptors||function(e){var t={};return jr(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},cs={},Vo={get:function(e,t){if(t===pt)return e;var r=He(e);if(!Vr(r,t))return function(n,a,s){var l,d=Lc(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0}(e,r,t);var i=r[t];return e.I||!ae(i)?i:i===is(e.t,t)?(ns(e),e.o[t]=ls(e.A.h,i,e)):i},has:function(e,t){return t in He(e)},ownKeys:function(e){return Reflect.ownKeys(He(e))},set:function(e,t,r){var i=Lc(He(e),t);if(i?.set)return i.set.call(e.k,r),!0;if(!e.P){var n=is(He(e),t),a=n?.[pt];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Bc(r,n)&&(r!==void 0||Vr(e.t,t)))return!0;ns(e),ze(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return is(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,ns(e),ze(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=He(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){Xt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Xt(12)}},Ho={};Ar(Vo,function(e,t){Ho[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ho.deleteProperty=function(e,t){return Ho.set.call(this,e,t,void 0)},Ho.set=function(e,t,r){return Vo.set.call(this,e[0],t,r,e[0])};var Rf=function(){function e(r){var i=this;this.O=Dc,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 R=this;E===void 0&&(E=l);for(var I=arguments.length,L=Array(I>1?I-1:0),w=1;w<I;w++)L[w-1]=arguments[w];return d.produce(E,function(O){var A;return(A=a).call.apply(A,[R,O].concat(L))})}}var p;if(typeof a!="function"&&Xt(6),s!==void 0&&typeof s!="function"&&Xt(7),ae(n)){var h=Nc(i),f=ls(i,n,void 0),m=!0;try{p=a(f),m=!1}finally{m?Ti(h):ss(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return rs(h,s),os(E,h)},function(E){throw Ti(h),E}):(rs(h,s),os(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Wc&&(p=void 0),i.D&&fs(p,!0),s){var v=[],x=[];ge("Patches").M(n,p,v,x),s(v,x)}return p}Xt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return i.produceWithPatches(p,function(v){return n.apply(void 0,[v].concat(f))})};var s,l,d=i.produce(n,a,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){ae(r)||Xt(8),Ne(r)&&(r=Ef(r));var i=Nc(this),n=ls(this,r,void 0);return n[pt].C=!0,ss(i),n},t.finishDraft=function(r,i){var n=r&&r[pt],a=n.A;return rs(a,i),os(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Dc&&Xt(20),this.O=r},t.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=ge("Patches").$;return Ne(r)?s(r,i):this.produce(r,function(l){return s(l,i)})},e}(),qt=new Rf,Tf=qt.produce,zv=qt.produceWithPatches.bind(qt),Vv=qt.setAutoFreeze.bind(qt),jv=qt.setUseProxies.bind(qt),Gv=qt.applyPatches.bind(qt),Kv=qt.createDraft.bind(qt),Zv=qt.finishDraft.bind(qt),Pi=Tf;function Ve(e){"@babel/helpers - typeof";return Ve=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},Ve(e)}function ys(e,t){if(Ve(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(Ve(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gs(e){var t=ys(e,"string");return Ve(t)==="symbol"?t:String(t)}function bs(e,t,r){return t=gs(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Li(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zc(Object(r),!0).forEach(function(i){bs(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zc(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function $t(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Vc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),vs=function(){return Math.random().toString(36).substring(7).split("").join(".")},ki={INIT:"@@redux/INIT"+vs(),REPLACE:"@@redux/REPLACE"+vs(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+vs()}};function If(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function xs(e,t,r){var i;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error($t(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error($t(1));return r(xs)(e,t)}if(typeof e!="function")throw new Error($t(2));var n=e,a=t,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error($t(3));return a}function f(E){if(typeof E!="function")throw new Error($t(4));if(d)throw new Error($t(5));var R=!0;return p(),l.push(E),function(){if(R){if(d)throw new Error($t(6));R=!1,p();var L=l.indexOf(E);l.splice(L,1),s=null}}}function m(E){if(!If(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 R=s=l,I=0;I<R.length;I++){var L=R[I];L()}return E}function v(E){if(typeof E!="function")throw new Error($t(10));n=E,m({type:ki.REPLACE})}function x(){var E,R=f;return E={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error($t(11));function w(){L.next&&L.next(h())}w();var O=R(w);return{unsubscribe:O}}},E[Vc]=function(){return this},E}return m({type:ki.INIT}),i={dispatch:m,subscribe:f,getState:h,replaceReducer:v},i[Vc]=x,i}function Nf(e){Object.keys(e).forEach(function(t){var r=e[t],i=r(void 0,{type:ki.INIT});if(typeof i>"u")throw new Error($t(12));if(typeof r(void 0,{type:ki.PROBE_UNKNOWN_ACTION()})>"u")throw new Error($t(13))})}function jc(e){for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i];typeof e[n]=="function"&&(r[n]=e[n])}var a=Object.keys(r),s,l;try{Nf(r)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,v={},x=0;x<a.length;x++){var E=a[x],R=r[E],I=p[E],L=R(I,h);if(typeof L>"u"){var w=h&&h.type;throw new Error($t(14))}v[E]=L,m=m||L!==I}return m=m||a.length!==Object.keys(p).length,m?v:p}}function Kr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];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 Gc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];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=Kr.apply(void 0,l)(n.dispatch),Li(Li({},n),{},{dispatch:a})}}}function Kc(e){var t=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,e):s(l)}}};return t}var Zc=Kc();Zc.withExtraArgument=Kc;var Ss=Zc;var Qc=function(){var e=function(t,r){return e=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])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),Pf=function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(h){return d([p,h])}}function d(p){if(i)throw new TypeError("Generator is already executing.");for(;r;)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 r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=t.call(e,r)}catch(h){p=[6,h],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Zr=function(e,t){for(var r=0,i=t.length,n=e.length;r<i;r++,n++)e[n]=t[r];return e},Lf=Object.defineProperty,kf=Object.defineProperties,$f=Object.getOwnPropertyDescriptors,qc=Object.getOwnPropertySymbols,Df=Object.prototype.hasOwnProperty,Mf=Object.prototype.propertyIsEnumerable,Yc=function(e,t,r){return t in e?Lf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},je=function(e,t){for(var r in t||(t={}))Df.call(t,r)&&Yc(e,r,t[r]);if(qc)for(var i=0,n=qc(t);i<n.length;i++){var r=n[i];Mf.call(t,r)&&Yc(e,r,t[r])}return e},Os=function(e,t){return kf(e,$f(t))},Uf=function(e,t,r){return new Promise(function(i,n){var a=function(d){try{l(r.next(d))}catch(p){n(p)}},s=function(d){try{l(r.throw(d))}catch(p){n(p)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(e,t)).next())})};var Bf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Kr:Kr.apply(null,arguments)},ux=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Ff(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}var Wf=function(e){Qc(t,e);function t(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=e.apply(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Zr([void 0],r[0].concat(this)))):new(t.bind.apply(t,Zr([void 0],r.concat(this))))},t}(Array),Hf=function(e){Qc(t,e);function t(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=e.apply(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Zr([void 0],r[0].concat(this)))):new(t.bind.apply(t,Zr([void 0],r.concat(this))))},t}(Array);function ws(e){return ae(e)?Pi(e,function(){}):e}function zf(e){return typeof e=="boolean"}function Vf(){return function(t){return jf(t)}}function jf(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,i=e.immutableCheck,n=i===void 0?!0:i,a=e.serializableCheck,s=a===void 0?!0:a,l=new Wf;if(r&&(zf(r)?l.push(Ss):l.push(Ss.withExtraArgument(r.extraArgument))),0){if(n)var d;if(s)var p}return l}var Cs=!0;function td(e){var t=Vf(),r=e||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?t():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,h=p===void 0?void 0:p,f=r.enhancers,m=f===void 0?void 0:f,v;if(typeof n=="function")v=n;else if(Ff(n))v=jc(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 x=s;if(typeof x=="function"&&(x=x(t),!Cs&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Cs&&x.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=Gc.apply(void 0,x),R=Kr;d&&(R=Bf(je({trace:!Cs},typeof d=="object"&&d)));var I=new Hf(E),L=I;Array.isArray(m)?L=Zr([E],m):typeof m=="function"&&(L=m(I));var w=R.apply(void 0,L);return xs(v,h,w)}function Ge(e,t){function r(){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 je(je({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:i[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(i){return i.type===e},r}function ed(e){var t={},r=[],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 r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return e(n),[t,r,i]}function Gf(e){return typeof e=="function"}function Kf(e,t,r,i){r===void 0&&(r=[]);var n=typeof t=="function"?ed(t):[t,r,i],a=n[0],s=n[1],l=n[2],d;if(Gf(e))d=function(){return ws(e())};else{var p=ws(e);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var v=Zr([a[m.type]],s.filter(function(x){var E=x.matcher;return E(m)}).map(function(x){var E=x.reducer;return E}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,E){if(E)if(Ne(x)){var R=x,I=E(R,m);return I===void 0?x:I}else{if(ae(x))return Pi(x,function(L){return E(L,m)});var I=E(x,m);if(I===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return x},f)}return h.getInitialState=d,h}function Zf(e,t){return e+"/"+t}function rd(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:ws(e.initialState),i=e.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(h){var f=i[h],m=Zf(t,h),v,x;"reducer"in f?(v=f.reducer,x=f.prepare):v=f,a[h]=v,s[m]=v,l[h]=x?Ge(m,x):Ge(m)});function d(){var h=typeof e.extraReducers=="function"?ed(e.extraReducers):[e.extraReducers],f=h[0],m=f===void 0?{}:f,v=h[1],x=v===void 0?[]:v,E=h[2],R=E===void 0?void 0:E,I=je(je({},m),s);return Kf(r,function(L){for(var w in I)L.addCase(w,I[w]);for(var O=0,A=x;O<A.length;O++){var k=A[O];L.addMatcher(k.matcher,k.reducer)}R&&L.addDefaultCase(R)})}var p;return{name:t,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var qf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Yf=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=qf[Math.random()*64|0];return t},Xf=["name","message","stack","code"],Es=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Xc=function(){function e(t,r){this.payload=t,this.meta=r}return e}(),Jf=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,i=Xf;r<i.length;r++){var n=i[r];typeof e[n]=="string"&&(t[n]=e[n])}return t}return{message:String(e)}},yx=function(){function e(t,r,i){var n=Ge(t+"/fulfilled",function(h,f,m,v){return{payload:h,meta:Os(je({},v||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),a=Ge(t+"/pending",function(h,f,m){return{payload:void 0,meta:Os(je({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Ge(t+"/rejected",function(h,f,m,v,x){return{payload:v,error:(i&&i.serializeError||Jf)(h||"Rejected"),meta:Os(je({},x||{}),{arg:m,requestId:f,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(f,m,v){var x=i?.idGenerator?i.idGenerator(h):Yf(),E=new d,R,I=!1;function L(O){R=O,E.abort()}var w=function(){return Uf(this,null,function(){var O,A,k,F,q,Z,U;return Pf(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),F=(O=i?.condition)==null?void 0:O.call(i,h,{getState:m,extra:v}),th(F)?[4,F]:[3,2];case 1:F=y.sent(),y.label=2;case 2:if(F===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,q=new Promise(function(C,D){return E.signal.addEventListener("abort",function(){return D({name:"AbortError",message:R||"Aborted"})})}),f(a(x,h,(A=i?.getPendingMeta)==null?void 0:A.call(i,{requestId:x,arg:h},{getState:m,extra:v}))),[4,Promise.race([q,Promise.resolve(r(h,{dispatch:f,getState:m,extra:v,requestId:x,signal:E.signal,abort:L,rejectWithValue:function(C,D){return new Es(C,D)},fulfillWithValue:function(C,D){return new Xc(C,D)}})).then(function(C){if(C instanceof Es)throw C;return C instanceof Xc?n(C.payload,x,h,C.meta):n(C,x,h)})])];case 3:return k=y.sent(),[3,5];case 4:return Z=y.sent(),k=Z instanceof Es?s(null,x,h,Z.payload,Z.meta):s(Z,x,h),[3,5];case 5:return U=i&&!i.dispatchConditionRejection&&s.match(k)&&k.meta.condition,U||f(k),[2,k]}})})}();return Object.assign(w,{abort:L,requestId:x,arg:h,unwrap:function(){return w.then(Qf)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return e.withTypes=function(){return e},e}();function Qf(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function th(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var od="listener",id="completed",nd="cancelled",gx="task-"+nd,bx="task-"+id,vx=od+"-"+nd,xx=od+"-"+id;var As="listenerMiddleware";var Sx=Ge(As+"/add"),Ox=Ge(As+"/removeAll"),Cx=Ge(As+"/remove");var Jc,Ex=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(Jc||(Jc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},eh=function(e){return function(t){setTimeout(t,e)}},wx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:eh(10);Fc();window.ftReduxStores||(window.ftReduxStores={});var Pe=class e extends hr{static get(t){var r;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[i];if(Er(a))return a;if(n==null)return;let s=rd({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=td({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 e(s,l,n.eventBus)}constructor(t,r,i){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Fo;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...h)=>{let f=p(...h.map(n));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:n(h)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function rh(){var e;for(let t of Object.values((e=window.ftReduxStores)!==null&&e!==void 0?e:{}))Er(t)&&t.clear()}var $i=class{constructor(t,r,i){this.store=t,this.valueSelector=r,this.callback=i}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let t=this.store.getState(),r=this.valueSelector(t);mr(this.lastValue,r)&&(this.callback(r,t),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function oh(e,t,r){return new $i(e,t,r).watch()}var Is={};ot(Is,{scrollHelper:()=>ih});var Rs,Di=new Map,Ts=class{lock(t,r){if(r){let i=Di.get(r);if(i==null||i===t)return Di.set(r,t),r}}release(t,r){r&&Di.get(r)===t&&Di.delete(r)}findFirstScrollableParent(t){var r;let i,n;for(let a of Xn(t)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){i=s;break}else l&&n==null&&(n=s)}return(r=i??n)!==null&&r!==void 0?r:document.body}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,r){var i,n;let a=0;for(;r&&r.offsetParent!==t.offsetParent;)a+=(i=r.offsetTop)!==null&&i!==void 0?i:0,r=r.offsetParent;return a+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-t.offsetTop}computeTopOffsetRatio(t,r){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(t,r){let 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=_o(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;i.scrollTo({behavior:r?.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=(Rs=window.FluidTopicsScrollHelper)!==null&&Rs!==void 0?Rs:new Ts;var ih=window.FluidTopicsScrollHelper;var Ns={};ot(Ns,{shadowQuerySelector:()=>nh,shadowQuerySelectorAll:()=>ah});function nh(e,t,...r){var i;let n=e.querySelector(t);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function ah(e,t,...r){let i=[...e.querySelectorAll(t)];for(let n of r)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 Ls={};ot(Ls,{SearchPlaceConverter:()=>jo,SearchPlaceQueryParams:()=>it,isSearchPlaceQueryParams:()=>Ld,serializeRequest:()=>dh});var lh=kp(sd(),1);var ld;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(ld||(ld={}));var cd;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(cd||(cd={}));var dd;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.MAP_ATTACHMENT="MAP_ATTACHMENT",e.RESOURCE="RESOURCE"})(dd||(dd={}));var pd;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(pd||(pd={}));var ud;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(ud||(ud={}));var fd;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",e.GEN_AI__RATE="GEN_AI__RATE",e.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",e.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.TOPIC__DISPLAY="TOPIC__DISPLAY",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(fd||(fd={}));var hd;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(hd||(hd={}));var md;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(md||(md={}));var yd;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(yd||(yd={}));var gd;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(gd||(gd={}));var bd;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(bd||(bd={}));var Ot;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Ot||(Ot={}));var vd;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(vd||(vd={}));var xd;(function(e){e.ASC="ASC",e.DESC="DESC"})(xd||(xd={}));var Sd;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Sd||(Sd={}));var Ps;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Ps||(Ps={}));var _d=e=>Object.keys(Ps).includes(e);var Od;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Od||(Od={}));var Cd;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Cd||(Cd={}));var Ed;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Ed||(Ed={}));var Yr;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Yr||(Yr={}));var Rd=e=>Object.keys(Yr).includes(e);var wd;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(wd||(wd={}));var Ad;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ad||(Ad={}));var st;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN",e.DEVELOPER="DEVELOPER"})(st||(st={}));var Td;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Td||(Td={}));var Id;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Id||(Id={}));var sh={[st.PERSONAL_BOOK_SHARE_USER]:[st.PERSONAL_BOOK_USER],[st.HTML_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.PDF_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.KHUB_ADMIN]:[st.CONTENT_PUBLISHER],[st.ADMIN]:[st.KHUB_ADMIN,st.USERS_ADMIN,st.PORTAL_ADMIN],[st.DEVELOPER]:[st.BETA_USER,st.DEBUG_USER],[st.GENERATIVE_AI_EXPORT_USER]:[st.GENERATIVE_AI_USER]};function Nd(e,t){return e===t||(sh[e]??[]).some(r=>Nd(r,t))}function _r(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(i=>Nd(i,t))}function ch(e){return`"${e}"`}function Pd(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}function dh(e,t){return new jo(e).serialize(t)}var it;(function(e){e.LOCALE="content-lang",e.QUERY="query",e.SCOPE="scope",e.FILTERS="filters",e.VIRTUAL_FIELD="virtual-field",e.PERIOD="period",e.VALUE_FILTERS="value-filters",e.DATE_FILTERS="date-filters",e.RANGE_FILTERS="range-filters",e.SORT="sort",e.PER_PAGE="per-page"})(it||(it={}));var ph=new Set(Object.values(it));function Ld(e){return ph.has(e)}var jo=class{constructor(t,r={},i=20,n=!1,a="en-US"){this.baseUrl=t,this.predefinedSorts=r,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,r){return this.serializeToCurrentPageIfPossible(t,r??"/search")}serializeToCurrentPageIfPossible(t,r){let i=this.toURLSearchParams(t).toString(),n=r==null||r.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return a.search=i,a.toString()}toURLSearchParams(t,r=!1){var i,n,a,s,l,d,p,h,f,m,v,x;let E=new URLSearchParams;t.contentLocale?(!r||t.contentLocale!==this.defaultContentLocale)&&E.append(it.LOCALE,t.contentLocale):E.append(it.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=t.query)===null||i===void 0?void 0:i.length)>0&&E.append(it.QUERY,t.query),t.scope&&t.scope!=="DEFAULT"&&E.append(it.SCOPE,t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&E.append(it.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(it.SORT,"last_update");let R=(s=(a=t.metadataFilters)===null||a===void 0?void 0:a.filter(O=>O.valueFilter))!==null&&s!==void 0?s:[];if(R.length>0){let O=R.map(A=>{var k,F;let q=((F=(k=A.valueFilter)===null||k===void 0?void 0:k.values)!==null&&F!==void 0?F:[]).map(Z=>this.escapeFilters(Z)).map(Z=>encodeURIComponent(ch(Pd(Z)))).join("_");return`${A.key}~${q}`}).join("*");E.append(it.VALUE_FILTERS,O)}let I=(d=(l=t.metadataFilters)===null||l===void 0?void 0:l.filter(O=>O.dateFilter))!==null&&d!==void 0?d:[];if(I.length>0){let O=I.map(A=>{var k;return`${A.key}~${(k=A.dateFilter)===null||k===void 0?void 0:k.type.toLowerCase()}`}).join("*");E.append(it.DATE_FILTERS,O)}let L=(h=(p=t.metadataFilters)===null||p===void 0?void 0:p.filter(O=>O.rangeFilter))!==null&&h!==void 0?h:[];if(L.length>0){let O=L.map(A=>{var k,F;return`${A.key}~${(k=A.rangeFilter)===null||k===void 0?void 0:k.from}_${(F=A.rangeFilter)===null||F===void 0?void 0:F.to}`}).join("*");E.append(it.RANGE_FILTERS,O)}let w=(f=t.otherQueryParams)!==null&&f!==void 0?f:{};for(let O in w)E.append(O,w[O]);return!((m=t.paging)===null||m===void 0)&&m.perPage&&((x=(v=t.paging)===null||v===void 0?void 0:v.perPage)!==null&&x!==void 0?x:this.defaultPerPage)!=this.defaultPerPage&&E.append(it.PER_PAGE,String(t.paging.perPage)),E}parse(t){var r;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:(r=this.scopeMapping[a])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(t){var r,i,n,a,s,l,d,p;let h=t.get(it.LOCALE)==="all"?void 0:t.get(it.LOCALE),f=((r=t.get(it.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),m=((i=t.get(it.SORT))!==null&&i!==void 0?i:"DEFAULT").toUpperCase(),v=(n=t.get(it.SCOPE))!==null&&n!==void 0?n:"default",x=+((a=t.get(it.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),E={};for(let R of t.keys())Ld(R)||(E[R]=t.get(R));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=t.get(it.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[v])!==null&&l!==void 0?l:"DEFAULT",virtualField:_d(f)?f:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[m])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(t),facets:[],paging:{page:1,perPage:_o(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:E}}parseCompatFilters(t){var r,i,n,a,s,l;let d=[];return t.has(it.FILTERS)&&(d=this.parseValueFilters((r=t.get(it.FILTERS))!==null&&r!==void 0?r:"")),(i=t.has(it.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=t.get(it.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=t.get(it.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=t.get(it.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(it.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(decodeURIComponent(t)).split("*").map(r=>r.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(Pd).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],dateFilter:{type:Yr[r[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(t){for(let[r,i,n]of this.filtersEscapeMapping)t=t.replaceAll(r,i);return t}superEscapeFilters(t){for(let[r,i,n]of this.filtersEscapeMapping)t=t.replaceAll(i,n);return t}unescapeFilterValue(t){for(let[r,i,n]of this.filtersEscapeMapping)t=t.replace(n,r);return t}parseLegacyPeriodFilter(t){if(Rd(t))return[{key:"ft:lastEdition",dateFilter:{type:Yr[t]}}];if(t.startsWith("CUSTOM_")){let[r,i,n]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}};var ks={};ot(ks,{toFtFormComponent:()=>Rr});var Bi=Symbol("elementInternals");function Rr(e,t){class r extends e{static get formAssociated(){return!0}get form(){return this[Bi].form}constructor(...n){super(n),this[Bi]=this.attachInternals(),this[Bi].role=t}setFormValue(n){this[Bi].setFormValue(n)}}return r}var $s={};ot($s,{DateFormatter:()=>Xr});var Xr=class{static format(t,r,i,n){return window.moment?window.moment(t).locale(r).format(this.getDateFormat(i,n)):t}static getDateFormat(t,r){return t?r?"lll":"ll":r?"L LT":"L"}};var Ds,Ms,Us,Bs,Go=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Us=(Ms=(Ds=window.safari)===null||Ds===void 0?void 0:Ds.pushNotification)===null||Ms===void 0?void 0:Ms.toString())!==null&&Us!==void 0?Us:"")==="[object SafariRemoteNotification]",uh="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Bs=window.ftGlobals)!==null&&Bs!==void 0?Bs:{lit:Ln,litDecorators:Dn,litRepeat:Mn,litClassMap:Un,litStyleMap:Bn,litUnsafeHTML:Wn,wcUtils:{...Kn,...zn,...Zn,...$s,...qn,...Qn,...Ra,...Gn,...ja,..._a,...qa,...Ka,...wc,...Jn,...Ja,...ts,..._c,...es,..._s,...Ga,...Is,...Ns,...Ls,...ks,isSafari:Go,isTouchScreen:uh,setVariable:S}};var Jt;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Jt||(Jt={}));var fh=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Ws=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Fs=Symbol("registerInterval");function hh(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[Fs]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Fs]):this.dispatchEvent(new Ws)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Fs,fh([H()],r.prototype,"stateManager",void 0),r}var Ze=class extends hh(Yt){};var kd=o.extend("--ft-ripple-color","",T.colorContent),_={color:kd,backgroundColor:o.extend("--ft-ripple-background-color","",kd),opacityContentOnSurfacePressed:o.external(T.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(T.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(T.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(T.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},$d=o.extend("--ft-ripple-color","",T.colorPrimary),Dd={color:$d,backgroundColor:o.extend("--ft-ripple-background-color","",$d)},Md=o.extend("--ft-ripple-color","",T.colorSecondary),Ud={color:Md,backgroundColor:o.extend("--ft-ripple-background-color","",Md)},Bd=$`
|
|
48
|
+
`;var Nl={};var Ia={};oe(Ia,{ParametrizedLabelResolver:()=>Ao});var Ao=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var i,n;e=this.resolvePluralKey(e,r);let a=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((i,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(i,s))),e}resolvePluralKey(e,r){for(let i of r)if(typeof i=="number"){let n=`${String(e)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let i=n=>r?.includes("date")?e.toLocaleDateString(n):r?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var es={};oe(es,{FtCommandQueue:()=>_o,FtLitElementRedux:()=>Ye,FtReduxStore:()=>Pt,ReduxWatcher:()=>ci,clearAllStores:()=>qu,isFtReduxStore:()=>yr,redux:()=>de,reduxEventListener:()=>Ro,reduxReactive:()=>uu,watch:()=>Yu});var uu=()=>(t,e)=>{var r;let i=t.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(r=i.reduxReactiveProperties)===null||r===void 0||r.add(e)},de=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:lr,attribute:!1,...e};g(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:l=>l[i],store:e.store})}},Ro=t=>(e,r)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(r,t)};var _o=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(i=>i.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}};function yr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Pl,Ll,kl,To=Symbol("internalReduxEventsUnsubscribers"),Wt=Symbol("internalStoresUnsubscribers"),gr=Symbol("internalStores"),Ye=class extends V{constructor(){super(...arguments),this[Pl]=new Map,this[Ll]=new Map,this[kl]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[gr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[gr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[gr].get(e)}addStore(e,r){var i;r=(i=r??(yr(e)?e.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(r),this[gr].set(r,e),this.subscribeToStore(r,e),this.updateFromStores()}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[gr].delete(r)}setupStores(){this.unsubscribeFromStores(),this[gr].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let i=this.constructor.getPropertyOptions(r);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:r)){let n=this.getStore(e.store);n&&(e.store?this[Wt].has(e.store):this[Wt].size>0)&&(this[r]=e.selector(n.getState(),this))}})}subscribeToStore(e,r){var i;this[Wt].set(e,r.subscribe(()=>this.updateFromStores())),this[To].set(e,[]),yr(r)&&r.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||r.name===n.store)){let s=l=>this[a](l);r.addEventListener(n.eventName,s),this[To].get(e).push(()=>r.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Wt].forEach((e,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(e){var r;this[Wt].has(e)&&this[Wt].get(e)(),this[Wt].delete(e),(r=this[To].get(e))===null||r===void 0||r.forEach(i=>i()),this[To].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Pl=Wt,Ll=gr,kl=To;Ye.reduxProperties=new Map;Ye.reduxReactiveProperties=new Set;Ye.reduxEventListeners=new Map;function Xe(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Nt(t){return!!t&&!!t[pe]}function st(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===vu}(t)||Array.isArray(t)||!!t[Wl]||!!(!((e=t.constructor)===null||e===void 0)&&e[Wl])||Fa(t)||Ua(t))}function br(t,e,r){r===void 0&&(r=!1),Ur(t)===0?(r?Object.keys:Fr)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function Ur(t){var e=t[pe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Fa(t)?2:Ua(t)?3:0}function Br(t,e){return Ur(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function fu(t,e){return Ur(t)===2?t.get(e):t[e]}function zl(t,e,r){var i=Ur(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function Hl(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Fa(t){return bu&&t instanceof Map}function Ua(t){return xu&&t instanceof Set}function zt(t){return t.o||t.t}function Wa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Gl(t);delete e[pe];for(var r=Fr(e),i=0;i<r.length;i++){var n=r[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function za(t,e){return e===void 0&&(e=!1),Ha(t)||Nt(t)||!st(t)||(Ur(t)>1&&(t.set=t.add=t.clear=t.delete=hu),Object.freeze(t),e&&br(t,function(r,i){return za(i,!0)},!0)),t}function hu(){Xe(2)}function Ha(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function bt(t){var e=Ba[t];return e||Xe(18,t),e}function mu(t,e){Ba[t]||(Ba[t]=e)}function Da(){return No}function Na(t,e){e&&(bt("Patches"),t.u=[],t.s=[],t.v=e)}function ii(t){$a(t),t.p.forEach(yu),t.p=null}function $a(t){t===No&&(No=t.l)}function Dl(t){return No={p:[],l:No,h:t,m:!0,_:0}}function yu(t){var e=t[pe];e.i===0||e.i===1?e.j():e.g=!0}function Pa(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||bt("ES5").S(e,t,i),i?(r[pe].P&&(ii(e),Xe(4)),st(t)&&(t=ni(e,t),e.l||ai(e,t)),e.u&&bt("Patches").M(r[pe].t,t,e.u,e.s)):t=ni(e,r,[]),ii(e),e.u&&e.v(e.u,e.s),t!==jl?t:void 0}function ni(t,e,r){if(Ha(e))return e;var i=e[pe];if(!i)return br(e,function(l,d){return $l(t,i,e,l,d,r)},!0),e;if(i.A!==t)return e;if(!i.P)return ai(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Wa(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),br(a,function(l,d){return $l(t,i,n,l,d,r,s)}),ai(t,n,!1),r&&t.u&&bt("Patches").N(i,r,t.u,t.s)}return i.o}function $l(t,e,r,i,n,a,s){if(Nt(n)){var l=ni(t,n,a&&e&&e.i!==3&&!Br(e.R,i)?a.concat(i):void 0);if(zl(r,i,l),!Nt(l))return;t.m=!1}else s&&r.add(n);if(st(n)&&!Ha(n)){if(!t.h.D&&t._<1)return;ni(t,n),e&&e.A.l||ai(t,n)}}function ai(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&za(e,r)}function La(t,e){var r=t[pe];return(r?zt(r):t)[e]}function Ml(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function Ht(t){t.P||(t.P=!0,t.l&&Ht(t.l))}function ka(t){t.o||(t.o=Wa(t.t))}function Ma(t,e,r){var i=Fa(e)?bt("MapSet").F(e,r):Ua(e)?bt("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Da(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=Po;s&&(d=[l],p=Io);var h=Proxy.revocable(d,p),f=h.revoke,y=h.proxy;return l.k=y,l.j=f,y}(e,r):bt("ES5").J(e,r);return(r?r.A:Da()).p.push(i),i}function gu(t){return Nt(t)||Xe(22,t),function e(r){if(!st(r))return r;var i,n=r[pe],a=Ur(r);if(n){if(!n.P&&(n.i<4||!bt("ES5").K(n)))return n.t;n.I=!0,i=Bl(r,a),n.I=!1}else i=Bl(r,a);return br(i,function(s,l){n&&fu(n.t,s)===l||zl(i,s,e(l))}),a===3?new Set(i):i}(t)}function Bl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Wa(t)}function Vl(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[pe];return Po.get(p,s)},set:function(p){var h=this[pe];Po.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][pe];if(!d.P)switch(d.i){case 5:i(d)&&Ht(d);break;case 4:r(d)&&Ht(d)}}}function r(s){for(var l=s.t,d=s.k,p=Fr(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==pe){var y=l[f];if(y===void 0&&!Br(l,f))return!0;var v=d[f],S=v&&v[pe];if(S?S.t!==y:!Hl(v,y))return!0}}var E=!!l[pe];return p.length!==Fr(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&&Xe(3,JSON.stringify(zt(s)))}var a={};mu("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,y){if(f){for(var v=Array(y.length),S=0;S<y.length;S++)Object.defineProperty(v,""+S,t(S,!0));return v}var E=Gl(y);delete E[pe];for(var _=Fr(E),T=0;T<_.length;T++){var L=_[T];E[L]=t(L,f||!!E[L].enumerable)}return Object.create(Object.getPrototypeOf(y),E)}(d,s),h={i:d?5:4,A:l?l.A:Da(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,pe,{value:h,writable:!0}),p},S:function(s,l,d){d?Nt(l)&&l[pe].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[pe];if(f){var y=f.t,v=f.k,S=f.R,E=f.i;if(E===4)br(v,function(O){O!==pe&&(y[O]!==void 0||Br(y,O)?S[O]||p(v[O]):(S[O]=!0,Ht(f)))}),br(y,function(O){v[O]!==void 0||Br(v,O)||(S[O]=!1,Ht(f))});else if(E===5){if(i(f)&&(Ht(f),S.length=!0),v.length<y.length)for(var _=v.length;_<y.length;_++)S[_]=!1;else for(var T=y.length;T<v.length;T++)S[T]=!0;for(var L=Math.min(v.length,y.length),w=0;w<L;w++)v.hasOwnProperty(w)||(S[w]=!0),S[w]===void 0&&p(v[w])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Fl,No,Va=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",bu=typeof Map<"u",xu=typeof Set<"u",Ul=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",jl=Va?Symbol.for("immer-nothing"):((Fl={})["immer-nothing"]=!0,Fl),Wl=Va?Symbol.for("immer-draftable"):"__$immer_draftable",pe=Va?Symbol.for("immer-state"):"__$immer_state";var vu=""+Object.prototype.constructor,Fr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Gl=Object.getOwnPropertyDescriptors||function(t){var e={};return Fr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Ba={},Po={get:function(t,e){if(e===pe)return t;var r=zt(t);if(!Br(r,e))return function(n,a,s){var l,d=Ml(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0}(t,r,e);var i=r[e];return t.I||!st(i)?i:i===La(t.t,e)?(ka(t),t.o[e]=Ma(t.A.h,i,t)):i},has:function(t,e){return e in zt(t)},ownKeys:function(t){return Reflect.ownKeys(zt(t))},set:function(t,e,r){var i=Ml(zt(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=La(zt(t),e),a=n?.[pe];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Hl(r,n)&&(r!==void 0||Br(t.t,e)))return!0;ka(t),Ht(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return La(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ka(t),Ht(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=zt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){Xe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Xe(12)}},Io={};br(Po,function(t,e){Io[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Io.deleteProperty=function(t,e){return Io.set.call(this,t,e,void 0)},Io.set=function(t,e,r){return Po.set.call(this,t[0],e,r,t[0])};var Su=function(){function t(r){var i=this;this.O=Ul,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 _=this;E===void 0&&(E=l);for(var T=arguments.length,L=Array(T>1?T-1:0),w=1;w<T;w++)L[w-1]=arguments[w];return d.produce(E,function(O){var A;return(A=a).call.apply(A,[_,O].concat(L))})}}var p;if(typeof a!="function"&&Xe(6),s!==void 0&&typeof s!="function"&&Xe(7),st(n)){var h=Dl(i),f=Ma(i,n,void 0),y=!0;try{p=a(f),y=!1}finally{y?ii(h):$a(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return Na(h,s),Pa(E,h)},function(E){throw ii(h),E}):(Na(h,s),Pa(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===jl&&(p=void 0),i.D&&za(p,!0),s){var v=[],S=[];bt("Patches").M(n,p,v,S),s(v,S)}return p}Xe(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),y=1;y<h;y++)f[y-1]=arguments[y];return i.produceWithPatches(p,function(v){return n.apply(void 0,[v].concat(f))})};var s,l,d=i.produce(n,a,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){st(r)||Xe(8),Nt(r)&&(r=gu(r));var i=Dl(this),n=Ma(this,r,void 0);return n[pe].C=!0,$a(i),n},e.finishDraft=function(r,i){var n=r&&r[pe],a=n.A;return Na(a,i),Pa(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Ul&&Xe(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=bt("Patches").$;return Nt(r)?s(r,i):this.produce(r,function(l){return s(l,i)})},t}(),Ze=new Su,Ou=Ze.produce,Db=Ze.produceWithPatches.bind(Ze),$b=Ze.setAutoFreeze.bind(Ze),Mb=Ze.setUseProxies.bind(Ze),Bb=Ze.applyPatches.bind(Ze),Fb=Ze.createDraft.bind(Ze),Ub=Ze.finishDraft.bind(Ze),si=Ou;function xr(t){"@babel/helpers - typeof";return xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xr(t)}function Kl(t,e){if(xr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(xr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Zl(t){var e=Kl(t,"string");return xr(e)=="symbol"?e:e+""}function ql(t,e,r){return(e=Zl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Yl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function ja(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Yl(Object(r),!0).forEach(function(i){ql(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yl(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function De(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Xl=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ga=function(){return Math.random().toString(36).substring(7).split("").join(".")},li={INIT:"@@redux/INIT"+Ga(),REPLACE:"@@redux/REPLACE"+Ga(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ga()}};function Cu(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Ka(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(De(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(De(1));return r(Ka)(t,e)}if(typeof t!="function")throw new Error(De(2));var n=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(De(3));return a}function f(E){if(typeof E!="function")throw new Error(De(4));if(d)throw new Error(De(5));var _=!0;return p(),l.push(E),function(){if(_){if(d)throw new Error(De(6));_=!1,p();var L=l.indexOf(E);l.splice(L,1),s=null}}}function y(E){if(!Cu(E))throw new Error(De(7));if(typeof E.type>"u")throw new Error(De(8));if(d)throw new Error(De(9));try{d=!0,a=n(a,E)}finally{d=!1}for(var _=s=l,T=0;T<_.length;T++){var L=_[T];L()}return E}function v(E){if(typeof E!="function")throw new Error(De(10));n=E,y({type:li.REPLACE})}function S(){var E,_=f;return E={subscribe:function(L){if(typeof L!="object"||L===null)throw new Error(De(11));function w(){L.next&&L.next(h())}w();var O=_(w);return{unsubscribe:O}}},E[Xl]=function(){return this},E}return y({type:li.INIT}),i={dispatch:y,subscribe:f,getState:h,replaceReducer:v},i[Xl]=S,i}function Eu(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:li.INIT});if(typeof i>"u")throw new Error(De(12));if(typeof r(void 0,{type:li.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(De(13))})}function Ql(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,l;try{Eu(r)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var y=!1,v={},S=0;S<a.length;S++){var E=a[S],_=r[E],T=p[E],L=_(T,h);if(typeof L>"u"){var w=h&&h.type;throw new Error(De(14))}v[E]=L,y=y||L!==T}return y=y||a.length!==Object.keys(p).length,y?v:p}}function Wr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Jl(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(De(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Wr.apply(void 0,l)(n.dispatch),ja(ja({},n),{},{dispatch:a})}}}function ec(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,t):s(l)}}};return e}var tc=ec();tc.withExtraArgument=ec;var Za=tc;var ac=function(){var t=function(e,r){return t=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])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),wu=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(h){return d([p,h])}}function d(p){if(i)throw new TypeError("Generator is already executing.");for(;r;)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 r.label++,{value:p[1],done:!1};case 5:r.label++,n=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(h){p=[6,h],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},zr=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},Au=Object.defineProperty,Ru=Object.defineProperties,_u=Object.getOwnPropertyDescriptors,rc=Object.getOwnPropertySymbols,Tu=Object.prototype.hasOwnProperty,Iu=Object.prototype.propertyIsEnumerable,oc=function(t,e,r){return e in t?Au(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Vt=function(t,e){for(var r in e||(e={}))Tu.call(e,r)&&oc(t,r,e[r]);if(rc)for(var i=0,n=rc(e);i<n.length;i++){var r=n[i];Iu.call(e,r)&&oc(t,r,e[r])}return t},qa=function(t,e){return Ru(t,_u(e))},Nu=function(t,e,r){return new Promise(function(i,n){var a=function(d){try{l(r.next(d))}catch(p){n(p)}},s=function(d){try{l(r.throw(d))}catch(p){n(p)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var Pu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Wr:Wr.apply(null,arguments)},ix=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Lu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var ku=function(t){ac(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,zr([void 0],r[0].concat(this)))):new(e.bind.apply(e,zr([void 0],r.concat(this))))},e}(Array),Du=function(t){ac(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,zr([void 0],r[0].concat(this)))):new(e.bind.apply(e,zr([void 0],r.concat(this))))},e}(Array);function Qa(t){return st(t)?si(t,function(){}):t}function $u(t){return typeof t=="boolean"}function Mu(){return function(e){return Bu(e)}}function Bu(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,l=new ku;if(r&&($u(r)?l.push(Za):l.push(Za.withExtraArgument(r.extraArgument))),0){if(n)var d;if(s)var p}return l}var Ya=!0;function sc(t){var e=Mu(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,p=r.preloadedState,h=p===void 0?void 0:p,f=r.enhancers,y=f===void 0?void 0:f,v;if(typeof n=="function")v=n;else if(Lu(n))v=Ql(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(e),!Ya&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ya&&S.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=Jl.apply(void 0,S),_=Wr;d&&(_=Pu(Vt({trace:!Ya},typeof d=="object"&&d)));var T=new Du(E),L=T;Array.isArray(y)?L=zr([E],y):typeof y=="function"&&(L=y(T));var w=_.apply(void 0,L);return Ka(v,h,w)}function jt(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return Vt(Vt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function lc(t){var e={},r=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,r,i]}function Fu(t){return typeof t=="function"}function Uu(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?lc(e):[e,r,i],a=n[0],s=n[1],l=n[2],d;if(Fu(t))d=function(){return Qa(t())};else{var p=Qa(t);d=function(){return p}}function h(f,y){f===void 0&&(f=d());var v=zr([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(Nt(S)){var _=S,T=E(_,y);return T===void 0?S:T}else{if(st(S))return si(S,function(L){return E(L,y)});var T=E(S,y);if(T===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return S},f)}return h.getInitialState=d,h}function Wu(t,e){return t+"/"+e}function cc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Qa(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(h){var f=i[h],y=Wu(e,h),v,S;"reducer"in f?(v=f.reducer,S=f.prepare):v=f,a[h]=v,s[y]=v,l[h]=S?jt(y,S):jt(y)});function d(){var h=typeof t.extraReducers=="function"?lc(t.extraReducers):[t.extraReducers],f=h[0],y=f===void 0?{}:f,v=h[1],S=v===void 0?[]:v,E=h[2],_=E===void 0?void 0:E,T=Vt(Vt({},y),s);return Uu(r,function(L){for(var w in T)L.addCase(w,T[w]);for(var O=0,A=S;O<A.length;O++){var M=A[O];L.addMatcher(M.matcher,M.reducer)}_&&L.addDefaultCase(_)})}var p;return{name:e,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var zu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Hu=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=zu[Math.random()*64|0];return e},Vu=["name","message","stack","code"],Xa=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),ic=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),ju=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=Vu;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},lx=function(){function t(e,r,i){var n=jt(e+"/fulfilled",function(h,f,y,v){return{payload:h,meta:qa(Vt({},v||{}),{arg:y,requestId:f,requestStatus:"fulfilled"})}}),a=jt(e+"/pending",function(h,f,y){return{payload:void 0,meta:qa(Vt({},y||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=jt(e+"/rejected",function(h,f,y,v,S){return{payload:v,error:(i&&i.serializeError||ju)(h||"Rejected"),meta:qa(Vt({},S||{}),{arg:y,requestId:f,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(f,y,v){var S=i?.idGenerator?i.idGenerator(h):Hu(),E=new d,_,T=!1;function L(O){_=O,E.abort()}var w=function(){return Nu(this,null,function(){var O,A,M,z,Y,G,D;return wu(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),z=(O=i?.condition)==null?void 0:O.call(i,h,{getState:y,extra:v}),Ku(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 T=!0,Y=new Promise(function(C,$){return E.signal.addEventListener("abort",function(){return $({name:"AbortError",message:_||"Aborted"})})}),f(a(S,h,(A=i?.getPendingMeta)==null?void 0:A.call(i,{requestId:S,arg:h},{getState:y,extra:v}))),[4,Promise.race([Y,Promise.resolve(r(h,{dispatch:f,getState:y,extra:v,requestId:S,signal:E.signal,abort:L,rejectWithValue:function(C,$){return new Xa(C,$)},fulfillWithValue:function(C,$){return new ic(C,$)}})).then(function(C){if(C instanceof Xa)throw C;return C instanceof ic?n(C.payload,S,h,C.meta):n(C,S,h)})])];case 3:return M=m.sent(),[3,5];case 4:return G=m.sent(),M=G instanceof Xa?s(null,S,h,G.payload,G.meta):s(G,S,h),[3,5];case 5:return D=i&&!i.dispatchConditionRejection&&s.match(M)&&M.meta.condition,D||f(M),[2,M]}})})}();return Object.assign(w,{abort:L,requestId:S,arg:h,unwrap:function(){return w.then(Gu)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function Gu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Ku(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var dc="listener",pc="completed",uc="cancelled",cx="task-"+uc,dx="task-"+pc,px=dc+"-"+uc,ux=dc+"-"+pc;var Ja="listenerMiddleware";var fx=jt(Ja+"/add"),hx=jt(Ja+"/removeAll"),mx=jt(Ja+"/remove");var nc,yx=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(nc||(nc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Zu=function(t){return function(e){setTimeout(e,t)}},gx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Zu(10);Vl();window.ftReduxStores||(window.ftReduxStores={});var Pt=class t extends sr{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(yr(a))return a;if(n==null)return;let s=cc({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),l=sc({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 t(s,l,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new _o;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,p=a[d];return p?(...h)=>{let f=p(...h.map(n));return this.reduxStore.dispatch(f),f}:h=>{this.setState({[d]:n(h)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function qu(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))yr(e)&&e.clear()}var ci=class{constructor(e,r,i){this.store=e,this.valueSelector=r,this.callback=i}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),r=this.valueSelector(e);lr(this.lastValue,r)&&(this.callback(r,e),this.lastValue=r)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}};function Yu(t,e,r){return new ci(t,e,r).watch()}var os={};oe(os,{scrollHelper:()=>Xu});var ts,di=new Map,rs=class{lock(e,r){if(r){let i=di.get(r);if(i==null||i===e)return di.set(r,e),r}}release(e,r){r&&di.get(r)===e&&di.delete(r)}findFirstScrollableParent(e){var r;let i,n;for(let a of wn(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){i=s;break}else l&&n==null&&(n=s)}return(r=i??n)!==null&&r!==void 0?r:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,r){var i,n;let a=0;for(;r&&r.offsetParent!==e.offsetParent;)a+=(i=r.offsetTop)!==null&&i!==void 0?i:0,r=r.offsetParent;return a+((n=r?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let i=this.findFirstScrollableParent(e);if(e&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,e),a=n-i.clientHeight+e.clientHeight,s=n,l=mo(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,l)*(a-s)+s;i.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(ts=window.FluidTopicsScrollHelper)!==null&&ts!==void 0?ts:new rs;var Xu=window.FluidTopicsScrollHelper;var is={};oe(is,{shadowQuerySelector:()=>Qu,shadowQuerySelectorAll:()=>Ju});function Qu(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function Ju(t,e,...r){let i=[...t.querySelectorAll(e)];for(let n of r)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 as={};oe(as,{SearchPlaceConverter:()=>Lo,SearchPlaceQueryParams:()=>ie,isSearchPlaceQueryParams:()=>Uc,serializeRequest:()=>of});var tf=Ud(hc(),1);var mc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(mc||(mc={}));var yc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(yc||(yc={}));var gc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.RESOURCE="RESOURCE"})(gc||(gc={}));var bc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(bc||(bc={}));var xc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(xc||(xc={}));var vc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",t.GEN_AI__RATE="GEN_AI__RATE",t.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",t.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(vc||(vc={}));var Sc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Sc||(Sc={}));var Oc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(Oc||(Oc={}));var Cc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Cc||(Cc={}));var Ec;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Ec||(Ec={}));var wc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(wc||(wc={}));var Se;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Se||(Se={}));var Ac;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Ac||(Ac={}));var Rc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Rc||(Rc={}));var _c;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(_c||(_c={}));var ns;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(ns||(ns={}));var kc=t=>Object.keys(ns).includes(t);var Tc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Tc||(Tc={}));var Ic;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Ic||(Ic={}));var Nc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Nc||(Nc={}));var Vr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Vr||(Vr={}));var Dc=t=>Object.keys(Vr).includes(t);var Pc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Pc||(Pc={}));var Lc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Lc||(Lc={}));var se;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(se||(se={}));var $c;(function(t){t.VALID="VALID",t.INVALID="INVALID"})($c||($c={}));var Mc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Mc||(Mc={}));var ef={[se.PERSONAL_BOOK_SHARE_USER]:[se.PERSONAL_BOOK_USER],[se.HTML_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.PDF_EXPORT_USER]:[se.PERSONAL_BOOK_USER],[se.KHUB_ADMIN]:[se.CONTENT_PUBLISHER],[se.ADMIN]:[se.KHUB_ADMIN,se.USERS_ADMIN,se.PORTAL_ADMIN],[se.DEVELOPER]:[se.BETA_USER,se.DEBUG_USER],[se.GENERATIVE_AI_EXPORT_USER]:[se.GENERATIVE_AI_USER]};function Bc(t,e){return t===e||(ef[t]??[]).some(r=>Bc(r,e))}function vr(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Bc(i,e))}function rf(t){return`"${t}"`}function Fc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function of(t,e){return new Lo(t).serialize(e)}var ie;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page"})(ie||(ie={}));var nf=new Set(Object.values(ie));function Uc(t){return nf.has(t)}var Lo=class{constructor(e,r={},i=20,n=!1,a="en-US"){this.baseUrl=e,this.predefinedSorts=r,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(e,r){return this.serializeToCurrentPageIfPossible(e,r??"/search")}serializeToCurrentPageIfPossible(e,r){let i=this.toURLSearchParams(e).toString(),n=r==null||r.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${r}`);return a.search=i,a.toString()}toURLSearchParams(e,r=!1){var i,n,a,s,l,d,p,h,f,y,v,S;let E=new URLSearchParams;e.contentLocale?(!r||e.contentLocale!==this.defaultContentLocale)&&E.append(ie.LOCALE,e.contentLocale):E.append(ie.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&E.append(ie.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&E.append(ie.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&E.append(ie.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((n=e.sort)===null||n===void 0?void 0:n.length)>0&&e.sort[0].key==="ft:lastEdition"&&E.append(ie.SORT,"last_update");let _=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(O=>O.valueFilter))!==null&&s!==void 0?s:[];if(_.length>0){let O=_.map(A=>{var M,z;let Y=((z=(M=A.valueFilter)===null||M===void 0?void 0:M.values)!==null&&z!==void 0?z:[]).map(G=>this.escapeFilters(G)).map(G=>encodeURIComponent(rf(Fc(G)))).join("_");return`${A.key}~${Y}`}).join("*");E.append(ie.VALUE_FILTERS,O)}let T=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(O=>O.dateFilter))!==null&&d!==void 0?d:[];if(T.length>0){let O=T.map(A=>{var M;return`${A.key}~${(M=A.dateFilter)===null||M===void 0?void 0:M.type.toLowerCase()}`}).join("*");E.append(ie.DATE_FILTERS,O)}let L=(h=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(O=>O.rangeFilter))!==null&&h!==void 0?h:[];if(L.length>0){let O=L.map(A=>{var M,z;return`${A.key}~${(M=A.rangeFilter)===null||M===void 0?void 0:M.from}_${(z=A.rangeFilter)===null||z===void 0?void 0:z.to}`}).join("*");E.append(ie.RANGE_FILTERS,O)}let w=(f=e.otherQueryParams)!==null&&f!==void 0?f:{};for(let O in w)E.append(O,w[O]);return!((y=e.paging)===null||y===void 0)&&y.perPage&&((S=(v=e.paging)===null||v===void 0?void 0:v.perPage)!==null&&S!==void 0?S:this.defaultPerPage)!=this.defaultPerPage&&E.append(ie.PER_PAGE,String(e.paging.perPage)),E}parse(e){var r;let i=e.split("?"),n=this.fromURLSearchParams(new URLSearchParams(i.slice(1).join("?"))),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:n.scope}}fromURLSearchParams(e){var r,i,n,a,s,l,d,p;let h=e.get(ie.LOCALE)==="all"?void 0:e.get(ie.LOCALE),f=((r=e.get(ie.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),y=((i=e.get(ie.SORT))!==null&&i!==void 0?i:"DEFAULT").toUpperCase(),v=(n=e.get(ie.SCOPE))!==null&&n!==void 0?n:"default",S=+((a=e.get(ie.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),E={};for(let _ of e.keys())Uc(_)||(E[_]=e.get(_));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(ie.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[v])!==null&&l!==void 0?l:"DEFAULT",virtualField:kc(f)?f:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[y])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:mo(1,isNaN(S)?this.defaultPerPage:S,1e3)},otherQueryParams:E}}parseCompatFilters(e){var r,i,n,a,s,l;let d=[];return e.has(ie.FILTERS)&&(d=this.parseValueFilters((r=e.get(ie.FILTERS))!==null&&r!==void 0?r:"")),(i=e.has(ie.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=e.get(ie.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(ie.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(ie.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(ie.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(Fc).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Vr[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(r,i);return e}superEscapeFilters(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replaceAll(i,n);return e}unescapeFilterValue(e){for(let[r,i,n]of this.filtersEscapeMapping)e=e.replace(n,r);return e}parseLegacyPeriodFilter(e){if(Dc(e))return[{key:"ft:lastEdition",dateFilter:{type:Vr[e]}}];if(e.startsWith("CUSTOM_")){let[r,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}};var ss={};oe(ss,{toFtFormComponent:()=>Sr});var fi=Symbol("elementInternals");function Sr(t,e){class r extends t{static get formAssociated(){return!0}get form(){return this[fi].form}constructor(...n){super(n),this[fi]=this.attachInternals(),this[fi].role=e}setFormValue(n){this[fi].setFormValue(n)}}return r}var ls={};oe(ls,{DateFormatter:()=>jr});var jr=class{static format(e,r,i,n){return window.moment?window.moment(e).locale(r).format(this.getDateFormat(i,n)):e}static getDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}};var cs,ds,ps,us,ko=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ps=(ds=(cs=window.safari)===null||cs===void 0?void 0:cs.pushNotification)===null||ds===void 0?void 0:ds.toString())!==null&&ps!==void 0?ps:"")==="[object SafariRemoteNotification]",af="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(us=window.ftGlobals)!==null&&us!==void 0?us:{lit:sn,litDecorators:dn,litRepeat:pn,litClassMap:un,litStyleMap:fn,litUnsafeHTML:mn,wcUtils:{...Sn,...gn,...On,...ls,...Cn,...Rn,...ra,...vn,...va,...ta,...Ea,...Oa,...Tl,...An,...Ra,...Ta,...Nl,...Ia,...es,...Sa,...os,...is,...as,...ss,isSafari:ko,isTouchScreen:af,setVariable:x}};var Qe;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Qe||(Qe={}));var sf=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},hs=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},fs=Symbol("registerInterval");function lf(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[fs]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[fs]):this.dispatchEvent(new hs)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=fs,sf([W()],r.prototype,"stateManager",void 0),r}var Kt=class extends lf(Ye){};var Wc=o.extend("--ft-ripple-color","",I.colorContent),R={color:Wc,backgroundColor:o.extend("--ft-ripple-background-color","",Wc),opacityContentOnSurfacePressed:o.external(I.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(I.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(I.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(I.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},zc=o.extend("--ft-ripple-color","",I.colorPrimary),Hc={color:zc,backgroundColor:o.extend("--ft-ripple-background-color","",zc)},Vc=o.extend("--ft-ripple-color","",I.colorSecondary),jc={color:Vc,backgroundColor:o.extend("--ft-ripple-background-color","",Vc)},Gc=k`
|
|
51
49
|
:host {
|
|
52
50
|
display: contents;
|
|
53
51
|
}
|
|
@@ -60,7 +58,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
60
58
|
|
|
61
59
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
62
60
|
overflow: hidden;
|
|
63
|
-
border-radius: ${
|
|
61
|
+
border-radius: ${R.borderRadius};
|
|
64
62
|
}
|
|
65
63
|
|
|
66
64
|
.ft-ripple .ft-ripple--background,
|
|
@@ -94,27 +92,27 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
94
92
|
}
|
|
95
93
|
|
|
96
94
|
.ft-ripple .ft-ripple--background {
|
|
97
|
-
background-color: ${
|
|
95
|
+
background-color: ${R.backgroundColor};
|
|
98
96
|
}
|
|
99
97
|
|
|
100
98
|
.ft-ripple .ft-ripple--effect {
|
|
101
|
-
background-color: ${
|
|
99
|
+
background-color: ${R.color};
|
|
102
100
|
}
|
|
103
101
|
|
|
104
102
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
105
|
-
background-color: ${
|
|
103
|
+
background-color: ${jc.backgroundColor};
|
|
106
104
|
}
|
|
107
105
|
|
|
108
106
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
109
|
-
background-color: ${
|
|
107
|
+
background-color: ${jc.color};
|
|
110
108
|
}
|
|
111
109
|
|
|
112
110
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
113
|
-
background-color: ${
|
|
111
|
+
background-color: ${Hc.backgroundColor};
|
|
114
112
|
}
|
|
115
113
|
|
|
116
114
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
117
|
-
background-color: ${
|
|
115
|
+
background-color: ${Hc.color};
|
|
118
116
|
}
|
|
119
117
|
|
|
120
118
|
.ft-ripple .ft-ripple--background {
|
|
@@ -144,126 +142,126 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
144
142
|
}
|
|
145
143
|
|
|
146
144
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
147
|
-
opacity: ${
|
|
145
|
+
opacity: ${R.opacityContentOnSurfaceHover};
|
|
148
146
|
}
|
|
149
147
|
|
|
150
148
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
151
|
-
opacity: ${
|
|
149
|
+
opacity: ${R.opacityContentOnSurfaceSelected};
|
|
152
150
|
}
|
|
153
151
|
|
|
154
152
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
155
|
-
opacity: ${
|
|
153
|
+
opacity: ${R.opacityContentOnSurfaceFocused};
|
|
156
154
|
}
|
|
157
155
|
|
|
158
156
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
159
|
-
opacity: ${
|
|
157
|
+
opacity: ${R.opacityContentOnSurfacePressed};
|
|
160
158
|
transform: translate(-50%, -50%) scale(1);
|
|
161
159
|
}
|
|
162
|
-
`;function
|
|
163
|
-
.ft-typography--${
|
|
164
|
-
font-family: ${
|
|
165
|
-
font-size: ${
|
|
166
|
-
font-weight: ${
|
|
167
|
-
letter-spacing: ${
|
|
168
|
-
line-height: ${
|
|
169
|
-
text-transform: ${
|
|
160
|
+
`;function Kc(t){let e=yo[t];return k`
|
|
161
|
+
.ft-typography--${Ot(t)} {
|
|
162
|
+
font-family: ${e.fontFamily};
|
|
163
|
+
font-size: ${e.fontSize};
|
|
164
|
+
font-weight: ${e.fontWeight};
|
|
165
|
+
letter-spacing: ${e.letterSpacing};
|
|
166
|
+
line-height: ${e.lineHeight};
|
|
167
|
+
text-transform: ${e.textCase};
|
|
170
168
|
}
|
|
171
|
-
`}var
|
|
169
|
+
`}var Zc=o.extend("--ft-typography-font-family","",I.titleFont),Lt=o.extend("--ft-typography-font-family","",I.contentFont),U={fontFamily:Lt,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")},Zt={fontFamily:o.extend("--ft-typography-title-font-family","",Zc),fontSize:o.extend("--ft-typography-title-font-size","",U.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",U.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",U.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",U.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",U.textTransform,"inherit")},qt={fontFamily:o.extend("--ft-typography-title-dense-font-family","",Zc),fontSize:o.extend("--ft-typography-title-dense-font-size","",U.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",U.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",U.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",U.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",U.textTransform,"inherit")},Gr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",Lt),fontSize:o.extend("--ft-typography-subtitle1-font-size","",U.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",U.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",U.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",U.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",U.textTransform,"inherit")},Kr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",Lt),fontSize:o.extend("--ft-typography-subtitle2-font-size","",U.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",U.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",U.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",U.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",U.textTransform,"inherit")},Je={fontFamily:o.extend("--ft-typography-body1-font-family","",Lt),fontSize:o.extend("--ft-typography-body1-font-size","",U.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",U.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",U.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",U.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",U.textTransform,"inherit")},Zr={fontFamily:o.extend("--ft-typography-body2-font-family","",Lt),fontSize:o.extend("--ft-typography-body2-font-size","",U.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",U.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",U.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",U.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",U.textTransform,"inherit")},lt={fontFamily:o.extend("--ft-typography-caption-font-family","",Lt),fontSize:o.extend("--ft-typography-caption-font-size","",U.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",U.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",U.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",U.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",U.textTransform,"inherit")},qr={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",Lt),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",U.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",U.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",U.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",U.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",U.textTransform,"inherit")},Yr={fontFamily:o.extend("--ft-typography-overline-font-family","",Lt),fontSize:o.extend("--ft-typography-overline-font-size","",U.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",U.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",U.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",U.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",U.textTransform,"uppercase")},Ue={fontFamily:o.extend("--ft-typography-button-font-family","",Lt),fontSize:o.extend("--ft-typography-button-font-size","",U.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",U.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",U.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",U.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",U.textTransform,"uppercase")},qc=k`
|
|
172
170
|
.ft-typography--title {
|
|
173
|
-
font-family: ${
|
|
174
|
-
font-size: ${
|
|
175
|
-
font-weight: ${
|
|
176
|
-
letter-spacing: ${
|
|
177
|
-
line-height: ${
|
|
178
|
-
text-transform: ${
|
|
179
|
-
}
|
|
180
|
-
`,
|
|
171
|
+
font-family: ${Zt.fontFamily};
|
|
172
|
+
font-size: ${Zt.fontSize};
|
|
173
|
+
font-weight: ${Zt.fontWeight};
|
|
174
|
+
letter-spacing: ${Zt.letterSpacing};
|
|
175
|
+
line-height: ${Zt.lineHeight};
|
|
176
|
+
text-transform: ${Zt.textTransform};
|
|
177
|
+
}
|
|
178
|
+
`,Yc=k`
|
|
181
179
|
.ft-typography--title-dense {
|
|
182
|
-
font-family: ${
|
|
183
|
-
font-size: ${
|
|
184
|
-
font-weight: ${
|
|
185
|
-
letter-spacing: ${
|
|
186
|
-
line-height: ${
|
|
187
|
-
text-transform: ${
|
|
188
|
-
}
|
|
189
|
-
`,
|
|
180
|
+
font-family: ${qt.fontFamily};
|
|
181
|
+
font-size: ${qt.fontSize};
|
|
182
|
+
font-weight: ${qt.fontWeight};
|
|
183
|
+
letter-spacing: ${qt.letterSpacing};
|
|
184
|
+
line-height: ${qt.lineHeight};
|
|
185
|
+
text-transform: ${qt.textTransform};
|
|
186
|
+
}
|
|
187
|
+
`,Xc=k`
|
|
190
188
|
.ft-typography--subtitle1 {
|
|
191
|
-
font-family: ${
|
|
192
|
-
font-size: ${
|
|
193
|
-
font-weight: ${
|
|
194
|
-
letter-spacing: ${
|
|
195
|
-
line-height: ${
|
|
196
|
-
text-transform: ${
|
|
197
|
-
}
|
|
198
|
-
`,
|
|
189
|
+
font-family: ${Gr.fontFamily};
|
|
190
|
+
font-size: ${Gr.fontSize};
|
|
191
|
+
font-weight: ${Gr.fontWeight};
|
|
192
|
+
letter-spacing: ${Gr.letterSpacing};
|
|
193
|
+
line-height: ${Gr.lineHeight};
|
|
194
|
+
text-transform: ${Gr.textTransform};
|
|
195
|
+
}
|
|
196
|
+
`,Qc=k`
|
|
199
197
|
.ft-typography--subtitle2 {
|
|
200
|
-
font-family: ${
|
|
201
|
-
font-size: ${
|
|
202
|
-
font-weight: ${
|
|
203
|
-
letter-spacing: ${
|
|
204
|
-
line-height: ${
|
|
205
|
-
text-transform: ${
|
|
198
|
+
font-family: ${Kr.fontFamily};
|
|
199
|
+
font-size: ${Kr.fontSize};
|
|
200
|
+
font-weight: ${Kr.fontWeight};
|
|
201
|
+
letter-spacing: ${Kr.letterSpacing};
|
|
202
|
+
line-height: ${Kr.lineHeight};
|
|
203
|
+
text-transform: ${Kr.textTransform};
|
|
206
204
|
}
|
|
207
205
|
|
|
208
|
-
`,
|
|
206
|
+
`,Xr=k`
|
|
209
207
|
.ft-typography--body1 {
|
|
210
|
-
font-family: ${
|
|
211
|
-
font-size: ${
|
|
212
|
-
font-weight: ${
|
|
213
|
-
letter-spacing: ${
|
|
214
|
-
line-height: ${
|
|
215
|
-
text-transform: ${
|
|
216
|
-
}
|
|
217
|
-
`,
|
|
208
|
+
font-family: ${Je.fontFamily};
|
|
209
|
+
font-size: ${Je.fontSize};
|
|
210
|
+
font-weight: ${Je.fontWeight};
|
|
211
|
+
letter-spacing: ${Je.letterSpacing};
|
|
212
|
+
line-height: ${Je.lineHeight};
|
|
213
|
+
text-transform: ${Je.textTransform};
|
|
214
|
+
}
|
|
215
|
+
`,Jc=k`
|
|
218
216
|
.ft-typography--body2 {
|
|
219
|
-
font-family: ${
|
|
220
|
-
font-size: ${
|
|
221
|
-
font-weight: ${
|
|
222
|
-
letter-spacing: ${
|
|
223
|
-
line-height: ${
|
|
224
|
-
text-transform: ${
|
|
225
|
-
}
|
|
226
|
-
`,
|
|
217
|
+
font-family: ${Zr.fontFamily};
|
|
218
|
+
font-size: ${Zr.fontSize};
|
|
219
|
+
font-weight: ${Zr.fontWeight};
|
|
220
|
+
letter-spacing: ${Zr.letterSpacing};
|
|
221
|
+
line-height: ${Zr.lineHeight};
|
|
222
|
+
text-transform: ${Zr.textTransform};
|
|
223
|
+
}
|
|
224
|
+
`,hi=k`
|
|
227
225
|
.ft-typography--caption {
|
|
228
|
-
font-family: ${
|
|
229
|
-
font-size: ${
|
|
230
|
-
font-weight: ${
|
|
231
|
-
letter-spacing: ${
|
|
232
|
-
line-height: ${
|
|
233
|
-
text-transform: ${
|
|
234
|
-
}
|
|
235
|
-
`,
|
|
226
|
+
font-family: ${lt.fontFamily};
|
|
227
|
+
font-size: ${lt.fontSize};
|
|
228
|
+
font-weight: ${lt.fontWeight};
|
|
229
|
+
letter-spacing: ${lt.letterSpacing};
|
|
230
|
+
line-height: ${lt.lineHeight};
|
|
231
|
+
text-transform: ${lt.textTransform};
|
|
232
|
+
}
|
|
233
|
+
`,ed=k`
|
|
236
234
|
.ft-typography--breadcrumb {
|
|
237
|
-
font-family: ${
|
|
238
|
-
font-size: ${
|
|
239
|
-
font-weight: ${
|
|
240
|
-
letter-spacing: ${
|
|
241
|
-
line-height: ${
|
|
242
|
-
text-transform: ${
|
|
243
|
-
}
|
|
244
|
-
`,
|
|
235
|
+
font-family: ${qr.fontFamily};
|
|
236
|
+
font-size: ${qr.fontSize};
|
|
237
|
+
font-weight: ${qr.fontWeight};
|
|
238
|
+
letter-spacing: ${qr.letterSpacing};
|
|
239
|
+
line-height: ${qr.lineHeight};
|
|
240
|
+
text-transform: ${qr.textTransform};
|
|
241
|
+
}
|
|
242
|
+
`,td=k`
|
|
245
243
|
.ft-typography--overline {
|
|
246
|
-
font-family: ${
|
|
247
|
-
font-size: ${
|
|
248
|
-
font-weight: ${
|
|
249
|
-
letter-spacing: ${
|
|
250
|
-
line-height: ${
|
|
251
|
-
text-transform: ${
|
|
252
|
-
}
|
|
253
|
-
`,
|
|
244
|
+
font-family: ${Yr.fontFamily};
|
|
245
|
+
font-size: ${Yr.fontSize};
|
|
246
|
+
font-weight: ${Yr.fontWeight};
|
|
247
|
+
letter-spacing: ${Yr.letterSpacing};
|
|
248
|
+
line-height: ${Yr.lineHeight};
|
|
249
|
+
text-transform: ${Yr.textTransform};
|
|
250
|
+
}
|
|
251
|
+
`,rd=k`
|
|
254
252
|
.ft-typography--button {
|
|
255
|
-
font-family: ${
|
|
256
|
-
font-size: ${
|
|
257
|
-
font-weight: ${
|
|
258
|
-
letter-spacing: ${
|
|
259
|
-
line-height: ${
|
|
260
|
-
text-transform: ${
|
|
261
|
-
}
|
|
262
|
-
`,
|
|
253
|
+
font-family: ${Ue.fontFamily};
|
|
254
|
+
font-size: ${Ue.fontSize};
|
|
255
|
+
font-weight: ${Ue.fontWeight};
|
|
256
|
+
letter-spacing: ${Ue.letterSpacing};
|
|
257
|
+
line-height: ${Ue.lineHeight};
|
|
258
|
+
text-transform: ${Ue.textTransform};
|
|
259
|
+
}
|
|
260
|
+
`,od=k`
|
|
263
261
|
.ft-typography {
|
|
264
262
|
vertical-align: inherit;
|
|
265
263
|
}
|
|
266
|
-
`,
|
|
264
|
+
`,id=[Object.keys(yo).map(t=>Kc(t))];var ue={color:o.extend("--ft-loader-color","",I.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},nd=k`
|
|
267
265
|
:host {
|
|
268
266
|
line-height: 0;
|
|
269
267
|
}
|
|
@@ -272,8 +270,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
272
270
|
display: inline-block;
|
|
273
271
|
position: relative;
|
|
274
272
|
|
|
275
|
-
width: ${
|
|
276
|
-
height: ${
|
|
273
|
+
width: ${ue.size};
|
|
274
|
+
height: ${ue.size};
|
|
277
275
|
}
|
|
278
276
|
|
|
279
277
|
.ft-loader div {
|
|
@@ -282,7 +280,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
282
280
|
width: 25%;
|
|
283
281
|
height: 25%;
|
|
284
282
|
border-radius: 50%;
|
|
285
|
-
background: ${
|
|
283
|
+
background: ${ue.color};
|
|
286
284
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
287
285
|
}
|
|
288
286
|
|
|
@@ -329,10 +327,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
329
327
|
transform: translate(0, 0);
|
|
330
328
|
}
|
|
331
329
|
100% {
|
|
332
|
-
transform: translate(calc(0.35 * ${
|
|
330
|
+
transform: translate(calc(0.35 * ${ue.size}), 0);
|
|
333
331
|
}
|
|
334
332
|
}
|
|
335
|
-
`;var
|
|
333
|
+
`;var Ee={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ad=k`
|
|
336
334
|
:host, i.ft-icon {
|
|
337
335
|
display: inline-flex;
|
|
338
336
|
align-items: center;
|
|
@@ -341,14 +339,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
341
339
|
}
|
|
342
340
|
|
|
343
341
|
:host {
|
|
344
|
-
width: ${
|
|
345
|
-
height: ${
|
|
342
|
+
width: ${Ee.size};
|
|
343
|
+
height: ${Ee.size};
|
|
346
344
|
}
|
|
347
345
|
|
|
348
346
|
i.ft-icon {
|
|
349
347
|
width: 100%;
|
|
350
348
|
height: 100%;
|
|
351
|
-
font-size: ${
|
|
349
|
+
font-size: ${Ee.size};
|
|
352
350
|
line-height: 1;
|
|
353
351
|
font-weight: normal;
|
|
354
352
|
text-transform: none;
|
|
@@ -359,28 +357,28 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
359
357
|
text-rendering: auto;
|
|
360
358
|
-webkit-font-smoothing: antialiased;
|
|
361
359
|
-moz-osx-font-smoothing: grayscale;
|
|
362
|
-
vertical-align: ${
|
|
360
|
+
vertical-align: ${Ee.verticalAlign};
|
|
363
361
|
}
|
|
364
362
|
|
|
365
363
|
i.ft-icon.ft-icon--fluid-topics {
|
|
366
|
-
font-family: ${
|
|
364
|
+
font-family: ${Ee.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
367
365
|
|
|
368
366
|
/* Ugly fix because font is broken */
|
|
369
|
-
font-size: calc(0.75 * ${
|
|
370
|
-
line-height: ${
|
|
367
|
+
font-size: calc(0.75 * ${Ee.size});
|
|
368
|
+
line-height: ${Ee.size};
|
|
371
369
|
position: relative;
|
|
372
370
|
top: -4%;
|
|
373
371
|
justify-content: center;
|
|
374
372
|
}
|
|
375
373
|
|
|
376
374
|
.ft-icon--file-format {
|
|
377
|
-
font-family: ${
|
|
375
|
+
font-family: ${Ee.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
378
376
|
}
|
|
379
377
|
|
|
380
378
|
.ft-icon--material {
|
|
381
|
-
font-family: ${
|
|
379
|
+
font-family: ${Ee.materialFontFamily}, "Material Icons", sans-serif;
|
|
382
380
|
}
|
|
383
|
-
`;var
|
|
381
|
+
`;var sd=o.extend("--ft-button-color","",I.colorPrimary),ce={backgroundColor:o.extend("--ft-button-background-color","",I.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",I.borderRadiusL),color:sd,fontSize:o.extend("--ft-button-font-size","",Ue.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",sd),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(I.colorOpacityDisabled,"Design system")},ld=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",I.colorOnPrimary)),ms={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",I.colorPrimary)),color:ld,rippleColor:o.extend("--ft-button-primary-ripple-color","",ld)},xt={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",I.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},cd=[k`
|
|
384
382
|
:host {
|
|
385
383
|
display: inline-block;
|
|
386
384
|
max-width: 100%;
|
|
@@ -391,7 +389,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
391
389
|
box-shadow: 0px 0px 0px transparent;
|
|
392
390
|
border: 0px solid transparent;
|
|
393
391
|
text-shadow: 0px 0px 0px transparent;
|
|
394
|
-
font-size: ${
|
|
392
|
+
font-size: ${ce.fontSize};
|
|
395
393
|
text-decoration: none;
|
|
396
394
|
}
|
|
397
395
|
|
|
@@ -421,31 +419,31 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
421
419
|
border: none;
|
|
422
420
|
pointer-events: auto;
|
|
423
421
|
|
|
424
|
-
--ft-button-internal-line-height: max(calc(${
|
|
425
|
-
--ft-button-internal-color: ${
|
|
426
|
-
${
|
|
427
|
-
${
|
|
422
|
+
--ft-button-internal-line-height: max(calc(${ce.fontSize} + 2px), ${ce.iconSize});
|
|
423
|
+
--ft-button-internal-color: ${ce.color};
|
|
424
|
+
${x(Ee.size,ce.iconSize)};
|
|
425
|
+
${x(R.color,ce.rippleColor)};
|
|
428
426
|
|
|
429
|
-
border-radius: ${
|
|
430
|
-
padding: ${
|
|
431
|
-
background-color: ${
|
|
427
|
+
border-radius: ${ce.borderRadius};
|
|
428
|
+
padding: ${ce.verticalPadding} ${ce.horizontalPadding};
|
|
429
|
+
background-color: ${ce.backgroundColor};
|
|
432
430
|
color: var(--ft-button-internal-color);
|
|
433
431
|
-webkit-mask-image: radial-gradient(white, black);
|
|
434
432
|
}
|
|
435
433
|
|
|
436
434
|
.ft-button.ft-button--outlined {
|
|
437
435
|
border: 1px solid var(--ft-button-internal-color);
|
|
438
|
-
padding: calc(${
|
|
436
|
+
padding: calc(${ce.verticalPadding} - 1px) calc(${ce.horizontalPadding} - 1px);
|
|
439
437
|
}
|
|
440
438
|
|
|
441
439
|
.ft-button.ft-button--dense {
|
|
442
|
-
padding: ${
|
|
443
|
-
border-radius: ${
|
|
444
|
-
gap: ${
|
|
440
|
+
padding: ${xt.verticalPadding} ${xt.horizontalPadding};
|
|
441
|
+
border-radius: ${xt.borderRadius};
|
|
442
|
+
gap: ${xt.iconPadding};
|
|
445
443
|
}
|
|
446
444
|
|
|
447
445
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
448
|
-
padding: calc(${
|
|
446
|
+
padding: calc(${xt.verticalPadding} - 1px) calc(${xt.horizontalPadding} - 1px);
|
|
449
447
|
}
|
|
450
448
|
|
|
451
449
|
.ft-button:not([disabled]):hover {
|
|
@@ -453,22 +451,22 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
453
451
|
}
|
|
454
452
|
|
|
455
453
|
.ft-button--round {
|
|
456
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
454
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ce.verticalPadding});
|
|
457
455
|
}
|
|
458
456
|
|
|
459
457
|
.ft-button--round.ft-button--dense {
|
|
460
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
458
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${xt.verticalPadding});
|
|
461
459
|
}
|
|
462
460
|
|
|
463
461
|
.ft-button[disabled] {
|
|
464
462
|
filter: grayscale(1);
|
|
465
|
-
opacity: ${
|
|
463
|
+
opacity: ${ce.opacityDisabled};
|
|
466
464
|
}
|
|
467
465
|
|
|
468
466
|
.ft-button.ft-button--primary {
|
|
469
|
-
background-color: ${
|
|
470
|
-
--ft-button-internal-color: ${
|
|
471
|
-
${
|
|
467
|
+
background-color: ${ms.backgroundColor};
|
|
468
|
+
--ft-button-internal-color: ${ms.color};
|
|
469
|
+
${x(R.color,ms.rippleColor)};
|
|
472
470
|
}
|
|
473
471
|
|
|
474
472
|
.ft-button:focus {
|
|
@@ -481,13 +479,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
481
479
|
white-space: nowrap;
|
|
482
480
|
text-overflow: ellipsis;
|
|
483
481
|
display: block;
|
|
484
|
-
margin: 0 ${
|
|
485
|
-
${
|
|
486
|
-
${
|
|
482
|
+
margin: 0 ${ce.iconPadding};
|
|
483
|
+
${x(Ue.fontSize,"1em")};
|
|
484
|
+
${x(Ue.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
487
485
|
}
|
|
488
486
|
|
|
489
487
|
.ft-button--dense .ft-button--label {
|
|
490
|
-
margin: 0 ${
|
|
488
|
+
margin: 0 ${xt.iconPadding};
|
|
491
489
|
}
|
|
492
490
|
|
|
493
491
|
.ft-button--label[hidden] {
|
|
@@ -500,13 +498,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
500
498
|
}
|
|
501
499
|
|
|
502
500
|
.ft-button--label[hidden] + [part="icon"] {
|
|
503
|
-
margin: 0 calc(${
|
|
504
|
-
padding: 0 ${
|
|
501
|
+
margin: 0 calc(${ce.horizontalPadding} * -1);
|
|
502
|
+
padding: 0 ${ce.verticalPadding};
|
|
505
503
|
}
|
|
506
504
|
|
|
507
505
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
508
|
-
margin: 0 calc(${
|
|
509
|
-
padding: 0 ${
|
|
506
|
+
margin: 0 calc(${xt.horizontalPadding} * -1);
|
|
507
|
+
padding: 0 ${xt.verticalPadding};
|
|
510
508
|
}
|
|
511
509
|
|
|
512
510
|
.ft-button:not(.ft-button--trailing-icon) [part="label"]{
|
|
@@ -514,10 +512,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
514
512
|
}
|
|
515
513
|
|
|
516
514
|
ft-loader {
|
|
517
|
-
${
|
|
518
|
-
${
|
|
515
|
+
${x(ue.size,ce.iconSize)};
|
|
516
|
+
${x(ue.color,"var(--ft-button-internal-color)")};
|
|
519
517
|
}
|
|
520
|
-
`,
|
|
518
|
+
`,hr];var me={textColor:o.extend("--ft-switch-text-color","",I.colorOnSurfaceHigh),backgroundColor:o.extend("--ft-switch-background-color","",I.colorSurface),selectedTextColor:o.extend("--ft-switch-selected-text-color","",I.colorPrimary),selectedBackgroundColor:o.extend("--ft-switch-selected-background-color","",I.colorPrimary),borderColor:o.extend("--ft-switch-border-color","",I.colorOutline),borderRadius:o.extend("--ft-switch-border-radius","",I.borderRadiusL),fontSize:o.extend("--ft-switch-font-size","",Ue.fontSize),iconSize:o.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:o.extend("--ft-switch-text-color","",I.colorOnSurfaceMedium),rippleColor:o.extend("--ft-switch-ripple-color","",I.colorPrimary),outlineColor:o.extend("--ft-switch-outline-color","",I.colorPrimary)};var vt={feedbackInputMinWidth:o.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:o.external(I.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:o.extend("--ft-reader-feedback-send-feedback-color","",I.colorOnPrimary),sendFeedbackBackgroundColor:o.extend("--ft-reader-feedback-send-feedback-background-color","",I.colorPrimary),filledRatingColor:o.extend("--ft-reader-feedback-filled-rating-color","",I.colorPrimary),emptyRatingColor:o.extend("--ft-reader-feedback-empty-rating-color","",I.colorOnSurfaceMedium),mainTitleFontSize:o.external(Zt.fontSize,"Typography"),sectionTitleFontSize:o.external(qt.fontSize,"Typography"),starsBackgroundColor:o.create("--ft-reader-feedback-stars-background-color","","COLOR",I.colorSurface)},dd=k`
|
|
521
519
|
.ft-reader-feedback {
|
|
522
520
|
box-sizing: border-box;
|
|
523
521
|
display: flex;
|
|
@@ -530,7 +528,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
530
528
|
flex-direction: row;
|
|
531
529
|
align-items: center;
|
|
532
530
|
margin-left: -6px;
|
|
533
|
-
${
|
|
531
|
+
${x(ce.backgroundColor,vt.starsBackgroundColor)}
|
|
534
532
|
}
|
|
535
533
|
|
|
536
534
|
.ft-reader-feedback--rating, .ft-reader-feedback--feedback {
|
|
@@ -543,14 +541,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
543
541
|
}
|
|
544
542
|
|
|
545
543
|
.ft-reader-feedback--rating {
|
|
546
|
-
${
|
|
547
|
-
${
|
|
548
|
-
${
|
|
549
|
-
${
|
|
544
|
+
${x(ce.color,vt.emptyRatingColor)};
|
|
545
|
+
${x(ce.rippleColor,vt.filledRatingColor)};
|
|
546
|
+
${x(me.textColor,vt.emptyRatingColor)};
|
|
547
|
+
${x(me.selectedTextColor,vt.filledRatingColor)};
|
|
550
548
|
}
|
|
551
549
|
|
|
552
550
|
.ft-reader-feedback--rating .ft-reader-feedback--active {
|
|
553
|
-
${
|
|
551
|
+
${x(ce.color,vt.filledRatingColor)};
|
|
554
552
|
}
|
|
555
553
|
|
|
556
554
|
.ft-reader-feedback--feedback {
|
|
@@ -558,41 +556,41 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
558
556
|
}
|
|
559
557
|
|
|
560
558
|
.ft-reader-feedback--rating-date {
|
|
561
|
-
color: ${
|
|
559
|
+
color: ${vt.ratedDateColor};
|
|
562
560
|
}
|
|
563
561
|
|
|
564
562
|
.ft-reader-feedback--feedback ft-text-area {
|
|
565
|
-
min-width: ${
|
|
563
|
+
min-width: ${vt.feedbackInputMinWidth};
|
|
566
564
|
}
|
|
567
565
|
|
|
568
566
|
.ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
|
|
569
|
-
${
|
|
570
|
-
${
|
|
567
|
+
${x(ce.color,vt.sendFeedbackColor)};
|
|
568
|
+
${x(ce.backgroundColor,vt.sendFeedbackBackgroundColor)};
|
|
571
569
|
}
|
|
572
570
|
|
|
573
571
|
[part="buttons-container"] {
|
|
574
572
|
align-self: flex-end;
|
|
575
573
|
}
|
|
576
|
-
`;var
|
|
577
|
-
<${
|
|
574
|
+
`;var ud=Symbol.for(""),cf=t=>{if(t?.r===ud)return t?._$litStatic$},ys=t=>({_$litStatic$:t,r:ud});var pd=new Map,gs=t=>(e,...r)=>{let i=r.length,n,a,s=[],l=[],d,p=0,h=!1;for(;p<i;){for(d=e[p];p<i&&(a=r[p],(n=cf(a))!==void 0);)d+=n+e[++p],h=!0;p!==i&&l.push(a),s.push(d),p++}if(p===i&&s.push(e[i]),h){let f=s.join("$$lit$$");(e=pd.get(f))===void 0&&(s.raw=s,pd.set(f,e=s)),r=l}return t(e,...r)},bs=gs(N),L0=gs(tn),k0=gs(rn);var Yt;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(Yt||(Yt={}));var fd=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},xe=class extends V{constructor(){super(...arguments),this.variant=Yt.body1}render(){return this.element?bs`
|
|
575
|
+
<${ys(this.element)}
|
|
578
576
|
part="text"
|
|
579
577
|
class="ft-typography ft-typography--${this.variant}">
|
|
580
578
|
<slot></slot>
|
|
581
|
-
</${
|
|
582
|
-
`:
|
|
579
|
+
</${ys(this.element)}>
|
|
580
|
+
`:bs`
|
|
583
581
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
584
|
-
`}};
|
|
582
|
+
`}};xe.styles=[qc,Yc,Xc,Qc,Xr,Jc,hi,ed,td,rd,od,...id];fd([g()],xe.prototype,"element",void 0);fd([g()],xe.prototype,"variant",void 0);Q("ft-typography")(xe);var Ve=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},re=class extends V{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new le(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new le(10),this.moveRipple=e=>{var r,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.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=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return N`
|
|
585
583
|
<style>
|
|
586
584
|
.ft-ripple .ft-ripple--effect {
|
|
587
585
|
left: ${this.originX}px;
|
|
588
586
|
top: ${this.originY}px;
|
|
589
587
|
}
|
|
590
588
|
</style>
|
|
591
|
-
<div class="${
|
|
589
|
+
<div class="${_e(e)}">
|
|
592
590
|
<div class="ft-ripple--background"></div>
|
|
593
591
|
<div class="ft-ripple--effect"></div>
|
|
594
592
|
</div>
|
|
595
|
-
`}contentAvailableCallback(
|
|
593
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.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 e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>d=>{l.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};re.elementDefinitions={};re.styles=Gc;Ve([g({type:Boolean})],re.prototype,"primary",void 0);Ve([g({type:Boolean})],re.prototype,"secondary",void 0);Ve([g({type:Boolean})],re.prototype,"unbounded",void 0);Ve([g({type:Boolean})],re.prototype,"activated",void 0);Ve([g({type:Boolean})],re.prototype,"selected",void 0);Ve([g({type:Boolean})],re.prototype,"disabled",void 0);Ve([W()],re.prototype,"hovered",void 0);Ve([W()],re.prototype,"focused",void 0);Ve([W()],re.prototype,"pressed",void 0);Ve([W()],re.prototype,"rippling",void 0);Ve([W()],re.prototype,"originX",void 0);Ve([W()],re.prototype,"originY",void 0);Ve([X(".ft-ripple")],re.prototype,"ripple",void 0);Ve([X(".ft-ripple--effect")],re.prototype,"rippleEffect",void 0);Q("ft-ripple")(re);var Qr={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.external(I.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},hd=k`
|
|
596
594
|
.ft-tooltip--container {
|
|
597
595
|
display: block;
|
|
598
596
|
}
|
|
@@ -607,21 +605,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
607
605
|
box-sizing: border-box;
|
|
608
606
|
overflow: hidden;
|
|
609
607
|
width: max-content;
|
|
610
|
-
max-width: ${
|
|
608
|
+
max-width: ${Qr.maxWidth};
|
|
611
609
|
text-align: center;
|
|
612
|
-
padding: ${
|
|
613
|
-
z-index: ${
|
|
610
|
+
padding: ${Qr.distance};
|
|
611
|
+
z-index: ${Qr.zIndex};
|
|
614
612
|
}
|
|
615
613
|
|
|
616
614
|
.ft-tooltip--content {
|
|
617
615
|
padding: 4px 8px;
|
|
618
|
-
border-radius: ${
|
|
619
|
-
background-color: ${
|
|
620
|
-
color: ${
|
|
616
|
+
border-radius: ${Qr.borderRadiusS};
|
|
617
|
+
background-color: ${Qr.backgroundColor};
|
|
618
|
+
color: ${Qr.color};
|
|
621
619
|
position: relative;
|
|
622
620
|
word-break: break-word;
|
|
623
621
|
}
|
|
624
|
-
`;var
|
|
622
|
+
`;var je=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},fe=class extends V{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new le,this.revealDebouncer=new le}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return N`
|
|
625
623
|
<div part="container"
|
|
626
624
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
627
625
|
@mouseenter=${this.onHover}
|
|
@@ -639,12 +637,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
639
637
|
</div>
|
|
640
638
|
</div>
|
|
641
639
|
</div>
|
|
642
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",za(this.slottedElement,this.tooltip,this.position).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,r){return Math.max(t,Math.min(0,-r))}};ft.elementDefinitions={"ft-typography":xt};ft.styles=lp;jt([g()],ft.prototype,"text",void 0);jt([g({type:Boolean})],ft.prototype,"manual",void 0);jt([g({type:Boolean})],ft.prototype,"inline",void 0);jt([g({type:Number})],ft.prototype,"delay",void 0);jt([g()],ft.prototype,"position",void 0);jt([Oo()],ft.prototype,"slotNodes",void 0);jt([X(".ft-tooltip--container")],ft.prototype,"container",void 0);jt([X(".ft-tooltip")],ft.prototype,"tooltip",void 0);jt([X(".ft-tooltip--content")],ft.prototype,"tooltipContent",void 0);jt([H()],ft.prototype,"visible",void 0);jt([we({passive:!0})],ft.prototype,"onTouch",null);jt([we({passive:!0})],ft.prototype,"onHover",null);jt([we({passive:!0})],ft.prototype,"onOut",null);jt([we({passive:!0})],ft.prototype,"onClick",null);J("ft-tooltip")(ft);var Tr;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱"})(Tr||(Tr={}));var N;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(N||(N={}));var PO=new Map([...["abw"].map(e=>[e,N.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,N.AUDIO]),...["avi"].map(e=>[e,N.AVI]),...["chm","xhs"].map(e=>[e,N.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,N.CODE]),...["csv"].map(e=>[e,N.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,N.DITA]),...["epub"].map(e=>[e,N.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,N.EXCEL]),...["flac"].map(e=>[e,N.FLAC]),...["gif"].map(e=>[e,N.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,N.GZIP]),...["html","htm","xhtml"].map(e=>[e,N.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,N.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,N.JPEG]),...["json"].map(e=>[e,N.JSON]),...["m4a","m4p"].map(e=>[e,N.M4A]),...["mov","qt"].map(e=>[e,N.MOV]),...["mp3"].map(e=>[e,N.MP3]),...["mp4","m4v"].map(e=>[e,N.MP4]),...["ogg","oga"].map(e=>[e,N.OGG]),...["pdf","ps"].map(e=>[e,N.PDF]),...["png"].map(e=>[e,N.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,N.POWERPOINT]),...["rar"].map(e=>[e,N.RAR]),...["stp"].map(e=>[e,N.STP]),...["txt","rtf","md","mdown"].map(e=>[e,N.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,N.VIDEO]),...["wav"].map(e=>[e,N.WAV]),...["wma"].map(e=>[e,N.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,N.WORD]),...["xml","xsl","rdf"].map(e=>[e,N.XML]),...["yaml","yml","x-yaml"].map(e=>[e,N.YAML]),...["zip"].map(e=>[e,N.ZIP])]);var LO={[N.ABW]:"#91ABC6",[N.AUDIO]:"#1795E3",[N.AVI]:"#E63324",[N.CHM]:"#71C3EB",[N.CODE]:"#71C3EB",[N.CSV]:"#1F7345",[N.DITA]:"#71C3EB",[N.EPUB]:"#85B926",[N.EXCEL]:"#1F7345",[N.FLAC]:"#1795E3",[N.GIF]:"#59B031",[N.GZIP]:"#F8AB36",[N.HTML]:"#71C3EB",[N.IMAGE]:"#59B031",[N.JPEG]:"#59B031",[N.JSON]:"#71C3EB",[N.M4A]:"#1795E3",[N.MOV]:"#E63324",[N.MP3]:"#1795E3",[N.MP4]:"#E63324",[N.OGG]:"#1795E3",[N.PDF]:"#E44948",[N.PNG]:"#59B031",[N.POWERPOINT]:"#B54A2B",[N.RAR]:"#F8AB36",[N.STP]:"#3764B1",[N.TEXT]:"#3162AB",[N.UNKNOWN]:"#999999",[N.VIDEO]:"#E63324",[N.WAV]:"#1795E3",[N.WMA]:"#1795E3",[N.WORD]:"#3162AB",[N.XML]:"#71C3EB",[N.YAML]:"#71C3EB",[N.ZIP]:"#F8AB36"};var Dt;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Dt||(Dt={}));var Wi=function(e,t,r,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,i);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(n<3?s(a):n>3?s(t,r,a):s(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a},Ct=class extends j{constructor(){super(...arguments),this.resolvedIcon=W}render(){let t=this.variant&&Object.values(Dt).includes(this.variant)?this.variant:Dt.fluid_topics,r=t!==Dt.material||!!this.value;return P`
|
|
643
|
-
<i class="ft-icon ft-icon--${
|
|
644
|
-
${
|
|
640
|
+
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",ba(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,r){return Math.max(e,Math.min(0,-r))}};fe.elementDefinitions={"ft-typography":xe};fe.styles=hd;je([g()],fe.prototype,"text",void 0);je([g({type:Boolean})],fe.prototype,"manual",void 0);je([g({type:Boolean})],fe.prototype,"inline",void 0);je([g({type:Number})],fe.prototype,"delay",void 0);je([g()],fe.prototype,"position",void 0);je([co()],fe.prototype,"slotNodes",void 0);je([X(".ft-tooltip--container")],fe.prototype,"container",void 0);je([X(".ft-tooltip")],fe.prototype,"tooltip",void 0);je([X(".ft-tooltip--content")],fe.prototype,"tooltipContent",void 0);je([W()],fe.prototype,"visible",void 0);je([wt({passive:!0})],fe.prototype,"onTouch",null);je([wt({passive:!0})],fe.prototype,"onHover",null);je([wt({passive:!0})],fe.prototype,"onOut",null);je([wt({passive:!0})],fe.prototype,"onClick",null);Q("ft-tooltip")(fe);var Or;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱"})(Or||(Or={}));var P;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(P||(P={}));var wS=new Map([...["abw"].map(t=>[t,P.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(t=>[t,P.AUDIO]),...["avi"].map(t=>[t,P.AVI]),...["chm","xhs"].map(t=>[t,P.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(t=>[t,P.CODE]),...["csv"].map(t=>[t,P.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,P.DITA]),...["epub"].map(t=>[t,P.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,P.EXCEL]),...["flac"].map(t=>[t,P.FLAC]),...["gif"].map(t=>[t,P.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,P.GZIP]),...["html","htm","xhtml"].map(t=>[t,P.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(t=>[t,P.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,P.JPEG]),...["json"].map(t=>[t,P.JSON]),...["m4a","m4p"].map(t=>[t,P.M4A]),...["mov","qt"].map(t=>[t,P.MOV]),...["mp3"].map(t=>[t,P.MP3]),...["mp4","m4v"].map(t=>[t,P.MP4]),...["ogg","oga"].map(t=>[t,P.OGG]),...["pdf","ps"].map(t=>[t,P.PDF]),...["png"].map(t=>[t,P.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,P.POWERPOINT]),...["rar"].map(t=>[t,P.RAR]),...["stp"].map(t=>[t,P.STP]),...["txt","rtf","md","mdown"].map(t=>[t,P.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(t=>[t,P.VIDEO]),...["wav"].map(t=>[t,P.WAV]),...["wma"].map(t=>[t,P.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,P.WORD]),...["xml","xsl","rdf"].map(t=>[t,P.XML]),...["yaml","yml","x-yaml"].map(t=>[t,P.YAML]),...["zip"].map(t=>[t,P.ZIP])]);var AS={[P.ABW]:"#91ABC6",[P.AUDIO]:"#1795E3",[P.AVI]:"#E63324",[P.CHM]:"#71C3EB",[P.CODE]:"#71C3EB",[P.CSV]:"#1F7345",[P.DITA]:"#71C3EB",[P.EPUB]:"#85B926",[P.EXCEL]:"#1F7345",[P.FLAC]:"#1795E3",[P.GIF]:"#59B031",[P.GZIP]:"#F8AB36",[P.HTML]:"#71C3EB",[P.IMAGE]:"#59B031",[P.JPEG]:"#59B031",[P.JSON]:"#71C3EB",[P.M4A]:"#1795E3",[P.MOV]:"#E63324",[P.MP3]:"#1795E3",[P.MP4]:"#E63324",[P.OGG]:"#1795E3",[P.PDF]:"#E44948",[P.PNG]:"#59B031",[P.POWERPOINT]:"#B54A2B",[P.RAR]:"#F8AB36",[P.STP]:"#3764B1",[P.TEXT]:"#3162AB",[P.UNKNOWN]:"#999999",[P.VIDEO]:"#E63324",[P.WAV]:"#1795E3",[P.WMA]:"#1795E3",[P.WORD]:"#3162AB",[P.XML]:"#71C3EB",[P.YAML]:"#71C3EB",[P.ZIP]:"#F8AB36"};var $e;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})($e||($e={}));var mi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Oe=class extends V{constructor(){super(...arguments),this.resolvedIcon=F}render(){let e=this.variant&&Object.values($e).includes(this.variant)?this.variant:$e.fluid_topics,r=e!==$e.material||!!this.value;return N`
|
|
641
|
+
<i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
|
|
642
|
+
${hn(this.resolvedIcon)}
|
|
645
643
|
<slot ?hidden=${r}></slot>
|
|
646
644
|
</i>
|
|
647
|
-
`}get textContent(){var
|
|
645
|
+
`}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.textContent;switch(this.variant){case $e.file_format:this.resolvedIcon=(e=P[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case $e.material:this.resolvedIcon=this.value||F;break;default:this.resolvedIcon=(r=Or[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Oe.elementDefinitions={};Oe.styles=ad;mi([g()],Oe.prototype,"variant",void 0);mi([g()],Oe.prototype,"value",void 0);mi([W()],Oe.prototype,"resolvedIcon",void 0);mi([X("slot")],Oe.prototype,"slottedContent",void 0);Q("ft-icon")(Oe);var we={borderRadiusLeft:o.extend("--ft-switch-option-border-radius-left","",I.borderRadiusL),borderRadiusRight:o.extend("--ft-switch-option-border-radius-right","",I.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")},md=k`
|
|
648
646
|
.ft-switch-option {
|
|
649
647
|
position: relative;
|
|
650
648
|
display: inline-block;
|
|
@@ -658,20 +656,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
658
656
|
}
|
|
659
657
|
|
|
660
658
|
.ft-switch-option--content {
|
|
661
|
-
--ft-switch-option-internal-line-height: calc(${
|
|
662
|
-
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${
|
|
659
|
+
--ft-switch-option-internal-line-height: calc(${me.fontSize} + 2px);
|
|
660
|
+
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${me.iconSize});
|
|
663
661
|
|
|
664
662
|
border-style: solid;
|
|
665
|
-
border-color: ${
|
|
666
|
-
border-width: ${
|
|
667
|
-
border-radius: ${
|
|
663
|
+
border-color: ${me.borderColor};
|
|
664
|
+
border-width: ${we.borderWidthVertical} ${we.borderWidthRight} ${we.borderWidthVertical} ${we.borderWidthLeft};
|
|
665
|
+
border-radius: ${we.borderRadiusLeft} ${we.borderRadiusRight} ${we.borderRadiusRight} ${we.borderRadiusLeft};
|
|
668
666
|
display: flex;
|
|
669
667
|
align-items: center;
|
|
670
668
|
justify-content: center;
|
|
671
669
|
overflow: hidden;
|
|
672
|
-
${
|
|
670
|
+
${x(Ee.size,me.iconSize)};
|
|
673
671
|
padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
|
|
674
|
-
background-color: ${
|
|
672
|
+
background-color: ${me.backgroundColor};
|
|
675
673
|
-webkit-mask-image: radial-gradient(white, black);
|
|
676
674
|
}
|
|
677
675
|
|
|
@@ -680,32 +678,32 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
680
678
|
}
|
|
681
679
|
|
|
682
680
|
.ft-switch-option--selected .ft-switch-option--content:before {
|
|
683
|
-
background-color: ${
|
|
684
|
-
border-radius: ${
|
|
681
|
+
background-color: ${me.selectedBackgroundColor};
|
|
682
|
+
border-radius: ${we.borderRadiusLeft} ${we.borderRadiusRight} ${we.borderRadiusRight} ${we.borderRadiusLeft};
|
|
685
683
|
position: absolute;
|
|
686
684
|
inset: 0;
|
|
687
685
|
content: "";
|
|
688
686
|
z-index: 1;
|
|
689
|
-
opacity: ${
|
|
687
|
+
opacity: ${I.opacityPrimaryOnSurfaceSelected};
|
|
690
688
|
}
|
|
691
689
|
|
|
692
690
|
.ft-switch-option--label {
|
|
693
|
-
color: ${
|
|
691
|
+
color: ${me.textColor};
|
|
694
692
|
overflow: hidden;
|
|
695
693
|
white-space: nowrap;
|
|
696
694
|
text-overflow: ellipsis;
|
|
697
695
|
display: block;
|
|
698
696
|
margin: 0 8px;
|
|
699
|
-
${
|
|
700
|
-
${
|
|
697
|
+
${x(Ue.fontSize,me.fontSize)};
|
|
698
|
+
${x(Ue.lineHeight,"var(--ft-switch-option-internal-content-height)")}
|
|
701
699
|
}
|
|
702
700
|
|
|
703
701
|
.ft-switch-option--selected .ft-switch-option--label {
|
|
704
|
-
color: ${
|
|
702
|
+
color: ${me.selectedTextColor};
|
|
705
703
|
}
|
|
706
704
|
|
|
707
705
|
.ft-switch-option--focused {
|
|
708
|
-
outline: 1px solid ${
|
|
706
|
+
outline: 1px solid ${me.outlineColor};
|
|
709
707
|
}
|
|
710
708
|
|
|
711
709
|
.ft-switch-option--label[hidden] {
|
|
@@ -713,7 +711,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
713
711
|
}
|
|
714
712
|
|
|
715
713
|
.ft-switch-option--ripple {
|
|
716
|
-
${
|
|
714
|
+
${x(R.color,me.rippleColor)};
|
|
717
715
|
}
|
|
718
716
|
|
|
719
717
|
ft-icon, ft-ripple, ft-typography {
|
|
@@ -726,20 +724,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
726
724
|
|
|
727
725
|
ft-icon {
|
|
728
726
|
flex-shrink: 0;
|
|
729
|
-
color: ${
|
|
727
|
+
color: ${me.iconColor};
|
|
730
728
|
}
|
|
731
729
|
|
|
732
730
|
.ft-switch-option--selected ft-icon {
|
|
733
|
-
color: ${
|
|
731
|
+
color: ${me.selectedTextColor};
|
|
734
732
|
}
|
|
735
|
-
`;var
|
|
736
|
-
<label part="label" for="input" class=${
|
|
733
|
+
`;var ct=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},xs=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},vs=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},ve=class extends V{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(e){super.update(e),e.has("selected")&&this.dispatchEvent(new vs(this.selected))}render(){let e={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(N`
|
|
734
|
+
<label part="label" for="input" class=${_e(e)}
|
|
737
735
|
@click=${this.onChange}>
|
|
738
736
|
<div class="ft-switch-option--content">
|
|
739
737
|
<ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
|
|
740
738
|
<ft-typography part="text"
|
|
741
739
|
variant="button"
|
|
742
|
-
class="ft-switch-option--label ${
|
|
740
|
+
class="ft-switch-option--label ${ko?"ft-safari-ellipsis-fix":""}"
|
|
743
741
|
?hidden=${!this.hasTextContent()}>
|
|
744
742
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
745
743
|
</ft-typography>
|
|
@@ -748,29 +746,29 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
748
746
|
</label>
|
|
749
747
|
<input id="input" type="radio" class="ft-switch-option--input"
|
|
750
748
|
.checked=${this.selected}>
|
|
751
|
-
`)}addTooltip(
|
|
749
|
+
`)}addTooltip(e){return this.hasTextContent()||this.getLabel().trim().length===0?e:N`
|
|
752
750
|
<ft-tooltip part="tooltip"
|
|
753
751
|
text="${this.getLabel()}"
|
|
754
752
|
position="${this.tooltipPosition}">
|
|
755
|
-
${
|
|
753
|
+
${e}
|
|
756
754
|
</ft-tooltip>
|
|
757
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(
|
|
755
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(e){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new xs(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?N`
|
|
758
756
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
759
|
-
`:
|
|
760
|
-
<div @keydown=${this.onKeyDown} tabindex="-1" class="${
|
|
757
|
+
`:F}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};ve.elementDefinitions={"ft-ripple":re,"ft-typography":xe,"ft-tooltip":fe,"ft-icon":Oe};ve.styles=[mr,md];ct([g()],ve.prototype,"value",void 0);ct([g()],ve.prototype,"icon",void 0);ct([g()],ve.prototype,"iconVariant",void 0);ct([g()],ve.prototype,"label",void 0);ct([g()],ve.prototype,"tooltipPosition",void 0);ct([g({type:Boolean,reflect:!0})],ve.prototype,"selected",void 0);ct([g({type:Boolean})],ve.prototype,"trailingIcon",void 0);ct([g({type:Boolean})],ve.prototype,"unselectable",void 0);ct([X(".ft-switch-option--content slot")],ve.prototype,"slottedContent",void 0);ct([X(".ft-switch-option--input")],ve.prototype,"input",void 0);ct([W()],ve.prototype,"isFocused",void 0);var Cr=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ss=class extends CustomEvent{constructor(e){super("change",{detail:e})}},We=class extends V{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return N`
|
|
758
|
+
<div @keydown=${this.onKeyDown} tabindex="-1" class="${_e(e)}" role="radiogroup" aria-label=${this.label}>
|
|
761
759
|
<slot @slotchange=${this.onSlotchange}
|
|
762
760
|
@option-change=${this.onOptionChangeByScript}
|
|
763
761
|
@option-change-by-user=${this.onOptionChangeByUser}
|
|
764
762
|
></slot>
|
|
765
763
|
</div>
|
|
766
|
-
`}onKeyDown(
|
|
764
|
+
`}onKeyDown(e){let r;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.code=="Space"&&(r=this.options.indexOf(e.target)),r!=null&&(e.preventDefault(),this.options[this.fixIndex(r)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(r)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(r=>{r instanceof ve&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(e){var r;(r=e.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let r=e.target;this.onOptionChange(r)}onOptionChangeByUser(e){var r;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new Ss((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};We.elementDefinitions={};We.styles=k`
|
|
767
765
|
:host {
|
|
768
766
|
display: inline-block;
|
|
769
767
|
}
|
|
770
768
|
|
|
771
769
|
.ft-switch {
|
|
772
|
-
border-radius: ${
|
|
773
|
-
outline-color: ${
|
|
770
|
+
border-radius: ${me.borderRadius};
|
|
771
|
+
outline-color: ${me.outlineColor};
|
|
774
772
|
}
|
|
775
773
|
|
|
776
774
|
.ft-switch slot {
|
|
@@ -779,25 +777,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
779
777
|
}
|
|
780
778
|
|
|
781
779
|
.ft-switch slot::slotted(ft-switch-option) {
|
|
782
|
-
${
|
|
783
|
-
${
|
|
784
|
-
${
|
|
780
|
+
${x(we.borderRadiusLeft,"0")};
|
|
781
|
+
${x(we.borderRadiusRight,"0")};
|
|
782
|
+
${x(we.borderWidthLeft,"0")};
|
|
785
783
|
}
|
|
786
784
|
|
|
787
785
|
.ft-switch slot::slotted(ft-switch-option:first-child) {
|
|
788
|
-
${
|
|
789
|
-
${
|
|
786
|
+
${x(we.borderRadiusLeft,me.borderRadius)};
|
|
787
|
+
${x(we.borderWidthLeft,"1px")};
|
|
790
788
|
}
|
|
791
789
|
|
|
792
790
|
.ft-switch slot::slotted(ft-switch-option:last-child) {
|
|
793
|
-
${
|
|
791
|
+
${x(we.borderRadiusRight,me.borderRadius)};
|
|
794
792
|
}
|
|
795
793
|
|
|
796
794
|
.ft-switch--dense slot::slotted(ft-switch-option) {
|
|
797
795
|
--ft-switch-internal-vertical-padding: 2px;
|
|
798
796
|
--ft-switch-internal-horizontal-padding: 4px;
|
|
799
797
|
}
|
|
800
|
-
`;
|
|
798
|
+
`;Cr([g({type:Boolean})],We.prototype,"dense",void 0);Cr([g({type:Boolean})],We.prototype,"unselectable",void 0);Cr([g()],We.prototype,"label",void 0);Cr([X(".ft-switch slot")],We.prototype,"slottedContent",void 0);Cr([W()],We.prototype,"selectedOption",void 0);Cr([W()],We.prototype,"displayFocusWhenUsingKeyboard",void 0);Cr([X(".ft-switch")],We.prototype,"ftSwitchDiv",void 0);Q("ft-switch")(We);Q("ft-switch-option")(ve);var yd={colorOutline:o.external(I.colorOutline,"Design system"),colorOnSurfaceMedium:o.external(I.colorOnSurfaceMedium,"Design system")},gd=k`
|
|
801
799
|
:host {
|
|
802
800
|
display: block;
|
|
803
801
|
}
|
|
@@ -808,18 +806,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
808
806
|
|
|
809
807
|
ft-icon {
|
|
810
808
|
transform: rotate(-45deg);
|
|
811
|
-
color: ${
|
|
809
|
+
color: ${yd.colorOutline};
|
|
812
810
|
}
|
|
813
811
|
|
|
814
812
|
.ft-resizer--dragging ft-icon,
|
|
815
813
|
.ft-resizer:hover ft-icon,
|
|
816
814
|
[role="button"][aria-pressed="true"] ft-icon{
|
|
817
|
-
color: ${
|
|
815
|
+
color: ${yd.colorOnSurfaceMedium};
|
|
818
816
|
}
|
|
819
|
-
`;var
|
|
817
|
+
`;var kt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},yi=class extends CustomEvent{constructor(e,r){super("resize",{detail:{width:e,height:r}})}},Te=class extends V{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=$e.material,this.cursor="nwse-resize",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=e=>this.doDrag(e.clientX,e.clientY),this.doDragFromTouch=e=>this.doDrag(e.touches[0].clientX,e.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return N`
|
|
820
818
|
<style>
|
|
821
819
|
.ft-resizer {
|
|
822
|
-
cursor: ${
|
|
820
|
+
cursor: ${Ot(this.cursor)}
|
|
823
821
|
}
|
|
824
822
|
</style>
|
|
825
823
|
<div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
|
|
@@ -830,25 +828,25 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
830
828
|
@keydown="${this.initKeydownPress}">
|
|
831
829
|
<ft-icon .variant="${this.iconVariant}" .value="${this.icon}" focusable="false" aria-hidden="true"></ft-icon>
|
|
832
830
|
</div>
|
|
833
|
-
`}initDragFromMouse(
|
|
831
|
+
`}initDragFromMouse(e){this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initKeydownPress(e){let r=e.key;if(["Enter","Space","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,r==="Enter"||r==="Space"){let n=e.currentTarget;this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())}else r==="Escape"&&(this.isAriaPressed=!1);this.isAriaPressed&&(r==="ArrowLeft"?this.fixedWidth-=10:r==="ArrowRight"?this.fixedWidth+=10:r==="ArrowUp"?this.fixedHeight-=10:r==="ArrowDown"&&(this.fixedHeight+=10)),this.dispatchEvent(new yi(this.fixedWidth,this.fixedHeight))}initDrag(e,r){this.dragging=!0,this.startX=e,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,r){let i=this.fixedWidth+e-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new yi(i,n))}};Te.elementDefinitions={"ft-icon":Oe};Te.styles=[hr,gd];kt([g({type:Number})],Te.prototype,"initialWidth",void 0);kt([g({type:Number})],Te.prototype,"initialHeight",void 0);kt([g()],Te.prototype,"icon",void 0);kt([g()],Te.prototype,"iconVariant",void 0);kt([g()],Te.prototype,"cursor",void 0);kt([W()],Te.prototype,"dragging",void 0);kt([W()],Te.prototype,"isAriaPressed",void 0);kt([wt({passive:!0})],Te.prototype,"initDragFromMouse",null);kt([wt({passive:!0})],Te.prototype,"initDragFromTouch",null);Q("ft-resizer")(Te);var H={fontSize:o.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.extend("--ft-input-label-border-color","",I.colorOutline),textColor:o.extend("--ft-input-label-text-color","",I.colorOnSurfaceMedium),disabledTextColor:o.extend("--ft-input-label-disabled-text-color","",I.colorOnSurfaceDisabled),backgroundColor:o.extend("--ft-input-label-background-color","",I.colorSurface),borderRadius:o.extend("--ft-input-label-border-radius","",I.borderRadiusS),colorError:o.external(I.colorError,"Design system")},bd=k`
|
|
834
832
|
.ft-input-label {
|
|
835
833
|
position: absolute;
|
|
836
834
|
inset: 0;
|
|
837
835
|
display: flex;
|
|
838
|
-
background-color: ${
|
|
839
|
-
border-radius: ${
|
|
836
|
+
background-color: ${H.backgroundColor};
|
|
837
|
+
border-radius: ${H.borderRadius} ${H.borderRadius} 0 0;
|
|
840
838
|
}
|
|
841
839
|
|
|
842
840
|
.ft-input-label--outlined {
|
|
843
|
-
border-radius: ${
|
|
841
|
+
border-radius: ${H.borderRadius};
|
|
844
842
|
}
|
|
845
843
|
|
|
846
844
|
.ft-input-label {
|
|
847
|
-
border-color: ${
|
|
845
|
+
border-color: ${H.borderColor};
|
|
848
846
|
}
|
|
849
847
|
|
|
850
848
|
.ft-input-label.ft-input-label--in-error {
|
|
851
|
-
border-color: ${
|
|
849
|
+
border-color: ${H.colorError}
|
|
852
850
|
}
|
|
853
851
|
|
|
854
852
|
.ft-input-label:before,
|
|
@@ -861,7 +859,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
861
859
|
}
|
|
862
860
|
|
|
863
861
|
.ft-input-label:before {
|
|
864
|
-
width: calc(${
|
|
862
|
+
width: calc(${H.horizontalSpacing} - 4px);
|
|
865
863
|
flex-shrink: 0;
|
|
866
864
|
}
|
|
867
865
|
|
|
@@ -877,20 +875,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
877
875
|
border-bottom-width: 1px;
|
|
878
876
|
border-bottom-style: solid;
|
|
879
877
|
border-color: inherit;
|
|
880
|
-
color: ${
|
|
878
|
+
color: ${H.textColor};
|
|
881
879
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
882
|
-
max-width: calc(${
|
|
880
|
+
max-width: calc(${H.labelMaxWidth} - 2 * (${H.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
883
881
|
text-overflow: ellipsis;
|
|
884
|
-
${
|
|
885
|
-
${
|
|
882
|
+
${x(lt.fontSize,H.fontSize)};
|
|
883
|
+
${x(lt.lineHeight,H.fontSize)};
|
|
886
884
|
}
|
|
887
885
|
|
|
888
886
|
.ft-input-label--in-error .ft-input-label--text {
|
|
889
|
-
color: ${
|
|
887
|
+
color: ${H.colorError}
|
|
890
888
|
}
|
|
891
889
|
|
|
892
890
|
.ft-input-label--disabled .ft-input-label--text {
|
|
893
|
-
color: ${
|
|
891
|
+
color: ${H.disabledTextColor};
|
|
894
892
|
}
|
|
895
893
|
|
|
896
894
|
.ft-input-label--hidden-text {
|
|
@@ -907,19 +905,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
907
905
|
overflow: hidden;
|
|
908
906
|
white-space: nowrap;
|
|
909
907
|
text-overflow: ellipsis;
|
|
910
|
-
padding: ${
|
|
911
|
-
margin: calc(${
|
|
908
|
+
padding: ${H.verticalSpacing} 4px;
|
|
909
|
+
margin: calc(${H.verticalSpacing} * -1) 0;
|
|
912
910
|
max-width: 100%;
|
|
913
911
|
box-sizing: border-box;
|
|
914
912
|
}
|
|
915
913
|
|
|
916
914
|
.ft-input-label--raised .ft-input-label--text {
|
|
917
|
-
${
|
|
918
|
-
${
|
|
915
|
+
${x(lt.fontSize,H.raisedFontSize)};
|
|
916
|
+
${x(lt.lineHeight,H.raisedFontSize)};
|
|
919
917
|
}
|
|
920
918
|
|
|
921
919
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
922
|
-
top: ${
|
|
920
|
+
top: ${H.verticalSpacing};
|
|
923
921
|
}
|
|
924
922
|
|
|
925
923
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -932,36 +930,36 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
932
930
|
.ft-input-label--outlined:before {
|
|
933
931
|
border-left-width: 1px;
|
|
934
932
|
border-left-style: solid;
|
|
935
|
-
border-radius: ${
|
|
933
|
+
border-radius: ${H.borderRadius} 0 0 ${H.borderRadius};
|
|
936
934
|
}
|
|
937
935
|
|
|
938
936
|
.ft-input-label--outlined:after {
|
|
939
937
|
border-right-width: 1px;
|
|
940
938
|
border-right-style: solid;
|
|
941
|
-
border-radius: 0 ${
|
|
939
|
+
border-radius: 0 ${H.borderRadius} ${H.borderRadius} 0;
|
|
942
940
|
}
|
|
943
941
|
|
|
944
942
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
945
943
|
padding: 2px 4px;
|
|
946
|
-
z-index: ${
|
|
947
|
-
background-color: ${
|
|
948
|
-
border-radius: ${
|
|
944
|
+
z-index: ${H.raisedZIndex};
|
|
945
|
+
background-color: ${H.backgroundColor};
|
|
946
|
+
border-radius: ${H.borderRadius};
|
|
949
947
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
950
948
|
}
|
|
951
949
|
|
|
952
950
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
953
951
|
border-top: none;
|
|
954
952
|
}
|
|
955
|
-
`;var
|
|
956
|
-
<div class="${
|
|
957
|
-
${this.text?
|
|
953
|
+
`;var Do=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ze=class extends V{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let e={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return N`
|
|
954
|
+
<div class="${_e(e)}">
|
|
955
|
+
${this.text?N`
|
|
958
956
|
<div class="ft-input-label--text ft-typography--caption">
|
|
959
957
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
960
958
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
961
959
|
</div>
|
|
962
960
|
`:null}
|
|
963
961
|
</div>
|
|
964
|
-
`}};
|
|
962
|
+
`}};ze.elementDefinitions={};ze.styles=[hi,bd];Do([g({type:String})],ze.prototype,"text",void 0);Do([g({type:Boolean})],ze.prototype,"raised",void 0);Do([g({type:Boolean})],ze.prototype,"outlined",void 0);Do([g({type:Boolean})],ze.prototype,"disabled",void 0);Do([g({type:Boolean})],ze.prototype,"error",void 0);Q("ft-input-label")(ze);var ne={fontSize:o.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:o.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:o.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:o.extend("--ft-text-area-helper-color","",I.colorOnSurfaceMedium),colorPrimary:o.external(I.colorPrimary,"Design system"),colorOnSurface:o.external(I.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(I.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(I.borderRadiusS,"Design system"),colorError:o.external(I.colorError,"Design system")},xd=k`
|
|
965
963
|
*:focus {
|
|
966
964
|
outline: none;
|
|
967
965
|
}
|
|
@@ -973,10 +971,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
973
971
|
}
|
|
974
972
|
|
|
975
973
|
ft-input-label {
|
|
976
|
-
${
|
|
977
|
-
${
|
|
978
|
-
${
|
|
979
|
-
${
|
|
974
|
+
${x(H.fontSize,ne.fontSize)};
|
|
975
|
+
${x(H.raisedFontSize,ne.labelSize)};
|
|
976
|
+
${x(H.verticalSpacing,ne.verticalSpacing)};
|
|
977
|
+
${x(H.horizontalSpacing,ne.horizontalSpacing)};
|
|
980
978
|
}
|
|
981
979
|
|
|
982
980
|
.ft-text-area--main-panel {
|
|
@@ -994,8 +992,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
994
992
|
}
|
|
995
993
|
|
|
996
994
|
.ft-text-area--input-panel ft-ripple {
|
|
997
|
-
${
|
|
998
|
-
${
|
|
995
|
+
${x(R.opacityContentOnSurfaceHover,"0.08")};
|
|
996
|
+
${x(R.opacityContentOnSurfacePressed,"0.04")};
|
|
999
997
|
}
|
|
1000
998
|
|
|
1001
999
|
.ft-text-area--input {
|
|
@@ -1007,12 +1005,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1007
1005
|
align-self: stretch;
|
|
1008
1006
|
resize: none;
|
|
1009
1007
|
|
|
1010
|
-
${
|
|
1011
|
-
${
|
|
1012
|
-
color: ${
|
|
1008
|
+
${x(Je.fontSize,ne.fontSize)};
|
|
1009
|
+
${x(Je.lineHeight,ne.fontSize)};
|
|
1010
|
+
color: ${ne.colorOnSurface};
|
|
1013
1011
|
|
|
1014
|
-
padding: 0 ${
|
|
1015
|
-
margin: calc(${
|
|
1012
|
+
padding: 0 ${ne.horizontalSpacing};
|
|
1013
|
+
margin: calc(${ne.verticalSpacing} + ${ne.labelSize} / 2) 0 ${ne.verticalSpacing} 0;
|
|
1016
1014
|
|
|
1017
1015
|
border: none;
|
|
1018
1016
|
background: none;
|
|
@@ -1021,7 +1019,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1021
1019
|
}
|
|
1022
1020
|
|
|
1023
1021
|
.ft-text-area--disabled .ft-text-area--input {
|
|
1024
|
-
color: ${
|
|
1022
|
+
color: ${ne.colorOnSurfaceDisabled};
|
|
1025
1023
|
}
|
|
1026
1024
|
|
|
1027
1025
|
.ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
|
|
@@ -1029,49 +1027,49 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1029
1027
|
}
|
|
1030
1028
|
|
|
1031
1029
|
.ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
|
|
1032
|
-
${
|
|
1033
|
-
${
|
|
1030
|
+
${x(H.borderColor,ne.colorPrimary)};
|
|
1031
|
+
${x(H.textColor,ne.colorPrimary)};
|
|
1034
1032
|
}
|
|
1035
1033
|
|
|
1036
1034
|
.ft-text-area--filled .ft-text-area--input-panel {
|
|
1037
|
-
border-radius: ${
|
|
1035
|
+
border-radius: ${ne.borderRadiusS} ${ne.borderRadiusS} 0 0;
|
|
1038
1036
|
}
|
|
1039
1037
|
|
|
1040
1038
|
.ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
|
|
1041
1039
|
align-self: stretch;
|
|
1042
|
-
margin-bottom: ${
|
|
1043
|
-
margin-top: calc(${
|
|
1040
|
+
margin-bottom: ${ne.verticalSpacing};
|
|
1041
|
+
margin-top: calc(${ne.labelSize} + 2 * ${ne.verticalSpacing});
|
|
1044
1042
|
}
|
|
1045
1043
|
|
|
1046
1044
|
.ft-text-area--outlined .ft-text-area--input-panel {
|
|
1047
|
-
border-radius: ${
|
|
1045
|
+
border-radius: ${ne.borderRadiusS};
|
|
1048
1046
|
}
|
|
1049
1047
|
|
|
1050
1048
|
.ft-text-area--helper-text {
|
|
1051
|
-
padding: 0 12px 0 ${
|
|
1052
|
-
color: ${
|
|
1049
|
+
padding: 0 12px 0 ${ne.horizontalSpacing};
|
|
1050
|
+
color: ${ne.helperColor};
|
|
1053
1051
|
}
|
|
1054
1052
|
|
|
1055
1053
|
.ft-text-area--in-error .ft-text-area--input,
|
|
1056
1054
|
.ft-text-area--in-error .ft-text-area--helper-text {
|
|
1057
|
-
color: ${
|
|
1055
|
+
color: ${ne.colorError};
|
|
1058
1056
|
}
|
|
1059
1057
|
|
|
1060
1058
|
ft-resizer {
|
|
1061
1059
|
position: absolute;
|
|
1062
1060
|
bottom: 0;
|
|
1063
1061
|
}
|
|
1064
|
-
`;var
|
|
1062
|
+
`;var Dt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ie=class extends Sr(V,"textbox"){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let e={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return N`
|
|
1065
1063
|
<style>
|
|
1066
1064
|
.ft-text-area--main-panel {
|
|
1067
|
-
height: calc(4 * ${
|
|
1065
|
+
height: calc(4 * ${ne.verticalSpacing} + ${ne.labelSize} + ${ne.fontSize} + ${this.height}px);
|
|
1068
1066
|
}
|
|
1069
1067
|
|
|
1070
1068
|
ft-resizer {
|
|
1071
1069
|
right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
|
|
1072
1070
|
}
|
|
1073
1071
|
</style>
|
|
1074
|
-
<div class="${
|
|
1072
|
+
<div class="${_e(e)}">
|
|
1075
1073
|
<div class="ft-text-area--main-panel">
|
|
1076
1074
|
<ft-input-label text="${this.label}"
|
|
1077
1075
|
?disabled=${this.disabled}
|
|
@@ -1081,7 +1079,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1081
1079
|
></ft-input-label>
|
|
1082
1080
|
<div class="ft-text-area--input-panel"
|
|
1083
1081
|
aria-label="${this.label}">
|
|
1084
|
-
${this.outlined?null:
|
|
1082
|
+
${this.outlined?null:N`
|
|
1085
1083
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1086
1084
|
`}
|
|
1087
1085
|
<textarea class="ft-typography--body1 ft-text-area--input"
|
|
@@ -1098,56 +1096,56 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1098
1096
|
initialHeight="${this.height}"
|
|
1099
1097
|
cursor="ns-resize"></ft-resizer>
|
|
1100
1098
|
</div>
|
|
1101
|
-
${this.helper?
|
|
1099
|
+
${this.helper?N`
|
|
1102
1100
|
<ft-typography class="ft-text-area--helper-text" variant="caption">
|
|
1103
1101
|
${this.helper}
|
|
1104
1102
|
</ft-typography>`:void 0}
|
|
1105
1103
|
</div>
|
|
1106
|
-
`}setValue(
|
|
1104
|
+
`}setValue(e,r=!1){this.value=e,this.setFormValue(e),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(this.height=e.detail.height)}};Ie.elementDefinitions={"ft-input-label":ze,"ft-resizer":Te,"ft-ripple":re,"ft-typography":xe};Ie.styles=[Xr,xd];Dt([g({type:String})],Ie.prototype,"label",void 0);Dt([g({reflect:!0})],Ie.prototype,"value",void 0);Dt([g({type:String})],Ie.prototype,"helper",void 0);Dt([g({type:Boolean})],Ie.prototype,"outlined",void 0);Dt([g({type:Boolean})],Ie.prototype,"disabled",void 0);Dt([g({type:Boolean})],Ie.prototype,"error",void 0);Dt([g({type:Number,reflect:!0})],Ie.prototype,"height",void 0);Dt([X("textarea")],Ie.prototype,"textarea",void 0);Dt([W()],Ie.prototype,"focused",void 0);Q("ft-text-area")(Ie);var Er=class extends V{render(){return N`
|
|
1107
1105
|
<div class="ft-loader">
|
|
1108
1106
|
<div></div>
|
|
1109
1107
|
<div></div>
|
|
1110
1108
|
<div></div>
|
|
1111
1109
|
<div></div>
|
|
1112
1110
|
</div>
|
|
1113
|
-
`}};
|
|
1111
|
+
`}};Er.styles=nd;Q("ft-loader")(Er);var Ne=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},he=class extends Sr(V,"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",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let n=N`
|
|
1114
1112
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
1115
1113
|
<ft-typography part="label"
|
|
1116
1114
|
variant=${this.typographyVariant}
|
|
1117
1115
|
element="span"
|
|
1118
|
-
class="ft-button--label ${
|
|
1116
|
+
class="ft-button--label ${ko?"ft-safari-ellipsis-fix":""}"
|
|
1119
1117
|
?hidden=${!this.hasTextContent()}>
|
|
1120
1118
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
1121
1119
|
</ft-typography>
|
|
1122
1120
|
${this.resolveIcon()}
|
|
1123
|
-
`,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?
|
|
1121
|
+
`,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?N`
|
|
1124
1122
|
<a href="${a}"
|
|
1125
|
-
target="${(
|
|
1123
|
+
target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
|
|
1126
1124
|
part="button"
|
|
1127
|
-
class="${
|
|
1125
|
+
class="${_e(this.buttonClasses)}"
|
|
1128
1126
|
aria-label="${(r=this.ariaLabel)!==null&&r!==void 0?r:this.getLabel()}"
|
|
1129
1127
|
?disabled=${this.isDisabled()}>
|
|
1130
1128
|
${n}
|
|
1131
1129
|
</a>
|
|
1132
|
-
`:
|
|
1130
|
+
`:N`
|
|
1133
1131
|
<button part="button"
|
|
1134
|
-
class="${
|
|
1132
|
+
class="${_e(this.buttonClasses)}"
|
|
1135
1133
|
aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
|
|
1136
1134
|
?disabled=${this.isDisabled()}>
|
|
1137
1135
|
${n}
|
|
1138
1136
|
</button>
|
|
1139
|
-
`)}addTooltipIfNeeded(
|
|
1137
|
+
`)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?N`
|
|
1140
1138
|
<ft-tooltip part="tooltip"
|
|
1141
1139
|
text="${this.getLabel()}"
|
|
1142
1140
|
position="${this.tooltipPosition}">
|
|
1143
|
-
${
|
|
1141
|
+
${e}
|
|
1144
1142
|
</ft-tooltip>
|
|
1145
|
-
`:
|
|
1146
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
1143
|
+
`:e}resolveIcon(){return this.loading?N`
|
|
1144
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?N`
|
|
1147
1145
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
1148
|
-
`:
|
|
1146
|
+
`:N`
|
|
1149
1147
|
<slot part="icon" name="icon"></slot>
|
|
1150
|
-
`}focus(){var
|
|
1148
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return Xo(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};he.elementDefinitions={"ft-ripple":re,"ft-tooltip":fe,"ft-typography":xe,"ft-icon":Oe,"ft-loader":Er};Ne([g()],he.prototype,"href",void 0);Ne([g()],he.prototype,"target",void 0);Ne([g({type:String,reflect:!0})],he.prototype,"role",void 0);Ne([g()],he.prototype,"type",void 0);Ne([g({type:Boolean})],he.prototype,"disabled",void 0);Ne([g()],he.prototype,"label",void 0);Ne([g()],he.prototype,"icon",void 0);Ne([g()],he.prototype,"iconVariant",void 0);Ne([g({type:Boolean})],he.prototype,"trailingIcon",void 0);Ne([g({type:Boolean})],he.prototype,"loading",void 0);Ne([g({attribute:"aria-label"})],he.prototype,"ariaLabel",void 0);Ne([g()],he.prototype,"tooltipPosition",void 0);Ne([g({type:Boolean})],he.prototype,"hideTooltip",void 0);Ne([g({type:Boolean})],he.prototype,"forceTooltip",void 0);Ne([X(".ft-button")],he.prototype,"button",void 0);Ne([X(".ft-button--label slot")],he.prototype,"slottedContent",void 0);Ne([X("[part=tooltip]")],he.prototype,"tooltip",void 0);var gi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},dt=class extends he{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};dt.styles=[mr,cd];gi([g({type:Boolean})],dt.prototype,"primary",void 0);gi([g({type:Boolean})],dt.prototype,"outlined",void 0);gi([g({type:Boolean})],dt.prototype,"dense",void 0);gi([g({type:Boolean})],dt.prototype,"round",void 0);var vd=[k`
|
|
1151
1149
|
:host {
|
|
1152
1150
|
display: inline-block;
|
|
1153
1151
|
max-width: 100%;
|
|
@@ -1232,13 +1230,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1232
1230
|
/** Brand Primary styles **/
|
|
1233
1231
|
|
|
1234
1232
|
.ftds--family-brand.ft-button--primary {
|
|
1235
|
-
${
|
|
1233
|
+
${x(ue.color,b.primaryBrandIconColor)};
|
|
1236
1234
|
|
|
1237
|
-
${
|
|
1238
|
-
${
|
|
1239
|
-
${
|
|
1240
|
-
${
|
|
1241
|
-
${
|
|
1235
|
+
${x(R.color,b.primaryBrandStateLayerColor)};
|
|
1236
|
+
${x(R.opacityContentOnSurfaceHover,b.primaryBrandHoverStateLayerOpacity)};
|
|
1237
|
+
${x(R.opacityContentOnSurfaceFocused,b.primaryBrandFocusStateLayerOpacity)};
|
|
1238
|
+
${x(R.opacityContentOnSurfaceSelected,b.primaryBrandActiveStateLayerOpacity)};
|
|
1239
|
+
${x(R.opacityContentOnSurfacePressed,b.primaryBrandActiveStateLayerOpacity)};
|
|
1242
1240
|
|
|
1243
1241
|
background-color: ${b.primaryBrandBackgroundColor};
|
|
1244
1242
|
color: ${b.primaryBrandColor};
|
|
@@ -1256,13 +1254,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1256
1254
|
/** Brand Secondary styles **/
|
|
1257
1255
|
|
|
1258
1256
|
.ftds--family-brand.ft-button--secondary {
|
|
1259
|
-
${
|
|
1257
|
+
${x(ue.color,b.secondaryBrandIconColor)};
|
|
1260
1258
|
|
|
1261
|
-
${
|
|
1262
|
-
${
|
|
1263
|
-
${
|
|
1264
|
-
${
|
|
1265
|
-
${
|
|
1259
|
+
${x(R.color,b.secondaryBrandStateLayerColor)};
|
|
1260
|
+
${x(R.opacityContentOnSurfaceHover,b.secondaryBrandHoverStateLayerOpacity)};
|
|
1261
|
+
${x(R.opacityContentOnSurfaceFocused,b.secondaryBrandFocusStateLayerOpacity)};
|
|
1262
|
+
${x(R.opacityContentOnSurfaceSelected,b.secondaryBrandActiveStateLayerOpacity)};
|
|
1263
|
+
${x(R.opacityContentOnSurfacePressed,b.secondaryBrandActiveStateLayerOpacity)};
|
|
1266
1264
|
|
|
1267
1265
|
background-color: ${b.secondaryBrandBackgroundColor};
|
|
1268
1266
|
color: ${b.secondaryBrandColor};
|
|
@@ -1281,13 +1279,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1281
1279
|
/** Brand Tertiary styles **/
|
|
1282
1280
|
|
|
1283
1281
|
.ftds--family-brand.ft-button--tertiary {
|
|
1284
|
-
${
|
|
1282
|
+
${x(ue.color,b.tertiaryBrandIconColor)};
|
|
1285
1283
|
|
|
1286
|
-
${
|
|
1287
|
-
${
|
|
1288
|
-
${
|
|
1289
|
-
${
|
|
1290
|
-
${
|
|
1284
|
+
${x(R.color,b.tertiaryBrandStateLayerColor)};
|
|
1285
|
+
${x(R.opacityContentOnSurfaceHover,b.tertiaryBrandHoverStateLayerOpacity)};
|
|
1286
|
+
${x(R.opacityContentOnSurfaceFocused,b.tertiaryBrandFocusStateLayerOpacity)};
|
|
1287
|
+
${x(R.opacityContentOnSurfaceSelected,b.tertiaryBrandActiveStateLayerOpacity)};
|
|
1288
|
+
${x(R.opacityContentOnSurfacePressed,b.tertiaryBrandActiveStateLayerOpacity)};
|
|
1291
1289
|
|
|
1292
1290
|
background-color: ${b.tertiaryBrandBackgroundColor};
|
|
1293
1291
|
color: ${b.tertiaryBrandColor};
|
|
@@ -1305,13 +1303,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1305
1303
|
/** Neutral Secondary styles **/
|
|
1306
1304
|
|
|
1307
1305
|
.ftds--family-neutral.ft-button--secondary {
|
|
1308
|
-
${
|
|
1306
|
+
${x(ue.color,b.secondaryNeutralIconColor)};
|
|
1309
1307
|
|
|
1310
|
-
${
|
|
1311
|
-
${
|
|
1312
|
-
${
|
|
1313
|
-
${
|
|
1314
|
-
${
|
|
1308
|
+
${x(R.backgroundColor,b.secondaryNeutralStateLayerColor)};
|
|
1309
|
+
${x(R.opacityContentOnSurfaceHover,b.secondaryNeutralHoverStateLayerOpacity)};
|
|
1310
|
+
${x(R.opacityContentOnSurfaceFocused,b.secondaryNeutralFocusStateLayerOpacity)};
|
|
1311
|
+
${x(R.opacityContentOnSurfaceSelected,b.secondaryNeutralActiveStateLayerOpacity)};
|
|
1312
|
+
${x(R.opacityContentOnSurfacePressed,b.secondaryNeutralActiveStateLayerOpacity)};
|
|
1315
1313
|
|
|
1316
1314
|
background-color: ${b.secondaryNeutralBackgroundColor};
|
|
1317
1315
|
color: ${b.secondaryNeutralColor};
|
|
@@ -1330,13 +1328,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1330
1328
|
/** Neutral Tertiary styles **/
|
|
1331
1329
|
|
|
1332
1330
|
.ftds--family-neutral.ft-button--tertiary {
|
|
1333
|
-
${
|
|
1331
|
+
${x(ue.color,b.tertiaryNeutralIconColor)};
|
|
1334
1332
|
|
|
1335
|
-
${
|
|
1336
|
-
${
|
|
1337
|
-
${
|
|
1338
|
-
${
|
|
1339
|
-
${
|
|
1333
|
+
${x(R.backgroundColor,b.tertiaryNeutralStateLayerColor)};
|
|
1334
|
+
${x(R.opacityContentOnSurfaceHover,b.tertiaryNeutralHoverStateLayerOpacity)};
|
|
1335
|
+
${x(R.opacityContentOnSurfaceFocused,b.tertiaryNeutralFocusStateLayerOpacity)};
|
|
1336
|
+
${x(R.opacityContentOnSurfaceSelected,b.tertiaryNeutralActiveStateLayerOpacity)};
|
|
1337
|
+
${x(R.opacityContentOnSurfacePressed,b.tertiaryNeutralActiveStateLayerOpacity)};
|
|
1340
1338
|
|
|
1341
1339
|
background-color: ${b.tertiaryNeutralBackgroundColor};
|
|
1342
1340
|
color: ${b.tertiaryNeutralColor};
|
|
@@ -1354,13 +1352,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1354
1352
|
/** Info Secondary styles **/
|
|
1355
1353
|
|
|
1356
1354
|
.ftds--family-info.ft-button--secondary {
|
|
1357
|
-
${
|
|
1355
|
+
${x(ue.color,b.secondaryInfoIconColor)};
|
|
1358
1356
|
|
|
1359
|
-
${
|
|
1360
|
-
${
|
|
1361
|
-
${
|
|
1362
|
-
${
|
|
1363
|
-
${
|
|
1357
|
+
${x(R.backgroundColor,b.secondaryInfoStateLayerColor)};
|
|
1358
|
+
${x(R.opacityContentOnSurfaceHover,b.secondaryInfoHoverStateLayerOpacity)};
|
|
1359
|
+
${x(R.opacityContentOnSurfaceFocused,b.secondaryInfoFocusStateLayerOpacity)};
|
|
1360
|
+
${x(R.opacityContentOnSurfaceSelected,b.secondaryInfoActiveStateLayerOpacity)};
|
|
1361
|
+
${x(R.opacityContentOnSurfacePressed,b.secondaryInfoActiveStateLayerOpacity)};
|
|
1364
1362
|
|
|
1365
1363
|
background-color: ${b.secondaryInfoBackgroundColor};
|
|
1366
1364
|
color: ${b.secondaryInfoColor};
|
|
@@ -1379,13 +1377,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1379
1377
|
/** Info Tertiary styles **/
|
|
1380
1378
|
|
|
1381
1379
|
.ftds--family-info.ft-button--tertiary {
|
|
1382
|
-
${
|
|
1380
|
+
${x(ue.color,b.tertiaryInfoIconColor)};
|
|
1383
1381
|
|
|
1384
|
-
${
|
|
1385
|
-
${
|
|
1386
|
-
${
|
|
1387
|
-
${
|
|
1388
|
-
${
|
|
1382
|
+
${x(R.backgroundColor,b.tertiaryInfoStateLayerColor)};
|
|
1383
|
+
${x(R.opacityContentOnSurfaceHover,b.tertiaryInfoHoverStateLayerOpacity)};
|
|
1384
|
+
${x(R.opacityContentOnSurfaceFocused,b.tertiaryInfoFocusStateLayerOpacity)};
|
|
1385
|
+
${x(R.opacityContentOnSurfaceSelected,b.tertiaryInfoActiveStateLayerOpacity)};
|
|
1386
|
+
${x(R.opacityContentOnSurfacePressed,b.tertiaryInfoActiveStateLayerOpacity)};
|
|
1389
1387
|
|
|
1390
1388
|
background-color: ${b.tertiaryInfoBackgroundColor};
|
|
1391
1389
|
color: ${b.tertiaryInfoColor};
|
|
@@ -1403,13 +1401,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1403
1401
|
/** Success Secondary styles **/
|
|
1404
1402
|
|
|
1405
1403
|
.ftds--family-success.ft-button--secondary {
|
|
1406
|
-
${
|
|
1404
|
+
${x(ue.color,b.secondarySuccessIconColor)};
|
|
1407
1405
|
|
|
1408
|
-
${
|
|
1409
|
-
${
|
|
1410
|
-
${
|
|
1411
|
-
${
|
|
1412
|
-
${
|
|
1406
|
+
${x(R.backgroundColor,b.secondarySuccessStateLayerColor)};
|
|
1407
|
+
${x(R.opacityContentOnSurfaceHover,b.secondarySuccessHoverStateLayerOpacity)};
|
|
1408
|
+
${x(R.opacityContentOnSurfaceFocused,b.secondarySuccessFocusStateLayerOpacity)};
|
|
1409
|
+
${x(R.opacityContentOnSurfaceSelected,b.secondarySuccessActiveStateLayerOpacity)};
|
|
1410
|
+
${x(R.opacityContentOnSurfacePressed,b.secondarySuccessActiveStateLayerOpacity)};
|
|
1413
1411
|
|
|
1414
1412
|
background-color: ${b.secondarySuccessBackgroundColor};
|
|
1415
1413
|
color: ${b.secondarySuccessColor};
|
|
@@ -1428,13 +1426,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1428
1426
|
/** Success Tertiary styles **/
|
|
1429
1427
|
|
|
1430
1428
|
.ftds--family-success.ft-button--tertiary {
|
|
1431
|
-
${
|
|
1429
|
+
${x(ue.color,b.tertiarySuccessIconColor)};
|
|
1432
1430
|
|
|
1433
|
-
${
|
|
1434
|
-
${
|
|
1435
|
-
${
|
|
1436
|
-
${
|
|
1437
|
-
${
|
|
1431
|
+
${x(R.backgroundColor,b.tertiarySuccessStateLayerColor)};
|
|
1432
|
+
${x(R.opacityContentOnSurfaceHover,b.tertiarySuccessHoverStateLayerOpacity)};
|
|
1433
|
+
${x(R.opacityContentOnSurfaceFocused,b.tertiarySuccessFocusStateLayerOpacity)};
|
|
1434
|
+
${x(R.opacityContentOnSurfaceSelected,b.tertiarySuccessActiveStateLayerOpacity)};
|
|
1435
|
+
${x(R.opacityContentOnSurfacePressed,b.tertiarySuccessActiveStateLayerOpacity)};
|
|
1438
1436
|
|
|
1439
1437
|
background-color: ${b.tertiarySuccessBackgroundColor};
|
|
1440
1438
|
color: ${b.tertiarySuccessColor};
|
|
@@ -1452,13 +1450,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1452
1450
|
/** Warning Secondary styles **/
|
|
1453
1451
|
|
|
1454
1452
|
.ftds--family-warning.ft-button--secondary {
|
|
1455
|
-
${
|
|
1453
|
+
${x(ue.color,b.secondaryWarningIconColor)};
|
|
1456
1454
|
|
|
1457
|
-
${
|
|
1458
|
-
${
|
|
1459
|
-
${
|
|
1460
|
-
${
|
|
1461
|
-
${
|
|
1455
|
+
${x(R.backgroundColor,b.secondaryWarningStateLayerColor)};
|
|
1456
|
+
${x(R.opacityContentOnSurfaceHover,b.secondaryWarningHoverStateLayerOpacity)};
|
|
1457
|
+
${x(R.opacityContentOnSurfaceFocused,b.secondaryWarningFocusStateLayerOpacity)};
|
|
1458
|
+
${x(R.opacityContentOnSurfaceSelected,b.secondaryWarningActiveStateLayerOpacity)};
|
|
1459
|
+
${x(R.opacityContentOnSurfacePressed,b.secondaryWarningActiveStateLayerOpacity)};
|
|
1462
1460
|
|
|
1463
1461
|
background-color: ${b.secondaryWarningBackgroundColor};
|
|
1464
1462
|
color: ${b.secondaryWarningColor};
|
|
@@ -1477,13 +1475,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1477
1475
|
/** Warning Tertiary styles **/
|
|
1478
1476
|
|
|
1479
1477
|
.ftds--family-warning.ft-button--tertiary {
|
|
1480
|
-
${
|
|
1478
|
+
${x(ue.color,b.tertiaryWarningIconColor)};
|
|
1481
1479
|
|
|
1482
|
-
${
|
|
1483
|
-
${
|
|
1484
|
-
${
|
|
1485
|
-
${
|
|
1486
|
-
${
|
|
1480
|
+
${x(R.backgroundColor,b.tertiaryWarningStateLayerColor)};
|
|
1481
|
+
${x(R.opacityContentOnSurfaceHover,b.tertiaryWarningHoverStateLayerOpacity)};
|
|
1482
|
+
${x(R.opacityContentOnSurfaceFocused,b.tertiaryWarningFocusStateLayerOpacity)};
|
|
1483
|
+
${x(R.opacityContentOnSurfaceSelected,b.tertiaryWarningActiveStateLayerOpacity)};
|
|
1484
|
+
${x(R.opacityContentOnSurfacePressed,b.tertiaryWarningActiveStateLayerOpacity)};
|
|
1487
1485
|
|
|
1488
1486
|
background-color: ${b.tertiaryWarningBackgroundColor};
|
|
1489
1487
|
color: ${b.tertiaryWarningColor};
|
|
@@ -1501,13 +1499,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1501
1499
|
/** Error Secondary styles **/
|
|
1502
1500
|
|
|
1503
1501
|
.ftds--family-error.ft-button--secondary {
|
|
1504
|
-
${
|
|
1502
|
+
${x(ue.color,b.secondaryErrorIconColor)};
|
|
1505
1503
|
|
|
1506
|
-
${
|
|
1507
|
-
${
|
|
1508
|
-
${
|
|
1509
|
-
${
|
|
1510
|
-
${
|
|
1504
|
+
${x(R.backgroundColor,b.secondaryErrorStateLayerColor)};
|
|
1505
|
+
${x(R.opacityContentOnSurfaceHover,b.secondaryErrorHoverStateLayerOpacity)};
|
|
1506
|
+
${x(R.opacityContentOnSurfaceFocused,b.secondaryErrorFocusStateLayerOpacity)};
|
|
1507
|
+
${x(R.opacityContentOnSurfaceSelected,b.secondaryErrorActiveStateLayerOpacity)};
|
|
1508
|
+
${x(R.opacityContentOnSurfacePressed,b.secondaryErrorActiveStateLayerOpacity)};
|
|
1511
1509
|
|
|
1512
1510
|
background-color: ${b.secondaryErrorBackgroundColor};
|
|
1513
1511
|
color: ${b.secondaryErrorColor};
|
|
@@ -1526,13 +1524,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1526
1524
|
/** Error Tertiary styles **/
|
|
1527
1525
|
|
|
1528
1526
|
.ftds--family-error.ft-button--tertiary {
|
|
1529
|
-
${
|
|
1527
|
+
${x(ue.color,b.tertiaryErrorIconColor)};
|
|
1530
1528
|
|
|
1531
|
-
${
|
|
1532
|
-
${
|
|
1533
|
-
${
|
|
1534
|
-
${
|
|
1535
|
-
${
|
|
1529
|
+
${x(R.backgroundColor,b.tertiaryErrorStateLayerColor)};
|
|
1530
|
+
${x(R.opacityContentOnSurfaceHover,b.tertiaryErrorHoverStateLayerOpacity)};
|
|
1531
|
+
${x(R.opacityContentOnSurfaceFocused,b.tertiaryErrorFocusStateLayerOpacity)};
|
|
1532
|
+
${x(R.opacityContentOnSurfaceSelected,b.tertiaryErrorActiveStateLayerOpacity)};
|
|
1533
|
+
${x(R.opacityContentOnSurfacePressed,b.tertiaryErrorActiveStateLayerOpacity)};
|
|
1536
1534
|
|
|
1537
1535
|
background-color: ${b.tertiaryErrorBackgroundColor};
|
|
1538
1536
|
color: ${b.tertiaryErrorColor};
|
|
@@ -1550,8 +1548,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1550
1548
|
/** Large styles **/
|
|
1551
1549
|
|
|
1552
1550
|
.ftds--size-large {
|
|
1553
|
-
${
|
|
1554
|
-
${
|
|
1551
|
+
${x(Ee.size,b.largeIconSize)};
|
|
1552
|
+
${x(ue.size,b.largeIconSize)};
|
|
1555
1553
|
|
|
1556
1554
|
height: ${b.largeHeight};
|
|
1557
1555
|
padding: 0 ${b.largeHorizontalPadding};
|
|
@@ -1572,8 +1570,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1572
1570
|
/** Small styles **/
|
|
1573
1571
|
|
|
1574
1572
|
.ftds--size-medium {
|
|
1575
|
-
${
|
|
1576
|
-
${
|
|
1573
|
+
${x(Ee.size,b.mediumIconSize)};
|
|
1574
|
+
${x(ue.size,b.mediumIconSize)};
|
|
1577
1575
|
|
|
1578
1576
|
height: ${b.mediumHeight};
|
|
1579
1577
|
padding: 0 ${b.mediumHorizontalPadding};
|
|
@@ -1595,8 +1593,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1595
1593
|
/** Small styles **/
|
|
1596
1594
|
|
|
1597
1595
|
.ftds--size-small {
|
|
1598
|
-
${
|
|
1599
|
-
${
|
|
1596
|
+
${x(Ee.size,b.smallIconSize)};
|
|
1597
|
+
${x(ue.size,b.smallIconSize)};
|
|
1600
1598
|
|
|
1601
1599
|
height: ${b.smallHeight};
|
|
1602
1600
|
padding: 0 ${b.smallHorizontalPadding};
|
|
@@ -1613,15 +1611,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1613
1611
|
.ftds--size-small.ft-button--icon-only {
|
|
1614
1612
|
width: ${b.smallIconOnlyWidth};
|
|
1615
1613
|
}
|
|
1616
|
-
`,
|
|
1617
|
-
`;var
|
|
1618
|
-
`;var
|
|
1614
|
+
`,hr];var bi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},$t=class extends oi(he){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=cr.brand,this.iconVariant=$e.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 Rt.large:return Yt.body2medium;case Rt.medium:return Yt.caption1medium;case Rt.small:return Yt.caption2medium}}};$t.styles=[mr,vd];bi([g({type:Boolean})],$t.prototype,"primary",void 0);bi([g({type:Boolean})],$t.prototype,"secondary",void 0);bi([g({type:Boolean})],$t.prototype,"tertiary",void 0);bi([g({type:Boolean})],$t.prototype,"round",void 0);Q("ft-button")(dt);Q("ftds-button")($t);var Sd=k`
|
|
1615
|
+
`;var Od=k`
|
|
1616
|
+
`;var df="ft-app-info",Os=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},pf={session:(t,e)=>{ot(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>B.dispatchEvent(new Os(e.payload)),0))}},B=Pt.get({name:df,reducers:pf,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var wr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=B.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=B.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var $o=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:wr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):wr.await()}};var St=class extends $o{constructor(e=!0,r){var i;super(r);let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new ht,this.cache=e?n.commonCache:new ht}clearCache(){this.cache.clearAll()}};var Cd,uf=Symbol("clearAfterUnitTest"),xi=class extends St{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Cd]=()=>{this.defaultMessages={},this.cache=new ht,this.listeners={}},this.currentUiLocale=B.getState().uiLocale,B.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=B.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};ot(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Ao((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){var r,i,n;if(!this.cache.has(e))if(((i=(r=window.process)===null||r===void 0?void 0:r.env)===null||i===void 0?void 0:i.NODE_ENV)==="test")this.cache.set(e,(n=this.defaultMessages[e])!==null&&n!==void 0?n:{});else try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(a){console.error(a)}}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(r=>qo(0).then(()=>r()).catch(()=>null)))}};Cd=uf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends xi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends xi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Ar=window.FluidTopicsI18nService,Ed=window.FluidTopicsCustomI18nService;var Me=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ye=class extends V{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>wr.get(),this.messageContexts=[],this.cache=new ht,this.cleanSessionDebouncer=new le}render(){return N`
|
|
1619
1617
|
<slot></slot>
|
|
1620
|
-
`}update(
|
|
1618
|
+
`}update(e){var r,i,n,a,s;super.update(e),e.has("baseUrl")&&(B.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&B.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&B.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&B.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&B.actions.noCustom(this.noCustom),e.has("editorMode")&&B.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&B.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&B.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(l=>Ar.addContext(l)),e.has("openExternalDocumentInNewTab")&&B.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&B.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&B.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(B.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),B.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),B.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 e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};ye.elementDefinitions={};ye.styles=Od;Me([g()],ye.prototype,"baseUrl",void 0);Me([g()],ye.prototype,"apiIntegrationIdentifier",void 0);Me([g()],ye.prototype,"uiLocale",void 0);Me([mt(null)],ye.prototype,"availableUiLocales",void 0);Me([mt(null)],ye.prototype,"metadataConfiguration",void 0);Me([g({type:Boolean})],ye.prototype,"editorMode",void 0);Me([g({type:Boolean})],ye.prototype,"noCustom",void 0);Me([g({type:Boolean})],ye.prototype,"openExternalDocumentInNewTab",void 0);Me([g({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ye.prototype,"noCustomComponent",void 0);Me([g({type:Boolean})],ye.prototype,"withManualResources",void 0);Me([g({type:Boolean})],ye.prototype,"navigatorOnline",void 0);Me([g({type:Boolean})],ye.prototype,"forcedOffline",void 0);Me([g({type:Object})],ye.prototype,"apiProvider",void 0);Me([mt([])],ye.prototype,"messageContexts",void 0);Me([mt(void 0)],ye.prototype,"session",void 0);Me([W()],ye.prototype,"localesConfiguration",void 0);var vi=class extends St{async listMySearches(){let e=B.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Si=class extends St{async listMyBookmarks(){let e=B.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var ff="ft-user-assets",Oi=Pt.get({name:ff,initialState:{savedSearches:void 0,bookmarks:void 0}}),Cs=class{constructor(){this.currentSession=B.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Si,this.savedSearchesService=new vi,B.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=B.getState();ot((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Oi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Oi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Oi.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Oi.actions.bookmarks(r)}}},wd=new Cs;var Es=class{addCommand(e,r=!1){B.commands.add(e,r)}consumeCommand(e){return B.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Es;var ws=class{highlightHtml(e,r,i){Aa(e,r,i)}};window.FluidTopicsHighlightHtmlService=new ws;var As=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=B.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a;return jr.format(e,(i=r?.locale)!==null&&i!==void 0?i:B.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new As;Q("ft-app-context")(ye);var hf=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Rs=Symbol("i18nAttributes"),_s=Symbol("i18nListAttributes"),Rr=Symbol("i18nProperties"),Ts=Symbol("i18nManualContexts"),Mo=Symbol("i18nUnsubs");function Xt(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}get i18nService(){return this.useCustomMessageContexts?Ed:Ar}i18n(a,s,...l){var d;if(typeof a=="string")return this.i18nService.resolveMessage(a,s,...l);let p=(d=a.args)!==null&&d!==void 0?d:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...p)}onI18nUpdate(a){var s,l,d;(s=this[Rs])===null||s===void 0||s.forEach((p,h)=>{let f=this.getI18nAttributeValue(h);f&&(this[h]=this.getI18nAttributeMessage(f,p,a))}),(l=this[_s])===null||l===void 0||l.forEach((p,h)=>{let f=this.getI18nListAttributeValues(h);this[h]=f?.map(y=>this.getI18nAttributeMessage(y,p,a))}),(d=this[Rr])===null||d===void 0||d.forEach((p,h)=>{p.context.toLowerCase()===a.toLowerCase()&&(this[h]=this.i18n(p))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,s){return{...a,message:this.i18n({context:a.context,key:a.key,...s})}}getI18nAttributeMessage(a,s,l){var d;let p=!l||((d=a.context)===null||d===void 0?void 0:d.toLowerCase())===l.toLowerCase();return a.context&&a.key&&p?this.buildI18nAttributeMessage(a,s):a}update(a){var s,l,d;super.update(a),(s=this[Rs])===null||s===void 0||s.forEach((p,h)=>{let f=this.getI18nAttributeValue(h);f?.context&&f.key&&(a.has(h)||p.argsProvider!=null)&&(this.addI18nContextIfNeeded(f,a,h),this[h]=this.getI18nAttributeMessage(f,p))}),(l=this[_s])===null||l===void 0||l.forEach((p,h)=>{let f=this.getI18nListAttributeValues(h);(a.has(h)||p.argsProvider!=null)&&(this[h]=f?.map(y=>(this.addI18nContextIfNeeded(y,a,h),this.getI18nAttributeMessage(y,p))))}),(d=this[Rr])===null||d===void 0||d.forEach((p,h)=>{p.argsProvider!=null&&(this[h]=this.i18n(p))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,s,l){a.context&&a.key&&s.has(l)&&this.addI18nContext(a.context)}addI18nMessagesAndSubscribe(a,s){a=a.toLowerCase(),this[Mo].has(a)||this[Mo].set(a,this.i18nService.subscribe(a,()=>this.onI18nUpdate(a))),this.i18nService.prepareContext(a,s??{}),this.onI18nUpdate(a)}connectedCallback(){var a,s,l,d,p,h;super.connectedCallback(),new Set([...(s=(a=this[Rr])===null||a===void 0?void 0:a.values())!==null&&s!==void 0?s:[],...[...(d=(l=this[Rs])===null||l===void 0?void 0:l.keys())!==null&&d!==void 0?d:[]].map(f=>this.getI18nAttributeValue(f)),...[...(h=(p=this[_s])===null||p===void 0?void 0:p.keys())!==null&&h!==void 0?h:[]].flatMap(f=>this.getI18nListAttributeValues(f))].map(f=>f?.context)).forEach(f=>f&&this.addI18nMessages(f)),this[Ts].forEach((f,y)=>{this.addI18nMessages(y,f)})}addI18nMessages(a,s){this[Ts].set(a,s??{}),this.addI18nMessagesAndSubscribe(a,s)}addI18nContext(a,s){this.addI18nMessages(typeof a=="string"?a:a.name,s)}disconnectedCallback(){super.disconnectedCallback(),this[Mo].forEach(a=>a()),this[Mo].clear()}}return e=Ts,r=Mo,hf([g({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}var Ad=class extends Xt(V){},Ci=class extends Xt(Ye){};var Bo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},pt=class extends Ci{constructor(){super(),this.editorMode=!1,this.addStore(B)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":F:N`
|
|
1621
1619
|
<span class="ft-i18n">
|
|
1622
1620
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1623
1621
|
</span>
|
|
1624
|
-
`}update(
|
|
1622
|
+
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};pt.elementDefinitions={};pt.styles=Sd;Bo([de()],pt.prototype,"editorMode",void 0);Bo([g()],pt.prototype,"context",void 0);Bo([g()],pt.prototype,"key",void 0);Bo([mt([])],pt.prototype,"args",void 0);Bo([g()],pt.prototype,"defaultMessage",void 0);var Qt=class t{static build(e){return new t(e)}static fromGwt(e){return new t(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(r,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:(r,i)=>(...n)=>Ar.resolveMessage(this.name,i,...n)}),this.rawMessages=new Proxy({},{get:(r,i)=>Ar.resolveRawMessage(this.name,i)})}};var Ei=(t,e)=>(r,i)=>{var n,a;r.constructor.createProperty(i,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:i};r[Rr]=(a=r[Rr])!==null&&a!==void 0?a:new Map,r[Rr].set(i,s)};Q("ft-i18n")(pt);var J=Qt.build("integratedFeedbackComponent"),Rd={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 wi=t=>t??F;var j={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","",I.colorOnSurfaceMedium),colorPrimary:o.external(I.colorPrimary,"Design system"),colorOnSurface:o.external(I.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.external(I.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.external(I.borderRadiusS,"Design system"),colorError:o.external(I.colorError,"Design system"),prefixColor:o.extend("--ft-text-field-prefix-color","",I.colorOnSurfaceMedium),iconColor:o.extend("--ft-text-field-icon-color","",I.colorOnSurfaceMedium),floatingZIndex:o.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:o.extend("--ft-text-field-background-color","",I.colorSurface),colorOutline:o.external(I.colorOutline,"Design system"),elevation02:o.external(I.elevation02,"Design system"),suggestSize:o.create("--ft-text-field-suggest-size","","SIZE","300px")},_d=k`
|
|
1625
1623
|
*:focus {
|
|
1626
1624
|
outline: none;
|
|
1627
1625
|
}
|
|
@@ -1634,17 +1632,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1634
1632
|
}
|
|
1635
1633
|
|
|
1636
1634
|
ft-input-label {
|
|
1637
|
-
${
|
|
1638
|
-
${
|
|
1639
|
-
${
|
|
1640
|
-
${
|
|
1641
|
-
${
|
|
1635
|
+
${x(H.fontSize,j.fontSize)};
|
|
1636
|
+
${x(H.raisedFontSize,j.labelSize)};
|
|
1637
|
+
${x(H.verticalSpacing,j.verticalSpacing)};
|
|
1638
|
+
${x(H.horizontalSpacing,j.horizontalSpacing)};
|
|
1639
|
+
${x(H.backgroundColor,j.backgroundColor)};
|
|
1642
1640
|
}
|
|
1643
1641
|
|
|
1644
1642
|
.ft-text-field--main-panel {
|
|
1645
1643
|
position: relative;
|
|
1646
1644
|
display: flex;
|
|
1647
|
-
height: calc(4 * ${
|
|
1645
|
+
height: calc(4 * ${j.verticalSpacing} + ${j.labelSize} + ${j.fontSize});
|
|
1648
1646
|
}
|
|
1649
1647
|
|
|
1650
1648
|
.ft-text-field--input-panel {
|
|
@@ -1653,24 +1651,24 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1653
1651
|
display: flex;
|
|
1654
1652
|
align-items: center;
|
|
1655
1653
|
overflow: hidden;
|
|
1656
|
-
padding: 0 ${
|
|
1654
|
+
padding: 0 ${j.horizontalSpacing};
|
|
1657
1655
|
|
|
1658
|
-
${
|
|
1659
|
-
${
|
|
1656
|
+
${x(Je.fontSize,j.fontSize)};
|
|
1657
|
+
${x(Je.lineHeight,j.fontSize)};
|
|
1660
1658
|
}
|
|
1661
1659
|
|
|
1662
1660
|
.ft-text-field--input-panel ft-ripple {
|
|
1663
|
-
${
|
|
1664
|
-
${
|
|
1661
|
+
${x(R.opacityContentOnSurfaceHover,"0.08")};
|
|
1662
|
+
${x(R.opacityContentOnSurfacePressed,"0.04")};
|
|
1665
1663
|
}
|
|
1666
1664
|
|
|
1667
1665
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
1668
1666
|
align-items: flex-end;
|
|
1669
|
-
padding: 0 ${
|
|
1667
|
+
padding: 0 ${j.horizontalSpacing} ${j.verticalSpacing} ${j.horizontalSpacing};
|
|
1670
1668
|
}
|
|
1671
1669
|
|
|
1672
1670
|
.ft-text-field--prefix {
|
|
1673
|
-
color: ${
|
|
1671
|
+
color: ${j.prefixColor};
|
|
1674
1672
|
margin-right: 2px;
|
|
1675
1673
|
flex-shrink: 1;
|
|
1676
1674
|
overflow: hidden;
|
|
@@ -1689,22 +1687,22 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1689
1687
|
flex-shrink: 1;
|
|
1690
1688
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
1691
1689
|
|
|
1692
|
-
color: ${
|
|
1693
|
-
padding: calc(2 * ${
|
|
1690
|
+
color: ${j.colorOnSurface};
|
|
1691
|
+
padding: calc(2 * ${j.verticalSpacing}) 0;
|
|
1694
1692
|
border: none;
|
|
1695
1693
|
background: none;
|
|
1696
1694
|
|
|
1697
1695
|
&:-webkit-autofill,
|
|
1698
1696
|
&:-webkit-autofill:hover,
|
|
1699
1697
|
&:-webkit-autofill:focus {
|
|
1700
|
-
-webkit-text-fill-color: ${
|
|
1698
|
+
-webkit-text-fill-color: ${j.colorOnSurface};
|
|
1701
1699
|
transition: background-color 50000000s ease-in-out 100000s;
|
|
1702
1700
|
}
|
|
1703
1701
|
}
|
|
1704
1702
|
|
|
1705
1703
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
1706
1704
|
padding-bottom: 0;
|
|
1707
|
-
padding-top: calc(${
|
|
1705
|
+
padding-top: calc(${j.labelSize} + 2 * ${j.verticalSpacing});
|
|
1708
1706
|
}
|
|
1709
1707
|
|
|
1710
1708
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -1713,37 +1711,37 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1713
1711
|
}
|
|
1714
1712
|
|
|
1715
1713
|
.ft-text-field--disabled .ft-text-field--input {
|
|
1716
|
-
color: ${
|
|
1714
|
+
color: ${j.colorOnSurfaceDisabled};
|
|
1717
1715
|
}
|
|
1718
1716
|
|
|
1719
1717
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
1720
|
-
${
|
|
1721
|
-
${
|
|
1718
|
+
${x(H.borderColor,j.colorPrimary)};
|
|
1719
|
+
${x(H.textColor,j.colorPrimary)};
|
|
1722
1720
|
}
|
|
1723
1721
|
|
|
1724
1722
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
1725
|
-
border-radius: ${
|
|
1723
|
+
border-radius: ${j.borderRadiusS} ${j.borderRadiusS} 0 0;
|
|
1726
1724
|
}
|
|
1727
1725
|
|
|
1728
1726
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
1729
|
-
border-radius: ${
|
|
1727
|
+
border-radius: ${j.borderRadiusS};
|
|
1730
1728
|
}
|
|
1731
1729
|
|
|
1732
1730
|
.ft-text-field--helper-text {
|
|
1733
|
-
padding: 0 12px 0 ${
|
|
1734
|
-
color: ${
|
|
1731
|
+
padding: 0 12px 0 ${j.horizontalSpacing};
|
|
1732
|
+
color: ${j.helperColor};
|
|
1735
1733
|
}
|
|
1736
1734
|
|
|
1737
1735
|
.ft-text-field--in-error .ft-text-field--input,
|
|
1738
1736
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
1739
1737
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
1740
|
-
color: ${
|
|
1738
|
+
color: ${j.colorError};
|
|
1741
1739
|
}
|
|
1742
1740
|
|
|
1743
1741
|
.ft-text-field--icon {
|
|
1744
1742
|
align-self: center;
|
|
1745
1743
|
margin-left: 8px;
|
|
1746
|
-
color: ${
|
|
1744
|
+
color: ${j.iconColor};
|
|
1747
1745
|
}
|
|
1748
1746
|
|
|
1749
1747
|
.ft-text-field--container {
|
|
@@ -1754,13 +1752,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1754
1752
|
display: none;
|
|
1755
1753
|
flex-direction: column;
|
|
1756
1754
|
position: absolute;
|
|
1757
|
-
z-index: ${
|
|
1758
|
-
background: ${
|
|
1759
|
-
border: 1px solid ${
|
|
1760
|
-
border-radius: 0 0 ${
|
|
1761
|
-
box-shadow: ${
|
|
1755
|
+
z-index: ${j.floatingZIndex};
|
|
1756
|
+
background: ${j.backgroundColor};
|
|
1757
|
+
border: 1px solid ${j.colorOutline};
|
|
1758
|
+
border-radius: 0 0 ${j.borderRadiusS} ${j.borderRadiusS};
|
|
1759
|
+
box-shadow: ${j.elevation02};
|
|
1762
1760
|
outline: none;
|
|
1763
|
-
max-height: ${
|
|
1761
|
+
max-height: ${j.suggestSize};
|
|
1764
1762
|
overflow-y: auto;
|
|
1765
1763
|
}
|
|
1766
1764
|
|
|
@@ -1773,13 +1771,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1773
1771
|
}
|
|
1774
1772
|
|
|
1775
1773
|
.ft-text-field--with-icon {
|
|
1776
|
-
${
|
|
1774
|
+
${x(H.labelMaxWidth,`calc(100% - ${Ee.size} - ${H.horizontalSpacing})`)};
|
|
1777
1775
|
}
|
|
1778
1776
|
|
|
1779
1777
|
.ft-text-field--with-password ft-icon:hover {
|
|
1780
1778
|
cursor: pointer;
|
|
1781
1779
|
}
|
|
1782
|
-
`;var
|
|
1780
|
+
`;var Td=k`
|
|
1783
1781
|
.ft-text-field-suggestion {
|
|
1784
1782
|
position: relative;
|
|
1785
1783
|
padding: 8px 16px;
|
|
@@ -1809,30 +1807,30 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1809
1807
|
}
|
|
1810
1808
|
|
|
1811
1809
|
.ft-text-field-suggestion--helper-text {
|
|
1812
|
-
color: ${
|
|
1810
|
+
color: ${j.helperColor};
|
|
1813
1811
|
}
|
|
1814
1812
|
|
|
1815
1813
|
slot {
|
|
1816
1814
|
pointer-events: none;
|
|
1817
1815
|
}
|
|
1818
|
-
`;var
|
|
1819
|
-
<div class=${
|
|
1816
|
+
`;var Ai=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Is=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},et=class extends V{render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return N`
|
|
1817
|
+
<div class=${_e(e)}
|
|
1820
1818
|
tabindex="-1"
|
|
1821
1819
|
@keydown=${this.onKeyDown}
|
|
1822
1820
|
@click=${this.confirmSuggestion}>
|
|
1823
1821
|
<ft-ripple></ft-ripple>
|
|
1824
|
-
${this.helper?
|
|
1822
|
+
${this.helper?N`
|
|
1825
1823
|
<ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
|
|
1826
1824
|
${this.helper}
|
|
1827
|
-
</ft-typography>`:
|
|
1825
|
+
</ft-typography>`:F}
|
|
1828
1826
|
<ft-typography part="label"
|
|
1829
1827
|
variant="body1"
|
|
1830
1828
|
class="ft-text-field-suggestion--label">
|
|
1831
1829
|
<slot></slot>
|
|
1832
1830
|
</ft-typography>
|
|
1833
1831
|
</div>
|
|
1834
|
-
`}focus(
|
|
1835
|
-
<div class="${
|
|
1832
|
+
`}focus(e){var r;(r=this.container)===null||r===void 0||r.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new Is(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};et.elementDefinitions={"ft-ripple":re,"ft-typography":xe,"ft-icon":Oe};et.styles=Td;Ai([g()],et.prototype,"value",void 0);Ai([g()],et.prototype,"helper",void 0);Ai([X(".ft-text-field-suggestion")],et.prototype,"container",void 0);Ai([co()],et.prototype,"assignedNodes",void 0);var ee=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Z=class extends Sr(V,"textbox"){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Or.EYE_SLASH,this.passwordRevealedIcon=Or.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let r=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}render(){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.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},r=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),n=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||r;return N`
|
|
1833
|
+
<div class="${_e(e)}">
|
|
1836
1834
|
<div class="ft-text-field--main-panel"
|
|
1837
1835
|
@keydown=${this.handleKeyboardNavigation}
|
|
1838
1836
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -1842,19 +1840,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1842
1840
|
?raised=${this.focused||this.value!=""}
|
|
1843
1841
|
?error=${this.error}></ft-input-label>
|
|
1844
1842
|
<div class="ft-text-field--input-panel">
|
|
1845
|
-
${this.outlined?
|
|
1843
|
+
${this.outlined?F:N`
|
|
1846
1844
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1847
1845
|
`}
|
|
1848
|
-
${this.prefix?
|
|
1846
|
+
${this.prefix?N`
|
|
1849
1847
|
<ft-typography class="ft-text-field--prefix" variant="body1">
|
|
1850
1848
|
${this.prefix}
|
|
1851
1849
|
</ft-typography>
|
|
1852
|
-
`:
|
|
1850
|
+
`:F}
|
|
1853
1851
|
<input type=${this.resolveInputType()}
|
|
1854
|
-
name=${
|
|
1855
|
-
maxlength=${
|
|
1852
|
+
name=${wi(this.name)}
|
|
1853
|
+
maxlength=${wi(this.maxLength||void 0)}
|
|
1856
1854
|
aria-label="${this.label}"
|
|
1857
|
-
autocomplete=${
|
|
1855
|
+
autocomplete=${wi(this.autocomplete)}
|
|
1858
1856
|
class="ft-typography--body1 ft-text-field--input"
|
|
1859
1857
|
part="input"
|
|
1860
1858
|
?disabled=${this.disabled}
|
|
@@ -1867,50 +1865,50 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1867
1865
|
<div class="ft-text-field--suggestions"
|
|
1868
1866
|
@suggestion-selected=${this.onSuggestionSelected}>
|
|
1869
1867
|
${this.renderSuggestions()}
|
|
1870
|
-
${n?
|
|
1868
|
+
${n?N`
|
|
1871
1869
|
<ft-text-field-suggestion class="ft-text-field-suggestion--new-value" helper="${this.suggestionsHelper}">
|
|
1872
1870
|
${this.value}
|
|
1873
1871
|
</ft-text-field-suggestion>
|
|
1874
|
-
`:
|
|
1872
|
+
`:F}
|
|
1875
1873
|
</div>
|
|
1876
1874
|
</div>
|
|
1877
|
-
${this.helper?
|
|
1875
|
+
${this.helper?N`
|
|
1878
1876
|
<ft-typography class="ft-text-field--helper-text" variant="caption">
|
|
1879
1877
|
${this.helper}
|
|
1880
1878
|
</ft-typography>
|
|
1881
|
-
`:
|
|
1879
|
+
`:F}
|
|
1882
1880
|
</div>
|
|
1883
|
-
`}resolveInputType(){var
|
|
1884
|
-
${
|
|
1885
|
-
<ft-text-field-suggestion value=${
|
|
1886
|
-
${
|
|
1887
|
-
<ft-icon .value=${
|
|
1888
|
-
`:
|
|
1889
|
-
${
|
|
1881
|
+
`}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?N`
|
|
1882
|
+
${po(this.providedSuggestions,e=>N`
|
|
1883
|
+
<ft-text-field-suggestion value=${e.value} @click=${e.clickHandler}>
|
|
1884
|
+
${e.icon?N`
|
|
1885
|
+
<ft-icon .value=${e.icon}></ft-icon>
|
|
1886
|
+
`:F}
|
|
1887
|
+
${e.label}
|
|
1890
1888
|
</ft-text-field-suggestion>`)}
|
|
1891
|
-
`:
|
|
1889
|
+
`:N`
|
|
1892
1890
|
<slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
|
|
1893
|
-
`}renderPasswordIcon(){return
|
|
1891
|
+
`}renderPasswordIcon(){return N`
|
|
1894
1892
|
<ft-icon class="ft-text-field--icon"
|
|
1895
1893
|
.variant=${this.iconVariant}
|
|
1896
1894
|
.value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
|
|
1897
1895
|
@click=${()=>this.togglePasswordVisibility()}></ft-icon>
|
|
1898
|
-
`}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?
|
|
1896
|
+
`}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?N`
|
|
1899
1897
|
<ft-icon class="ft-text-field--icon"
|
|
1900
1898
|
.variant=${this.iconVariant}
|
|
1901
1899
|
.value=${this.icon}
|
|
1902
|
-
@click=${()=>{var
|
|
1903
|
-
`:W}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions")||t.has("suggestionsProvider")||t.has("hideSuggestions"))&&this.updateSuggestions(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),t.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),t.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var t;this.clearWatchAutofill(),((t=this.autocomplete)!==null&&t!==void 0?t:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(t,r=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),r&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var r;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let 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,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var r;this.setValue(t.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,r;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let t=["bottom","top"];Va(this.mainPanel,this.suggestionsContainer,"bottom",t,"fixed",G.suggestSize.name,0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};K.elementDefinitions={"ft-input-label":Wt,"ft-ripple":rt,"ft-typography":xt,"ft-icon":Ct,"ft-text-field-suggestion":te};K.styles=[oo,Qa,Op];et([g()],K.prototype,"label",void 0);et([g({noAccessor:!0})],K.prototype,"value",null);et([H()],K.prototype,"dispatchedValue",void 0);et([g()],K.prototype,"helper",void 0);et([g()],K.prototype,"suggestionsHelper",void 0);et([g({type:Boolean})],K.prototype,"outlined",void 0);et([g({type:Boolean})],K.prototype,"disabled",void 0);et([g({type:Boolean})],K.prototype,"error",void 0);et([g({type:Boolean})],K.prototype,"fixedMenuPosition",void 0);et([g()],K.prototype,"prefix",void 0);et([g()],K.prototype,"icon",void 0);et([g()],K.prototype,"name",void 0);et([g()],K.prototype,"type",void 0);et([g()],K.prototype,"passwordHiddenIcon",void 0);et([g()],K.prototype,"passwordRevealedIcon",void 0);et([g()],K.prototype,"iconVariant",void 0);et([g({type:Boolean})],K.prototype,"filterSuggestions",void 0);et([g({type:Number})],K.prototype,"maxLength",void 0);et([g({type:Boolean})],K.prototype,"password",void 0);et([g({type:String})],K.prototype,"autocomplete",void 0);et([g({attribute:!1})],K.prototype,"suggestionsProvider",void 0);et([H()],K.prototype,"focused",void 0);et([H()],K.prototype,"hidePassword",void 0);et([H()],K.prototype,"hideSuggestions",void 0);et([H()],K.prototype,"visibleSuggestions",void 0);et([H()],K.prototype,"providedSuggestions",void 0);et([X(".ft-text-field--main-panel")],K.prototype,"mainPanel",void 0);et([X(".ft-text-field--input")],K.prototype,"input",void 0);et([X(".ft-text-field-suggestion--new-value")],K.prototype,"newValueSuggestion",void 0);et([X(".ft-text-field--suggestions")],K.prototype,"suggestionsContainer",void 0);et([kn("ft-text-field-suggestion")],K.prototype,"providedSuggestionsInDom",void 0);et([$n({selector:"ft-text-field-suggestion"})],K.prototype,"slottedSuggestions",void 0);J("ft-text-field")(K);J("ft-text-field-suggestion")(te);var Ep=e=>Pe.get({name:"ft-reader-"+e,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var ol=class{constructor(t,r){this.mapId=t,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,r,i){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,r,i):[{tocId:n.tocId,title:n.title,depth:r,children:this.extractPagesToc(n.children,r+1,n.tocId)}]))}convertNodes(t,r,i){return t.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],r,n.tocId),...this.convertNodes(n.children,r,n.tocId)];let 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:r,parentTocId:i,children:[]};this.register(p);let h=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],r+1,n.tocId),f=this.convertNodes(n.children,r+1,p.tocId);return p.children=[...h,...f],[p]})}convertSectionNodes(t,r,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:r,parentTocId:i,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,r+1,n.tocId),[l]})}buildPage(t,r){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(m=>this.nodeByTocId[m.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(m,v)=>(v?p.topics:p.hiddenTopics).push(m),f=(l=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return p.breadcrumb.forEach((m,v)=>{h(m,f[v])}),t.tocId&&h(t.tocId,t.pageConfiguration.isVisible),p.topics.push(...this.tocIds((d=t.pageToc)!==null&&d!==void 0?d:[])),p}registerPage(t){for(let r of[...t.topics,...t.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=t);this.pages.push(t)}tocIds(t){return t.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(t){let r=[t.tocId];for(;t?.parentTocId;)r.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return r}register(t){t.prettyUrl&&(this.nodeByUrl[t.prettyUrl]==null?this.nodeByUrl[t.prettyUrl]=t:this.duplicatedPrettyUrls.add(t.prettyUrl)),this.nodeByUrl[`${this.mapId}/${t.tocId}`]=t,this.nodeByTocId[t.tocId]=t}},Qi=class{convertPaginatedToc(t,r){return new ol(t,r).build()}};var tn=class extends xe{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,r,i){super(!1,r),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(r=>this.converter.convertPaginatedToc(t,r)))),this.cache.register("ratingSummary",()=>{var t,r;return _r((r=(t=M.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var r;return(r=this.enrichedToc)===null||r===void 0?void 0:r.nodeByTocId[t]}getTocNodeNowByUrl(t){var r,i;let n=this.getMapNow();return n?.prettyUrl==t||`${n?.id}/root`===t?(r=this.enrichedToc)===null||r===void 0?void 0:r.toc[0]:(i=this.enrichedToc)===null||i===void 0?void 0:i.nodeByUrl[t]}async getPage(t){let r=await this.getEnrichedToc();return r.pages[t-1]||r.pages[0]}async getPageByTocId(t){let r=await this.getEnrichedToc();return r.pageByTocId[t]||r.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(t,r){return this.cache.get("document-relatives-"+t+"-"+r.join("-"),()=>this.fetchRelativesForDocument(t,r))}getRelativesForTopicInMap(t,r,i){return this.cache.get("topic-relatives-"+[t,r,...i].join("-"),()=>this.fetchRelativesForTopicInMap(t,r,i))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,r,i){let n=this.getNavigationData(t,r,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,r,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:r&&l&&l.number!==r?r:void 0,prettyUrl:p?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(p??""))!==null&&a!==void 0?a:!1,section:i}}async getAccurateNavigationData(t,r,i){return await this.getEnrichedToc(),this.getNavigationData(t,r,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(r=>{var i;return r?{type:r.topics.type,rating:(i=r.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,r){return this.makeRateMapRequest(t,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,r){return this.makeMapFeedbackRequest(t,r)}rateTopic(t,r,i){return this.makeRateTopicRequest(t,r,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,r,i){return this.makeTopicFeedbackRequest(t,r,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let r=this.getTocNodeNow(t),i=[{tocId:r.tocId,title:r.title}],n=this.getTocNodeNow(r.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(t,{session:r}){var i;if(!this.isFeatureAvailable(t))return!1;switch(t){case Jt.FEEDBACK:return _r(r??[],st.FEEDBACK_USER);case Jt.RATING:return _r(r??[],st.RATING_USER);case Jt.PRINT:return _r(r??[],st.PRINT_USER);case Jt.BOOKMARK:return!!r?.sessionAuthenticated;case Jt.COLLECTIONS:return _r(r??[],st.COLLECTION_USER);case Jt.PERSONAL_BOOKS:return _r(r??[],st.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var en=class e extends tn{static async build(t){return new e(new Qi,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let r=await this.api.getMap(t);return this.fingerprint=r.fingerprint,r}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,r){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(t,r,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[t]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(t,r){return this.api.sendMapFeedback(this.mapId,t,r)}makeRateMapRequest(t,r){return this.api.rateMap(this.mapId,t,r)}makeRateTopicRequest(t,r,i){return this.api.rateTopic(this.mapId,t,r,i)}makeTopicFeedbackRequest(t,r,i){return this.api.sendTopicFeedback(this.mapId,t,r,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 rn=class e{static build(t,r){return new e(Ep(t.trim()||"context"),r??en.build)}loaded(){return Yn(()=>this._loaded)}constructor(t,r,i){this.store=t,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new lt(10),this.initService(r)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setRenderedTopics(t){this.store.actions.renderedTopics(t)}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return Ao(()=>this.service)}async navigateToTopic(t,r,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:r})}resolveValidNonRootTocId(t,r){var i,n,a;let s=(i=t==="root"?void 0:t)!==null&&i!==void 0?i:r.rootTocId;return r.topics.includes(s)?s:(a=(n=r.topics[0])!==null&&n!==void 0?n:r.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){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),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,r,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)),(r=this.service)===null||r===void 0?void 0:r.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,r,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?(r=this.service)===null||r===void 0||r.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,r;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=(r=(t=M.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&r!==void 0?r:[];return new wo(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var r,i,n;await this.loaded();let a=await Ao(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,d=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(i=(r=d?.results)===null||r===void 0?void 0:r[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 wp=$`
|
|
1904
|
-
`;var
|
|
1900
|
+
@click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
|
|
1901
|
+
`:F}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,r=!1){this.value!==e&&(this.setInternalValue(e),this.dispatchEvent(new CustomEvent("live-change",{detail:e}))),r&&this.dispatchedValue!==e&&(this.dispatchedValue=e,this.dispatchEvent(new CustomEvent("change",{detail:e})))}handleInput(e){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var r;this.setValue(e.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,r;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];xa(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed",j.suggestSize.name,0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};Z.elementDefinitions={"ft-input-label":ze,"ft-ripple":re,"ft-typography":xe,"ft-icon":Oe,"ft-text-field-suggestion":et};Z.styles=[Xr,_a,_d];ee([g()],Z.prototype,"label",void 0);ee([g({noAccessor:!0})],Z.prototype,"value",null);ee([W()],Z.prototype,"dispatchedValue",void 0);ee([g()],Z.prototype,"helper",void 0);ee([g()],Z.prototype,"suggestionsHelper",void 0);ee([g({type:Boolean})],Z.prototype,"outlined",void 0);ee([g({type:Boolean})],Z.prototype,"disabled",void 0);ee([g({type:Boolean})],Z.prototype,"error",void 0);ee([g({type:Boolean})],Z.prototype,"fixedMenuPosition",void 0);ee([g()],Z.prototype,"prefix",void 0);ee([g()],Z.prototype,"icon",void 0);ee([g()],Z.prototype,"name",void 0);ee([g()],Z.prototype,"type",void 0);ee([g()],Z.prototype,"passwordHiddenIcon",void 0);ee([g()],Z.prototype,"passwordRevealedIcon",void 0);ee([g()],Z.prototype,"iconVariant",void 0);ee([g({type:Boolean})],Z.prototype,"filterSuggestions",void 0);ee([g({type:Number})],Z.prototype,"maxLength",void 0);ee([g({type:Boolean})],Z.prototype,"password",void 0);ee([g({type:String})],Z.prototype,"autocomplete",void 0);ee([g({attribute:!1})],Z.prototype,"suggestionsProvider",void 0);ee([W()],Z.prototype,"focused",void 0);ee([W()],Z.prototype,"hidePassword",void 0);ee([W()],Z.prototype,"hideSuggestions",void 0);ee([W()],Z.prototype,"visibleSuggestions",void 0);ee([W()],Z.prototype,"providedSuggestions",void 0);ee([X(".ft-text-field--main-panel")],Z.prototype,"mainPanel",void 0);ee([X(".ft-text-field--input")],Z.prototype,"input",void 0);ee([X(".ft-text-field-suggestion--new-value")],Z.prototype,"newValueSuggestion",void 0);ee([X(".ft-text-field--suggestions")],Z.prototype,"suggestionsContainer",void 0);ee([ln("ft-text-field-suggestion")],Z.prototype,"providedSuggestionsInDom",void 0);ee([cn({selector:"ft-text-field-suggestion"})],Z.prototype,"slottedSuggestions",void 0);Q("ft-text-field")(Z);Q("ft-text-field-suggestion")(et);var Id=t=>Pt.get({name:"ft-reader-"+t,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var Ns=class{constructor(e,r){this.mapId=e,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(e,r,i){return e.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,r,i):[{tocId:n.tocId,title:n.title,depth:r,children:this.extractPagesToc(n.children,r+1,n.tocId)}]))}convertNodes(e,r,i){return e.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],r,n.tocId),...this.convertNodes(n.children,r,n.tocId)];let 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:r,parentTocId:i,children:[]};this.register(p);let h=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],r+1,n.tocId),f=this.convertNodes(n.children,r+1,p.tocId);return p.children=[...h,...f],[p]})}convertSectionNodes(e,r,i){return e.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:r,parentTocId:i,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,r+1,n.tocId),[l]})}buildPage(e,r){var i,n,a,s,l,d;let p={number:this.pages.length+1,title:(i=e.title)!==null&&i!==void 0?i:"",rootTocId:(n=e.tocId)!==null&&n!==void 0?n:"root",toc:((a=e.pageToc)!==null&&a!==void 0?a:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},h=(y,v)=>(v?p.topics:p.hiddenTopics).push(y),f=(l=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return p.breadcrumb.forEach((y,v)=>{h(y,f[v])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),p.topics.push(...this.tocIds((d=e.pageToc)!==null&&d!==void 0?d:[])),p}registerPage(e){for(let r of[...e.topics,...e.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=e);this.pages.push(e)}tocIds(e){return e.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(e){let r=[e.tocId];for(;e?.parentTocId;)r.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return r}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Ri=class{convertPaginatedToc(e,r){return new Ns(e,r).build()}};var _i=class extends St{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,i){super(!1,r),this.converter=e,this._mapId=i,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(r=>this.converter.convertPaginatedToc(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return vr((r=(e=B.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(e){return(await this.getEnrichedToc()).nodeByTocId[e]}getTocNodeNow(e){var r;return(r=this.enrichedToc)===null||r===void 0?void 0:r.nodeByTocId[e]}getTocNodeNowByUrl(e){var r,i;let n=this.getMapNow();return n?.prettyUrl==e||`${n?.id}/root`===e?(r=this.enrichedToc)===null||r===void 0?void 0:r.toc[0]:(i=this.enrichedToc)===null||i===void 0?void 0:i.nodeByUrl[e]}async getPage(e){let r=await this.getEnrichedToc();return r.pages[e-1]||r.pages[0]}async getPageByTocId(e){let r=await this.getEnrichedToc();return r.pageByTocId[e]||r.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}getRelativesForTopicInMap(e,r,i){return this.cache.get("topic-relatives-"+[e,r,...i].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,i))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true`)}getLink(e,r,i){let n=this.getNavigationData(e,r,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(e,r,i){var n,a;e=e||"root";let s=this.enrichedToc,l=s?.pageByTocId[e],d=s?.nodeByTocId[e],p=d?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(n=d?.title)!==null&&n!==void 0?n:"",page:r&&l&&l.number!==r?r:void 0,prettyUrl:p?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(p??""))!==null&&a!==void 0?a:!1,section:i}}async getAccurateNavigationData(e,r,i){return await this.getEnrichedToc(),this.getNavigationData(e,r,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var i;return r?{type:r.topics.type,rating:(i=r.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,i){return this.makeRateTopicRequest(e,r,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=B.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,i){return this.makeTopicFeedbackRequest(e,r,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e){let r=this.getTocNodeNow(e),i=[{tocId:r.tocId,title:r.title}],n=this.getTocNodeNow(r.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(e,{session:r}){var i;if(!this.isFeatureAvailable(e))return!1;switch(e){case Qe.FEEDBACK:return vr(r??[],se.FEEDBACK_USER);case Qe.RATING:return vr(r??[],se.RATING_USER);case Qe.PRINT:return vr(r??[],se.PRINT_USER);case Qe.BOOKMARK:return!!r?.sessionAuthenticated;case Qe.COLLECTIONS:return vr(r??[],se.COLLECTION_USER);case Qe.PERSONAL_BOOKS:return vr(r??[],se.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Ti=class t extends _i{static async build(e){return new t(new Ri,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e){let r=await this.api.getMap(e);return this.fingerprint=r.fingerprint,r}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e){return await this.getMap(),this.api.getPages(e,this.fingerprint)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,r){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(e,r,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,i){return this.api.rateTopic(this.mapId,e,r,i)}makeTopicFeedbackRequest(e,r,i){return this.api.sendTopicFeedback(this.mapId,e,r,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var Ii=class t{static build(e,r){return new t(Id(e.trim()||"context"),r??Ti.build)}loaded(){return En(()=>this._loaded)}constructor(e,r,i){this.store=e,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new le(10),this.initService(r)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return ho(()=>this.service)}async navigateToTopic(e,r,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i):n.getPageByTocId(e??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(e,a),section:r})}resolveValidNonRootTocId(e,r){var i,n,a;let s=(i=e==="root"?void 0:e)!==null&&i!==void 0?i:r.rootTocId;return r.topics.includes(s)?s:(a=(n=r.topics[0])!==null&&n!==void 0?n:r.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(e){await this.loaded();let i=await(await this.awaitService()).getPage(e);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var e,r,i,n,a;try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(s=>this.store.actions.configuration(s)),(r=this.service)===null||r===void 0?void 0:r.getMap().then(s=>this.store.actions.map(s)),(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 ar)&&this.errorHandler(s)}}fetchRelatives(){var e,r,i;let n=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(r=this.service)===null||r===void 0||r.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 e,r;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=(r=(e=B.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new fo(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var r,i,n;await this.loaded();let a=await ho(()=>{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,[e]);if(!((n=(i=(r=d?.results)===null||r===void 0?void 0:r[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(e){this.store.actions.searchInDocumentQuery(e)}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}};var Nd=k`
|
|
1902
|
+
`;var Ni=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},Pi=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},Li=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},ki=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Di=class extends Event{constructor(){super("ft-reader-map-not-found")}},$i=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Mi=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Bi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Fi=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}};var Ge=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},mf=t=>e=>+(e??"NaN")>0?+e:t,Ae=class extends Ye{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new le(5),this.navigationDebouncer=new le(10),this.mapLoadedEventDebouncer=new le(50),this.addStore(B)}render(){return N`
|
|
1905
1903
|
${this.importStyleIfNeeded()}
|
|
1906
1904
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
1907
|
-
`}importStyleIfNeeded(){var
|
|
1905
|
+
`}importStyleIfNeeded(){var e,r;let i=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!i||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?F:N`
|
|
1908
1906
|
<style>
|
|
1909
1907
|
@import "${i}"
|
|
1910
1908
|
</style>
|
|
1911
|
-
`}get stateManager(){return this._stateManager==null&&(this._stateManager=
|
|
1909
|
+
`}get stateManager(){return this._stateManager==null&&(this._stateManager=Ii.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let r=e.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",r),document.head.append(i)}window.FluidTopicsReaderService=new Fi(this.stateManager)})}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>e.has(r))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let n=e.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 Li(s)))})}(e.has("visibleTopics")||e.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 Pi(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Bi),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let r=e;r.status===401?this.dispatchEvent(new $i):r.status===403?this.dispatchEvent(new Mi):r.status===404?this.dispatchEvent(new Di):this.dispatchEvent(new ki(e))}reloadBookmarks(){wd.reloadBookmarks()}async reloadRating(){var e,r;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Ni(this.map,this.toc))})}};Ae.styles=Nd;Ge([de({store:B.name})],Ae.prototype,"baseUrl",void 0);Ge([de({store:B.name})],Ae.prototype,"session",void 0);Ge([g()],Ae.prototype,"mapId",void 0);Ge([g()],Ae.prototype,"tocId",void 0);Ge([g()],Ae.prototype,"section",void 0);Ge([g()],Ae.prototype,"topicPivot",void 0);Ge([g()],Ae.prototype,"searchInDocumentQuery",void 0);Ge([g({type:Number,converter:{fromAttribute:mf()}})],Ae.prototype,"page",void 0);Ge([de({store:"reader"})],Ae.prototype,"map",void 0);Ge([de({store:"reader"})],Ae.prototype,"toc",void 0);Ge([de({store:"reader"})],Ae.prototype,"visibleTopics",void 0);Ge([de({store:"reader"})],Ae.prototype,"currentPage",void 0);Ge([de({store:"reader"})],Ae.prototype,"scrollTarget",void 0);Ge([g({attribute:!1})],Ae.prototype,"readerServiceProvider",void 0);Q("ft-reader-context")(Ae);var Ui=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},Wi=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},zi=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},Hi=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},Vi=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var Re=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ae=class extends Xt(Kt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(J,Rd)}get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(Qe.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(Qe.RATING,{session:this.session}))&&this.ratingAllowed&&this.configuredRatingType!=Se.NO_RATING}get configuredRatingType(){var e,r;return(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&r!==void 0?r:Se.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.type)!==null&&i!==void 0?i:Se.NO_RATING}get ratingValue(){var e,r,i;return(i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:-1}get ratingDate(){var e,r;let i=(r=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||r===void 0?void 0:r.date;return typeof i=="string"?Yo(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?F:N`
|
|
1912
1910
|
<div class="ft-reader-feedback">
|
|
1913
|
-
${this.hideTitle?
|
|
1911
|
+
${this.hideTitle?F:N`
|
|
1914
1912
|
<ft-typography variant="title" part="main-title">
|
|
1915
1913
|
${this.i18n(this.i18nProperties.feedbackMainTitle)}
|
|
1916
1914
|
</ft-typography>
|
|
@@ -1918,21 +1916,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1918
1916
|
${this.renderRatingSection()}
|
|
1919
1917
|
${this.renderFeedbackSection()}
|
|
1920
1918
|
</div>
|
|
1921
|
-
`}renderRatingSection(){return this.canRateThisContent?
|
|
1919
|
+
`}renderRatingSection(){return this.canRateThisContent?N`
|
|
1922
1920
|
<div class="ft-reader-feedback--rating" part="rating-container">
|
|
1923
1921
|
<ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
|
|
1924
|
-
${this.i18n(this.ratingSummary.type===
|
|
1922
|
+
${this.i18n(this.ratingSummary.type===Se.DICHOTOMOUS?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
|
|
1925
1923
|
</ft-typography>
|
|
1926
1924
|
${this.renderRating()}
|
|
1927
1925
|
<ft-typography variant="caption" class="ft-reader-feedback--rating-date" part="rating-date">
|
|
1928
1926
|
${this.renderRatingDate()}
|
|
1929
1927
|
</ft-typography>
|
|
1930
1928
|
</div>
|
|
1931
|
-
`:
|
|
1929
|
+
`:F}renderRatingDate(){let e=this.ratingDate;if(e==null)return J.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return J.messages.ratedNow();let r=new Date().toLocaleDateString(),i=e.toLocaleDateString();return r===i?J.messages.ratedToday():J.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case Se.STARS:return N`
|
|
1932
1930
|
<div class="ft-reader-feedback--stars" part="rating rating-stars">
|
|
1933
|
-
${
|
|
1931
|
+
${po(new Array(5),(a,s)=>s,(a,s)=>{let l=this.ratingTypeOfDoneRatingOfThisContent===Se.STARS&&this.ratingValue>s,d=s+1;return N`
|
|
1934
1932
|
<ft-button round part="rating-stars-${d}"
|
|
1935
|
-
label="${
|
|
1933
|
+
label="${J.messages.starsRating(d)}"
|
|
1936
1934
|
tooltipPosition="top"
|
|
1937
1935
|
.iconVariant=${this.iconVariant}
|
|
1938
1936
|
icon="${l?this.filledStarIcon:this.emptyStarIcon}"
|
|
@@ -1941,7 +1939,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1941
1939
|
></ft-button>
|
|
1942
1940
|
`})}
|
|
1943
1941
|
</div>
|
|
1944
|
-
`;case
|
|
1942
|
+
`;case Se.LIKE:let e=this.ratingTypeOfDoneRatingOfThisContent===Se.LIKE&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===Se.LIKE&&this.ratingValue===1;return N`
|
|
1945
1943
|
<ft-switch unselectable
|
|
1946
1944
|
@change=${a=>this.rate(a.detail)}
|
|
1947
1945
|
part="rating rating-like"
|
|
@@ -1951,67 +1949,67 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1951
1949
|
.iconVariant=${this.iconVariant}
|
|
1952
1950
|
icon="${r?this.filledLikeIcon:this.emptyLikeIcon}"
|
|
1953
1951
|
role="radio">
|
|
1954
|
-
${
|
|
1952
|
+
${J.messages.like()}
|
|
1955
1953
|
</ft-switch-option>
|
|
1956
1954
|
<ft-switch-option .value=${0}
|
|
1957
|
-
?selected=${
|
|
1955
|
+
?selected=${e}
|
|
1958
1956
|
.iconVariant=${this.iconVariant}
|
|
1959
|
-
icon="${
|
|
1957
|
+
icon="${e?this.filledDislikeIcon:this.emptyDislikeIcon}"
|
|
1960
1958
|
role="radio">
|
|
1961
|
-
${
|
|
1959
|
+
${J.messages.dislike()}
|
|
1962
1960
|
</ft-switch-option>
|
|
1963
1961
|
</ft-switch>
|
|
1964
|
-
`;case
|
|
1962
|
+
`;case Se.DICHOTOMOUS:let i=this.ratingTypeOfDoneRatingOfThisContent===Se.DICHOTOMOUS&&this.ratingValue===0,n=this.ratingTypeOfDoneRatingOfThisContent===Se.DICHOTOMOUS&&this.ratingValue===1;return N`
|
|
1965
1963
|
<ft-switch unselectable
|
|
1966
1964
|
@change=${a=>this.rate(a.detail)}
|
|
1967
1965
|
part="rating rating-dichotomous">
|
|
1968
1966
|
<ft-switch-option .value=${1}
|
|
1969
1967
|
?selected=${n}>
|
|
1970
|
-
${
|
|
1968
|
+
${J.messages.dichotomousYes()}
|
|
1971
1969
|
</ft-switch-option>
|
|
1972
1970
|
<ft-switch-option .value=${0}
|
|
1973
1971
|
?selected=${i}>
|
|
1974
|
-
${
|
|
1972
|
+
${J.messages.dichotomousNo()}
|
|
1975
1973
|
</ft-switch-option>
|
|
1976
1974
|
</ft-switch>
|
|
1977
|
-
`}return
|
|
1975
|
+
`}return F}rate(e){(e??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:e}))}renderFeedbackSection(){var e,r,i,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=N`
|
|
1978
1976
|
<ft-button primary
|
|
1979
1977
|
type="submit" name="submit"
|
|
1980
1978
|
class="ft-reader-feedback--send-feedback"
|
|
1981
1979
|
?disabled=${!this.feedbackMessage||!this.validFromEmail()}
|
|
1982
1980
|
part="send-feedback">
|
|
1983
|
-
${
|
|
1981
|
+
${J.messages.okButton()}
|
|
1984
1982
|
</ft-button>
|
|
1985
|
-
`;s&&(l=
|
|
1983
|
+
`;s&&(l=N`
|
|
1986
1984
|
<a class="ft-reader-feedback--feedback-link" href="${s}">
|
|
1987
1985
|
${l}
|
|
1988
1986
|
</a>
|
|
1989
|
-
`);let d=this.withMoreOptionsButton&&(!((
|
|
1987
|
+
`);let d=this.withMoreOptionsButton&&(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics||!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers)?N`
|
|
1990
1988
|
<ft-button outlined
|
|
1991
1989
|
type="button" name="more-options"
|
|
1992
1990
|
class="ft-reader-feedback--more-options"
|
|
1993
1991
|
@click="${this.onOpenMoreDetails}"
|
|
1994
1992
|
part="more-options">
|
|
1995
|
-
${
|
|
1993
|
+
${J.messages.moreOptionsButton()}
|
|
1996
1994
|
</ft-button>
|
|
1997
|
-
`:
|
|
1995
|
+
`:F;return N`
|
|
1998
1996
|
<form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
|
|
1999
1997
|
@submit="${p=>this.onFormSubmitEvent(p,!!s)}">
|
|
2000
1998
|
<ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
|
|
2001
1999
|
${this.i18n(this.i18nProperties.feedbackSectionTitle)}
|
|
2002
2000
|
</ft-typography>
|
|
2003
|
-
${((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)?
|
|
2001
|
+
${((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)?N`
|
|
2004
2002
|
<ft-text-field outlined name="email" type="email" autocomplete="email"
|
|
2005
2003
|
class="ft-reader-feedback--from-input"
|
|
2006
|
-
label=${
|
|
2004
|
+
label=${J.messages.feedbackfromEmail()}
|
|
2007
2005
|
@change=${p=>this.from=p.detail.trim()}
|
|
2008
2006
|
?error=${this.from&&!this.validFromEmail()}
|
|
2009
|
-
helper=${this.from&&!this.validFromEmail()?
|
|
2007
|
+
helper=${this.from&&!this.validFromEmail()?J.messages.feedbackfromEmailInvalid():""}
|
|
2010
2008
|
/>
|
|
2011
|
-
`:
|
|
2009
|
+
`:F}
|
|
2012
2010
|
<ft-text-area outlined
|
|
2013
2011
|
class="ft-reader-feedback--feedback-input" part="feedback-input"
|
|
2014
|
-
label="${
|
|
2012
|
+
label="${J.messages.feedbackInputLabel()}"
|
|
2015
2013
|
@live-change=${p=>this.feedbackMessage=p.detail.trim()}
|
|
2016
2014
|
></ft-text-area>
|
|
2017
2015
|
<div part="buttons-container">
|
|
@@ -2019,15 +2017,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2019
2017
|
${l}
|
|
2020
2018
|
</div>
|
|
2021
2019
|
</form>
|
|
2022
|
-
`}return
|
|
2020
|
+
`}return F}onFormSubmitEvent(e,r){e.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,r,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0?void 0:r.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new Ui({message:this.feedbackInput.value,...((e=this.configuration)===null||e===void 0?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.value="",0)}};ae.elementDefinitions={"ft-button":dt,"ft-typography":xe,"ft-switch":We,"ft-switch-option":ve,"ft-text-area":Ie,"ft-text-field":Z};ae.styles=dd;Re([g({type:Boolean})],ae.prototype,"editorMode",void 0);Re([g({type:Boolean})],ae.prototype,"hideTitle",void 0);Re([g({type:Boolean})],ae.prototype,"withMoreOptionsButton",void 0);Re([g({type:Boolean})],ae.prototype,"ratingAllowed",void 0);Re([g({attribute:!1})],ae.prototype,"i18nProperties",void 0);Re([g({attribute:!1})],ae.prototype,"ratingSummary",void 0);Re([g({attribute:!1})],ae.prototype,"session",void 0);Re([X(".ft-reader-feedback--feedback-input")],ae.prototype,"feedbackInput",void 0);Re([W()],ae.prototype,"from",void 0);Re([W()],ae.prototype,"feedbackMessage",void 0);Re([g()],ae.prototype,"iconVariant",void 0);Re([g()],ae.prototype,"emptyStarIcon",void 0);Re([g()],ae.prototype,"filledStarIcon",void 0);Re([g()],ae.prototype,"emptyLikeIcon",void 0);Re([g()],ae.prototype,"filledLikeIcon",void 0);Re([g()],ae.prototype,"emptyDislikeIcon",void 0);Re([g()],ae.prototype,"filledDislikeIcon",void 0);Re([de({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],ae.prototype,"configuration",void 0);Re([g()],ae.prototype,"feedbackMailLinkBuilder",void 0);var Jr=Qt.fromGwt("server");var eo=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,r,i,n,a){var s;this.subject=e,this.url=r,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(e,r){return r.map(i=>e.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var e,r;let i=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(e){var r;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
|
|
2023
2021
|
${this.bodyMetadata}
|
|
2024
2022
|
${this.url}
|
|
2025
2023
|
_________________________________________________________________
|
|
2026
2024
|
|
|
2027
|
-
${
|
|
2025
|
+
${e??""}
|
|
2028
2026
|
|
|
2029
2027
|
_________________________________________________________________
|
|
2030
|
-
${
|
|
2028
|
+
${Jr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var Jt=Qt.build("inDesignerFeedbackComponent"),ji={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Pe=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ge=class extends Xt(Kt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=$e.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new eo,this.i18nProperties={feedbackMainTitle:J.properties.mapFeedbackMainTitle(),ratingSectionTitle:J.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:J.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:J.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new le(100),this.sendRatingDebouncer=new le(500),this.addStore(B)}render(){return N`
|
|
2031
2029
|
<ft-reader-feedback
|
|
2032
2030
|
ratingAllowed
|
|
2033
2031
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -2043,16 +2041,16 @@ ${no.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
|
|
|
2043
2041
|
.filledLikeIcon=${this.filledLikeIcon}
|
|
2044
2042
|
.emptyDislikeIcon=${this.emptyDislikeIcon}
|
|
2045
2043
|
.filledDislikeIcon=${this.filledDislikeIcon}
|
|
2046
|
-
.feedbackMailLinkBuilder=${
|
|
2044
|
+
.feedbackMailLinkBuilder=${e=>this.feedbackLinkBuilder.build(e)}
|
|
2047
2045
|
@rate=${this.rate}
|
|
2048
2046
|
@send-feedback=${this.sendFeedback}
|
|
2049
2047
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
2050
2048
|
@open-more-options=${this.openMoreOptions}
|
|
2051
2049
|
></ft-reader-feedback>
|
|
2052
|
-
`}update(
|
|
2050
|
+
`}update(e){var r,i,n,a;super.update(e),e.has("map")&&this.map&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(Jt,ji),["map","configuration","user","mailSubject"].some(s=>e.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(r=this.service)===null||r===void 0?void 0:r.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(e){super.onStoreAvailable(e),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var e,r;this.map&&(!((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0)&&r.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var e;this.ratingSummary=await((e=this.service)===null||e===void 0?void 0:e.getMapRating())}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,i,n;if(!this.editorMode&&this.ratingSummary){try{e==null?await((r=this.service)===null||r===void 0?void 0:r.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new Fe({type:"error",message:J.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Fe({type:"info",message:Jt.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{this.editorMode?this.dispatchEvent(new Fe({type:"info",message:Jt.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new Fe({type:"info",message:J.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Fe({type:"error",message:J.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new Vi)}openMoreOptions(){var e,r,i;this.dispatchEvent(new zi({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((e=this.map)===null||e===void 0?void 0:e.metadata)||[],ratingType:((r=this.ratingSummary)===null||r===void 0?void 0:r.type)||Se.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};ge.elementDefinitions={"ft-reader-feedback":ae};Pe([de({store:B.name})],ge.prototype,"session",void 0);Pe([de({store:"reader"})],ge.prototype,"map",void 0);Pe([de({store:B.name})],ge.prototype,"editorMode",void 0);Pe([de({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],ge.prototype,"configuration",void 0);Pe([W()],ge.prototype,"ratingSummary",void 0);Pe([g({type:Boolean})],ge.prototype,"hideTitle",void 0);Pe([g({type:Boolean})],ge.prototype,"withMoreOptionsButton",void 0);Pe([g()],ge.prototype,"iconVariant",void 0);Pe([g()],ge.prototype,"emptyStarIcon",void 0);Pe([g()],ge.prototype,"filledStarIcon",void 0);Pe([g()],ge.prototype,"emptyLikeIcon",void 0);Pe([g()],ge.prototype,"filledLikeIcon",void 0);Pe([g()],ge.prototype,"emptyDislikeIcon",void 0);Pe([g()],ge.prototype,"filledDislikeIcon",void 0);Pe([X("ft-reader-feedback")],ge.prototype,"readerFeedback",void 0);Pe([Ei(Jr.properties["mail.map_feedback.subject"](t=>{var e;return[(e=t.map)===null||e===void 0?void 0:e.title]}))],ge.prototype,"mailSubject",void 0);Pe([Ro({eventName:"rating-changed"})],ge.prototype,"fetchRatingSummary",null);var Pd=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ls=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Ps=Symbol("registerInterval");function yf(t){var e;class r extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Ps]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Ps]):this.dispatchEvent(new Ls)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Ps,Pd([W()],r.prototype,"tocNode",void 0),Pd([W()],r.prototype,"disableContextInteractions",void 0),r}var Gi=class extends yf(Kt){};var Le=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},be=class extends Xt(Gi){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=$e.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new eo,this.i18nProperties={feedbackMainTitle:J.properties.topicFeedbackMainTitle(),ratingSectionTitle:J.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:J.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:J.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new le(100),this.sendRatingDebouncer=new le(500),this.addStore(B)}render(){var e;return N`
|
|
2053
2051
|
<ft-reader-feedback
|
|
2054
2052
|
.i18nProperties=${this.i18nProperties}
|
|
2055
|
-
?ratingAllowed=${(
|
|
2053
|
+
?ratingAllowed=${(e=this.tocNode)===null||e===void 0?void 0:e.hasRating}
|
|
2056
2054
|
.editorMode=${this.editorMode}
|
|
2057
2055
|
?hideTitle=${this.hideTitle}
|
|
2058
2056
|
?withMoreOptionsButton=${this.withMoreOptionsButton}
|
|
@@ -2071,7 +2069,7 @@ ${no.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
|
|
|
2071
2069
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
2072
2070
|
@open-more-options=${this.openMoreOptions}
|
|
2073
2071
|
></ft-reader-feedback>
|
|
2074
|
-
`}update(
|
|
2072
|
+
`}update(e){var r,i,n,a;super.update(e),["tocNode","user"].some(s=>e.has(s))&&this.tocNode&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(Jt,ji),["map","tocNode","configuration","user","mailSubject"].some(s=>e.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(r=this.service)===null||r===void 0?void 0:r.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 e,r;this.tocNode&&(!((r=(e=this.session)===null||e===void 0?void 0:e.profile)===null||r===void 0)&&r.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var e;this.ratingSummary=await((e=this.service)===null||e===void 0?void 0:e.getTopicRating(this.tocNode.tocId))}rate(e){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:e.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var r,i,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{e==null?await((r=this.service)===null||r===void 0?void 0:r.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,e))}catch{this.dispatchEvent(new Fe({type:"error",message:J.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Fe({type:"info",message:Jt.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var r;try{!this.editorMode&&this.tocNode?(await((r=this.service)===null||r===void 0?void 0:r.sendTopicFeedback(this.tocNode.tocId,e.detail.message,e.detail.from)),this.dispatchEvent(new Fe({type:"info",message:J.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Fe({type:"info",message:Jt.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Fe({type:"error",message:J.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new Hi(e))}openMoreOptions(){var e,r,i,n,a,s,l,d;this.dispatchEvent(new Wi({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(r=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&r!==void 0?r:"",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:Se.NO_RATING)||Se.NO_RATING,ratingValue:(d=this.ratingSummary)===null||d===void 0?void 0:d.rating}))}};be.elementDefinitions={"ft-reader-feedback":ae};Le([de({store:B.name})],be.prototype,"session",void 0);Le([de({store:"reader"})],be.prototype,"map",void 0);Le([de({store:B.name})],be.prototype,"editorMode",void 0);Le([de({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],be.prototype,"configuration",void 0);Le([W()],be.prototype,"ratingSummary",void 0);Le([g({type:Boolean})],be.prototype,"hideTitle",void 0);Le([g({type:Boolean})],be.prototype,"withMoreOptionsButton",void 0);Le([g()],be.prototype,"iconVariant",void 0);Le([g()],be.prototype,"emptyStarIcon",void 0);Le([g()],be.prototype,"filledStarIcon",void 0);Le([g()],be.prototype,"emptyLikeIcon",void 0);Le([g()],be.prototype,"filledLikeIcon",void 0);Le([g()],be.prototype,"emptyDislikeIcon",void 0);Le([g()],be.prototype,"filledDislikeIcon",void 0);Le([X("ft-reader-feedback")],be.prototype,"readerFeedback",void 0);Le([Ei(Jr.properties["mail.feedback.subject"](t=>{var e,r;return[(e=t.tocNode)===null||e===void 0?void 0:e.title,(r=t.map)===null||r===void 0?void 0:r.title]}))],be.prototype,"mailSubject",void 0);Le([Ro({eventName:"rating-changed"})],be.prototype,"fetchRatingSummary",null);Q("ft-reader-map-feedback")(ge);Q("ft-reader-topic-feedback")(be);})();
|
|
2075
2073
|
/*! Bundled license information:
|
|
2076
2074
|
|
|
2077
2075
|
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|
|
@@ -2110,27 +2108,6 @@ lit-html/lit-html.js:
|
|
|
2110
2108
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2111
2109
|
*)
|
|
2112
2110
|
|
|
2113
|
-
@lit/reactive-element/css-tag.js:
|
|
2114
|
-
(**
|
|
2115
|
-
* @license
|
|
2116
|
-
* Copyright 2019 Google LLC
|
|
2117
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
2118
|
-
*)
|
|
2119
|
-
|
|
2120
|
-
@lit/reactive-element/reactive-element.js:
|
|
2121
|
-
(**
|
|
2122
|
-
* @license
|
|
2123
|
-
* Copyright 2017 Google LLC
|
|
2124
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
2125
|
-
*)
|
|
2126
|
-
|
|
2127
|
-
lit-html/lit-html.js:
|
|
2128
|
-
(**
|
|
2129
|
-
* @license
|
|
2130
|
-
* Copyright 2017 Google LLC
|
|
2131
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
2132
|
-
*)
|
|
2133
|
-
|
|
2134
2111
|
lit-element/lit-element.js:
|
|
2135
2112
|
(**
|
|
2136
2113
|
* @license
|
|
@@ -2257,13 +2234,6 @@ lit-html/directives/unsafe-html.js:
|
|
|
2257
2234
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2258
2235
|
*)
|
|
2259
2236
|
|
|
2260
|
-
@lit/reactive-element/css-tag.js:
|
|
2261
|
-
(**
|
|
2262
|
-
* @license
|
|
2263
|
-
* Copyright 2019 Google LLC
|
|
2264
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
2265
|
-
*)
|
|
2266
|
-
|
|
2267
2237
|
lit-html/static.js:
|
|
2268
2238
|
(**
|
|
2269
2239
|
* @license
|